aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove doxygen files for mcd(4) and scd(4) drivers.John Baldwin2016-08-192-42/+0
| | | | | | | Submitted by: ak Notes: svn path=/head/; revision=304501
* Remove the scd(4) driver for Sony CDU31/33 CD-ROM drives.John Baldwin2016-08-1911-1902/+2
| | | | | | | | This is a driver for a pre-ATAPI ISA CD-ROM adapter. The driver only uses PIO. Notes: svn path=/head/; revision=304498
* Move cxgb and cxgbe down to the non-mii PCI NIC section.John Baldwin2016-08-191-3/+3
| | | | Notes: svn path=/head/; revision=304492
* Keep boot parameters in ARM trampoline codeEmmanuel Vadot2016-08-191-4/+31
| | | | | | | | | | | | | | Currently boot parameters (r0 - r3) are forgotten in ARM trampoline code. This patch save them at startup and restore them before jumping into kernel _start() routine. This is usefull when booting with Linux ABI and/or custom bootloader. Submitted by: Grégory Soutadé <soutade@gmail.com> Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D7395 Notes: svn path=/head/; revision=304488
* Don't set P2_PTRACE_FSTP in a process that invokes ptrace(PT_TRACE_ME).Mark Johnston2016-08-193-6/+7
| | | | | | | | | | | | | Such processes are stopped synchronously by a direct call to ptracestop(SIGTRAP) upon exec. P2_PTRACE_FSTP causes the exec()ing thread to suspend itself while waiting for a SIGSTOP that never arrives. Reviewed by: kib MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D7576 Notes: svn path=/head/; revision=304487
* Reorder sysctls so that nodes shared with the VF driver are added first.John Baldwin2016-08-191-26/+26
| | | | | | | | | | | | This permits a single early return for VF devices in the routines that add sysctl nodes. Reviewed by: np Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D7512 Notes: svn path=/head/; revision=304485
* Regenerate system call table after r304483.Ed Schouten2016-08-194-4/+4
| | | | Notes: svn path=/head/; revision=304484
* Use the proper value for svn:keywords.Ed Schouten2016-08-190-0/+0
| | | | | | | Pointy hat to: me Notes: svn path=/head/; revision=304483
* Adjust t4_port_init() to work with VF devices.John Baldwin2016-08-191-17/+20
| | | | | | | | | | | | | | Specifically, the FW_PORT_CMD may or may not work for a VF (the PF driver can choose whether or not to permit access to this command), so don't attempt to fetch port information on a VF if permission is denied by the PF. Reviewed by: np Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D7511 Notes: svn path=/head/; revision=304482
* Add missing SVN keywords keyword.Ed Schouten2016-08-190-0/+0
| | | | Notes: svn path=/head/; revision=304481
* Add structures for VF-specific adapter parameters.John Baldwin2016-08-191-2/+42
| | | | | | | | | | | While here, mark which parameters are PF-specific and which are VF-specific. Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D7508 Notes: svn path=/head/; revision=304479
* Import the new automatically generated system call table for CloudABI.Ed Schouten2016-08-1914-3619/+2805
| | | | | | | | | | | | | | | | | | Now that we've switched over to using the vDSO on CloudABI, it becomes a lot easier for us to phase out old features. System call numbering is no longer something that's part of the ABI. It's fully based on names. As long as the numbering used by the kernel and the vDSO is consistent (which it always is), it's all right. Let's put this to the test by removing a system call (thread_tcb_set()) that's already unused for quite some time now, but was only left intact to serve as a placeholder. Sync in the new system call table that uses alphabetic sorting of system calls. Obtained from: https://github.com/NuxiNL/cloudabi Notes: svn path=/head/; revision=304478
* Fix various nits in the aio operation manpages.John Baldwin2016-08-194-26/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Avoid double use of "request" in a single sentence. Instead, describe aio_sigevent as being used to request notification of the associated operation's completion. This matches the language used to describe aio_sigevent in aio(4). - Simplify the prohibition on modifying buffers while requests are in flight. - Fix case mismatch. - Drop note about not using stack variables. C programmers should be able to figure out if a stack variable is safe based on the later warning about the life cycle requirements of control blocks. - Remove prohibition on modifying the I/O buffer for aio_fsync() since it does not use an I/O buffer. For aio_mlock(), prohibit modifications to the mapping (e.g. due to mprotect, munmap, mmap, etc.) but do not prohibit modifications to the memory backing the buffer (stores into the pages backing the buffer). Requested by: wblock (1,2), kib (4) Reviewed by: kib, rpokala, wblock MFC after: 3 days Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D7462 Notes: svn path=/head/; revision=304476
* Allwinner: Move a10_padconf.c into a10 subdirectory.Emmanuel Vadot2016-08-192-1/+1
| | | | Notes: svn path=/head/; revision=304464
* TEGRA: Remove forgotten debug printf.Michal Meloun2016-08-191-1/+0
| | | | Notes: svn path=/head/; revision=304461
* TEGRA: Implement MSI/MSIX interrupts for pcie controller.Michal Meloun2016-08-191-57/+363
| | | | Notes: svn path=/head/; revision=304460
* INTRNG: Rework handling with resources. Partially revert r301453.Michal Meloun2016-08-1922-320/+436
| | | | | | | | | | | | | | | | | | | | - Read interrupt properties at bus enumeration time and store it into global mapping table. - At bus_activate_resource() time, given mapping entry is resolved and connected to real interrupt source. A copy of mapping entry is attached to given resource. - At bus_setup_intr() time, mapping entry stored in resource is used for delivery of requested interrupt configuration. - For MSI/MSIX interrupts, mapping entry is created within pci_alloc_msi()/pci_alloc_msix() call. - For legacy PCI interrupts, mapping entry must be created within pcib_route_interrupt() by pcib driver itself. Reviewed by: nwhitehorn, andrew Differential Revision: https://reviews.freebsd.org/D7493 Notes: svn path=/head/; revision=304459
* Host controller is byte oriented. Fix wrong assumption on big-endianPyun YongHyeon2016-08-191-8/+2
| | | | | | | | | systems. Pointed out by: hselasky Notes: svn path=/head/; revision=304458
* hyperv/hn: Move RXBUF to hn_softcSepherosa Ziehau2016-08-193-62/+68
| | | | | | | | | | | | | And don't recreate RXBUF for each primary channel open, it is now created in device_attach DEVMETHOD and destroyed in device_detach DEVMETHOD. MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7556 Notes: svn path=/head/; revision=304447
* hyperv/hn: Remove the useless num_channelSepherosa Ziehau2016-08-194-34/+29
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7555 Notes: svn path=/head/; revision=304446
* hyperv/hn: Remove assign-only struct fieldSepherosa Ziehau2016-08-192-6/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7554 Notes: svn path=/head/; revision=304444
* Improve the pattern matching so that internal *'s work, as well asWarner Losh2016-08-191-13/+53
| | | | | | | | | | | | [set] notation. This fixes pattern matching for recently added drives that would set the NCQ Trim being broken incorrectly. PR: 210686 Tested-by: Tomoaki AOKI MFC After: 3 days Notes: svn path=/head/; revision=304443
* hyperv/hn: Move NVS version to softcSepherosa Ziehau2016-08-194-12/+15
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7553 Notes: svn path=/head/; revision=304441
* Correct a check for P2_PTRACE_FSTP in ptracestop().Mark Johnston2016-08-191-1/+1
| | | | | | | MFC after: 1 day Notes: svn path=/head/; revision=304440
* Fix build on big-endian systems.Pyun YongHyeon2016-08-191-6/+7
| | | | | | | Reported by: bz Notes: svn path=/head/; revision=304439
* Fsck_ufs was using an int rather than a ufs2_daddr_t to store theKirk McKusick2016-08-194-13/+15
| | | | | | | | | | | | alternate superblock location when given in the -b option. When int is 32-bits, block numbers larger than 2^32 would get truncated. This commit changes the storage fpr the alternate superblock location to a ufs2_daddr_t. Submitted by: Dmitry Sivachenko <trtrmitya@gmail.com> Notes: svn path=/head/; revision=304438
* Fix unlocked access to ifnet address listRyan Stone2016-08-181-3/+9
| | | | | | | | | | | | | | in_broadcast() was iterating over the ifnet address list without first taking an IF_ADDR_RLOCK. This could cause a panic if a concurrent operation modified the list. Reviewed by: bz MFC after: 2 months Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D7227 Notes: svn path=/head/; revision=304437
* Don't check for broadcast IPs on non-bcast pktsRyan Stone2016-08-182-1/+15
| | | | | | | | | | | | | | in_broadcast() can be quite expensive, so skip calling it if the incoming mbuf wasn't sent to a broadcast L2 address in the first place. Reviewed by: gnn MFC after: 2 months Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D7309 Notes: svn path=/head/; revision=304436
* Don't iterate over the ifnet addr list in ip_output()Ryan Stone2016-08-183-19/+24
| | | | | | | | | | | | | | | | | | | | | For almost every packet that is transmitted through ip_output(), a call to in_broadcast() was made to decide if the destination IP was a broadcast address. in_broadcast() iterates over the ifnet's address to find a source IP matching the subnet of the destination IP, and then checks if the IP is a broadcast in that subnet. This is completely redundant as we have already performed the route lookup, so the source IP is already known. Just use that address to directly check whether the destination IP is a broadcast address or not. MFC after: 2 months Sponsored By: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D7266 Notes: svn path=/head/; revision=304435
* Add a SIGINFO handler for dtrace(1).Mark Johnston2016-08-181-1/+25
| | | | | | | | | | | | Have it print the contents of aggregations, if any. Otherwise, one needs to kill the running script to view the collected data, or add code to periodically print it. Discussed with: gnn MFC after: 1 month Notes: svn path=/head/; revision=304431
* vt: fix old keyboard release in CONS_SETKBDEd Maste2016-08-181-0/+1
| | | | | | | | | | | On the first switch we previously released the newly allocated keyboard instead of the old one. Keyboard state was very confused afterwards for further keyboard switches. Submitted by: bde Notes: svn path=/head/; revision=304430
* Remove the obsolete and unused openbsd_poll system call. (Phase 2)George V. Neville-Neil2016-08-1812-83/+19
| | | | | | | | | Reported by: brooks Reviewed by: brooks, jhb Differential Revision: https://reviews.freebsd.org/D7548 Notes: svn path=/head/; revision=304402
* Remove unusedd and obsolete openbsd_poll system call. (Phase 1)George V. Neville-Neil2016-08-1814-42/+10
| | | | | | | | | Reported by: brooks Reviewed by: brooks,jhb Differential Revision: https://reviews.freebsd.org/D7548 Notes: svn path=/head/; revision=304395
* Try to fix gcc compilation errors (which are right).Bjoern A. Zeeb2016-08-181-2/+1
| | | | | | | | | | nat64_getlasthdr() returns an int, which can be -1 in case of error, storing the result in an uint8_t and then comparing to < 0 is not helpful. Do what is done in the rest of the code and make proto an int here as well. Notes: svn path=/head/; revision=304378
* Fix TAB replaced with spaces in prev. commit.Andrey A. Chernov2016-08-181-1/+1
| | | | Notes: svn path=/head/; revision=304374
* Add support for setting blocking and non-blocking mode on /dev/rdma_cmHans Petter Selasky2016-08-181-0/+16
| | | | | | | | | | | | by returning success on FIONBIO and FIOASYNC IOCTLs. The actual flags handling is done by the kern_ioctl() function. Reported by: Alex Bowden <alex.bowden@outlook.com> Sponsored by: Mellanox Technologies MFC after: 1 week Notes: svn path=/head/; revision=304342
* When device is detached make sure to stop the controller and makePyun YongHyeon2016-08-181-0/+18
| | | | | | | it return zero-length USB packet. Notes: svn path=/head/; revision=304336
* In axge_stop(), clear medium receive enable bit which will stop RXPyun YongHyeon2016-08-181-0/+5
| | | | | | | MAC operation. Notes: svn path=/head/; revision=304335
* Remove <sys/types.h> from the SYNOPSIS.Kevin Lo2016-08-187-14/+7
| | | | Notes: svn path=/head/; revision=304334
* When usbd_transfer_setup() fails, don't callPyun YongHyeon2016-08-181-1/+2
| | | | | | | usbd_transfer_unsetup(). Notes: svn path=/head/; revision=304333
* Introduce axge_rxfilter() which configures RX filtering and replacePyun YongHyeon2016-08-182-84/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | axge_setmulti()/axge_setpromisc() with axge_rxfilter(). Multicast filter programming and promiscuous mode requires access to a common RX configuration register so there is no need to use separate functions with added complexity. axge_rxfilter() does not read back AXGE_RCR register since accessing a register in USB is too slow and we already have all knowledge of required configuration. Rebuilding RX filter configuration is simpler and faster than manipulating every bits after reading back the register. Note, axge_rxfilter() does not set RCR_IPE(IP header alignment on 32bit boundary) to disable extra padding bytes insertion. The extra padding wastes ethernet to USB host bandwidth as well as complicating RX handling logic. Current USB framework requires copying RX frames to mbufs so there is no need to worry about alignment. Previously axge_rx_frame() performed wrong bound check due to the extra padding and it was broken when RX checksum offloading is disabled. See added comment in axge_rx_frame () for actual RX packet layout. In axge_init(), disable WOL. It's meaningless to enable WOL in normal operation. In axge_rxeof(), use properly sized mbuf rather than blindly allocating a mbuf cluster. Use RX H/W checksum offloading only when administrator requested RX checksum offloading. Previously it always used RX H/W checksum offloading result regardless of RX checksum offloading state. Separate L4 checksum offloading validation from L3 one and properly set required offloading bits for each layer. This is to fix setting L4 checksum offloading bits for L3 packets. There are still lots of RX errors(probably RX FIFO overflows) under moderate load. Users are strongly recommended to enable ethernet flow control. Reviewed by: kevlo (initial version), hselasky Notes: svn path=/head/; revision=304332
* hyperv/kvp: Remove unnecessary function parameter.Sepherosa Ziehau2016-08-181-4/+3
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7550 Notes: svn path=/head/; revision=304331
* hyperv/hn: Get rid of the useless netvsc_packetSepherosa Ziehau2016-08-186-58/+33
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7544 Notes: svn path=/head/; revision=304330
* hyperv/hn: Constify RNDIS messages on RX path.Sepherosa Ziehau2016-08-181-9/+10
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7542 Notes: svn path=/head/; revision=304329
* hyperv/hn: Pass RX packet info to netvsc_recv.Sepherosa Ziehau2016-08-185-40/+33
| | | | | | | | | | | | This paves to nuke netvsc_packet, which does not serves much purpose now. MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7541 Notes: svn path=/head/; revision=304327
* Switch to TX header format rather than directly manipulating headerPyun YongHyeon2016-08-182-25/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | structures. This simplifies mbuf copy operation to USB buffers as well as improving readability. The controller supports Microsoft LSOv1(aka TSO) but this change set does not include the support due to copying overhead to USB buffers and large amount of memory waste. Remove useless ZLP padding which seems to come from Linux. Required bits the code tried to set was not copied into USB buffer so it had no effect. Unlike Linux, FreeBSD USB stack automatically generates ZLP so no explicit padding is required in driver.[1] Micro-optimize updating IFCOUNTER_OPACKETS counter by moving it out of TX loop since updating counter is not cheap operation as it did long time ago and we already know how many number of packets were queued after exiting the loop. While here, fix a checksum offloading bug which will happen when upper stack computes checksum while H/W checksum offloading is active. The controller should be notified to not recompute the checksum in this case. Reviewed by: kevlo (initial version), hselasky Pointed out by: hselasky [1] Notes: svn path=/head/; revision=304326
* Rename cryptic RX filter constants with more readable ones.Pyun YongHyeon2016-08-182-14/+15
| | | | | | | No functional change. Notes: svn path=/head/; revision=304325
* Don't explicitly call MIIBUS_STATCHG() method handler. Link statePyun YongHyeon2016-08-181-5/+0
| | | | | | | | change should be handled by PHY driver. Some broken PHY H/Ws may need that workaround but it seems axge(4) don't use such PHYs. Notes: svn path=/head/; revision=304324
* Pass PHY location information and remove PHY access hack.Pyun YongHyeon2016-08-182-5/+3
| | | | Notes: svn path=/head/; revision=304323
* [net80211] correctly lock the ifp before accessing the lladdr.Adrian Chadd2016-08-181-0/+2
| | | | | | | Tested by: dhw Notes: svn path=/head/; revision=304322