summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-10-23enable event handling on sas hbas and ignore unhandled events. this turnsDavid Gwynne
on sas hotplug. you can add and remove drives and the kernel will handle it now.
2009-10-23Update links to 82802 datasheets.Jonathan Gray
2009-10-23if you're attempting to detach multiple devices (eg, many targets,David Gwynne
many luns, or the entire bus), dont report ENXIO as an error to the caller. this broke autoconf when it tried to forcefully remove a bus such as umass and it thought there was a failure. this introduces a way for scsi hbas to call activate/deactivate on a device based on its target/lun address via a call to scsi_activate(). they can then schedule the actual detach/attach in a thread later via scsi_req_probe/detach. the mpi changes tweak the sas event handling code to use these apis to properly handle attaches and detaches of disks. event handling is still disabled till i can make it less chatty. umass breakage reported by form@
2009-10-23describe some more event data.David Gwynne
2009-10-22Completely overhaul interrupt handling on sgi. Cpu state now only stores aMiod Vallat
logical IPL level, and per-platform (IP27/IP30/IP32) code will from the necessary hardware mask registers. This allows the use of more than one interrupt mask register. Also, the generic (platform independent) interrupt code shrinks a lot, and the actual interrupt handler chains and masking information is now per-platform private data. Interrupt dispatching is generated from a template; more routines will be added to the template to reduce platform-specific changes and share as much code as possible. Tested on IP27, IP30, IP32 and IP35.
2009-10-22syncStuart Henderson
2009-10-22Name change; SB900 -> Hudson-2.Stuart Henderson
From an ATI commit to various Linux drivers, via Brad.
2009-10-22With the splx() changes, it is no longer necessary to remember which interruptMiod Vallat
sources were masked and saved in ci_ipending, as splx() will unmask what needs to be unmasked anyway. ci_ipending only now needs to store pending soft interrupts, so rename it to ci_softpending.
2009-10-22Implement bus_space_vaddr() for macepcibr.Miod Vallat
2009-10-22Make macebus_intr_disestablish() signature sane, and update its caller.Miod Vallat
Still unimplemented for now.
2009-10-22The recent cleanups make blatantly visible that the pending_int handlerMiod Vallat
does almost exactly what splx() is doing if ipending is zero, and triggers soft interrupts as well. So don't bother checking for ipending in splx, and always invoke pending_int, which gets renamed as splx_handler for consistency.
2009-10-22unifdef -DIMASK_EXTERNAL to the mips code. Support for interrupt masking atMiod Vallat
coprocessor 0 sr level might come back in the future if hardware support requires it, but at the moment it's getting in the way of larger changes. ``In the Attic, noone can hear you scream''
2009-10-22Replace intrmask_t with uint32_t. This types only describes interrupt masksMiod Vallat
in the coprocessor 0 status register (coupled with ICR on rm7k/rm9k), and may be completely alien to real hardware interrupt masks, so don't make things unnecessary confusing.
2009-10-22Introduce a logical xbpci(4) device between xbridge and pci, since more thanMiod Vallat
one pci bus can attach to an xbridge (if PIC) and both being `bus 0' would make dmesg confusing. While there, seize the opportunity of this new dmesg line to display the bus mode (PCI or PCIX) and speed.
2009-10-22Change the #define controlling use of RM7k/RM9k coprocessor 0 ICR toMiod Vallat
RM7000_ICR, instead of IMASK_EXTERNAL, since they are actually different concepts. This code remains disabled since RM7000_ICR is not defined anywhere at the moment.
2009-10-22Correctly initialize the second HUB PI interrupt and calias registers onMiod Vallat
IP35 systems.
2009-10-22Remove a never hit debug panic I commited by accident sometime ago.Miod Vallat
2009-10-22Only play with RM7k coprocessor 0 ICR if IMASK_EXTERNAL is not defined.Miod Vallat
Paves the way for instrusive upcoming changes.
2009-10-22Do not bother invoking hw_setintrmask() in splinit(), spl0() will do it forMiod Vallat
us via splx().
2009-10-22At the end of a context switch and in proc_trampoline(), instead of doing theMiod Vallat
`restore cpl and invoke hw_setintrmask' slippery dance, just invoke splx().
2009-10-22Crank VM_MIN_ADDRESS to prevent userland from being able to mmap zero,Miod Vallat
forgotten long ago and lingering in one of my trees since then...
2009-10-22add Option GT HSUPA 380E, as found in the Acer AspireOne AOA150-BG model.Stuart Henderson
ok mpf@, jsg@
2009-10-22regenStuart Henderson
2009-10-22add Option GT HSUPA 380E, as found in the Acer AspireOne AOA150-BG model. ok ↵Stuart Henderson
mpf@, jsg@
2009-10-22devices below the scsibus should all be detached via scsi_detach_lun.David Gwynne
scsibusdetach wasnt doign it properly, so we would be leaking on detach in some cases. now, with the introduction of mpath, the scsi_link structures can represent a path to a mpath node as well as normal devices. this intercepts the device activate entrypoints and sends them to mpath if it it in use rather than assuming a device is always there. the scsibusdetach change ensures that detach always ends up handling the mpath node case too. hotplug bus functionality (eg, usb) tested by form@
2009-10-22gc unused globalDavid Gwynne
2009-10-21Replace IP32 hw_setintrmask() .S routine with a two line C routine.Miod Vallat
2009-10-21use _lto8b to calculate 64 bit address. Fixes issue ckuethe saw at 2TBMarco Peereboom
boundary. miod "go for it."
2009-10-21In atoi(), only check for a base indication iff the string starts with `0'Miod Vallat
and no base has been enforced. Otherwise the leading number of the mec(4) 08:00:69:xx:yy:zz Ethernet address would be interpreted as octal base, followed by an out-of-range `8' which is now rejected but incorrectly skipped; noticed by maja@
2009-10-20recognize the VIA VT1702 codecKevin Lo
ok jakemsr@
2009-10-20"active" is an unused member of the scsi_link structure. i couldnt find anyDavid Gwynne
uses of it in our tree. ok krw@ deraadt@
2009-10-19antsyJonathan Gray
no binary change apart from nfsm_reqhead() which is clearly correct. ok thib@
2009-10-19Correct a target name so that we don't rebuild vers.o (and thenPhilip Guenthe
bsd) unless some other object has changed. Rebuild and reinstall in /usr/src/usr.sbin/config/ after updating! "I like it" deraadt@
2009-10-18Match on Intel 3400 SATA.Jonathan Gray
Tested by bwaichu@yahoo.com.
2009-10-17Another MCP77 controller that while matched already by class,Jonathan Gray
needs to be told to use the nvidia specific quirks to detect attached devices. From and tested by minusf@obiit.org
2009-10-17use sc->sk_bsize in the unmap call too; ok theoMartynas Venckus
2009-10-17Allow us to accept gratuitous ARP requests in cases where theMarco Pfatschbacher
link-route points over the carp interface. (IP-less carpdev) The descision whether to drop an ARP query is now expressed with a goto out; rather than a second check later, which prevented the carpdev case to work. Also add some comments to make in_arpinput() easier to understand. OK henning, markus.
2009-10-17remove bogus quirk. these devices do not lie about their type, butJacob Meuser
they do have bSynchAddress set to 0 in their endpoint descriptor. uaudio(4) used to not handle that correctly, but now does. positive response from krw, deraadt, ratchov
2009-10-17Match on MCP77 SATA.Jonathan Gray
From and tested by minusf@obiit.org
2009-10-17regenJonathan Gray
2009-10-17Correct one of the MCP77 SATA ids that was incorrectly flaggedJonathan Gray
as being AHCI based on pcidump information from minusf@obiit.org I'm sure there are more, but who knows which they are without docs.
2009-10-17regenJonathan Gray
2009-10-17Add a bunch of devices from submitted dmesgs.Jonathan Gray
2009-10-16cancel the timeout upon disabling profiling / virtual timer; soMartynas Venckus
that the timeout doesn't happen if setitimer is called between the profiling / virtual timer expires and the timeout is scheduled. firefox triggered this Profiling timer expired problem when in uthread execve signal was being delivered after timer has already been disabled; as reported on ports@ recently. special thanks to kettenis@, kurt@, guenther@. agreed by kettenis@, tedu@. ok guenther@. reminded & ok fgs@. tested by ian@.
2009-10-16Added argument for xconvert for length conversionJordan Hargrave
2009-10-16Honour serial console speed on O2 too.Miod Vallat
2009-10-16Make Octane kernels compile again after recent changes. My bad.Miod Vallat
2009-10-16Get serial console speed from prom, and use it instead of hardcoding 9600 bps,Miod Vallat
on all systems but O2 (to catch up soon). Also use the IOC4 MCR register to figure out the IOC4 clock, instead of checking the widget control register, to be consistent with iof(4).
2009-10-15regenMiod Vallat
2009-10-15Sort widgets by type instead of manufacturer code, add some TIO widgets,Miod Vallat
and add comments explaining why it's very unlikely we'll ever see TIO widgets on mips-based SGI systems (unless someone builds a Mengele-style XIO link).