summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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@
2009-11-09Fix error message.Mark Kettenis
2009-11-09s/MPLS_DEBUG/VETHER_DEBUGMarco Pfatschbacher
OK deraadt
2009-11-09Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tNicholas Marriott
supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt
2009-11-09Make sure we correctly return failure in l1_serial_ppp_read() when a readMiod Vallat
fails after an escape character, and while there put explicit casts to l1_command_build() variadic arguments.
2009-11-09Only invoke the L1 code if IP35.Miod Vallat
2009-11-09Link state change interrupt was not generated due to a missing bit inDavid Gwynne
the MAC event register. fix from atte dot peltomaki at iki dot fi tested by me on 5708 and 5709
2009-11-09syncStuart Henderson
2009-11-09- remove wrongly-sorted duplicate entriesStuart Henderson
- add some unknown Intel devices in dmeslog from infinst911_autol.zip ok jsg@
2009-11-09vether(4) is a virtual ethernet device driver which can be usedTheo de Raadt
so that a bridge-etherip-tunnel host can join into the bridge itself. It is ridiculous that this capability was missing from our network stack portfolio, considering we have bgp and ospf daemons... discussed at length with claudio
2009-11-08Add code to send L1 commands and parse command results; use it to add a wayMiod Vallat
for IP35 systems with IOC3 onboard Ethernet to get their Ethernet address since it's no longer stored as an owmac(4) device on the IOC3 device itself.