Displaying 1 50 of 246,525 commits (0.019s)

PC-BSD — sys/dev/cxgbe t4_main.c

Merge remote-tracking branch 'freebsd/stable/10' into freebsd10
∈ jhb - f60eca04 - 2016-12-03 01:10:45
MFC 303348:
cxgbe(4): Initialize the adapter queues (fwq and mgmtq) instead of
returning EAGAIN if they aren't available when the user tries to program
a filter.  Do this after validating the filter so that the driver
doesn't bring up the queues if it doesn't have to.
Delta File
+4 -5 sys/dev/cxgbe/t4_main.c
+4 -5 1 file

PC-BSD — sys/dev/cxgbe t4_main.c adapter.h, sys/dev/cxgbe/common t4_hw.c common.h

MFC 302440,304873,305704,305985,306787,307531: Fixes for sysctls.

302440:
cxgbe(4): Add sysctl to display the RSS indirection table size for an
interface.

dev.cxl.<n>.rss_size
dev.vcxl.<n>.rss_size

304873:
cxgbe(4): Provide more details about the card in the sysctl MIB.

dev.t5nex.0.%desc: Chelsio T580-CR
dev.t5nex.0.hw_revision: 1
dev.t5nex.0.sn: PT13140042
dev.t5nex.0.pn: 110117150A0
dev.t5nex.0.ec: 0000000000000000
dev.t5nex.0.na: 0007432AF490
dev.t5nex.0.vpd_version: 3
dev.t5nex.0.scfg_version: 53255
dev.t5nex.0.bs_version: 1.1.0.0
dev.t5nex.0.er_version: 1.0.0.68
dev.t5nex.0.tp_version: 0.1.4.9
dev.t5nex.0.firmware_version: 1.16.2.0


    [18 lines not shown]

PC-BSD — sys/fs/ext2fs ext2_vfsops.c

MFC r309179:
ext2fs: avoid possible overflow when calculating malloc size.

This is inspired on r308064 for the case of mounting UFS.
Delta File
+2 -1 sys/fs/ext2fs/ext2_vfsops.c
+2 -1 1 file

PC-BSD — lib/libc/tests Makefile

MFstable/11 r309453:

MFC r307700:

Only build lib/libc/tests/iconv if MK_ICONV != no
Delta File
+4 -0 lib/libc/tests/Makefile
+4 -0 1 file

PC-BSD — contrib/ofed/libcxgb4/src qp.c, sys/dev/cxgbe/iw_cxgbe cm.c qp.c

MFC 304854: cxgbe/iw_cxgbe: Various fixes to the iWARP driver.

- Return appropriate error code instead of ENOMEM when sosend() fails in
  send_mpa_req.
- Fix for problematic race during destroy_qp.
- Abortive close in the failure of send_mpa_reject() instead of normal close.
- Remove the unnecessary doorbell flowcontrol logic.

Sponsored by:        Chelsio Communications

PC-BSD — sys/dev/cxgbe t4_vf.c t4_sge.c

MFC 303859,305851: Fix a typo and some whitespace nits.

PC-BSD — sys/dev/cxgbe t4_sge.c

MFC 303454: Mark spg_len and fl_pktshift static.

These variables are no longer exported to t4_netmap.c after r296478.
Delta File
+2 -2 sys/dev/cxgbe/t4_sge.c
+2 -2 1 file

PC-BSD — share/man/man4 cxgbev.4 Makefile, sys/arm/conf NOTES

MFC 303522,303647,303860,303880,304168-304170,304479,304482,304485,305548,
305549:
Chelsio T4/T5 VF driver.

303522:
Various fixes to the t4/5nex character device.

- Remove null open/close methods.
- Don't set d_flags to 0 explicitly.
- Remove t5_cdevsw as the .d_name member isn't really used and doesn't
  warrant a separate cdevsw just for the name.
- Use ENOTTY as the error value for an unknown ioctl request.
- Use make_dev_s() to close race with setting si_drv1.

303647:
Store the offset of the KDOORBELL and GTS registers in the softc.

VF devices use a different register layout than PF devices.  Storing
the offset in a value in the softc allows code to be shared between the
PF and VF drivers.

303860:
Reserve an adapter flag IS_VF to mark VF devices vs PF devices.

303880:

    [110 lines not shown]
Delta File
+951 -0 sys/dev/cxgbe/t4_vf.c
+376 -0 sys/dev/cxgbe/common/t4vf_hw.c
+272 -30 sys/dev/cxgbe/t4_sge.c
+290 -0 share/man/man4/cxgbev.4
+147 -132 sys/dev/cxgbe/t4_main.c
+119 -29 sys/dev/cxgbe/common/t4_hw.c
+210 -20 15 files not shown
+2,365 -211 21 files

PC-BSD — sys/kern sched_4bsd.c

MFC 308564: Don't place threads on the run queue after waking up other CPUs.

The other CPU might resume and see a still-empty runq and go back to
sleep before sched_add() adds the thread to the runq.  This results
in a lost wakeup and a potential hang if the system is otherwise
completely idle.

The race originated due to a micro-optimization (my fault) in 4BSD in
that it avoided putting a thread on the run queue if the scheduler was
going to preempt to the new thread.  To avoid complexity while fixing
this race, just drop this optimization.  4BSD now always sets the
"owepreempt" flag when a preemption is warranted and defers the actual
preemption to the thread_unlock of the caller the same as ULE.
Delta File
+13 -49 sys/kern/sched_4bsd.c
+13 -49 1 file

PC-BSD — sys/dev/cxgbe/tom t4_cpl_io.c t4_tom.c

Fix build without INVARIANTS.

This is a direct commit to stable/10.

PC-BSD — sys/dev/cxgbe t4_sge.c

MFC 303204: Install a handler for firmware work request error messages.

If a driver sends an malformed or disallowed work request, the firmware
responds with a work request error.  Previously the driver treated this is
as an unexpected message and panicked.  Now it decodes the error message
to aid in debugging.
Delta File
+67 -0 sys/dev/cxgbe/t4_sge.c
+67 -0 1 file

PC-BSD — sys/x86/cpufreq hwpstate.c

MFC 308005: Add powerd(8) support for several families of AMD CPUs.

Use the same logic to calculate the nominal CPU frequency from the P-state
MSRs on family 0x12, 0x15, and 0x16 CPUs as is used for family 0x10.
Family 0x14 was included in the original patch in the PR but I left that
out as the BIOS writer's guide for family 0x14 CPUs show a different layout
for the relevant MSR and include a different formulate for calculating the
frequency.

While here, simplify a few expressions and print out the family of
unsupported CPUs in hex rather than decimal.

PR:                212020
Delta File
+9 -7 sys/x86/cpufreq/hwpstate.c
+9 -7 1 file

PC-BSD — sys/dev/cxgbe t4_main.c t4_sge.c, sys/dev/cxgbe/iw_cxgbe cm.c iw_cxgbe.h

MFC 302339:
cxgbe(4): Changes to the CPL-handler registration mechanism and code
related to "shared" CPLs.

a) Combine t4_set_tcb_field and t4_set_tcb_field_rpl into a single
function.  Allow callers to direct the response to any iq.  Tidy up
set_ulp_mode_iscsi while there to use names from t4_tcb.h instead of
magic constants.

b) Remove all CPL handler tables from struct adapter.  This reduces its
size by around 2KB.  All handlers are now registered at MOD_LOAD instead
of attach or some kind of initialization/activation.  The registration
functions do not need an adapter parameter any more.

c) Add per-iq handlers to deal with CPLs whose destination cannot be
determined solely from the opcode.  There are 2 such CPLs in use right
now: SET_TCB_RPL and L2T_WRITE_RPL.  The base driver continues to send
filter and L2T_WRITEs over the mgmtq and solicits the reply on fwq.
t4_tom (including the DDP code) now uses the port's ctrlq to send
L2T_WRITEs and SET_TCB_FIELDs and solicits the reply on an ofld_rxq.
fwq and ofld_rxq have different handlers that know what kind of tid to
expect in the reply.  Update t4_write_l2e and callers to to support any
wrq/iq combination.

Sponsored by:        Chelsio Communications

PC-BSD — sys/dev/cxgbe t4_main.c offload.h, sys/dev/cxgbe/tom t4_cpl_io.c t4_tom.h

MFC 292736:
cxgbe(4): Updates to the base NIC driver and t4_tom to support the iSCSI
offload driver.  These changes come from projects/cxl_iscsi.

Note that these changes make use of the mbufq API from 11.0, but that
API is not present in 10.x in the same form.  Borrow an implementation
from the CAM CTL ha code that uses m_nextpkt to implement mbufq for use
in 10.

PC-BSD — sys/amd64/amd64 mem.c, sys/amd64/include md_var.h

MFC 303753,308004: Add bounds checking on addresses used with /dev/mem.

303753:
Don't permit mappings of invalid physical addresses on amd64 via /dev/mem.

308004:
MFamd64: Add bounds checks on addresses used with /dev/mem.

Reject attempts to read from or memory map offsets in /dev/mem that are
beyond the maximum-supported physical address of the current CPU.

PC-BSD — usr.sbin/bhyve dbgport.c

MFH: r309295

bhyve: stability and performance improvement for dbgport

The TCP server implementation in dbgport does not track clients, so it
may try to write to a disconected socket resulting in SIGPIPE.
Avoid that by setting SO_NOSIGPIPE socket option.

Because dbgport emulates an I/O port to guest, the communication is done
byte by byte.  Reduce latency of the TCP/IP transfers by using
TCP_NODELAY option.  In my tests that change improves performance of
kgdb commands with lots of output (e.g. info threads) by two orders of
magnitude.

A general note.  Since we have a uart emulation in bhyve, that can be
used for the console and gdb access to guests.  So, bvmconsole and bvmdebug
could be de-orbited now.  But there are many existing deployments that
still dependend on those.

Discussed with:        julian, jhb
Sponsored by:        Panzura
Delta File
+12 -2 usr.sbin/bhyve/dbgport.c
+12 -2 1 file

PC-BSD — usr.sbin/bhyve dbgport.c

MFH: r307917

accept4 actually expect SOCK_NONBLOCK and not O_NONBLOCK

Reported by:        jhb
Pointyhat to:        bapt
Delta File
+1 -1 usr.sbin/bhyve/dbgport.c
+1 -1 1 file

PC-BSD — usr.sbin/bhyve dbgport.c

MFH: r306554

Use accept4 with O_NONBLOCK rather than accept + fcntl
Delta File
+2 -4 usr.sbin/bhyve/dbgport.c
+2 -4 1 file

PC-BSD — share/man/man9 SYSCALL_MODULE.9

MFH: r297015

Change a little to match what appears to be the right way of specifying an argument
(from looking at other man pages)

Sponsored by:         Panzura inc
Delta File
+3 -1 share/man/man9/SYSCALL_MODULE.9
+3 -1 1 file

PC-BSD — share/man/man9 SYSCALL_MODULE.9

MFH: r297012

Add a few details that make it easier to use this macro.

Sponsored by:        Panzura inc
Delta File
+13 -0 share/man/man9/SYSCALL_MODULE.9
+13 -0 1 file

PC-BSD — sys/netgraph ng_patch.h ng_patch.c

MFH: r303611

slite style changes. There is an incoming patch that rewrites a
lot of this module and I want to get the style and whitespace changes in
a separate commit (or maybe more).

PR: 206185
Submitted by:        Dmitry Vagin
Delta File
+18 -18 sys/netgraph/ng_patch.h
+10 -7 sys/netgraph/ng_patch.c
+28 -25 2 files

PC-BSD — share/man/man4 ng_checksum.4

MFH: r303613

Man page for the new checksum netgraph module.

PR:                206186
Submitted by:        Dmitry Vagin <daemon.hammer at ya.ru>
Delta File
+141 -0 share/man/man4/ng_checksum.4
+141 -0 1 file

PC-BSD — sys/dev/cxgbe/firmware t5fw_cfg.txt

Merge remote-tracking branch 'freebsd/stable/10' into freebsd10
∈ jhb - 324de301 - 2016-12-02 00:23:10
MFC 297797:
cxgbe(4): Provide an explicit value for nqpcq in the firmware
configuration file.

Sponsored by:        Chelsio Communications

PC-BSD — contrib/ofed/libcxgb4 ChangeLog COPYING, contrib/ofed/libcxgb4/src t4_regs.h t4fw_interface.h

MFC 273806,289103,289201,289338,289578,293185,294474,294610,297124,297368,
297406,300875,300888,301158,301896,301897,304838:

Pull in most of the Chelsio and iWARP related changes from stable/11 into
stable/10.  A few changes from 278886 (OFED 1.2) were also included though
the full merge is not:
- The find_gid_port() function in infiband/core/cma.c.
- Addition of the 'ord' and 'ird' fields to 'struct iw_cm_event'.

273806:
Userspace library for Chelsio's Terminator 5 based iWARP RNICs (pretty
much every T5 card that does _not_ have "-SO" in its name is RDMA
capable).

This plugs into the OFED verbs framework and allows userspace RDMA
applications to work over T5 RNICs.  Tested with rping.

289103:
iw_cxgbe: fix for page fault in cm_close_handler().

This is roughly the iw_cxgbe equivalent of
https://github.com/torvalds/linux/commit/be13b2dff8c4e41846477b22cc5c164ea5a6ac2e
-----------------
RDMA/cxgb4: Connect_request_upcall fixes


    [95 lines not shown]

PC-BSD — lib/lib9p Makefile

Merge branch 'feature/threaded-9p' into freebsd10
∈ Jakub Klama - 17348da8 - 2016-12-01 21:20:37
Add threadpool.c to the build.
Delta File
+1 -0 lib/lib9p/Makefile
+1 -0 1 file

PC-BSD — contrib/lib9p hashtable.c hashtable.h

PC-BSD — contrib/lib9p threadpool.c hashtable.c, contrib/lib9p/backend fs.c

PC-BSD — usr.sbin/bhyve pci_virtio_scsi.c

Merge branch 'feature/virtio-scsi' into freebsd10
∈ Jakub Klama - 7495f2cc - 2016-11-30 15:59:42
Raise VTSCSI_MAXSEG to 64 (which means 252KB effective maxio)
Delta File
+2 -2 usr.sbin/bhyve/pci_virtio_scsi.c
+2 -2 1 file

PC-BSD — usr.sbin/bhyve pci_virtio_scsi.c

Raise VTSCSI_MAXSEG to 64 (which means 252KB effective maxio)
Delta File
+2 -2 usr.sbin/bhyve/pci_virtio_scsi.c
+2 -2 1 file

PC-BSD — usr.sbin/bhyve pci_virtio_scsi.c

Start CTL_IO requests in a thread pool.

That allows us to enqueue multiple requests simultaneously.
Also reduce number of queues to 1 for now, since FreeBSD doesn't
seem to be using more than one.
Delta File
+124 -25 usr.sbin/bhyve/pci_virtio_scsi.c
+124 -25 1 file

PC-BSD — sbin/geom/class/mirror gmirror.8 geom_mirror.c, sys/geom/mirror g_mirror_ctl.c g_mirror.c

Add `gmirror create` subcommand, alike to gstripe, gconcat, etc.

It is quite specific mode of operation without storing on-disk metadata.
It can be useful in some cases in combination with some external control
tools handling mirror creation and disks hot-plug.

Ticket:        #18300

(cherry picked from commit 7acb1dbb484ae945101af627c6d29e0e6edf1418)

PC-BSD — contrib/lib9p hashtable.c pack.c, contrib/lib9p/backend fs.c

Import lib9p from upstream.

PC-BSD — sys/kern subr_param.c, sys/sys systm.h

Merge pull request #12 from freenas/sef-vm_guest-bhyve

Allow sysctl kern.vm_guest to return bhyve when running under bhyve.
∈ Sean Eric Fagan - 7cab7967 - 2016-11-29 21:36:27
Allow sysctl kern.vm_guest to return bhyve when running under bhyve.

Ticket: #17046

PC-BSD — sys/kern subr_param.c, sys/sys systm.h

Allow sysctl kern.vm_guest to return bhyve when running under bhyve.

Ticket: #17046

PC-BSD — contrib/lib9p threadpool.c threadpool.h, contrib/lib9p/backend fs.c

Make pci_virtio_9p driver asynchronous. Import lib9p from upstream.

PC-BSD — sys/cam/scsi scsi_enc_ses.c

Make SES status updates more aggressive.

 - On control request update all status pages, since they may also be
affected if user enables/disables enclosure slots.
 - Periodically update element descriptors too, since there is some
hardware where they are changed dynamically.

Ticket:        #19228

(cherry picked from commit 300a3416e895be9f658750400c8986d99a6354c7)
Delta File
+5 -6 sys/cam/scsi/scsi_enc_ses.c
+5 -6 1 file

PC-BSD — sys/cam cam_xpt.c, sys/cam/scsi scsi_enc_ses.c

Explicitly initialize cdai.flags.

In SES driver uninitialized value caused unreliable physpath reporting.

Ticket:        #19228

(cherry picked from commit 9d67d934c86c741609e8b454fc9a691868cf353b)

PC-BSD — usr.sbin/bhyve bhyverun.c

Merge remote-tracking branch 'freebsd/stable/10' into freebsd10
∈ Jakub Klama - 45e02aa4 - 2016-11-28 21:15:50
Restore accidentally removed text fragment
Delta File
+1 -2 usr.sbin/bhyve/bhyverun.c
+1 -2 1 file

PC-BSD — usr.sbin/bhyve bhyverun.c

Restore accidentally removed text fragment
Delta File
+1 -2 usr.sbin/bhyve/bhyverun.c
+1 -2 1 file

PC-BSD — usr.sbin/bhyve bhyverun.c

Let's try ignoring unknown SVM exits and see if that helps.
Delta File
+6 -2 usr.sbin/bhyve/bhyverun.c
+6 -2 1 file

PC-BSD — usr.sbin/bhyve pci_virtio_scsi.c

Allow passing custom initiator ID from the command line.
Delta File
+20 -4 usr.sbin/bhyve/pci_virtio_scsi.c
+20 -4 1 file

PC-BSD — include stddef.h, sys/sys _types.h

MFC 307756: Define max_align_t for C11.

libc++'s stddef.h includes an existing definition of max_align_t for
C++11, but it is only defined for C++, not for C.  In addition, GCC and
clang both define an alternate version of max_align_t that uses a
union of multiple types rather than a plain long double as in libc++.
This adds a __max_align_t to <sys/_types.h> that matches the GCC and
clang definition that is mapped to max_align_t in <stddef.h>.

PR:                210890
Delta File
+8 -0 include/stddef.h
+5 -0 sys/sys/_types.h
+13 -0 2 files

PC-BSD — sys/dev/usb/net if_smsc.c

MFC r308730:
Make sure MAC address is reprogrammed when if_init() callback is
invoked. Else promiscious mode must be used to pass traffic. While at
it fix a debug print macro.
Delta File
+4 -2 sys/dev/usb/net/if_smsc.c
+4 -2 1 file

PC-BSD — usr.sbin/bhyve pci_virtio_scsi.c

Add missing free()s.
Delta File
+4 -0 usr.sbin/bhyve/pci_virtio_scsi.c
+4 -0 1 file

PC-BSD — usr.sbin/bhyve pci_virtio_scsi.c iov.c, usr.sbin/ctladm Makefile

Initial iteration of a virtio-scsi HBA driver.

PC-BSD — sys/kern vfs_mount.c, sys/ufs/ffs ffs_vfsops.c

Merge remote-tracking branch 'freebsd/stable/10' into freebsd10
∈ kib - 71a901ee - 2016-11-27 09:14:52
MFC r308618:
Provide simple mutual exclusion between mount point update and unmount.
In the update path in ffs_mount(), drop vfs_busy() reference around namei().
Delta File
+18 -2 sys/ufs/ffs/ffs_vfsops.c
+6 -0 sys/kern/vfs_mount.c
+24 -2 2 files

PC-BSD — sys/geom/mirror g_mirror.c g_mirror.h

MFC r308608:
Use providergone method to cover race between destroy and g_access().

PC-BSD — sys/geom/multipath g_multipath.c

MFC r308579: Do not report error on close even if we have no paths left.
Delta File
+1 -1 sys/geom/multipath/g_multipath.c
+1 -1 1 file

PC-BSD — usr.bin/locale locale.c

MFC r308808, r308809: Lookup locale when print all keywords as well.
Delta File
+2 -1 usr.bin/locale/locale.c
+2 -1 1 file

PC-BSD — sys/ufs/ffs ffs_vfsops.c

MFC r308064:
Avoid possible overflow when calclating malloc size for auxillary
data structure sizes when mounting and reloading UFS/FFS filesystems.
Delta File
+12 -10 sys/ufs/ffs/ffs_vfsops.c
+12 -10 1 file