Displaying 1 50 of 37,504 commits (0.011s)

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

DragonFlyBSD — sys/kern kern_acct.c sysv_msg.c

kernel - Incidental MPLOCK removal

* Remove misc #include <sys/mplock2.h> statements that are no longer needed.

* Replace mplock with acct_lock in kern_acct.c

* Replace mplock with msg_token in sysv_msg.c

* Replace mplock with p->p_token in the profiling code.
Delta File
+23 -10 sys/kern/kern_acct.c
+10 -12 sys/kern/sysv_msg.c
+3 -4 sys/kern/kern_ktrace.c
+3 -3 sys/kern/subr_prof.c
+2 -1 sys/kern/kern_clock.c
+0 -2 sys/kern/kern_sensors.c
+0 -13 10 files not shown
+41 -45 16 files

DragonFlyBSD — sys/kern kern_usched.c

usched: Fix the returned CPU affinity make by smp_active_mask.
Delta File
+3 -1 sys/kern/kern_usched.c
+3 -1 1 file

DragonFlyBSD — sys/kern usched_dfly.c usched_bsd4.c

usched: Implement LWP lazy migration support.

Non-self migration can be achieved by just setting LWP's cpumask,
which is almost costless.  The migration will happen upon next
time the target LWP is scheduled.

Reviewed-by: dillon@
Delta File
+20 -1 sys/kern/usched_dfly.c
+11 -1 sys/kern/usched_bsd4.c
+31 -2 2 files

DragonFlyBSD — sys/kern kern_linker.c

kernel - Fix recursive module loading (from MPSAFE changes)

* Fix recursive module loading which I broke in the
  recent MPSAFE work.

* Fix firmware loader callback deadlock.

* Fixes radeon drm lockup on startx

Reported-by: mneumann
Delta File
+7 -6 sys/kern/kern_linker.c
+7 -6 1 file

DragonFlyBSD — sys/dev/drm/i915 i915_gem_stolen.c

drm/i1915: Disable stolen memory support

Some initialization code paths are not yet enabled, making
it crash-prone on some hardware

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

mmcsd - Wasn't quite MPSAFE, fix startup race (2)

* Needed to rearrange one more thing to report capacity properly.
Delta File
+18 -13 sys/dev/disk/mmcsd/mmcsd.c
+18 -13 1 file

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

mmcsd - Wasn't quite MPSAFE, fix startup race

* mmcsd was attaching the drive before finishing the softc setup.  Being
  MPSAFE, the system tried to probe the mmcsd before it could finish the
  setup.

* Fixed by shifting things around a little.
Delta File
+24 -17 sys/dev/disk/mmcsd/mmcsd.c
+24 -17 1 file

DragonFlyBSD — sys/platform/pc64/x86_64 trap.c, sys/platform/vkernel64/x86_64 trap.c

kernel - Remove mplock in process trap/signal code (non-performance)

* Remove the mplock from paths that no longer need it.  This is mostly
  incidental, since processes do not usually recover from traps like
  SIGBUS or SIGSEGV.

DragonFlyBSD — sys/opencrypto cryptodev.c crypto.c

kernel - Make misc crypto functions MPSAFE

* Remove mplock from the crypto device code.

* Implement cryptodev_lock for cryptof_ioctl() and related functions.

* Prevent cryptof functions from imploding on concurrent access.

DragonFlyBSD — sys/vfs/ufs ufs_lookup.c

buf - Remove B_ORDERED, Incidental CAM MPSAFE (2)

* Remove bowrite() operation in UFS (use bwrite() instead).
Delta File
+5 -4 sys/vfs/ufs/ufs_lookup.c
+5 -4 1 file

DragonFlyBSD — sys/libprop prop_object_impl.h, sys/sys kernel.h

kernel - Incidental MPLOCK removal (devfs)

* Fix ordering issues for devfs initialization vs libprop that previously
  depended on the MPLOCK.

* Use a private devfs_token for other areas of devfs previously using
  the mplock.

* Make /dev/devfs MPSAFE.

DragonFlyBSD — sys/kern vfs_conf.c vfs_syscalls.c

kernel - Incidental MPLOCK removal

* A few more mplocks in the moutn and umount paths.  Also fix a rootmount
  case (the latter being non-performance) for completeness.

DragonFlyBSD — sys/dev/drm/i915 intel_dp_link_training.c intel_dp.c

drm/i915: Revert DisplayPort fast link training feature

DisplayPort fast link training causes screen flickering on some hw combinations

Obtained-from: Linux 4.6.7, Commit b0f7095f8bd503eddf9a91a258e796da0058f182

DragonFlyBSD — sys/kern kern_varsym.c

kernel - Incidental MPLOCK removal (non-performance)

* varsym is MPSAFE.
Delta File
+2 -11 sys/kern/kern_varsym.c
+2 -11 1 file

DragonFlyBSD — sys/kern kern_linker.c sysv_shm.c

kernel - Incidental MPLOCK removal (non-performance)

* proc filterops.

* kernel linkerops and kld code.

* Warn if a non-MPSAFE interrupt is installed.

* Use a private token in the disk messaging core (subr_disk) instead of
  the mp token.

* Use a private token for sysv shm adminstrative calls.

* Cleanup.
Delta File
+52 -44 sys/kern/kern_linker.c
+18 -14 sys/kern/sysv_shm.c
+14 -9 sys/kern/subr_disk.c
+13 -10 sys/kern/kern_module.c
+4 -3 sys/kern/kern_memio.c
+4 -2 sys/kern/kern_intr.c
+2 -6 4 files not shown
+107 -88 10 files

DragonFlyBSD — sys/kern kern_device.c

kernel - Remove global debug counters from device path

* Remove global debugging counters from the device path, including
  dev_dstrategy().  Improves performance when heavily concurrent I/O
  is being performed.
Delta File
+3 -35 sys/kern/kern_device.c
+3 -35 1 file

DragonFlyBSD — sys/dev/drm/i915 intel_psr.c

drm/i915/psr: Try to program link training times correctly

Increase link training time to 2.5ms, fixing
flickering issues associated with PSR.

Obtained-from: Linux 4.6.7, commit 69205c5c16df0702870179c8419e89cc954bd311
Delta File
+47 -8 sys/dev/drm/i915/intel_psr.c
+47 -8 1 file