summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-04-09Fix m_freem(NULL) in error case.Christopher Zimmermann
OK claudio@
2014-04-09apparently NVM is a type of mass storage nowDavid Gwynne
2014-04-09syncTheo de Raadt
2014-04-09I have seen a Hitachi ISP2100 in the wild, and next time do not wantTheo de Raadt
to scan for the product ID again.
2014-04-09remove an abstraction that just wraps a straight malloc on attach forDavid Gwynne
the sc_devs array.
2014-04-09some mild knfDavid Gwynne
2014-04-08add IO_NOCACHE flag to vop_write arguments, which in turn sets B_NOCACHEBob Beck
on the written buffers. Use the flag for writes from the page daemon to ensure that we free buffers written out by the page daemon rather than caching them. ok kettenis@
2014-04-08Fewer <uvm/uvm.h>!Martin Pieuchot
2014-04-08Less <uvm/uvm.h>Martin Pieuchot
2014-04-08No need for <uvm/uvm_page.h>Martin Pieuchot
2014-04-08Revert 1.27 and 1.28, but make sure to initialize the pxd_unit field correctlyMiod Vallat
in pppxopen(). ok dlg@ yasuoka@
2014-04-08Add rgephy(4) for axe(4) and axen(4).Brad Smith
2014-04-07Add MSI support for xhci(4). Also add a quirk for some of the FrescoBrad Smith
Logic controllers, taken from the Linux kernel. ok mpi@
2014-04-07Enable upd(4) on archs where uhidev(4) is present, requested by mpi@.andre
2014-04-07- Remove a enumerator for supported sensors, makes better usage of our usb api;andre
- Allocate/enable sensors wich match both: the static usage table of supported usage IDs and the usages supported by the device; - Do not attach when no sensors can be allocated; - Makes device querying smarter: query the device just once for values stored in the same reportid reply payload. - Use sensor_status. ok mpi@
2014-04-07In udp_output() also use the correct source address in case of an unbound ↵Christopher Zimmermann
socket. OK claudio@
2014-04-07increase MSGBUFSIZETheo de Raadt
2014-04-07Use the `use_polling' hack to make sure usb_delay_ms() will notMartin Pieuchot
call tsleep(9) on resume. deraadt@ pointed that this not needed for powerdown since `cold' is set. Another approach would be to call delay() directly in the reset functions, but let stay coherent with the other HC drivers.
2014-04-07Retire kernel support for SO_DONTROUTE, this time without breakingMartin Pieuchot
localhost connections. The plan is to always use the routing table for addresses and routes resolutions, so there is no future for an option that wants to bypass it. This option has never been implemented for IPv6 anyway, so let's just remove the IPv4 bits that you weren't aware of. Tested a least by lteo@, guenther@ and chrisz@, ok mikeb@, benno@
2014-04-07regenBrad Smith
2014-04-07Add Fresco Logic FL1400.Brad Smith
2014-04-07When iterating through fabric ports, start at our own port ID. It doesn'tJonathan Matthew
matter if we don't see ourselves, and if we pick another starting point, the first port we see might disappear half way through (I have seen this happen), which makes it more complicated to identify when we're back at the start.
2014-04-07Add axen(4) wherever axe(4) is.Brad Smith
ok mpi@ yuo@
2014-04-07reduce the diff to linux for drm pci vid/pid testsJonathan Gray
ok kettenis@
2014-04-07ISP2322 chips need a different firmware image to other 2300s, so until weJonathan Matthew
add that, don't try loading firmware for them.
2014-04-06Rework the command polling loop in a similar fashion as was done for qla(4).Mark Kettenis
2014-04-06Clear the interrupt before reading the response queue pointer register inMark Kettenis
the interrupt handler as well. See rev 1.12.
2014-04-06get rid of expensive temporary connect in udp_output().Christopher Zimmermann
Also fixes a possible memory leak where m doesn't get freed in bail case. "lets do it like this" claudio@
2014-04-06factor out source and destination address mangling from in_pcbconnect()Christopher Zimmermann
for later reuse in udp_output(). "Apart from that OK" claudio@
2014-04-06Remove redundant call to in{,6}_pcbbind() from tcp PRU_CONNECT.Christopher Zimmermann
Make sure that in_pcbbind() is called from in_pcbconnect() by KASSERTing that local port == 0 implies an unspecified local address. OK claudio@
2014-04-05Fix logic error and prevent theoretical infinite loop in the worst case scenarioMiod Vallat
in uvm_pmr_rootupdate(). Issue spotted and fix provided by Kieran Devlin.
2014-04-05enable hds, and give up on ispTheo de Raadt
2014-04-05qla and qle are working well enough, so just delete use of isp. don'tTheo de Raadt
even comment the lines.
2014-04-05Be sure to release rwlock when returning error in pppxclose().Miod Vallat
2014-04-05set adapter buswidth according to the number of loop ids supported by theJonathan Matthew
firmware (2048 for 2k login firmware, 256 otherwise) pointed out by deraadt@, ok dlg@
2014-04-04Second step of the R4000 EOP errata WAR: when pmap invalidates a page whichMiod Vallat
is currently being covered by the wired TLB entries, flush them, so that, if the process' pc is still running in a vulnerable page, the WAR will reapply immediately and fault the next page.
2014-04-04If the PDC_COPROC call fails, and we are running on a PA 1.1 system, assumeMiod Vallat
the usual 1.1 coprocessor mask, instead of using zero and having every userland process dying with signal 4. The circumstances under which this call fails are unclear and could be tied to specific PROM version (I have tried overzealous stack alignment and other tricks, to no avail). Interestingly enough, the 715/75 system which hits this problem, only triggers it when booting from disk, and never when booting from network. This diff is an ugly bandaid until the problem is better understood. Or maybe it is not worth investigating, seeing that Linux hardcodes the coprocessor mask and never issues PDC_COPROC calls; I wonder what HP/UX does. In my tree for over 18 months; "Looks like a nice hack" deraadt@ 715/75 system provided by Sebastiaan Indesteege, thanks!
2014-04-04It seems that, when the on-board USB controller is an ALI M5237 USB and itsMiod Vallat
interrupt is routed through the ISA PIC, the interrupt is edge-triggered (despite PCI interrupts being level-triggered). Attempt to recognize this and correctly setup the PIC ELCR register to `edge'. This allows ES40 systems (and maybe others, but apparently all the other alpha systems with on-board M5237 correctly route its interrupt as a PCI interrupt) to reliably boot multiuser without suffering from USB interrupt storms (this is especially noticeable when using glass console which, unlike serial console, does not trigger other interrupts to give other devices a chance to run). However, this is not enough yet to allow for proper USB device usage; your mileage may vary. Tested by bluhm@ and me. Putting it early in the release cycle so that regressions on other systems, if any, can hopefully get noticed soon enough.
2014-04-04Rework the command polling loop so it can handle multiple responses in a singleJonathan Matthew
interrupt. With this we can talk to Hitachi disk arrays, which sometimes return so much sense data that a status continuation response is generated in addition to the normal status response. tested by deraadt@
2014-04-04Paul B. Henson discovered it was possible to hit a kernelJonathan Gray
panic with pppx when using npppd with multiple pppx devices. This is triggered when pppxclose() is called on device that hasn't been opened causing a NULL dereference and panic. Avoid this by returning ENXIO if the device has not been opened. ok yasuoka@
2014-04-04let device_register match scsi devices to anything hanging off aDavid Gwynne
scsibus. this lets path drivers get matched instead of just sd(4). ask mpath to maybe swap a path with a disk via mpath. ok deraadt@
2014-04-03bcopy -> memcpyTed Unangst
2014-04-03regenMiod Vallat
2014-04-03XIRING Ximax CDC adapterMiod Vallat
2014-04-03add a uvm_yield function and use it in the reaper path to prevent theTed Unangst
reaper from hogging the cpu. it will do the kernel lock twiddle trick to allow other CPUs a chance to run, and also checks if the reaper has been running for an entire timeslice and should be preempted. ok deraadt
2014-04-03if it's ok to wait, it must also be ok to give the kernel lock. do so.Ted Unangst
(then immediately reacquire it). this has the effect of giving interrupts on other CPUs to a chance to run and reduces latency in many cases. ok deraadt
2014-04-03uvm_fault() will try to fault neighbouring pages for the MADV_NORMAL case,Miod Vallat
which is the default, unless the fault call is explicitly used to wire a given page. The amount of pages being faulted in was borrowed from the FreeBSD VM code, about 15 years ago, at a time FreeBSD was only reliably running on 4KB page size systems. It is questionable whether faulting the same amount of pages, on platforms where the page size is larger, is a good idea, as it may cause too much I/O. Add an uvmfault_init() routine, which will compute the proper number of pages at runtime, depending upon the actual page size, and attempting to fault in the same overall size the previous code would have done with 4KB pages. ok tedu@
2014-04-03Add the missing 6322 PCI id.Brad Smith
ok jmatthew@
2014-04-03Do not keep the EOP check bits in PGF_PRESERVE.Miod Vallat
2014-04-03fix $OpenBSD$, noticed by philipBob Beck