Displaying 1 50 of 38,017 commits (0.009s)

DragonFlyBSD — sys/bus/mmc mmc.c mmc_subr.c, sys/conf files

A step to correctly handling command timeouts in the MMC layer.

    - Now that properly issuing CMD6 is crucial (so data isn't written to
      the wrong partition for example), make a step into the direction of
      correctly handling the timeout for these commands in the MMC layer.
      Also, do a SEND_STATUS when CMD6 is invoked with an R1B response as
      recommended by relevant specifications. However, quite some work is
      left to be done in this regard; all other R1B-type commands done by
      the MMC layer also should be followed by a SEND_STATUS (CMD13), the
      erase timeout calculations/handling as documented in specifications
      are entirely ignored so far, the MMC layer doesn't provide timeouts
      applicable up to the bridge drivers and at least sdhci(4) currently
      is hardcoding 1 s as timeout for all command types unconditionally.
      Let alone already available return codes often not being checked in
      the MMC layer ...

    - For devices following the eMMC specification v4.41 or later, year 0
      is 2013 rather than 1997; so correct this for assembling the device
      ID string properly.

* This omits all the parts specific to eMMC "partitions" from the FreeBSD
  change.

* Add the Intel sdhci controller ids to sdhci_pci.c to set the
  SDHCI_QUIRK_WAIT_WHILE_BUSY quirk there.

    [4 lines not shown]
Delta File
+116 -210 sys/bus/mmc/mmc.c
+251 -0 sys/bus/mmc/mmc_subr.c
+72 -0 sys/bus/mmc/mmc_subr.h
+70 -0 sys/bus/mmc/mmc_private.h
+67 -2 sys/bus/mmc/mmcreg.h
+34 -6 sys/dev/disk/sdhci/sdhci_acpi.c
+44 -7 9 files not shown
+654 -225 15 files

DragonFlyBSD — sys/bus/mmc mmc.c mmcbrvar.h, sys/dev/disk/mmcsd mmcsd.c

More style, comments, includes and unused params fixes for sdhci and mmc.

Taken-From: FreeBSD (svn r314811)

DragonFlyBSD — sys/bus/mmc mmcbr_if.m mmc.c, sys/dev/disk/sdhci sdhci_acpi.c sdhci_pci.c

Style fixes for sdhci(4) and mmc(4) in comments, includes, unused params.

Taken-From: FreeBSD (svn r315466)

DragonFlyBSD — sys/dev/disk/nvme nvme_admin.c nvme.c

nvme - Fix interrupt pin support when MSI-X is unavailable.

* Real hardware (so far) all supports MSI-X, but VMs emulating NVMe
  have been found not to.

* Fix numerous assertions that were getting hit due to the non-MSI-X
  case not installing the sc->cputovect[i] mapping.

  Install a fake cputovect[] mapping.  This mapping is primarily to allow
  multiple submission queues (per-cpu when possible).  Completion queues
  will be further limited to reduce loop-check overheads.

* For the non-MSI-X case, limit the number of completion queues to 4,
  since there is really no point having more there being only one interrupt
  vector.  We use 4 to allow the chipset side to run optimally even though
  it is not necessarily useful to have that many on the cpu side.  Though
  to be fair, in cases where the cpu-side driver polls for completions,
  having multiple completion queues CAN help even if there is only one
  interrupt as each completion queue is separately locked.

* Properly set the interrupt masking registers in the non-MSI-X case
  (probably not needed).  Note that these registers are explicitly not
  supposed to be accessed by the host when MSI-X is used.

* Fix a bug where the maximum number of queues possible was one too high.

    [23 lines not shown]

DragonFlyBSD — sys/kern lwkt_thread.c kern_intr.c

kernel - Fix excessive call stack depth on stuck interrupt

* Fix an issue where a stuck level interrupt can result in an excessively
  deep call-stack and possible panic.

* Fixed by disallow thread preemption when curthread->td_nest_count
  is >= 2.  The critical section count test is not sufficient for the
  fast-interrupt unpend -> preemption case.
Delta File
+13 -4 sys/kern/lwkt_thread.c
+2 -8 sys/kern/kern_intr.c
+15 -12 2 files

DragonFlyBSD — share/man/man4 sysmouse.4 mouse.4

Improve markup in some manual pages.

Use .Fa uniformly for struct members (see mdoc(7)).

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

sdhci - Define some easy bits from Simplified Controller Spec v4.20.

* New HOST_CONTROL2 fields, and new controller version values.
Delta File
+7 -0 sys/dev/disk/sdhci/sdhci.h
+7 -0 1 file

DragonFlyBSD — sys/dev/netif/bnx if_bnx.c

bnx: Free ringmap in device_detach device method
Delta File
+5 -0 sys/dev/netif/bnx/if_bnx.c
+5 -0 1 file

DragonFlyBSD — sys/dev/netif/bnx if_bnx.c

bnx: Use modulo to map TX rings.
Delta File
+2 -2 sys/dev/netif/bnx/if_bnx.c
+2 -2 1 file

DragonFlyBSD — share/man/man4 bnx.4, sys/dev/netif/bnx if_bnx.c if_bnxvar.h

bnx: Use ringmap to do MSI-X cpu assignment and fill redirect table.

DragonFlyBSD — sys/net/pf pf_norm.c

pf: Normalized, i.e. defragged, packets requiring rehash.

DragonFly-bug: https://bugs.dragonflybsd.org/issues/3036
Tested-by: tautology
Delta File
+3 -0 sys/net/pf/pf_norm.c
+3 -0 1 file

DragonFlyBSD — sys/net/pf pf_norm.c

pf: Normalized, i.e. defragged, packets requiring rehash.

DragonFly-bug: https://bugs.dragonflybsd.org/issues/3036
Tested-by: tautology
Delta File
+3 -0 sys/net/pf/pf_norm.c
+3 -0 1 file

DragonFlyBSD — lib/libdevattr devattr.3

devattr.3: Some minor adjustments.

* Do not point to itself with .Xr

* Add missing space.
Delta File
+4 -4 lib/libdevattr/devattr.3
+4 -4 1 file

DragonFlyBSD — sys/netinet tcp_usrreq.c udp_usrreq.c

inet: Local group index is not assigned in jail.

Dragonfly-bug: https://bugs.dragonflybsd.org/issues/3035

DragonFlyBSD — lib/libc/sys lwp_setaffinity.2 sched_setaffinity.2, lib/libpthread pthread_setaffinity_np.3 pthread_attr_setaffinity_np.3

Clean up SEE ALSO in various manual pages.

DragonFlyBSD — sys/dev/drm/i915 i915_dma.c, sys/dev/drm/include/linux vga_switcheroo.h

kernel/vga_switcheroo: Hook vga_switcheroo to i915.

* When i915 loads, call vga_switcheroo to switch gmux so the
  integrated graphics device will output both to the laptop panel
  and the external monitor.
  For now, we do not power off the discrete graphics device.

DragonFlyBSD — sys/gnu/dev/misc/apple_gmux apple-gmux.c

kernel/apple_gmux: Fix compilation when VGA_SWITCHEROO is in the config.

We would get a redefinition warning/error, because opt_drm.h has
VGA_SWITCHEROO defined to 1 in this case, which is not the same as
merely defining it. To be on the safe side, define to 1 here, too,
and also add an #ifndef and a comment.

Discussed-with: Peeter Must <karu.pruun at gmail.com>

DragonFlyBSD — gnu/usr.bin/groff/tmac mdoc.local, lib/libc/sys poll.2 sched_getcpu.2

Resolve some mdoc issues in manual pages.

DragonFlyBSD — sys/dev/sound/pci/hda hdac.c

sound/hda: Fix an invalid corb size (0) panic

* This allows HDMI audio to be used with problematic Radeon
  graphics card models such as Radeon R7 240

* This commit is based on a patch from Andriy Gapon posted in
  freebsd-current@ back in July 2010:
  https://lists.freebsd.org/pipermail/freebsd-current/2010-July/018764.html

Submitted-by: davshao, issue #3026
Delta File
+20 -2 sys/dev/sound/pci/hda/hdac.c
+20 -2 1 file

DragonFlyBSD — sys/gnu/dev Makefile, sys/gnu/dev/misc Makefile

kernel: Move apple_gmux to sys/gnu/dev/misc/

DragonFlyBSD — . Makefile_upgrade.inc, sys/bus/cam/scsi scsi_iu.h

Remove a no longer used header (scsi_iu.h).

The last consumer was removed in 82faf7935980d0b4e443ff7bbff806e3d6e2a10f.

DragonFlyBSD — tools/tools/toeplitz toeplitz.c

tools/toeplitz: Add option to do modulo
Delta File
+21 -10 tools/tools/toeplitz/toeplitz.c
+21 -10 1 file

DragonFlyBSD — sys/net netisr.c

netisr: Add tunable for netisr_ncpus.
Delta File
+9 -1 sys/net/netisr.c
+9 -1 1 file

DragonFlyBSD — sys/netgraph7/ksocket ng_ksocket.c, sys/sys un.h

<sys/un.h>: Stop including <sys/file.h>.

It is no longer needed since f635d1746140d0f4915af3adb8314f4759377d3b.

While here, remove a forward declaration of struct sockopt (no longer
needed since 002c1265bf9676475d08e73e8d873cea9ee4a82e) and adjust a
bit of whitespace.

Also adjust ng_ksocket.c where DragonFly specific code was assuming
that including <sys/un.h> would bring in <sys/fcntl.h>.

DragonFlyBSD — share/man/man7 hier.7

hier.7: Some adjustments to match current layout.
Delta File
+7 -4 share/man/man7/hier.7
+7 -4 1 file

DragonFlyBSD — sys/platform/pc64/acpica acpi_srat.c

kernel/acpi_srat: Remove some unused code.
Delta File
+0 -11 sys/platform/pc64/acpica/acpi_srat.c
+0 -11 1 file

DragonFlyBSD — . Makefile_upgrade.inc, etc inetd.conf

Remove some old UUCP remains and adjust better to net/freebsd-uucp pkg.

DragonFlyBSD — sys/dev/drm/include/linux apple-gmux.h

linux/apple-gmux.h: Fix permissions.
Delta File
+0 -0 sys/dev/drm/include/linux/apple-gmux.h
+0 -0 1 file

DragonFlyBSD — sys/dev/acpica Makefile

kernel/acpica: Remove obsolete comment in the Makefile.
Delta File
+0 -1 sys/dev/acpica/Makefile
+0 -1 1 file

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

drm/linux: Remove no longer needed iic includes
Delta File
+0 -2 sys/dev/drm/include/linux/i2c.h
+0 -2 1 file

DragonFlyBSD — share/man/man7 tuning.7

tuning.7: Fix typo.
Delta File
+1 -1 share/man/man7/tuning.7
+1 -1 1 file

DragonFlyBSD — share/man/man7 tuning.7

tuning.7: Fix .Fx/.Dx confusion a bit better.

* Remove a rather meaningless sentence about the VM.

* In HISTORY, it is indeed FreeBSD that we are referring to. Add some
  info about DragonFly.

* Add an AUTHORS section.
Delta File
+10 -9 share/man/man7/tuning.7
+10 -9 1 file

DragonFlyBSD — share/man/man7 tuning.7

docs - Fix name type-o

* Fix .Fx use that was supposed to be .Dx.

Reported-by: kerma
Delta File
+2 -2 share/man/man7/tuning.7
+2 -2 1 file

DragonFlyBSD — include stdio.h, sys/sys fcntl.h stat.h

<fcntl.h>: Add some missing defines (required by POSIX).

   SEEK_SET   S_ISUID   S_IRWXU   S_IRWXG   S_IRWXO
   SEEK_CUR   S_ISGID   S_IRUSR   S_IRGRP   S_IROTH
   SEEK_END             S_IWUSR   S_IWGRP   S_IWOTH
                        S_IXUSR   S_IXGRP   S_IXOTH

Adjust <stat.h>, <stdio.h> and <unistd.h> accordingly.

See http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fcntl.h.html
Delta File
+55 -0 sys/sys/fcntl.h
+29 -0 sys/sys/stat.h
+8 -1 sys/sys/unistd.h
+1 -0 include/stdio.h
+93 -1 4 files

DragonFlyBSD — sys/dev/netif/ath/ath if_ath.c, sys/dev/netif/wpi if_wpi.c

kernel - Fix double-free in if_ath, fix lost rcvif.

* Reassign rcvif in ieee80211_vap_pkt_send_dest() prior to calling
  ic_transmit().  The rcvif assignment can get lost from packet
  manipulation above that section of code.

* Fix a double-free in if_ath in the error path for ath_transmit().
  Callers of ic_transmit (aka ath_transmit in this case) expect the
  mbuf to remain intact on a non-zero error return.

* Document confusing code in WPI.

Reported-by: marino
Reviewed-by: sephe

DragonFlyBSD — sys/dev/drm/i915 i915_gem.c, sys/vm vm_fault.c

kernel - Fix i915 deadlock

* (Attempt to) fix a deadlock in the i915 code.  The device lock retry
  code does not release the PG_BUSY on the passed-in placeholder page,
  so the fact that the lock is obtained non-blocking is irrelevant.

  Try to fix this by immediately releasing the placeholder page.  The
  code already checks for an insertion race later on.
Delta File
+37 -24 sys/dev/drm/i915/i915_gem.c
+10 -2 sys/vm/vm_fault.c
+47 -26 2 files

DragonFlyBSD — sys/dev/drm/i915 i915_gem.c, sys/vm vm_fault.c

kernel - Fix i915 deadlock

* (Attempt to) fix a deadlock in the i915 code.  The device lock retry
  code does not release the PG_BUSY on the passed-in placeholder page,
  so the fact that the lock is obtained non-blocking is irrelevant.

  Try to fix this by immediately releasing the placeholder page.  The
  code already checks for an insertion race later on.
Delta File
+37 -24 sys/dev/drm/i915/i915_gem.c
+10 -2 sys/vm/vm_fault.c
+47 -26 2 files

DragonFlyBSD — sys/cpu/x86_64/include specialreg.h, sys/platform/pc64/x86_64 identcpu.c

x86_64: Identify HWP in "Thermal and PM features"

Also known as Hardware-managed P-states.

DragonFlyBSD — share/man/man4 ix.4, sys/dev/netif/ix if_ix.c if_ix.h

ix: Use ringmap to do MSI-X cpu assignment and fill redirect table.

DragonFlyBSD — sys/net if.c if_var.h, sys/net/altq if_altq.h

ifnet: Add ringmap, which does ring/cpu map and generates redirect table.

DragonFlyBSD — sys/dev/netif/ix if_ix.c if_ix.h

ix: Fixup TX/RX ring settings for X550, which supports 64/64 TX/RX rings.

DragonFlyBSD — sbin/hammer cmd_mirror.c, sys/vfs/hammer hammer_ioctl.h hammer_crc.h

sys/vfs/hammer: Drop typedefs for struct hammer_ioc_{hist_entry,mrecord_head}

These are the only two ioctl structs with pointer typedefs. All the
rest of ioctl structs aren't typedef'd, and there isn't really any
reason that these two need to be typedef'd.

Note that almost all non ioctl HAMMER structs have pointer typedef,
and majority of variables have been typedef'd ones from the beginning
(since they were mostly pointers). Rest were changed to use typedef'd
at some point in 2016, to avoid mix of these for no reason, though
typedef'd pointers have ugliness when used as const.

DragonFlyBSD — sbin/hammer cmd_dedup.c cmd_show.c, sbin/newfs_hammer newfs_hammer.c

sbin/*hammer: Add missing braces to conform to code style

These were the missing ones due to
1. the code were written by several devs
2. they were missing ever since originally written by dillon@

DragonFlyBSD — sbin/mount_hammer mount_hammer.c

sbin/mount_hammer: Use calloc(3) and cleanups
Delta File
+11 -13 sbin/mount_hammer/mount_hammer.c
+11 -13 1 file

DragonFlyBSD — sys/netinet tcp_debug.c

kernel: Remove TCPDEBUG checks in tcp_debug.c.

This file is only compiled in when TCPDEBUG is specified, so the check
is always true.
Delta File
+0 -8 sys/netinet/tcp_debug.c
+0 -8 1 file

DragonFlyBSD — sys/netinet tcp_debug.c

kernel: Fix building with options TCPDEBUG.
Delta File
+1 -0 sys/netinet/tcp_debug.c
+1 -0 1 file

DragonFlyBSD — sys/vfs/autofs autofs.c

    sys/vfs/autofs: Value returned by taskqueue_enqueue_timeout(9) is not an error; 
(FreeBSD at GitHub e61af21d)
Delta File
+2 -5 sys/vfs/autofs/autofs.c
+2 -5 1 file

DragonFlyBSD — sys/vfs/autofs autofs_vnops.c

sys/vfs/autofs: Sync with FreeBSD's .vop_print format (FreeBSD at GitHub d8ce902a)

FreeBSD at GitHub d8ce902a4769ab96ae8e86a730221d92a5978e4a
Implement autofs_print(), for improved debugging experience.

added .vop_print after autofs had been ported to DragonFlyBSD,
and it had anp->an_wildcards which we didn't, so just add it.
Delta File
+2 -2 sys/vfs/autofs/autofs_vnops.c
+2 -2 1 file

DragonFlyBSD — include time.h

<time.h>: For clarity, add prototypes (in #if 0) for missing functions.
Delta File
+4 -2 include/time.h
+4 -2 1 file

DragonFlyBSD — usr.sbin/fstyp fstyp.c

usr.sbin/fstyp: Use NULL instead of 0 for pointers. (FreeBSD at GitHub 27f4c84a)
Delta File
+1 -1 usr.sbin/fstyp/fstyp.c
+1 -1 1 file