Displaying 1 50 of 37,521 commits (0.008s)

DragonFlyBSD — sys/contrib/dev/acpica/source/include/platform acgcc.h

kernel/acpica: Include <stdarg.h> only for userland compilation.

We generally don't include /usr/include/*.h headers in kernel code,
and the kernel doesn't need it.

It also caused issues when compiling with clang (due to redefinitions).

Reported-by: zrj

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

January 8, 2017 snapshot from http://pciids.sourceforge.net/
Delta File
+38 -14 share/misc/pci_vendors
+38 -14 1 file

DragonFlyBSD — sys/contrib/dev/acpica changes.txt, sys/contrib/dev/acpica/generate/unix Makefile.common

Sync ACPICA with Intel's version 20170119.

Just some minor things:

* In iASL, fix an inadvertent remark.

* Remove the compiler bit width from the common signon of all tools.

* Add 2017 copyright.

For a more detailed list, please see sys/contrib/dev/acpica/changes.txt.

DragonFlyBSD — bin/cpdup cpdup.c

cpdup: When verbose, also log the successful creation of a directory.
Delta File
+2 -0 bin/cpdup/cpdup.c
+2 -0 1 file

DragonFlyBSD — sys/dev/netif/em if_em.c, sys/dev/netif/emx if_emx.c

em/emx: Retry interrupt allocation with MSI

Reported-by: jh32

DragonFlyBSD — tools/tools/netrate/kq_sendrecv/kq_recvserv kq_recvserv.c, tools/tools/netrate/kq_sendrecv/kq_sendcli kq_sendcli.c

tools/kq_sendrecv: Fix building on FreeBSD

DragonFlyBSD — sys/kern kern_slaballoc.c

kernel - kmemstatistics list wasn't MPSAFE

* Put a spinlock around the kmemstatistics list.  This list is modified
  whenever a kmalloc area is created or destroyed, and this generally does
  not happen concurrently except with kernels run by expert hackers like
  us and get scared.

* ...Or if a machine is running synth and/or doing a lot of concurrent
  tmpfs mounts and unmounts.

Reported-by: swildner
Delta File
+7 -0 sys/kern/kern_slaballoc.c
+7 -0 1 file

DragonFlyBSD — sys/cpu/x86_64/include npx.h

npx.h: fix comment alignments (cosmetic)
Delta File
+10 -10 sys/cpu/x86_64/include/npx.h
+10 -10 1 file

DragonFlyBSD — sys/cpu/x86_64/include npx.h

Expand fpusave union to include x86_64 versions

The structure of envmmx remains a constant size, but changes composition
between the i386 and x86_64 versions.  While here, flesh out the
832-byte saveymm structure, also distinguishing between 32 and 64 bit
versions.

While here, convert u_char, u_short, u_int16_t, u_int32_t to standard
integers; <sys/types.h> with it's redundant guards is no longer required
although <stdint> is now needed.

This allows the fpu context to be seen on x86_64 by casting the fpusave
union to the new savexmm64 and saveymm64 structures.
Delta File
+103 -44 sys/cpu/x86_64/include/npx.h
+103 -44 1 file

DragonFlyBSD — tools/tools/netrate/kq_sendrecv/kq_recvserv kq_recvserv.c

tools/kq_recvserv: Add option to set receiving thread's CPU affinity.

DragonFlyBSD — tools/tools/netrate/kq_sendrecv/kq_recvserv kq_recvserv.c

tools/kq_recvserv: Add option to enable SO_REUSEPORT

DragonFlyBSD — tools/tools/netrate/kq_sendrecv/kq_recvserv kq_recvserv.c

tools/kq_recvserv: Add option to set read size

DragonFlyBSD — tools/tools/netrate/kq_sendrecv/kq_sendcli kq_sendcli.c

tools/kq_sendcli: Add option to set sending thread's CPU affinity

DragonFlyBSD — tools/tools/netrate/kq_sendrecv/kq_sendcli kq_sendcli.c

tool/kq_sendcli: Add option to set write size.

DragonFlyBSD — tools/tools/netrate/kq_sendrecv/kq_sendcli kq_sendcli.c

tools/kq_sendcli: Add sendfile support.

Based on work done by QianYue You.

DragonFlyBSD — include unistd.h signal.h, lib/libc/sys sched_getaffinity.c sched_setaffinity.c

lwp: Move all lwp syscalls to sys/lwp.h

Discussed-with: swildner, zrj

DragonFlyBSD — sys/dev/disk/sdhci sdhci.c

sdhci - Use the right capability field for printing the bus width.

* In sdhci_init_slot(), use the right capability field for determining
  the announced bus width based on MMC_CAP_*_BIT_DATA.

Taken-From: FreeBSD (svn r311794)
Delta File
+3 -2 sys/dev/disk/sdhci/sdhci.c
+3 -2 1 file

DragonFlyBSD — sys/sys param.h

param: Bump version according to the comment.
Delta File
+1 -1 sys/sys/param.h
+1 -1 1 file

DragonFlyBSD — usr.sbin/installer/dfuibe_installer fn_disk.c

Wipe the start of the disk when formatting the disk with MBR, too.

DragonFlyBSD — share/installer cmdnames.conf, usr.sbin/installer/dfuibe_installer fn_disk.c flow.c

installer: Add basic UEFI system setup.

GPT partition 0 is a 128MB FAT32 EFI system partition. Microsoft
recommends at least 100MB and FAT32 in [1]. Partition 1 is a
"DragonFly Label64" (aka "dragonfly" in gpt(8)) for the rest of
the disk. It is analogous to slice 1 in our MBR setup, and has the
same name, e.g. /dev/da0s1. The rest of the UEFI setup is identical
to an MBR setup. disklabel64, newfs*, and so forth.

We currently only support installing DragonFly to the whole disk
in UEFI mode, and we don't set any NVRAM EFI variables during
installation, so for now we are copying our stage 1 loader to
\EFI\BOOT\BOOTX64.EFI on the EFI system partition.

Also, there isn't any support for Secure Boot.

[1] https://technet.microsoft.com/en-us/library/hh824839.aspx#DiskPartitionRules

DragonFlyBSD — nrelease Makefile

nrelease: Add UEFI mode capable boot media.

Add an EFI system partition to the IMG (to boot on UEFI systems) but
keep MBR (to boot on legacy BIOS systems).

The approach in https://wiki.freebsd.org/UEFI#CD.2FDVD_Boot_under_UEFI
is used to make the ISO boot on both UEFI and legacy systems.
Delta File
+39 -14 nrelease/Makefile
+39 -14 1 file

DragonFlyBSD — sbin/reboot boot_pc64.8, share/man/man8 uefi.8 Makefile

Add a uefi(8) manual page giving some info on the UEFI boot procedure.

Adapted-from: FreeBSD

DragonFlyBSD — share/examples/rconfig hammer_uefi.sh

rconfig: Add a script for setting up a HAMMER/UEFI system.
Delta File
+215 -0 share/examples/rconfig/hammer_uefi.sh
+215 -0 1 file

DragonFlyBSD — sys/bus/u4b/controller xhci.c xhci.h

kernel/usb4bsd: Configure the correct bMaxPacketSize for control endpoints.

* Configure the correct bMaxPacketSize for control endpoints before
  requesting the initial complete device descriptor and not as part of
  the subsequent babble error recovery. Babble means that the received
  USB packet was bigger than than configured maximum packet size. This
  only affects enumeration of FULL speed USB devices which use a
  bMaxPacketSize different from 8 bytes. This patch might help fix
  enumeration of USB devices which exhibit USB I/O errors in dmesg
  during boot.

Taken-From: FreeBSD (svn r295928)

DragonFlyBSD — sys/bus/pci vga_pci.c

vgapci: Remove verbose printf() messages from pci_(get/set)_powerstate().
Delta File
+0 -4 sys/bus/pci/vga_pci.c
+0 -4 1 file

DragonFlyBSD — sys/bus/pci pcireg.h

kernel - Add PCIER_DEVCAP2 and PCIER_DEVCTRL2 definitions to pcireg.h.

Partly Taken-From: FreeBSD
Delta File
+30 -1 sys/bus/pci/pcireg.h
+30 -1 1 file

DragonFlyBSD — sys/dev/netif/iwm if_iwmreg.h if_iwm_pcie_trans.c

if_iwm - Configure the PCIe LTR, fix PCI express capability accesses.

Taken-From: Linux iwlwifi

DragonFlyBSD — include pthread_np.h, lib/libc/gen Symbol.map _pthread_stubs.c

pthread: Implement pthread_attr_{get,set}affinity_np

DragonFlyBSD — sys/platform/pc64/x86_64 mp_machdep.c

x86_64: Fix machdep.smp_active sysctl type.

DragonFlyBSD — include unistd.h, lib/libc/sys lwp_create.2 Symbol.map

lwp: Add lwp_create2 syscll, which takes cpumask for scheduling.
Delta File
+40 -10 sys/kern/kern_fork.c
+26 -5 lib/libc/sys/lwp_create.2
+8 -0 sys/sys/sysproto.h
+3 -0 lib/libc/sys/Symbol.map
+2 -1 sys/sys/syscall.h
+2 -1 sys/sys/syscall.mk
+11 -1 8 files not shown
+92 -18 14 files

DragonFlyBSD — include stddef.h

<stddef.h>: Add max_align_t guards for future reference.

There are some confusion how this c++11 feature should be implemented.
Delta File
+3 -0 include/stddef.h
+3 -0 1 file

DragonFlyBSD — sys/dev/drm/include/linux ktime.h

drm/linux: Remove a redundant definition of NSEC_PER_SEC
Delta File
+0 -2 sys/dev/drm/include/linux/ktime.h
+0 -2 1 file

DragonFlyBSD — sys/dev/drm/include/linux sched.h

drm/linux: Add local_clock()
Delta File
+15 -1 sys/dev/drm/include/linux/sched.h
+15 -1 1 file

DragonFlyBSD — sys/dev/drm/include/acpi video.h

drm/linux: Add acpi/video.h
Delta File
+41 -0 sys/dev/drm/include/acpi/video.h
+41 -0 1 file

DragonFlyBSD — lib/libc/sys lwp_setaffinity.2 sched_setaffinity.2

man: Add cross references

DragonFlyBSD — include pthread_np.h, lib/libc/gen Symbol.map _pthread_stubs.c

pthread: Implement pthread_{set,get}affinity_np

DragonFlyBSD — lib/libc/sys sched_getaffinity.c

libc: Take cpusetsize into consideration for sched_getaffinity()
Delta File
+13 -2 lib/libc/sys/sched_getaffinity.c
+13 -2 1 file

DragonFlyBSD — lib/libc/sys sched_setaffinity.2 sched_setaffinity.c, sys/sys sched.h

libc: Add const to the cpu_set_t for sched_setaffinity.

DragonFlyBSD — lib/libc/sys sched_setaffinity.2 sched_setaffinity.c, sys/cpu/x86_64/include cpumask.h

libc: Add sched_{set,get}affinity().

Same as other sched_ fucntions, these two functions do _not_ support
the overriding pid as tid as what Linux supports.

DragonFlyBSD — crypto/libressl VERSION, crypto/libressl/crypto/x509 x509_vfy.c

Merge branch 'vendor/LIBRESSL'
∈ John Marino - 530c17a6 - 2017-01-13 22:00:47
Update LibreSSL from version 2.4.3 => 2.4.4

DragonFlyBSD — crypto/libressl README.DRAGONFLY, crypto/libressl/crypto/ecdsa ecs_ossl.c

security/libressl: Fix ECDSA P-256 timing attack vulnerability

OpenBSD 6.0 errata 16, Jan 5, 2017:
Avoid possible side-channel leak of ECDSA private keys when signing.

security: CVE-2016-7056

DragonFlyBSD — crypto/libressl README.DRAGONFLY

Update libressl README.DRAGONFLY for v2.4.4
Delta File
+4 -4 crypto/libressl/README.DRAGONFLY
+4 -4 1 file

DragonFlyBSD — sys/dev/netif/iwm if_iwmreg.h

if_iwm - Update struct iwm_scan_results_notif. Remove old/unused definitions

* Remove outdated notifications IWM_SCAN_ABORT_CMD,
  IWM_SCAN_START_NOTIFICATION and IWM_SCAN_RESULTS_NOTIFICATION.

* Remove unused enum iwm_scan_complete_status.

* Use the updated FW Api version 3 of struct iwm_scan_results_notif.

* No functional change, since struct iwm_scan_results_notif is never
  accessed in iwm at the moment.

Taken-From: Linux iwlwifi commits 1083fd7391e989be52022f0f338e9dadc048b063
            and 75118fdb63496e4611ab50380499ddd62b9de69f.
Delta File
+3 -45 sys/dev/netif/iwm/if_iwmreg.h
+3 -45 1 file

DragonFlyBSD — sys/sys diskmbr.h

<sys/diskmbr.h>: Rename DOSPTYP_GPT to DOSPTYP_EFI.

The former name was rather misleading since an EFI system partition can
also exist on an MBR disk (see 79363655e5db).
Delta File
+1 -3 sys/sys/diskmbr.h
+1 -3 1 file

DragonFlyBSD — sys/sys diskmbr.h

<sys/diskmbr.h>: Rename DOSPTYP_GPT to DOSPTYP_EFI.

The former name was rather misleading since an EFI system partition can
also exist on an MBR disk (see 79363655e5db).
Delta File
+1 -3 sys/sys/diskmbr.h
+1 -3 1 file

DragonFlyBSD — sys/kern subr_diskmbr.c

kernel: Fix GPT detection a bit.

Having a legacy MBR partition of type 0xef aka EFI system
partition is a perfectly legal case, and it is covered by
the UEFI specification too (in version 2.6, see section 12.3.1).

That means it is not a sufficient indicator that this is a
disk with a GPT, so don't automatically treat it as one. For
the partition in the PMBR on actual GPT disks, type 0xee
will always be used, so that check alone is sufficient for
what is intended here.

Background: Using legacy MBR and having an EFI system
partition at the same time is the layout most USB installation
media use in order to boot on both UEFI and legacy BIOS systems.
The upcoming UEFI installation support work will do the same.
Delta File
+1 -2 sys/kern/subr_diskmbr.c
+1 -2 1 file

DragonFlyBSD — sys/kern subr_diskmbr.c

kernel: Fix GPT detection a bit.

Having a legacy MBR partition of type 0xef aka EFI system
partition is a perfectly legal case, and it is covered by
the UEFI specification too (in version 2.6, see section 12.3.1).

That means it is not a sufficient indicator that this is a
disk with a GPT, so don't automatically treat it as one. For
the partition in the PMBR on actual GPT disks, type 0xee
will always be used, so that check alone is sufficient for
what is intended here.

Background: Using legacy MBR and having an EFI system
partition at the same time is the layout most USB installation
media use in order to boot on both UEFI and legacy BIOS systems.
The upcoming UEFI installation support work will do the same.
Delta File
+1 -2 sys/kern/subr_diskmbr.c
+1 -2 1 file

DragonFlyBSD — sys/dev/acpica acpi_thermal.c acpi.c

acpi - Incidental MPSAFE (2)

* The changes in a639f788 revealed bubgs in acpi_thermal's support
  threads.  These threads start executing before the main acpi device
  finishes its attach.  The mplock serialization saved us before, and
  removing it revealed the problem.

* Force serialization using the main acpi lock to prevent the support
  threads from starting up until after the main acpi attach has
  completed.

Reported-by: swildner

DragonFlyBSD — sys/vm vm_swapcache.c

kernel - Change vm.swapcache.use_chflags default to 0

* Change the vm.swapcache.use_chflags default to 0, meaning that swapcache
  will generally cache everything it sees if enabled.  Can be set back to
  1 by the sysop when more sophisticated operation is desired.
Delta File
+1 -1 sys/vm/vm_swapcache.c
+1 -1 1 file

DragonFlyBSD — lib/libc/sys lwp_setaffinity.2, sys/kern kern_usched.c usched_bsd4.c

kernel - kernel - Incidental MPLOCK removal (usched, affinity)

* Affinity code needs to be protected via p->p_token and lwp->lwp_token.
  Remove use of the mplock.

* If tid is -1 getaffinity() will lookup the lowest-numbered thread,
  and setaffinity will adjust ALL threads associated with the process.

* usched doesn't need mplock2.h