DragonFlyBSD/src 8e543e5sys/conf options

Remove unused OHCI_DEBUG and I_WANT_DEPRECATED_STUFF kernel options.
DeltaFile
+0-4sys/conf/options
+0-41 files

DragonFlyBSD/src 590398asys/conf options, sys/config LINT64

kernel: Remove some broken/unused dpt(4) options and cleanup fallout.
DeltaFile
+0-69sys/dev/raid/dpt/dpt.h
+1-21sys/dev/raid/dpt/dpt_scsi.c
+0-12sys/config/LINT64
+0-3sys/conf/options
+1-1054 files

DragonFlyBSD/src 547e4f9lib/libc/stdio funopen.3, lib/libc/sys socketpair.2

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.
DeltaFile
+22-11sbin/gpt/gpt.8
+3-11share/man/man9/backlight.9
+5-5usr.bin/diff/diff.1
+2-2lib/libcuse/cuse.3
+1-2lib/libc/sys/socketpair.2
+1-2lib/libc/stdio/funopen.3
+34-3323 files not shown
+53-5829 files

DragonFlyBSD/src 7658847sys/dev/acpica Makefile

kernel/acpi: Add back pci_if.h to the Makefile.

I accidentally removed it in the last upgrade (ece4963efa8e37fb73925).
DeltaFile
+1-1sys/dev/acpica/Makefile
+1-11 files

DragonFlyBSD/src b210d9asys/platform/pc64/x86_64 efirt.c

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.
DeltaFile
+22-0sys/platform/pc64/x86_64/efirt.c
+22-01 files

DragonFlyBSD/src a70c304sys/ddb db_command.c

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.
DeltaFile
+20-0sys/ddb/db_command.c
+20-01 files

DragonFlyBSD/src c1bd8b2nrelease Makefile

nrelease: Add supported "nopkgs" to the help text

It was mistakenly removed in commit
f2e741e444130a01827ab75e5e0fa0bba30d41c2.
DeltaFile
+1-0nrelease/Makefile
+1-01 files

DragonFlyBSD/src 4961ae1sys/bus/u4b usb_msctest.c usb_device.c

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.
DeltaFile
+114-76sys/bus/u4b/usb_msctest.c
+7-3sys/bus/u4b/usb_device.c
+6-3sys/bus/u4b/usb_msctest.h
+2-0sys/bus/u4b/usb_debug.h
+129-824 files

DragonFlyBSD/src 1e808f1sys/bus/u4b usb_device.c usb_dragonfly.h

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]
DeltaFile
+1-1sys/bus/u4b/usb_device.c
+1-0sys/bus/u4b/usb_dragonfly.h
+2-12 files

DragonFlyBSD/src ce4e1c0lib/libc/sys socket.2

socket.2: Fix alignment of socket flags
DeltaFile
+2-2lib/libc/sys/socket.2
+2-21 files

DragonFlyBSD/src a372369share/mk bsd.sys.mk

bsd.sys.mk: Fix comment.
DeltaFile
+1-1share/mk/bsd.sys.mk
+1-11 files

DragonFlyBSD/src f278f02doc porting_drivers.txt, sys/bus/cam cam_sim.c

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
DeltaFile
+9-9sys/dev/raid/mps/mps_sas.c
+6-6sys/dev/raid/tws/tws_services.c
+6-4doc/porting_drivers.txt
+4-5sys/dev/raid/mps/mps.c
+4-4sys/dev/raid/tws/tws_cam.c
+3-3sys/bus/cam/cam_sim.c
+32-3126 files not shown
+65-6832 files

DragonFlyBSD/src b200855doc porting_drivers.txt

porting_drivers.txt: Improve wording a bit.
DeltaFile
+10-8doc/porting_drivers.txt
+10-81 files

DragonFlyBSD/src f403c94sys/kern subr_gtaskqueue.c

kernel/gtaskqueue: Fix a macro. It's not used in current code.
DeltaFile
+1-1sys/kern/subr_gtaskqueue.c
+1-11 files

DragonFlyBSD/src c582a7ashare/man/man4 acpi.4, sys/dev/acpica acpi.c

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.
DeltaFile
+43-8sys/dev/acpica/acpi.c
+5-1share/man/man4/acpi.4
+48-92 files

DragonFlyBSD/src 281390ashare/man/man4 acpi.4

acpi.4: Sort tunables alphabetically.
DeltaFile
+4-4share/man/man4/acpi.4
+4-41 files

DragonFlyBSD/src ecf1968share/man/man4 sdhci.4, sys/dev/disk/sdhci sdhci.c sdhci_pci.c

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.
DeltaFile
+9-0sys/dev/disk/sdhci/sdhci.c
+5-1share/man/man4/sdhci.4
+6-0sys/dev/disk/sdhci/sdhci_pci.c
+2-0sys/dev/disk/sdhci/sdhci.h
+22-14 files

DragonFlyBSD/src 726d491usr.bin/tr cmap.h cset.h

tr(1): Mark two functions __always_inline to silence GCC 12.5 -Winline.

Suggested-by: aly
DeltaFile
+1-1usr.bin/tr/cmap.h
+1-1usr.bin/tr/cset.h
+2-22 files

DragonFlyBSD/src 1c84c5cshare/man/man4 sdhci.4

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.
DeltaFile
+22-3share/man/man4/sdhci.4
+22-31 files

DragonFlyBSD/src ab8a932sys/dev/disk/sdhci sdhci_acpi.c

sdhci: Recognize AMD eMMC controller IDs AMDI0040 and AMDI0041.

Tested-with: IGEL M350C Thin Client (Ryzen R1505G SoC) using AMDI0040 ID.
DeltaFile
+5-0sys/dev/disk/sdhci/sdhci_acpi.c
+5-01 files

DragonFlyBSD/src 03cb7cesys/sys cdefs.h

<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.
DeltaFile
+10-3sys/sys/cdefs.h
+10-31 files

DragonFlyBSD/src 99f0646gnu/usr.bin/gdb/kgdb trgt.c

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.
DeltaFile
+4-0gnu/usr.bin/gdb/kgdb/trgt.c
+4-01 files

DragonFlyBSD/src 404aa64lib/libefivar efi-osdep.h, sbin/disklabel32 disklabel.c

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.
DeltaFile
+0-31sys/dev/misc/ppc/ppc.c
+0-27sbin/disklabel32/disklabel.c
+0-21sys/dev/misc/dcons/dcons_os.c
+0-18sys/dev/netif/sf/if_sfreg.h
+1-7lib/libefivar/efi-osdep.h
+0-8tools/regression/lib/libm/test-exponential.c
+1-1127 files not shown
+1-15013 files

DragonFlyBSD/src 5ab6a11sys/dev/raid/dpt dpt_scsi.c, sys/dev/sound unit.c

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.
DeltaFile
+0-845sys/dev/raid/dpt/dpt_scsi.c
+0-302sys/vfs/fuse/fuse_io.c
+0-227sys/vfs/hammer/hammer_btree.c
+0-173sys/platform/pc64/x86_64/npx.c
+0-172sys/platform/vkernel64/x86_64/npx.c
+0-164sys/dev/sound/unit.c
+0-1,88311 files not shown
+0-3,27417 files

DragonFlyBSD/src 8872584etc/defaults uuids

feat: etc/defaults/uuids: expand GPT partition type UUID database

Add comprehensive UUID-to-name mappings for:
- Plan 9, Haiku BFS, QNX6, Minix
- MidnightBSD (boot, data, swap, UFS, vinum, ZFS)
- HP-UX, Solaris/illumos (full set)
- Linux arch-specific root/usr partitions (x86, x86-64, ARM,
  AArch64, RISC-V, PPC, LoongArch, s390, Alpha, ARC, PA-RISC, MIPS)
- Linux /home, /srv, /var, /boot, dm-crypt, LUKS
- Ceph (OSD, journals, blocks, WAL, LUKS variants)
- Fuchsia, ChromeOS, Container Linux/CoreOS
- Android (common types)
- Apple APFS Preboot/Recovery
- VMware, ONIE, Atari TOS, OS/2 ArcaOS, AmigaOS/Emu68
- VeraCrypt, SPDK, barebox, U-Boot, SoftRAID
- Sony PlayStation 4 (Orbis OS) - all 13 partition types
- Generic: Intel Fast Flash, Sony Boot, Lenovo Boot, PowerPC PReP

Also fix VMware "Diagostic" typo and normalize NetBSD Swap case.
DeltaFile
+236-20etc/defaults/uuids
+236-201 files

DragonFlyBSD/src fa57f06sys/config LINT64

LINT64: Add apple_fw.
DeltaFile
+3-0sys/config/LINT64
+3-01 files

DragonFlyBSD/src 77a1380sys/dev/apple/fw apple_fw.c

kernel/apple_fw: Declare local vars at function start.
DeltaFile
+1-1sys/dev/apple/fw/apple_fw.c
+1-11 files

DragonFlyBSD/src f06a5a2sys/dev/apple/fw apple_fw.h, sys/dev/apple/smc smc.h debug.h

kernel/apple_{fw,smc}: Fix include guard comments.
DeltaFile
+1-1sys/dev/apple/smc/smc.h
+1-1sys/dev/apple/fw/apple_fw.h
+1-1sys/dev/apple/smc/debug.h
+3-33 files

DragonFlyBSD/src 3e5efcbsys/platform/pc64 Makefile.inc

kernel: Really hook apple_fw and apple_smc into the build.
DeltaFile
+1-1sys/platform/pc64/Makefile.inc
+1-11 files

DragonFlyBSD/src 059c494sys/dev/apple/smc smc_sysctl.c

kernel/apple_smc: Fix the build with APPLE_SMC_DEBUG.
DeltaFile
+1-1sys/dev/apple/smc/smc_sysctl.c
+1-11 files