Commit Graph

297297 Commits

Author SHA1 Message Date
riastradh 76f861686f drm: Modularize ttm. 2022-07-17 15:36:05 +00:00
riastradh 84936b9b9e drm: Include GPU scheduler in drmkms.kmod.
Could be split into a separate module, but whatever.
2022-07-17 15:35:42 +00:00
riastradh fa2fa0c741 drm: Sync module/drmkms/Makefile with files.drmkms.
Unconditionally include legacy APIs for viadrmums.
2022-07-17 15:05:09 +00:00
riastradh 2f7fddcfb3 drm: Dust off module build a little. 2022-07-17 14:11:40 +00:00
riastradh e64b7b5f8f drm: Ifdef out devm_* stuff rather than stub it out.
Stub is not helpful, and this pollutes the symbol namespace.
2022-07-17 14:11:18 +00:00
riastradh d2f5b75467 linux: Add missing symbol namespacing for tasklet, sync_file. 2022-07-17 14:11:07 +00:00
riastradh 2578dcd440 bsd.kmodule.mk: Also sync no-address-of-packed-member.
This is not actually a good idea to disable -- it can lead to real
problems -- but let's just make it the same for the kernel build and
module builds.
2022-07-17 14:10:55 +00:00
riastradh d90df32719 i915: Omit needless i915_global_buddy_init declaration. 2022-07-17 14:10:43 +00:00
riastradh 2209a5e209 i915: Remove spurious local i915_perf.c override. 2022-07-17 14:10:32 +00:00
riastradh 4ab65cda4f bsd.kmodule.mk: Use -Wno-attributes like conf/Makefie.kern.inc. 2022-07-17 13:38:06 +00:00
riastradh 42ce36525c genfb(4): Make internal parts of struct genfb_softc private.
This way the ABI has no ifdefs, so it has a chance to be usable in
modules.  This also makes genfb much easier to maintain without
worrying about ABI breakage.
2022-07-17 13:10:54 +00:00
riastradh 2cc5028acb genfb(4): KASSERT(a && b) -> KASSERT(a); KASSERT(b)
Better diagnostics.  No other functional change.
2022-07-17 13:10:04 +00:00
riastradh 47fcc752b9 wsmouse(4): Nix trailing whitespace. 2022-07-17 11:44:30 +00:00
riastradh e62a3f2f83 wsdisplay(4): KNF: return foo, not return (foo)
No functional change intended.
2022-07-17 11:43:39 +00:00
riastradh 3bf1064495 wsdisplay(4): KASSERT(a && b) -> KASSERT(a); KASSERT(b)
Better diagnostics this way.  No other functional change.  Omit
needless #ifdef DIAGNOSTIC while here; the compiler can optimize the
dead code away.
2022-07-17 11:43:11 +00:00
riastradh 072e6dfe8b wsmouse(4): KASSERT(a && b) -> KASSERT(a); KASSERT(b)
Better diagnostics.  No other functional change.
2022-07-17 11:42:55 +00:00
riastradh 755399abad wsdisplay(4): Use DPRINTF; reduce #ifdefs. 2022-07-17 11:31:47 +00:00
riastradh 830aae3fd3 wsdisplay(4): Insert memory barriers for scr_dirty synchronization.
Otherwise vcons_update_screen in vcons_softintr might attempt to draw
stale data from the buffers on the screen.
2022-07-17 11:31:07 +00:00
riastradh f50ac8c2f2 wsdisplay(4): Factor out scr_dirty setting.
Reduces #ifdefs.  No functional change intended.
2022-07-17 11:30:27 +00:00
riastradh d7b10139d3 wsdisplay(4): Factor out use_intr tests.
Nix a lot of #ifdefs this way.  Compiler can take care of dead code
if appropriate.  No functional change intended.
2022-07-17 11:20:04 +00:00
riastradh bca7350ba9 wsdisplay(4): Factor out WSDISPLAY_SCROLLSUPPORT logic.
Should find a way to avoid the #ifdefs in the .h file, but this makes
the code a good deal more legible and easier to maitain, at least.
No functional change intended.
2022-07-17 10:28:09 +00:00
riastradh 9461a40dbd wsdisplay(4): Nix trailing whitespace. 2022-07-17 10:27:45 +00:00
riastradh f5a7bc29d3 agp(4): Use bus_space_barrier, not membar_producer. 2022-07-17 10:10:45 +00:00
riastradh 978060f2c5 std.macppc: Nix trailing whitespace. 2022-07-17 10:01:18 +00:00
riastradh fb02afa0ae linux/compiler.h: Add missing barriers in READ_ONCE, WRITE_ONCE. 2022-07-17 08:34:00 +00:00
riastradh 902c08b22b x86: Cite reference for bus_space_barrier memory ordering rules. 2022-07-17 08:33:48 +00:00
mrg 309ada3c2c properly mark glint_drv.so.1.debug obsolete 2022-07-17 05:51:29 +00:00
rillig d39a56301d lint: add more details to message about pointer alignment
The previous message 'may cause alignment problem' was not detailed
enough to be actionable, it didn't give the necessary insight to why
lint was complaining at all.

The new message 'increases alignment from 1 to 4' or 'from 2 to 8'
describes the potentially problematic conversion, and together with the
involved type names, it allows an informed decision about whether lint's
warning is warranted or not.

In a typical NetBSD build, this warning is in the top 10.  The number of
these warnings depends on the architecture, it is typically between 800
and 1600.
2022-07-16 22:36:06 +00:00
rillig 6ff57c3c3f lint: add missing space before func_proto_sym in debug mode 2022-07-16 22:23:38 +00:00
mrg 98b26dcb38 s3 driver is not available here either. 2022-07-16 19:46:50 +00:00
mlelstv ac9df4c9d7 Whitespace 2022-07-16 12:57:14 +00:00
mlelstv 18538507cc modify screen before updating cache. 2022-07-16 10:57:59 +00:00
simonb e199a132f4 When operating on core files or /dev/mem when using the -M option,
use 64-bit math to calculate pool sizes.  Fixes overflow errors for
pools larger than 4GB and gives the correct output with "vmstat -m"
for in use, total allocation and utilisation numbers.
2022-07-16 10:36:19 +00:00
simonb a2c49e6ae6 Use 64-bit math to calculate pool sizes. Fixes overflow errors for
pools larger than 4GB and gives the correct output for kernel pool pages
in "vmstat -s" output.
2022-07-16 10:20:21 +00:00
simonb 4b1956fe3e Move the call to getnlist() to after we check if kvm_openfiles(3) succeeded.
Avoids a coredump when called with "vmstat -M /dev/mem".
2022-07-16 09:32:27 +00:00
msaitoh 7ee73064ad doc: mfii(4): Support Newer devices up to SAS39{08,16} (Aero). 2022-07-16 07:28:39 +00:00
msaitoh 7e2ec6160c Update supported devices. 2022-07-16 07:25:51 +00:00
msaitoh fe91e69c88 Enable Aero. 2022-07-16 07:23:51 +00:00
msaitoh 12036daa0e It seems that a logical volume number and the target ID is different
on newer systems. It's observed on an Aero. Add sc->sc_ld[X].ld_target_id
to keep the target ID and use it for scsipi layer. Now sdX is attached
on Aero system. Tested by Mark Davies.
2022-07-16 07:13:03 +00:00
msaitoh 65511cf095 Add max 256 VD support. 2022-07-16 06:52:40 +00:00
mlelstv 1067d191a8 Use pixel format information from bootloader. 2022-07-16 06:27:24 +00:00
isaki 98910815bb The system should halt if the powerdown fails.
On X680x0 hardware, front power button is an alternate switch.
If the power button is left on, the power will not turn off.
In addition, with this change, power_switch_is_off in powsw.c is
no longer necessary.
2022-07-16 04:55:35 +00:00
isaki ae2a8a0694 Style fixes. 2022-07-16 04:49:07 +00:00
mrg e8a7f03a01 fix driver list for sgimips, make Xsun and Xvfb build. 2022-07-15 19:12:39 +00:00
mrg fc58e94d8e revert part of the previous - sgimips is still default to xorg-server 1.10. 2022-07-15 18:58:09 +00:00
mrg ef2fc67d8d properly mark glint_drv has obsolete. 2022-07-15 11:34:59 +00:00
mrg 00aa3b9410 fix some builds (no longer built drivers.) 2022-07-15 10:44:21 +00:00
mrg d755add21e update for xorg-server 21.1.4. 2022-07-15 09:11:02 +00:00
mrg b3966c4d8c include the return value of rv770_restrict_performance_levels_before_switch()
in error messages.
2022-07-15 06:42:08 +00:00
mrg fde973f7e6 convert "ksyms: checking <symbol>" into KSYMS_DEBUG over normal DEBUG. 2022-07-15 06:40:24 +00:00