Displaying 1 50 of 276,909 commits (0.074s)

FreeBSD — stable/10/lib/libc/gen _spinlock_stub.c

MFC r279367:
Fix typo.

FreeBSD — stable/9/sys/kern uipc_socket.c

MFC r279206:
  In some cases soreceive_dgram() can return no data, but has control
  message. This can happen when application is sending packets too big
  for the path MTU and recvmsg() will return zero (indicating no data)
  but there will be a cmsghdr with cmsg_type set to IPV6_PATHMTU.
  Remove KASSERT() which does NULL pointer dereference in such case.
  Also call m_freem() only when m isn't NULL.

MFC r279209:
  soreceive_generic() still has similar KASSERT(), therefore instead of
  remove KASSERT(), change it to check mbuf isn't NULL.

PR:                197882
Sponsored by:        Yandex LLC
Delta File
+7 -5 stable/9/sys/kern/uipc_socket.c
+7 -5 1 file

FreeBSD — stable/10/sys/kern uipc_socket.c

MFC r279206:
  In some cases soreceive_dgram() can return no data, but has control
  message. This can happen when application is sending packets too big
  for the path MTU and recvmsg() will return zero (indicating no data)
  but there will be a cmsghdr with cmsg_type set to IPV6_PATHMTU.
  Remove KASSERT() which does NULL pointer dereference in such case.
  Also call m_freem() only when m isn't NULL.

MFC r279209:
  soreceive_generic() still has similar KASSERT(), therefore instead of
  remove KASSERT(), change it to check mbuf isn't NULL.

PR:                197882
Sponsored by:        Yandex LLC
Delta File
+7 -5 stable/10/sys/kern/uipc_socket.c
+7 -5 1 file

FreeBSD — projects/cxl_iscsi Makefile.inc1 ObsoleteFiles.inc, projects/cxl_iscsi/bin/kill kill.c

Merge r278538 through r279514.

FreeBSD — head/sys/mips/conf AP135.hints AP135

Add support for the AP135 2.0 reference platform.

This is a QCA9558 SoC (2ghz 3x3) with an atheros 11ac PCIe 5GHz 3x3
NIC and an AR8327 gigabit ethernet switch.

TODO:

* The AR8327 gigabit switch support bugfixes are forthcoming.
* 11ac support and 11ac NIC support

FreeBSD — head/sys/mips/conf QCA955X_BASE QCA955X_BASE.hints

Bring over the initial QCA955x SoC support framework.

This is enough to bring up the basic SoC support.

What works thus far:

* The mips74k core, pll setup, and UART (or else well, stuff would
  be really difficult..)
* both USB 2.0 EHCI controllers
* on-board 2GHz 3x3 wifi (the other variant has 2GHz/5GHz wifi on-chip);
* arge0 - not yet sure why arge1 isn't firing off interrupts and thus
  handling traffic, but I will soon figure it out and fix it here.

Tested:

* AP135 reference design, QCA9558 SoC, pretending to be an 11n
  2GHz AP.

TODO:

* There's an interrupt mux hooking up devices to IP2 and IP3 - but it's
  not a read-and-clear or write-to-clear register.  So, trying to use it
  naively like I have been ends up with massive interrupt storms.
  For now the things that share those interrupts can just take them as
  shared interrupts and try to play nice.

    [12 lines not shown]

FreeBSD — head/sys/dev/ath if_ath_ahb.c

Lay some groundwork for having this stuff hang off of AHB rather than
the CPU nexus.

* Add ahb as a possible bus attachment
* Lay a comment down to remind me or whoever else ends up trying
  to debug why the EEPROM isn't mapped in as to what's going on.
Delta File
+16 -3 head/sys/dev/ath/if_ath_ahb.c
+16 -3 1 file

FreeBSD — head/sys/mips/atheros ar71xx_ehci.c

[QCA955x] make the USB EHCI interrupts shareable.

There's two EHCI controllers in the QCA955x SoCs - they have different
interrupts available via various demux registers, but they both tie to
IP3.

So for now, allow them to be sharable so they can hang off of IP3.

FreeBSD — head/sys/mips/atheros if_arge.c

Add initial QCA955x support to if_arge.c.

Tested:

* AP135 development board, QCA9558 SoC.
Delta File
+21 -1 head/sys/mips/atheros/if_arge.c
+21 -1 1 file

FreeBSD — head/sys/mips/atheros ar71xxreg.h

Add a MII mode for SGMII.

This appears on the AR934x and later chips, although it's not
something that's programmed via the arge0/arge1 register space.
It's just cosmetic.
Delta File
+1 -0 head/sys/mips/atheros/ar71xxreg.h
+1 -0 1 file

FreeBSD — head/bin/sh options.c var.c

sh: Fix more compiler warnings.

FreeBSD — stable/10/share/man/man5 src.conf.5

Regen src.conf(5)
Delta File
+50 -2 stable/10/share/man/man5/src.conf.5
+50 -2 1 file

FreeBSD — stable/10/lib Makefile, stable/10/share/mk bsd.own.mk

MFC r278193:

Add MK_FILE to control whether or not to build file(1), libmagic(3), etc

Sponsored by: EMC / Isilon Storage Division

FreeBSD — stable/10/etc Makefile, stable/10/libexec Makefile

MFC r278192:

Add the following options to enable/disable several features in the base system

WITHOUT_BOOTPARAMD - bootparamd
WITHOUT_BOOTPD - bootpd
WITHOUT_FINGER - finger, fingerd
WITHOUT_FTP - ftp, ftpd
WITHOUT_INETD - inetd
WITHOUT_RBOOTD - rbootd
WITHOUT_TCP_WRAPPERS - tcpd, et al
WITHOUT_TFTP - tftp, tftp-server
WITHOUT_TIMED - timed

Sponsored by: EMC / Isilon Storage Division

FreeBSD — head/sys/powerpc/booke machdep.c pmap.c

Missed local diff.

FreeBSD — head/bin/kill kill.c, head/bin/sh mktokens options.h

sh: Fix compiler warnings related to duplicate or missing declarations.

FreeBSD — head/sys/fs/nandfs bmap.c

nandfs_meta_bread() calls bread() which can set bp to NULL in some
error cases. Calling brelse() with a NULL pointer is not allowed,
so only call brelse() when the bp is non-NULL.

Reported by: Maxime Villard (reported as uninitialized variable)
Delta File
+2 -1 head/sys/fs/nandfs/bmap.c
+2 -1 1 file

FreeBSD — head/sys/dev/pci pci.c

Don't leak 'used' in a few error cases.

Reported by: Maxime Villard
Delta File
+6 -2 head/sys/dev/pci/pci.c
+6 -2 1 file

FreeBSD — head/sys/dev/ed if_ed_pccard.c

Unlock the main lock before returning rather than after to eliminate
dead code that shouldn't have been dead.

Reported by: Maxime Villard
Delta File
+1 -1 head/sys/dev/ed/if_ed_pccard.c
+1 -1 1 file

FreeBSD — stable/10/etc/rc.d NETWORKING local_unbound

MFC r278704:

Unbreak rcorder when MK_UNBOUND == no by moving local_unbound from REQUIRE:
in NETWORKING to BEFORE: in the script

FreeBSD — head/sys/powerpc/booke pmap.c machdep.c

Initialize NX stack capabilities and direct map status in pmap like on AIM.

FreeBSD — stable/10/etc/rc.d LOGIN utx

Unbreak rcorUnbreak rcorder when MK_UTX == no by moving utx from REQUIRE: in LOGIN to
BEFORE: in utx

FreeBSD — head/sys/powerpc/powerpc swtch32.S

Merge r278429 from ppc64:

Fix an extremely subtle concurrency bug triggered by running on 32-thread
POWER8 systems. During thread switch, there was a very small window when
the stack pointer was set to the stack pointer of the outgoing thread, but
after the lock on that thread had already been released.

If, during that window, the outgoing thread were rescheduled on another CPU
and begin execution and an exception were taken on the original CPU, the
trap handler and the outgoing thread would simultaneously execute on the same
stack, causing memory corruption. Fix this by making sure to release the
old thread only after cpu_switch() is done with its stack.

MFC after:        2 weeks
Delta File
+11 -2 head/sys/powerpc/powerpc/swtch32.S
+11 -2 1 file

FreeBSD — stable/10/sys/kern vfs_subr.c

MFC r278891:

Add the mnt_lockref field to the ddb(4) 'show mount' command

Differential Revision: https://reviews.freebsd.org/D1688
Submitted by: Conrad Meyer <conrad.meyer at isilon.com>
Sponsored by: EMC / Isilon Storage Division
Delta File
+1 -0 stable/10/sys/kern/vfs_subr.c
+1 -0 1 file

FreeBSD — head/sys/conf files.amd64 files.i386, head/sys/dev/pci vga_pci.c

Record the dependency to x86bios in vga_pci

This fixes the build of XEN and XBOX kernels on i386, which was broken
in r279487.

While here, do not build vga_pci_repost() on PC98.

Reported by:        bz@

FreeBSD — head/lib/msun/src e_j0.c e_j0f.c

Give compilers a stronger hint to inline the functions
pzero[f], qzero[f], pone[f], and qone[f].  While here
fix the function declarations in accordance with style(9).

FreeBSD — head/sys/dev/etherswitch/arswitch arswitch_8327.c

AR8327: Disable energy-efficient ethernet support in the PHYs.

I noticed that openwrt/linux does this, citing "instability", so
until they figure out why I'm going to disable it here as well.

Tested:

* QCA AP135 - QCA955x SoC + AR8327 switch.

FreeBSD — head/lib/msun/src e_j1f.c e_j0f.c

When j0() and j1() were converted to j0f() and j1f(), the threshold
values for the different invervals were not converted correctly.
Adjust the threshold values to values, which should agree with the
comments.

Reported by:        cognet (j1f only)
Discussed with: pfg, bde
Reviewed by:        bde

FreeBSD — head/sys/dev/etherswitch/arswitch arswitch_8327.c

Bump the port mask on the AR8327 ethernet switch from 0x3f to 0x7f.

So, it turns out that the AR8327 has 7 ports internally:

* GMAC0 / external (CPU) MAC0
* GMAC1 / port1 -> GMAC5 / port5: external switch port PHYs
* GMAC6 / external (CPU) MAC1

Now, depending upon how things are wired up, the second CPU port (MAC1)
can be wired to either the switch (port6), or through port5's PHY, bypassing
the GMAC+switch entirely.  Ie, it can pretend to be a boring PHY, saving
system designers from having to include a separate PHY for a "WAN" port.

Here's the rub - the AP135 board (QCA955x SoC) hooks up arge0 to
the second CPU port on the AR8327, but it's hooked up as RGMII.
So, in order to hook it up to the rest of the switch, it isn't configured
as a separate PHY - OpenWRT has it setup as connected via RGMII to
GMAC6 and (I'm guessing) it's set to be a WAN port by configuring up
port-based VLANs or something.

Thus, with a port mask of 0x3f, GMAC6 was never allowed to receive traffic
from any other port.  It could transmit fine, but not receive anything.

So, now it works enough for me to continue doing board bootstrapping.
Note, this isn't enough to make the QCA955x + AR8327 work - there's

    [16 lines not shown]

FreeBSD — head/sbin/mount_fusefs mount_fusefs.c

Make the "automounted" flag work for FUSE filesystems.

PR:                192852
Submitted by:        taku at tackymt.homeip.net (earlier version)
MFC after:        1 month
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/dev/drm2 drm_fb_helper.c, head/sys/dev/drm2/radeon radeon_fb.c

vt(4): Add support to "downgrade" from eg. vt_fb to vt_vga

The main purpose of this feature is to be able to unload a KMS driver.

When going back from the current vt(4) backend to the previous backend,
the previous backend is reinitialized with the special VDF_DOWNGRADE
flag set. Then the current driver is terminated with the new "vd_fini"
callback.

In the case of vt_fb and vt_vga, this allows the former to pass the
vgapci device vt_fb used to vt_vga so the device can be rePOSTed.

Differential Revision:        https://reviews.freebsd.org/D687

FreeBSD — head/sys/dev/pci vga_pci.c pcivar.h

vgapci: New vga_pci_repost() function

This can be used to restore the VGA mode after a KMS driver is unloaded.

Differential Revision:        https://reviews.freebsd.org/D687

FreeBSD — stable/10/sys/x86/iommu busdma_dmar.c

MFC r276949:
(only to ease merging of r279117).

MFC r279117:
Revert r276949 and redo the fix for PCIe/PCI bridges, which do not
follow specification and do not provide PCIe capability.
Delta File
+48 -26 stable/10/sys/x86/iommu/busdma_dmar.c
+48 -26 1 file

FreeBSD — stable/10/sys/x86/iommu intel_fault.c intel_ctx.c

MFC r276948:
Print rid when announcing DMAR context creation.  Print sid when fault
occurs.

FreeBSD — stable/10/sys/x86/iommu intel_ctx.c

MFC r276867:
Fix DMAR context allocations for the devices behind PCIe->PCI bridges
after dmar driver was converted to use rids.  The bus component to
calculate context page must be taken from the requestor rid, which is
a bridge, and not from the device bus number.

FreeBSD — head/sys/cddl/dev/dtrace/arm dtrace_isa.c dtrace_asm.S

Fix the dtrace ARM atomic compare-and-set functions. These functions are
expected to return the data in the memory location pointed at by target
after the operation. The FreeBSD atomic functions previously used return
either 0 or 1 to indicate if the comparison succeeded or not respectively.

With this change these functions only support ARMv6 and later are supported
by these functions.

Sponsored by:        ABT Systems Ltd

FreeBSD — stable/10/usr.sbin/ctld kernel.c

MFC r279276: Add checks for malloc() failures.

Submitted by:        Dmitry Luhtionov <dmitryluhtionov at gmail.com>
Delta File
+5 -0 stable/10/usr.sbin/ctld/kernel.c
+5 -0 1 file

FreeBSD — stable/10/usr.sbin/ctld ctld.c

MFC r279277: Fix memory leak on incorrect initiator portal.

Submitted by:        Dmitry Luhtionov <dmitryluhtionov at gmail.com>
Delta File
+1 -0 stable/10/usr.sbin/ctld/ctld.c
+1 -0 1 file

FreeBSD — head/sys/mips/atheros ar71xx_gpio.c

Add very initial QCA955x awareness to the GPIO code.

There's a lot more to come - the QCA955x has a bunch more GPIO MUX
configuration, reminiscent of what the ARM chips let you do - but
it'll have to come later.
Delta File
+11 -3 head/sys/mips/atheros/ar71xx_gpio.c
+11 -3 1 file

FreeBSD — head/sys/mips/atheros qca955x_chip.c

Flesh out some more QCA955x ethernet PLL setup.
Delta File
+10 -28 head/sys/mips/atheros/qca955x_chip.c
+10 -28 1 file

FreeBSD — head/sys/mips/atheros qca955xreg.h

Add Ethernet PLL values for the QCA955x.

These are the same as the AR934x.

Obtained from:        Linux openwrt

FreeBSD — head/sys/mips/atheros qca955xreg.h

Make QCA955X_GMAC_REG_ETH_CFG defined like most other registers like this.

FreeBSD — head/sys/mips/atheros ar71xx_ehci.c

Add QCA955x support to the EHCI setup path.

Tested:

* QCA AP135 development board, USB rootfs.

FreeBSD — head/sys/vm vm_object.c

Use RW_NEW rather than calling bzero().
Delta File
+1 -2 head/sys/vm/vm_object.c
+1 -2 1 file

FreeBSD — stable/10/sys/vm vm_map.c

MFC r277649:

   vmspace_release() may sleep if the last reference is being released,
   so add a WITNESS_WARN() to catch cases where it is called with a
   non-sleepable lock held.

   MFC after:    1 month
   Sponsored by: Sandvine Inc.
Delta File
+3 -0 stable/10/sys/vm/vm_map.c
+3 -0 1 file

FreeBSD — stable/10/usr.bin/systat ifstat.c

MFC r272284

   Fix integer truncation in affecting systat -ifstat

   The "systat -ifstat" command was using a u_int to store byte counters.
   With a 10Gbps or faster interface, this overflows within the default
   5 second refresh period.  Switch to using a uint64_t across the board,
   which matches the size used for all counters as of r263102.

   PR:           182448
   MFC after:    1 week
   Sponsored by: Sandvine Inc
Delta File
+10 -10 stable/10/usr.bin/systat/ifstat.c
+10 -10 1 file

FreeBSD — stable/10/sys/dev/pci pci_if.m pcib_if.m

MFC r265107

   Be consistent with the whitespace in the rest of these files.

   X-MFC-With: r264007

FreeBSD — stable/10/sys/dev/pci pci.c

MFC r264091

   Correct a PCI enumeration bug introduced in r264011

   Ensure that first_func is set to 0 on every iteration of the PCI slot
   enumeration loop after the first.  There is a continue statement that would
   cause first_func to stay at 1 any PCI device where slot 0 has no functions
   until we find a slot that does have a function.  This would cause us to
   not enumerate the first PCI function on the device.

   Credit to markj@ for spotting the bug.

   X-MFC-With: r264011
Delta File
+1 -4 stable/10/sys/dev/pci/pci.c
+1 -4 1 file

FreeBSD — stable/10/sys/amd64/vmm/amd amdv.c, stable/10/sys/amd64/vmm/intel vtd.c

MFC r264007,r264008,r264009,r264011,r264012,r264013

MFC support for PCI Alternate RID Interpretation.  ARI is an optional PCIe
feature that allows PCI devices to present up to 256 functions on a bus.
This is effectively a prerequisite for PCI SR-IOV support.

r264007:
   Add a method to get the PCI RID for a device.

   Reviewed by:  kib
   MFC after:    2 months
   Sponsored by: Sandvine Inc.

r264008:
   Re-implement the DMAR I/O MMU code in terms of PCI RIDs

   Under the hood the VT-d spec is really implemented in terms of
   PCI RIDs instead of bus/slot/function, even though the spec makes
   pains to convert back to bus/slot/function in examples.  However
   working with bus/slot/function is not correct when PCI ARI is
   in use, so convert to using RIDs in most cases.  bus/slot/function
   will only be used when reporting errors to a user.

   Reviewed by:  kib
   MFC after:    2 months

    [41 lines not shown]

FreeBSD — head/usr.sbin/iovctl iovctl.conf.5

Correct a typo.

X-MFC-With:        r279458