DragonFlyBSD/src f737457gnu/usr.bin/diff Makefile Makefile.inc, gnu/usr.bin/diff/diff Makefile paths.h

gnu: Remove remnant empty files of 'diff'

The GNU diff has been replaced with the BSD version in commit
c9733229451fac5faa53b1a016b01866eae75a1c.
DeltaFile
+0-0gnu/usr.bin/diff/libdiffutils/unitypes.h
+0-0gnu/usr.bin/diff/Makefile
+0-0gnu/usr.bin/diff/Makefile.inc
+0-0gnu/usr.bin/diff/Makefile.inc0
+0-0gnu/usr.bin/diff/diff/Makefile
+0-0gnu/usr.bin/diff/diff/paths.h
+0-022 files not shown
+0-028 files

DragonFlyBSD/src 107c051nrelease Makefile

nrelease: Simplify the setting of disklabel packid/label

The packid (i.e., label name) can be directly set upon the label
creation; no need to edit the disklabel dump file.
DeltaFile
+1-3nrelease/Makefile
+1-31 files

DragonFlyBSD/src 3eade78sys/platform/pc64/include bootinfo.h

pc64: Remove duplicate defines *_SLICE

Code that requires these defines should include <sys/diskslice.h>.  For
example, 'stand/boot/pc32/boot2/boot2.c' already did this.
DeltaFile
+0-5sys/platform/pc64/include/bootinfo.h
+0-51 files

DragonFlyBSD/src afa5046nrelease/gui/root/.fluxbox slitlist

nrelease: Remove one empty file: gui/root/.fluxbox/slitlist
DeltaFile
+0-0nrelease/gui/root/.fluxbox/slitlist
+0-01 files

DragonFlyBSD/src e0c6ef4sys/dev/drm/radeon radeon_kfd.h

drm: Remove empty and unused file 'radeon_kfd.h'
DeltaFile
+0-0sys/dev/drm/radeon/radeon_kfd.h
+0-01 files

DragonFlyBSD/src 5318426sys/sys diskmbr.h

<sys/diskmbr.h>: Use existing DOSPTYP_ONTRACK in 'dos_ptypes'
DeltaFile
+1-1sys/sys/diskmbr.h
+1-11 files

DragonFlyBSD/src 75a6d4csys/sys diskmbr.h

<sys/diskmbr.h>: Sort DOSPTYP_* macros
DeltaFile
+13-13sys/sys/diskmbr.h
+13-131 files

DragonFlyBSD/src 40e8707sys/kern subr_diskgpt.c

kernel: Fix GPT partition start/end check in gptinit()

The GPT partition ending LBA is inclusive, so it's valid to have a GPT
partition with start == end, i.e., the partition size is 1 block.  Fix
gptinit() to support this case.  In addition, improve the kprintf()
debug message to show the value of start and ending LBAs.
DeltaFile
+5-4sys/kern/subr_diskgpt.c
+5-41 files

DragonFlyBSD/src 9ba0646sys/sys diskslice.h

<sys/diskslice.h>: Trim trailing whitespaces
DeltaFile
+4-4sys/sys/diskslice.h
+4-41 files

DragonFlyBSD/src cb619ffsys/sys diskslice.h

<sys/diskslice.h>: Fix a comment in 'struct partinfo'

The 'GPT_ENT_TYPE_DRAGONFLY_DISKLABEL32' macro should be
'GPT_ENT_TYPE_DRAGONFLY_LABEL64', as defined in <sys/gpt.h>.
DeltaFile
+1-2sys/sys/diskslice.h
+1-21 files

DragonFlyBSD/src 17123e4sys/sys diskslice.h

<sys/diskslice.h>: Improve comments for MAX_SLICES

While there, fix the comment for COMPATIBILITY_SLICE, which should be
'<disk>s0' on DragonFly (at least since many years ago).
DeltaFile
+10-3sys/sys/diskslice.h
+10-31 files

DragonFlyBSD/src 2e98deasys/bus/u4b/uvc uvc_drv.c uvc_v4l2.c

uvc - use sizeof() instead of hard-coded size
DeltaFile
+1-1sys/bus/u4b/uvc/uvc_drv.c
+1-1sys/bus/u4b/uvc/uvc_v4l2.c
+2-22 files

DragonFlyBSD/src 8687816sys/conf bsd.kern.mk

bsd.kern.mk: Always set '-Wno-unused-but-set-variable'

The check was useful for GCC <4.7, which we no longer has, so just
remove the unnecessary check and always set
'-Wno-unused-but-set-variable'.

Discussed-with: swildner
DeltaFile
+0-2sys/conf/bsd.kern.mk
+0-21 files

DragonFlyBSD/src 63eab4cshare/mk bsd.sys.mk, sys/conf bsd.kern.mk

bsd.{sys,kern}.mk: Fix syntax error in pattern 'gcc[5-]*'

If ${_WCCVER} doesn't match the 'gcc[5-]*' pattern, bmake would generate
this fatal error:

```
Unfinished character list in pattern 'gcc[5-]*' of modifier ':M'
        while evaluating variable "_WCCVER" with value "gcc100"
make: Fatal errors encountered -- cannot continue
```

Interestingly, this pattern works as expected if there is match.  This
is because bmake matches the pattern along the parsing; it doesn't
validate the pattern syntax before matching it.  The bmake code requires
that both the range begin and end be specified.  So this is actually a
bug in the bmake code.  See also contrib/bmake/str.c:Str_Match().

Reported-by: sparlane (IRC)
Discussed-with: swildner
DeltaFile
+1-1sys/conf/bsd.kern.mk
+1-1share/mk/bsd.sys.mk
+2-22 files

DragonFlyBSD/src 17bd5e5share/mk bsd.sys.mk, sys/conf bsd.kern.mk

bsd.{sys,kern}.mk: Fix syntax error in pattern 'gcc[5-]*'

If ${_WCCVER} doesn't match the 'gcc[5-]*' pattern, bmake would generate
this fatal error:

```
Unfinished character list in pattern 'gcc[5-]*' of modifier ':M'
        while evaluating variable "_WCCVER" with value "gcc100"
make: Fatal errors encountered -- cannot continue
```

Interestingly, this pattern works as expected if there is match.  This
is because bmake matches the pattern along the parsing; it doesn't
validate the pattern syntax before matching it.  The bmake code requires
that both the range begin and end be specified.  So this is actually a
bug in the bmake code.  See also contrib/bmake/str.c:Str_Match().

Reported-by: sparlane (IRC)
Discussed-with: swildner
DeltaFile
+1-1share/mk/bsd.sys.mk
+1-1sys/conf/bsd.kern.mk
+2-22 files

DragonFlyBSD/src 05fdc4esys/dev/acpica acpi_hpet.c

acpica: Some cleanups to acpi_hpet.c

Similar to the cleanups to acpi_timer.c, simplify the if-else
conditional in *_get_timecount() functions, define the ACPI_HPET_MASK
and ACPI_HPET_HIBITS constants.

Meanwhile, adjust the return type of 'acpi_hpet_read()' to uint32_t for
consistency.
DeltaFile
+12-16sys/dev/acpica/acpi_hpet.c
+12-161 files

DragonFlyBSD/src b267d1bsys/dev/acpica acpi_timer.c

acpica: Rename 'acpi_global_offset' to 'acpi_timer_offset'

For consistency with other variables and functions.
DeltaFile
+8-8sys/dev/acpica/acpi_timer.c
+8-81 files

DragonFlyBSD/src 24e0d19sys/dev/acpica acpi_hpet.c

acpica: Fix potentially unexpected underflow in HPET

Similar to the fix to acpi_timer.c in commit
eb887a708a8010222997dbcd25672982ec2813a4.
DeltaFile
+26-11sys/dev/acpica/acpi_hpet.c
+26-111 files

DragonFlyBSD/src 4d93963sys/kern kern_clock.c

kern: Update set_timeofday() to also set 'boottime.tv_nsec'
DeltaFile
+1-0sys/kern/kern_clock.c
+1-01 files

DragonFlyBSD/src bfaa1aasys/kern kern_clock.c

kern: Tweak hardclock() to print the number of missed seconds

It could be helpful in debugging some timer bugs, e.g., the recent ACPI
timer underflow bug.
DeltaFile
+4-2sys/kern/kern_clock.c
+4-21 files

DragonFlyBSD/src 0042737sys/dev/acpica acpi_timer.c

acpica: Further clean up acpi_timer.c

- Simplify the if-else conditional in acpi_timer_get_timecount*()
  functions.
- Define constants for the hardcoded 24/32-bit masks.
- Tweak whitespaces.
DeltaFile
+39-46sys/dev/acpica/acpi_timer.c
+39-461 files

DragonFlyBSD/src 8700909sys/dev/acpica acpi_timer.c

acpica: Fix unexpected underflow bug in acpi_cputimer.base

The acpi_timer_construct() might underflow timer->base, and this
underflow was unexpected and not handled by acpi_timer_get_timecount*()
functions.  As a result, they might return an extremely huge time count
(e.g., 18446744073706228405) and thus lead to an utterly wrong uptime
(e.g., 42951days ...).

In order to fix the bug and not further complicate the code, introduce
a separate static variable 'acpi_global_offset' to store the offset
between the given 'oldclock' and the initial counter read from the
timer.  This 'acpi_global_offset' is then kept intact, and later
_acpi_get_timer{,_safe}() calls would give the delta over the base
'oldclock'.  Then we deal with the adjusted counter from
_acpi_get_timer{,_safe}() in the same way as the original counter and
check for wraparounds in acpi_timer_get_timecount*() functions.
In this way, we don't need to worry about the underflow of 'timer->base'
and achieve a time count monotonically increasing from the 'oldclock'
given to the acpi_timer_construct().

    [5 lines not shown]
DeltaFile
+49-41sys/dev/acpica/acpi_timer.c
+49-411 files

DragonFlyBSD/src f88fbacsys/dev/acpica acpi_timer.c

acpica: Fix the comment of acpi_timer_get_timecount*()

- Remove the obsolete comment about per-cpu tracking and clock_lock();
  see commit: 8fbc264d2bc2add66aefe4f4a7966c4364da1211
- Update the comment about the return value to be 64 bit.
DeltaFile
+2-12sys/dev/acpica/acpi_timer.c
+2-121 files

DragonFlyBSD/src b6f7d7esys/dev/acpica acpi_timer.c

acpica: Clean up includes in acpi_timer.c

While there, clean up whitespace a bit.
DeltaFile
+3-9sys/dev/acpica/acpi_timer.c
+3-91 files

DragonFlyBSD/src 80f6d78stand/boot/common loader.8

loader.8: Document the 'vm.dma_reserved' tunable

See also the drm(4) man page.
DeltaFile
+10-0stand/boot/common/loader.8
+10-01 files

DragonFlyBSD/src b10a6dastand/boot/common loader.8

loader.8: Document the 'hw.tsc_cputimer_force' tunable

This tunable was introduced in commit
1997b4c272782aad27f0d0387f9189ed1e1befbd in 2014.
DeltaFile
+6-1stand/boot/common/loader.8
+6-11 files

DragonFlyBSD/src 37a1ee6sys/platform/pc64/isa clock.c

pc64: Improve startrtclock() to print more info about TSC

Improve the kprintf() message to explicitly show whether the TSC is
invariant or not.  In addition, show whether the invariant is forced by
the "hw.tsc_cputimer_force=1" tunable.
DeltaFile
+18-13sys/platform/pc64/isa/clock.c
+18-131 files

DragonFlyBSD/src 0684708sys/platform/pc64/x86_64 identcpu.c

x86_64/identcpu: Print detected VMM/hypervisor vendor/origin

Note that the <vmm_vendor> may be empty.  For example, VirtualBox
doesn't advertise the vendor name when using the "Minimal"
paravirtualization interface.

Credit: FreeBSD
DeltaFile
+12-0sys/platform/pc64/x86_64/identcpu.c
+12-01 files

DragonFlyBSD/src 1fa787fsys/platform/pc64/x86_64 initcpu.c

x86_64/initcpu: Improve VMM/hypervisor detection

Improve detect_vmm() to use a table of VMMs to detect the supported
VMMs/hypervisors, and then add the detection of Xen, bhyve, VirtualBox.

Credit: FreeBSD
DeltaFile
+24-12sys/platform/pc64/x86_64/initcpu.c
+24-121 files

DragonFlyBSD/src 108265dshare/man/man4 syscons.4, sys/dev/misc/syscons syscons.c

syscons - add sysctl to disable console bell globally

Add sysctl `kern.syscons.enable_bell`, which globally disables the
system console bell ("sc_beep") when set to 0. By default the bell is
on.

To silence all beeps, add this to /etc/sysctl.conf:

    kern.syscons.enable_bell=0

This has the same effect as tcsh's "set nobeep". But there is no such
setting to my knowledge for our "/bin/sh".
DeltaFile
+7-1sys/dev/misc/syscons/syscons.c
+4-2share/man/man4/syscons.4
+11-32 files