summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2008-11-26Add a missing device. Found by Alex Brodsky <abrodsky@acs.winnipeg.ca>.Marc Balmer
ok deraadt
2008-11-26Use bus_dmamap_load_mbuf instead of loading mbuf fragments ourselves, andMark Kettenis
use m_defrag to linearize packets that don't fit in 16 segments. ok claudio@
2008-11-26rework the filling of the rx ring. this switches us to having the clusterDavid Gwynne
allocation limited by per ifp statistics, ie, we're not guaranteed to have mbufs in every slot on the rx ring. instead of filling the ring with 256 mbufs all the time (about 512KB of kva) when em is brought up, we give it 4. as demand grows we increase the number of mbufs allowed on the ring. i will bet most users wont go above 50ish mbufs, so we're saving them 400KB of kva. tested by many, including one on sparc64 ok claudio@ deraadt@ henning@ krw@
2008-11-26Zero the surface when we free them. stops some state problems which causeOwain Ainsworth
corruption on second X start on some machines. This driver is really quite dumb.
2008-11-25Add generic sr_scsi_done function that does the spl danceMarco Peereboom
2008-11-25Halt scanning by returning proper sense for illegal LUN.Marco Peereboom
2008-11-25more sizeof->nitemsDamien Bergamini
2008-11-25use shiny new m_defrag() and nitems() instead of rolling our own.Damien Bergamini
2008-11-25move some generic PCIe register flags used in wpi(4) and iwn(4)Damien Bergamini
into common pcireg.h ok deraadt@, kettenis@, dlg@
2008-11-25fixes to build; thanks ratchov@Todd T. Fries
2008-11-25dontqueue is set but never used. garbage collect it.Kenneth R Westerback
2008-11-25Another bunch of TRY_AGAIN_LATER -> NO_CCB when no I/O could be started.Kenneth R Westerback
"looks sane to me" marco@
2008-11-25Unbreak the treeOwain Ainsworth
*sigh*
2008-11-25fix: add output mixer classAlexandre Ratchov
2008-11-25set parameters to native ones; don't setup emulation for nowAlexandre Ratchov
to ease debugging ok uwe
2008-11-25add a shitload of bus_dmamap_sync() calls, even though they are no-opsDamien Bergamini
on i386 and amd64 (we do not implement bounce buffers) where this hardware is likely to be found. this is good programming practice.
2008-11-25Don't try and enable the vblank handler if irqs are disabled.Owain Ainsworth
This is the source of the radeon issues with seizing at X startup. I didn't see this since my test box in coimbra is a pcie amd64 machine running MP. i.e. it has a slightly less shitty interrupt controller.
2008-11-25backout large cluster allocators.David Gwynne
2008-11-25put 9k frames on the jumbo ringDavid Gwynne
2008-11-25spacingTheo de Raadt
2008-11-25Switch wb(4) from the insane ext buffer usage to a very simple m_devget()Claudio Jeker
call to copy the packet from the RX DMA ring to build a mbuf (it almost already did that but way more complex). OK brad@ dlg@ thib@ Tested by Tero Koskinen tero.koskinen (at) iki (dot) fi on a wb(4)
2008-11-25- add a quirk for the terratec uaudio device to stop uhidev(4)Jasper Lievisse Adriaanse
from attaching with a hint from mglocker@
2008-11-25regenJasper Lievisse Adriaanse
2008-11-25- add vender id for terratecJasper Lievisse Adriaanse
- add product id for their uaudio stick
2008-11-25upgt(4) doesn't use amrr, remove useless header net80211/ieee80211_amrr.hKevin Lo
ok mglocker@
2008-11-24add BTDEV_NONEUwe Stuehler
2008-11-24The Exsys EX-1372 uses a 8x clock.Mark Kettenis
ok deraadt@
2008-11-24More sanitizing for wrong bDefaultFrameIndex values. Fixes a panicMarcus Glocker
at attach time for devices which set bDefaultFrameIndex larger than the existing frame descriptors. Spotted, tested, and OK yuo@
2008-11-24Work around the stupidity of radeondrm by double checking that things areOwain Ainsworth
running before we play with things. Lots more cleanup needed, but now you can shut X without it crashing.
2008-11-24Import btsco(4) from NetBSD to work on itUwe Stuehler
2008-11-24Make sure we do not DRM_UNLOCK() twice.David Hill
ok oga@
2008-11-24no 9k cluster allocator yet, switch back to 4k.David Gwynne
2008-11-24extra decl not needed; spotted by djmTheo de Raadt
2008-11-24switch from 4k to 9k frames on the jumbo ring now the cluster allocator isDavid Gwynne
able to give them to me.
2008-11-24destatic radeondrm almost completely. I'm sick of ddb lying to me.Owain Ainsworth
shaves a few bytes, but that's just gravy.
2008-11-24some whitespace fixes in em_rxeofDavid Gwynne
2008-11-24back out the buf_priv change. it made some incorrect assumptions andOwain Ainsworth
broke radeondrm. Fixing it is ugly, so another change will have to be made later. I /hate/ the drm_buf api, it will die as soon as it can.
2008-11-24allow entropy to be queued before randomattach() is calledTheo de Raadt
worked on with djm
2008-11-24enable the use of the second rx ring. populate it with 4k frames until theDavid Gwynne
9k backend allocator is available. vic is the first driver to properly support "jumbo" frames. this is the model every other driver should follow.
2008-11-24use workq instead of crafting our own kthread, since the tasks being doneTheo de Raadt
are fairly small. tested by a few, and kettenis says he will test it sooner if it is commited...
2008-11-24change a device descriptor get logic during the enumeration process.Yojiro Uo
Some device could not handle the device descriptor request with short bLength (less than the device descriptor size(18 byte)). To handle such kind of devices, add complemental request loop to current logic. (memo: and I also found a device which can not response to any device descriptor request. It always returns only 8 byte-length head of the descriptor for 1st query. This is the reason why the device descriptor loop of this usb subsystem start with 8-byte length query.)
2008-11-24switch from using MCLGET to MCLGETI for clusters going onto the rx ring.David Gwynne
this causes vic to start up with 4 mbufs on the ring, and the allocator will let it increase the number of rx mbufs as usage demands. testing shows that i need only 20 to 30 mbufs on the rx ring to cope with full speed io. we used to always put 100 on the ring, so we're now saving 140k of kernerl virtual address space (70 * MCLBYTES). this relies on the previous commit that copes with failures of mbuf allocation in the rx path. similar changes must be made to all the other drivers. i'll happily review diffs people send in. SUBTLE HINTS ARE COMING YOUR WAY.
2008-11-24drop the requirement that the rx ring has to be filled with mbufs. we onlyDavid Gwynne
fill a slot when the mbuf allocator gives us an mbuf cluster.
2008-11-24Fixup wakeup pointers. interrupts work properly again.Owain Ainsworth
2008-11-24Don't unmap REGISTERS maps, we don't map them anymore.Owain Ainsworth
2008-11-24- Add two new ioctls to gpio(4), GPIOATTACH and GPIODETACH, to allow to attachMarc Balmer
and detach devices on a gpiobus at runtime. The offset and mask locators in kernel config files can still be used for static configuration, so this does not break existing custome kernel configs. - Have gpioow(4) unmap the pins it used from the gpiobus during detach Changes to gpioctl(8) will be a separate committ. ok uwe
2008-11-24Seed the random pool with the dmesg buffer at randomattach().Marco Pfatschbacher
This lets early arc4random() calls to return at least non-uniqe values on different machines. The dmesg will have different MAC addresses, etc. Also ignore the entropy count in arc4_stir, and just take what's there. sizeof(struct timeval) should be sizof(struct timespec) This was forgotten when we switched to nanotime. With help from mickey. OK djm@, deraadt@
2008-11-24die die dieTheo de Raadt
2008-11-24Respond to incoming connections, not only after we initiated the first one.Uwe Stuehler
Someone must have fumbled with this line by accident while doing the original port of the driver.
2008-11-24don't free extent on lastclose, it's static data now.Owain Ainsworth