summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-03-10Convert to if_input().Martin Pieuchot
ok dlg@, kettenis@
2015-03-10Convert to if_input(), tested an ok kettenis@.Martin Pieuchot
2015-03-09If my calculations are correct, when this baby hits 5.8... you're gonna seeMiod Vallat
some serious shit.
2015-03-09In wdcintr, do not attempt to read the status register unless WDCF_IRQ_WAITMiod Vallat
is not set; this used to be the case but got broken in 1.113. Fixes pciide0 at pci0 dev 2 function 0 "Acard ATP865-R" rev 0x07: DMA on armish (I/O Data).
2015-03-09Avoid doing IPv6 SLAAC for prefixes with preferred lifetime of zeroMike Belopuhov
RFC 4941 says in 3.3.5: "In particular, an implementation MUST NOT create a temporary address with a zero Preferred Lifetime." OK sthen, henning, benno
2015-03-09Switch pv entries over to a pool in preparation for making the i386 (more)Mark Kettenis
mpsafe. Most (all?) other architectures now use pools for this, including non-direct pmap architetcures like sparc and sparc64. Use a special back-end allocator for pool pages to solve bootstrapping problems. This back-end allocator allocates the initial pages from kernel_map, switching to the uvm_km_page allocator once the pmap has been fully initialized. The old pv entry allocator allocated pages from kmem_map. Using the uvm_km_page allocator avoids certain locking issues, but might change behaviour under kva pressure. Time will tell if that's a good or a bad thing. ok mlarkin@, deraadt@
2015-03-08Fix some format specifiers in debug code.Kenneth R Westerback
Pointed out by Kor son of Rynar (sic) when trying to test some debug code. ok matthew@
2015-03-08properly set sgl related flags on skinny controllers. this fixesDavid Gwynne
io against physical disks on my dell perc h310s. logical disks still work fine. ok deraadt@ yasuoka@
2015-03-08Revert patch responsible for locking up machines withTobias Ulmer
"Realtek 8168" rev 0x01: RTL8168 2 (0x3800). You will never guess who commited it without OK ;) ok deraadt revision 1.45 date: 2015/01/26 09:58:47; author: brad; state: Exp; lines: +22 -2; commitid: AppNYocFYbD7Hqgj; Set PCIe max read request size to 2K to help with TX performance. From FreeBSD Tested with 8168C, 8168D and 8168G. revision 1.46 date: 2015/02/19 04:58:34; author: dlg; state: Exp; lines: +2 -2; commitid: GSWXECXQW0LeGFmq; when reading the max packet size in the pcie device config and status register, correctly mask things so we're left with the mps field instead of everything but the mps field. tested by bcallah@ and jim smith
2015-03-06Revert previous, the fix is not right and causes a regression asMartin Pieuchot
reported by Remi Locherer on bugs@. ok deraadt@
2015-03-06Fix radiotap and fixed rates. Radiotap was reporting the wrong rate forMark Kettenis
data frames and fixed rates weren't really fixed and were converted into the wrong hardware rate. ok jsg@, deraadt@
2015-03-06Unbreak IPL_TTY == IPL_SOFTTTY case. ok deraadt@Miod Vallat
2015-03-05When running on a sun4d or sun4m system, have the bootblocks ask for oneMiod Vallat
more megabyte of virtual memory beyond the kernel image; this is safe to do as you can't find any such system with less than 8MB of contiguous memory. While nothing in the kernel has a need for that extra memory to be available to the kernel for its bootstrap needs, forthcoming changes (post-5.7) will need it, and these kernels won't work when booted from boot loaders prior to this change. By shipping 5.7 with updated boot blocks, we'll make upgrading to 5.7-CURRENT easier for sun4m owners, when the time comes. Crank boot blocks version. ok deraadt@
2015-03-04prevent umass devices from being considered for paths.David Gwynne
ok deraadt@
2015-03-04Make sure that rn_mpath_adj_mpflag() is called with the correct pointerClaudio Jeker
to the multipath chain when removing routes. This fixes the sbin/route testcases 17-19 and fixes an annoying opsfd bug because of routes wrongly marked as multipath ones. OK deraadt, mpi, sthen, benno, phessler
2015-03-04stop the calibration timeout when stopping the interfaceJonathan Gray
ok kettenis@ deraadt@
2015-03-04disable POOL_DEBUG for releaseJonathan Gray
ok deraadt@
2015-03-04move to -release modeJonathan Gray
ok deraadt@
2015-03-04Add commented-out PCMCIA support configuration to GENERIC.Kenji Aoyama
2015-03-04Do not check if the interface index matches the scope when all we wantMartin Pieuchot
is to clear the damn embedded scope. At this point the receiving interface should not matter and will in the future be cleared to prevent such layer violations. This prevent exporting addresses with embedded scope to userland. Found the hardway by and ok florian@
2015-03-04Explicitly fallback to a carp IP address if the parent does not have anyMartin Pieuchot
configured IP address when sending AD. Previously ip_output() was doing this magic for us and ip6_output() was failing, making it impossible to send AD if the parent did not have an IPv6 address. Fix a regression found the hardway by benno@ introduced by the move to NOINET6 by default. ok benno@, phessler@
2015-03-03Add pcic(4) support on luna88k.Kenji Aoyama
This is basically glue codes attaching pcic(4) at cbus(4/luna88k), based on src/sys/dev/isa/i82365_isa{,subr}.c. Tested on some ne(4) network interface cards, wdc(4) with a CF memory card, and com(4) with an old XJACK modem card. Currently wi(4) does not work yet. suggestions and ok miod@
2015-03-03Set/clear the IWM_MAC_FILTER_IN_BEACON flag under conditions that match whatMark Kettenis
Linux does. ok jsg@
2015-03-03make sure hfsc_attach, hfsc_detach, hfsc_addqueue, hfsc_delqueue andHenning Brauer
hfsc_qstats cope with a NULL ifp. Can happen when refering to nonexistant interfaces from pf.conf. Problem noticed and fix tested by Kevin Chadwick <ma1l1ists at yahoo.co.uk>, ok phessler benno
2015-03-03regenBrad Smith
2015-03-03Add Intel Dual Band Wireless AC 4165 PCI ids.Brad Smith
ok stsp@
2015-03-03Fix a regression introduced when switching from rtsold to the kernel forBrad Smith
router solicitations. Send the router soliciation right away instead of having a 60 second window between enabling SLAAC on the interface and the router solicitation being sent. ok florian@ stsp@ mpi@
2015-03-03Fix 11a support.Mark Kettenis
ok stsp@
2015-03-02match on 7265Jonathan Gray
ok kettenis@ stsp@ phessler@
2015-03-02Make setting the MAC context bit for 11g protection when transmittingJonathan Gray
OFDM frames conditional on the node via IEEE80211_F_USEPROT. ok kettenis@
2015-03-02Don't set CTS to self. Linux stopped setting this back inJonathan Gray
dc271ee0d04d12d6bfabacbec803289a7072fbd9 as it is known to cause problems. ok kettenis@
2015-03-02sc_fixed_ridx is initialised to 0 but tested as it it were initialisedJonathan Gray
to -1. The result of this is tx frames were always sent out at fixed rate 0 instead of ni_txrate. Match the iwn behaviour and test ic_fixed_rate for -1 instead. Problem spotted by kettenis@ in an earlier diff. ok kettenis@ stsp@
2015-03-02Return EINVAL if the creds supplied for NFS export have a cr_ngroups lessPhilip Guenther
than zero or greater than NGROUPS_MAX Fixes panic seen by henning@
2015-03-02Remove stray ')' from athn(4) "firmware command timed out" error message.Stefan Sperling
2015-03-02athn(4) USB drops received frames larger than MCLBYTES.Stefan Sperling
Count these dropped frames as input errors.
2015-03-02Fix re-associations with athn(4) USB devices in station mode.Stefan Sperling
Sending the firmware a NODE_ADD command for our BSS doesn't seem to have the desired effect in station mode. It made a new association after ifconfig down/up impossible until the device was re-plugged. Leave the code in place but limit it to hostap mode, just in case it is needed there (hard to tell since hostap mode seems to be broken -- no beacons are sent by the device). Also, when leaving run state, reset the RX filer to allow all beacons again. ok mpi@
2015-03-02Rework ath(4) USB firmware command handling.Stefan Sperling
The previous code was racy and could dead-lock the USB task thread when a firmware command timed out (e.g. because the user pulled out the device). Handle this condition by marking the device as dying as soon as the interrupt handler gets an IOERROR and making sleeping firmware command threads check for a dying device when waking up. Ensure that no thread will try to send a command before the previous one has completed. There is only a single xfer data structure for firmware command transfers and reusing an in-flight xfer will give the USB stack curly toenails ("xfer not free"). Allow up to ATHN_USB_HOST_CMD_RING_COUNT firmware commands to be enqueued on the command ring, rather than just one. Use standard usdb_wait_task() when waiting for command ring completion instead of hand-rolled tsleep()s. discussed with and ok mpi@
2015-03-02Correctly set lowest_present_ofdm in iwm_mvm_ack_rates().Jonathan Gray
ok kettenis@
2015-03-02init error to 0 in iwm_send_cmd()Jonathan Gray
ok stsp@ phessler@
2015-03-02match iwn and init txrate at lowest available bit-rateJonathan Gray
ok stsp@ phessler@
2015-03-02workaround for interrupt coalescing bug not needed on 7265Jonathan Gray
ok kettenis@ stsp@ phessler@
2015-03-02Fix scanning with athn(4) USB devices.Stefan Sperling
The driver artificially limited the number of slots for nodes in its net80211 node cache to 8, the rationale being the device firmware can only handle 8 associated nodes at a time. But that's not a good reason to only cache 8 of potentially many APs in the area. Instead of crippling upper layer data structures, impose the limit locally by raising an error if more than 8 nodes are trying to associate (which can only happen in hostap mode, and hostap mode seems to be broken anyway). This matches what Linux ath9k does. Also, use a USB-specific scan timeout callback to we can do USB refcounting while scanning. ok mpi@
2015-03-02load the correct firmware for 3160/7265Jonathan Gray
ok kettenis@ stsp@ phessler@
2015-03-02In athn(4), set USB pipe pointers to NULL after closing pipes. Not reallyStefan Sperling
required since this code runs during device detach but looks prettier. Also remove an unneeded call to usbd_abort_pipe() which is implied by usbd_close_pipe(). ok mpi@
2015-03-02Teach athn(4) about USB reference counting to prevent it from causing majorStefan Sperling
confusion in the USB stack. Also add some usbd_is_dying checks. suggested by + ok mpi@
2015-03-02Remove the mpsafe flag for mpii(4), it is a suspect in some kernel hangs I'veStuart Henderson
seen on MP kernels when doing bulk io transfers from a multithreaded program (bacula-fd). ok dlg@
2015-03-01Fix setregs() to correctly use ps_strings. ok kettenis@ mpi@Miod Vallat
2015-03-01Correctly set lowest_present_ofdm in iwm_mvm_ack_rates().Mark Kettenis
ok phessler@, stsp@
2015-02-28Move consinit() out of the bowels of the zs driver to its own file, inMiod Vallat
preparation for systems which do not have console on a zs(4) device. No functional change yet.
2015-02-28Remove duplicated defines for window 7 registers.Miod Vallat