summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-11-16Fix array access found by parfait and switch to nitems while here.Jonathan Gray
ok deraadt@
2009-11-15athn works on sparc64Theo de Raadt
2009-11-15Move ciss(4) to NO_CCB. Add some extra paranoia by always testingKenneth R Westerback
the results of attempting to get a ccb. Eliminates manual reservation of ccb's for bioctl and sensors. Tested by johan@ and okan@. Eyes from brad@, dlg@ and marco@. tech@ did its Thomas More thing.
2009-11-15AR9287 uses GPIO pin 8 for LED, not 1.Damien Bergamini
Turn link LED on while associated.
2009-11-15Fix memory leak in error case. Found by Parfait.Joel Sing
ok marco@ deraadt@
2009-11-15fix athn_stop_tx_dma().Damien Bergamini
2009-11-15athn(4) has a future in here.Theo de Raadt
2009-11-14translate a comment from french to english.Damien Bergamini
no binary change.
2009-11-14make ramdisks compileTheo de Raadt
2009-11-14athn(4), a driver for Atheros 802.11a/g/n devices.Damien Bergamini
written from scratch based on the vendor driver for Linux (ath9k). AR9285 and AR9287 parts are 100% untested. only basic functionnalities are enabled for now. committed over an AR9281. "commit" deraadt
2009-11-13Remove an unnecessary assignment. From NetBSD via Brad.Stuart Henderson
2009-11-13Added mapping for failure flags for read/write mode (not yet used).Jordan Hargrave
2009-11-13>15 year old buffer-read-1-byte-too-far in clrbits() [code I wrote, yeah]Theo de Raadt
with a subtle change to make it more clear (and more cache friendly) netbsd pr 42312, found by tlambert@apple.com ok miod
2009-11-13Extend the protosw pr_ctlinput function to include the rdomain. This isClaudio Jeker
needed so that the route and inp lookups done in TCP and UDP know where to look. Additionally in_pcbnotifyall() and tcp_respond() got a rdomain argument as well for similar reasons. With this tcp seems to be now fully rdomain save and no longer leaks single packets into the main domain. Looks good markus@, henning@
2009-11-13do not need to pad up the uhub allocation anymore, from miodTheo de Raadt
2009-11-13Use TAILQ_ macros instead of handrolling them self. Tested by myself.Claudio Jeker
2009-11-13Packets generated by ip_fragment() need to inherit the rdomain from theClaudio Jeker
original packet or they will trigger the diagnostic check in the interface output routines. OK jsg@
2009-11-13Initialize uninititialized variable.Jordan Hargrave
Not an issue as it does get initialized correctly before use, but reduces warning.
2009-11-13sizeof -> nitems, found by parfait; ok dlgTheo de Raadt
2009-11-12Avoid using the trick of malloc'ing more than a struct to grow the arrayTheo de Raadt
of the last element. Bad technique. Use a pointer to the array. The author (or later people) will often not pay attention to the consequences of structure padding & alignment issues when they add new fields to the base structure, and there will be fireworks. tested by jasper, too
2009-11-12More unused fields in struct sys_rec.Miod Vallat
2009-11-12typoMiod Vallat
2009-11-12Oops, I can't even spell `spurious' correctly.Miod Vallat
2009-11-12Only read mace interrupt registers once in the interrupt handler; and fixMiod Vallat
the spurious interrupt report logic.
2009-11-12Move the interrupt makemasks() code to the interrupt template; no functionalMiod Vallat
change.
2009-11-12memory leak found by parfait in an ioctl path, ok damien jsgTheo de Raadt
2009-11-12Use the number of products in the terminating condition when iteratingJonathan Gray
through the products array not the number of vendors. found by parfait ok deraadt@ miod@ mglocker@
2009-11-12be paranoid in case the action array changes size (again, grr)Theo de Raadt
ok dlg
2009-11-12count packets; from claudioTheo de Raadt
2009-11-12revert midlayer back to it was before i put my big rewrite in. this isDavid Gwynne
causing a weird problems on an alpha and also appears responsible for isp(4) weirdness i havent had a chance to examine yet. sigh, this makes me sad.
2009-11-12oops my slow editor conspired against meTheo de Raadt
2009-11-12if the table got messed up, early loop termination is not gauranteed, andTheo de Raadt
subsequent code will be out of bounds; unlikely situation. found by parfait ok weingart
2009-11-11fix memory leak found by parfaitJacob Meuser
2009-11-11fixup of locking issues with sdmmc, which were causingJasper Lievisse Adriaanse
"locking against myself" panics as found the hard way by several. diff by blamert@ with input from oga@, committing bret's behalf. ok todd@
2009-11-11memory leaks found by parfait; ok ogaTheo de Raadt
2009-11-11add a icache flush which appears to make the machines even more stableTheo de Raadt
(no crashes in nearly forever) ok kettenis
2009-11-11Let ioc(4) pass the information whether it is an onboard device or not, to itsMiod Vallat
subdevices; use this on iockbc to only perform the fuel workaround on the onboard ioc.
2009-11-11Perform a bit more kbc initialization, instead of relying upon the prom toMiod Vallat
do this for us; PS/2 ports on CADduo boards attach keyboard and mouse now. ok jsing@
2009-11-11It turns out PCI IOC3 card which embed both the Ethernet controller and theMiod Vallat
superio chip interrupt on two different pins (yet do not advertize themselves as a multi-function device, of course). So, on one hand, this makes the ioc attachment code simpler, because it simply needs to map interrupt pins A and B, and another hand, this moves all the interrupt knowledge to the PCI bridge driver, since routing of pin B differs whether the device is the onboard IOC3 chip (and able to use any of the 8 bridge interrupt sources...) or on a PCI board (with pin mapping sane, since controlled by the bridge). This makes superio interrupts on CADduo boards work. Tested to cause no regressions on Origin 200, Octane and Fuel.
2009-11-11Fix some memory leaks in error cases.Jonathan Gray
Found by parfait. ok henning@
2009-11-11Pass the structure by reference. pointed out and ok by miod@Federico G. Schwindt
2009-11-10Use buffered fwrite(3) to build the udl Huffman table,Marco Pfatschbacher
rather than doing 131074 write(2)s. OK mglocker, deraadt.
2009-11-10Handle LOMlite2 in an interrupt-driven way; avoids using delay(9) once theMark Kettenis
machine is up and running.
2009-11-10Add iockbc(4), a driver for the PS/2 keyboard and mouse interface found onJoel Sing
ioc(4) devices. Joint work with miod@. Committed from the glass console on an SGI Fuel.
2009-11-10Fix indentation.Joel Sing
2009-11-10remove a stale comment from a previous revision of the diff iDavid Gwynne
committed. i hate comments. i read and change the code and then forget about the comments. pointed out by krw@
2009-11-10dont compare devids when we dont have a devid to compare with.David Gwynne
DEVID_CMP now evaluates to false if the devids are NULL. some stupid devices dont understand luns, so we have code that detects when the device at lun 0 also appears at luns 1, 2, 3, and so on. this check is short circuited if the devices report different devids. no devids isnt the same as different devids though. found by okan@ on ciss (which currently ignores luns). tested by krw@ marco@ johan@ okan@ ok krw@ marco@
2009-11-10fix the NO_CCB handling i broke when working on simplifying the midlayer.David Gwynne
marco@ discovered my rewrite retried commands rejected by an adapter from a timeout, which was trivially starved by normal io going to disks. this diff allows an xs to be marked as XS_NO_CCB, which will cause it to be returned to the device driver to be retried as part of the normal io queue. tested by krw@ marco@ johan@ ok krw@ marco@
2009-11-10backout the backout marco did of my code because of the NO_CCB breakage.David Gwynne
the fix for the NO_CCB breakage will follow shortly. tested by krw@ marco@ johan@ ok krw@ marco@
2009-11-09bump pfsync protocol versionDavid Gwynne
requested by deraadt@