summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-11-11Local APIC page doesn't need X permissions.Mike Larkin
ok deraadt, guenther
2014-11-11Stop athn(4) from attaching to AR9300 devices for now. There are unresolvedStefan Sperling
bugs that panic the kernel and it's unclear if any such device works at all. Anyone in possession of a working AR9300 device that stops working with this commit please talk to me. I've only seen evidence of this code not working. ok kirby@ mpi@ phessler@ dcoppa@
2014-11-11Do not reset the base address of the control endpoint's ring whenMartin Pieuchot
the second "Set Address" command is issued. This would lead the HC to reprocess TRBs corresponding to completed transfers. This was the cause of the "xhci0: NULL xfer pointer" message that could be seen after attaching a device and reported by naddy@.
2014-11-11Ask networking stack to recalculate the ICMPv6 checksum in pf_route6Mike Belopuhov
since we might have tweaked the addresses. Problem reported and fix test by Bastien Durel <bastien at geekwu ! org>, thanks! OK henning
2014-11-10Grab the pool mutex in sysctl_dopool(), but only for pools for whichMark Kettenis
pool_setipl(9) has been called. This avoids the panic introduced in rev 1.139 (which was subsequently backed out) while still effectively guaranteeing a consistent snapshot. Pools used from interrupt handlers should use the appropriate pool IPL. ok dlg@, deraadt@
2014-11-10Split the logic for the ICMP and ICMP6 case in pf_get_sport(). TheAlexander Bluhm
types ICMP_ECHO and ICMP6_ECHO_REQUEST have their special meaning only if the protocol matches. Put an #ifdef INET6 around ICMP6_ECHO_REQUEST to make the kernel without IPv6 compile. OK henning@
2014-11-10add an additional error check into the ixgbe_handle_msfMike Belopuhov
2014-11-10remove pointless timeout_del/add dance in the interrupt handlerMike Belopuhov
2014-11-10Inadvertent ampersand has made the check to always yield truthMike Belopuhov
This change fixes up SFP+ module detection during "ifconfig up" after the machine has been booted without the modules plugged in.
2014-11-10Gather full statistics only when IX_DEBUG is definedMike Belopuhov
since most of them can't be retrieved otherwise. This comes with a slight but measurable performance increase as well. Also since the hardware has a single counter for missed packets including those caused by the insufficient DMA buffers available, this makes it hard to decipher actual errors when used with Rx ring length limiting mechanisms like if_rxr or mclgeti.
2014-11-10don't try to update the link status every secondMike Belopuhov
2014-11-10remove ixgbe_sfp_probe since it's not called anywaysMike Belopuhov
2014-11-10Support USB 1.x devices below external hubs.Martin Pieuchot
This code is violating various layers of abstraction, just like ehci(4) does. Transaction translators need a bit more love.
2014-11-10Add some fields needed for TT support.Martin Pieuchot
2014-11-10Apparently xhci(4) also needs a hook to set the address of a device.Martin Pieuchot
Some Low/Full speed devices do not like to get a SET_ADDRESS command before we have read (some bits of) their device descriptor. So change the attach logic to issue two "Device Address" command with a BSR dance. This should fix the "device problem, disabling port" error seen on root hubs with some Low/Full speed devices, reported by miod@.
2014-11-10Remove USB locators. They are currently unused and this wont change dueMartin Pieuchot
to the way USB buses are discovered.
2014-11-10Do not pass an ifa pointer when we already have a DAD descriptor.Martin Pieuchot
Tweaks and ok florian@
2014-11-10Plug a rtentry leak and change the name of the pool to somethingMartin Pieuchot
understandable. ok chris@
2014-11-09To implement transparent relays for connectionless protocols, theAlexander Bluhm
pf the state has to vanish immediately when the relay closes the socket. To make this work reliably, the linkage between state and socket must be established with the first packet. This packet could be incomming or outgoing. Link the pf state in the socket layer earlier. This makes all tests in /usr/src/regress/sys/net/pf_divert pass. OK henning@
2014-11-09typoMiod Vallat
2014-11-09When a pipe is closed, clear the memory of the corresponding enpointMartin Pieuchot
context, not the whole array of endpoints. Yeah, pointers are hard. Fix a panic reported by Dimitris Papastamos on tech@
2014-11-09remove commented entries for tedu'd bluetooth driversJonathan Gray
2014-11-08Delete commented out 'romtty' device configuration.Kenji Aoyama
This had been used in the early years of poring OpenBSD to LUNA-88K, but no longer used.
2014-11-08some systems install sensors where numbering introduces a gap whichJasper Lievisse Adriaanse
falsely triggered the added panic. revert the panic for now while a better solution is being worked on as reported by Bjorn Ketelaars on misc@ via jsing@
2014-11-08No need to keep the temporary mappings for the MMU pages for the resumeMike Larkin
time page table after we are done creating it in the resuming kernel. Note the resume time stack has to remain mapped as it is used during the initial phase of the hibernate unpack while the original page table is still being used.
2014-11-08If resuming from sleep (zzz/ZZZ) and the lid is still closed, go back toMike Larkin
sleep. This prevents accidental lid flex or slight opening in a backpack from waking the machine up and leaving it resumed (powered on). ok deraadt@
2014-11-08Kill #if 0'ed code for boot args that we don't care about on amd64.Philip Guenther
ok deraadt@ mlarkin@ kettenis@
2014-11-07Wrong comment - NX is handled later (for now), not in locore. No functionalMike Larkin
change. noticed by deraadt@
2014-11-07Enable xhci(4). Most of the features are here, USB 1.x devices only workMartin Pieuchot
if they are connected to the root hub and isochronous transfers are not supported for the moment. Let me know if your controller/device do not work. In this case attach a dmesg of a kernel build with XHCI_DEBUG. ok deraadt@
2014-11-07Document how the Slot States transitions described in section 4.5.3 ofMartin Pieuchot
xHCI specification r1.1 are handled in this implementation. This is a bit tricky because our bus interface is pipe-oriented. Hopefully this will help other people squash the remaining bugs in this area.
2014-11-07Prevent a race when submitting a command by using the appropriate splMartin Pieuchot
protection. Fix a panic reported by Patrick Wildt.
2014-11-07Give Super-Speed hubs a chance to route USB 3.0 transfers.Martin Pieuchot
Without knowing their depth, hubs couldn't find the bits correspdonding to their downstream port in the route-string. Now USB 3.0 devices just work(tm) anywhere in your hub chain. This commit would not have been possible without the cheese provided by miod@ at #HAMoween.
2014-11-07Map .rodata and the KVA range corresponding to the ISA hole as NX on amd64Mike Larkin
processors that support NX. Tested on amd64 machines with and without NX capability. Additional NX ranges can be added as desired to the table defined by this diff. ok deraadt@
2014-11-06printf debugging worked! figured out the bug (in free()) just afterTed Unangst
committing the printfs. revert.
2014-11-06need to calculate correct size before doing the free checks. the biggestTed Unangst
malloc bucket isn't precise, it can have anything in it. should fix recent panics. sorry for inconvenience. ok deraadt millert
2014-11-06Make better use of the value of psectionslen instead of recomputingTodd C. Miller
it multiple times. Also remove an unused variable. OK deraadt@ tedu@
2014-11-06resort to printf debugging hints until we can figure this out. ok deraadtTed Unangst
2014-11-06fix mac address selection with unnumbered carpdevsHenning Brauer
IP-traffic over a carp interface with the underlaying carpdev being unnumbered (in the numbered case usually the ifp is the carpdev to begin with) went out with the carpdev's mac address istead of the carp interface's one due to a carp hack in ether_output exchanging the carp ifp for its carpdev ones one. move the source mac selection to before that. fixes unnumbered carp use in environments with strict mac address regimes like some exchange points. issue found by your's truly the hard way. ok mpi dlg
2014-11-06Let's just call a rdomain a rdomain.Martin Pieuchot
ok dlg@
2014-11-06mix the rtable into the hash for tcp sequence number generation.David Gwynne
ok tedu@ claudio@
2014-11-06Cleanup whitespace and add 5 series comments.Doug Hogan
ok mlarkin@
2014-11-06Add the required includes for the conditional parts ofJonathan Gray
struct vga_pci_softc in vga_pcivar.h Original diff from guenther@ changed to incorporate feedback from kettenis@ and myself.
2014-11-06Remove unneeded netinet6/ip6_divert.h include.Lawrence Teo
ok bluhm@ dlg@ florian@ mpi@
2014-11-06let ramdisks compileTheo de Raadt
2014-11-05need to move lock up to prevent more than one malloc. ok guentherTed Unangst
2014-11-05don't use loop variable (i) for not loop things. use a new var.Ted Unangst
2014-11-05use memname to print string of type. stolen from deraadtTed Unangst
2014-11-05also print type when free size is wrongTed Unangst
2014-11-05Implement yet another workaround for the k1 em(4)'s. This time forClaudio Jeker
the i218 which is used in many modern laptops like the X240. This seems to stop the watchdog timeouts triggered by heavy traffic on such systems. Tested by myself, phessler, blambert and Donovan Watteau OK deraadt, brad
2014-11-05Did you ever wonder why loopback's ifas have a destination address?Martin Pieuchot
It is of course not to make your life more complicated when you are dealing with ifa_ifwithaddr()! It was to reuse the point-to-point code to add a route to 127.0.0.1. But now we have local routes and we don't need this hack anymore :) ok mikeb@ as part of a larger diff.