Fix various issues in manual pages.
* BACKLIGHT_SET_STATUS() is not in the backlight interface on Dragonfly.
So remove the associated documentation.
* Remove unneeded .Pp
* Fix whitespace issues.
* Add .Mt where it is missing.
* Fix .Dd
* Fix some .Fn -> .Dv
* Use .Fx, .Nx and .Ox
* .Nm needs an argument only the first time.
efirt - Register EFI Reset with the shutdown_final EVENTHANDLER.
- This adds a safeguard to efi_enter() to fail gracefully when called from
a kernel thread, where curthread->td_lwp is NULL.
- Further work is needed to allow EFI Reset to work more simply without
messing with the current LWP's vmspace.
ddb - Try AcpiReset() when invoking DDB's reset command.
- This allows some modern notebooks to successfully reset from DDB, where
the classic outb(0x64, 0xFE) method no longer works. For some notebooks,
we'll also need to support EFI Reset here, but that will require further
work.
u4b: Sync usb_msctest.[ch] with FreeBSD
Most changes are auto quirk detection and application. However, the
previous commit disabled such auto quirks, so this commit should have no
functional change.
u4b: Make autoquirk code optional and opt out
As the FreeBSD described:
> There are significant problems with the current autoquirk code. This
> results in quite a bit of bogus over-quirking.
> ...
> For all these reasons, I'm turning this off and will likely remove it
> entirely in the future once the alternative SYNC CACHE code has
> provent itself.
Actually, this fixes the USB stick probing timeout error in a USB 3.0
port on my HPE MicroServer Gen10. That timeout error happened during
the boot and would drop the system to the 'mountroot>' prompt:
```
CAM: Configuring bus: ahci0
CAM: Configuring bus: ahci0
CAM: Configuring bus: ahci0
CAM: Configuring bus: ahci0
[56 lines not shown]
kernel: Use lockowned() instead of (lockstatus(&lock, curthread) != 0).
It is sufficient and more lightweight.
Most of these lockstatus() were added by me.
Discussed-with: aly
kernel/acpi: Sync hw.acpi.apple_darwin_osi tunable handling with FreeBSD.
Better comments, a few missing braces and a failure message for
unsupported machines.
sdhci - Add quirk for ADMA2 use to make O2 Micro OZ620 and OZ777 work.
- This adds a quirk flag, for SDHC controllers that don't support ADMA2 for
transfers with a length that is not a multiple of full 512 byte blocks.
- On those controllers, we'll fall back to PIO when we get such a transfer
request.
sdhci.4: Mention all tunables and sysctls, and other updates.
- Mention sdhci_acpi attaching controllers via ACPI.
- Be more technically correct on what kinds of cards it can support.
- Add some definitely working chips to list of actually tested devices.
- Mention fastest supported speeds: 50MHz HighSpeed, and DDR52 only on eMMC.
<sys/cdefs.h>: Copy attributes for strong/weak references.
GCC 9 and later take issue with mismatched attributes between aliased
functions. At the same time, the 'copy' attribute was added to copy
the attributes for these cases.
Change __{strong,weak}_reference() to use it. Fixes GCC 12.5's
-Wmissing-attribute warnings.
This is based on a patch by Scott Parlane <scott at parlanenz.com>, which
was based on the change made in linux for the same issue.
refactor: remove dead i386/ILP32 code from kernel, userland, and tests (2)
* Put the platform fall-through test in kgdb back in, just removing
the i386 part.
refactor: remove dead i386/ILP32 code from kernel, userland, and tests
DragonFly is x86_64-only. Remove permanently dead #ifdef __i386__,
userland tools, and regression tests. The code is never compiled.
refactor: remove large #if 0 dead code blocks
Remove 3200+ lines of permanently dead code guarded by #if 0 across
kernel, drivers, VFS, and userland. Several blocks have author comments
explicitly requesting removal. Code can be inspected in git history.