summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-04-18Apply the same interrupt enable bit fiddling protection as done for le@fwioMiod Vallat
on vax, since interrupts on syscon are edge-triggered. Fixes the onboard lance getting stuck after a while.
2010-04-18Allow for multiple options after a dash (getopt style).Miod Vallat
2010-04-18Fix esym computation logic.Miod Vallat
2010-04-17Work around yet another MC88110 errata, causing cache writebacks upon snoopingMiod Vallat
to sometimes fail, by only using cache operation sequences known not to trigger the errata, at the expense of a small (barely noticeable) performance hit. This workaround is only enabled when compiling a MULTIPROCESSOR kernel, since the problem will not arise when using only one processor. This change, refined over a few months, finally makes GENERIC.MP run stably on 197DP systems. Of course, just writing this is enough to invoke Murphy's law and make it fail again in an even more obscure and rare way...
2010-04-17When the MAC address changes, change the IPv6 link local addressStefan Sperling
accordingly if one is configured and we're not a router. Else IPv6 will leak the old MAC address after "ifconfig $if lladdr random". Based on an initial diff and idea from Theo. OK deraadt, "makes sense" and help by naddy, silent agreement by claudio
2010-04-17- correctly set cpu_model: instead of a vendor + model, set the cpu typeJasper Lievisse Adriaanse
ok miod@
2010-04-17use ifnewlladdr() for trunk lladdr changes, tooTheo de Raadt
ok stsp
2010-04-17split SIOCSIFLLADDR code out into an ifnewlladr() functionTheo de Raadt
ok stsp
2010-04-17syncMark Kettenis
2010-04-17Add Sitecom WL-349 v1.Mark Kettenis
2010-04-17Do not forget to set nasid to the right value when trying to attach spdmem.Miod Vallat
2010-04-17regenMiod Vallat
2010-04-17A few more devices found on sgi hardware.Miod Vallat
2010-04-17ramdisks need to compile; ok dlgTheo de Raadt
2010-04-17use the iopools mutex to protect the semaphore wrapping the openingsDavid Gwynne
runqueue. less is more sometimes.
2010-04-16Fix handling of shared interrupts. Make sure we use the lowest priority ofMark Kettenis
all the interrupt handles when reprioritizing the interrupt on reception, but always run the handler at the desired priority. Make sure ci_handled_intr_level is set correctly. Gets rid of splassert warnings seem on many of the PCIe systems with mpi(4). tested by deraadt@, jbg@
2010-04-16Remove Intel RAID IDs for now. They can be added back when code has beenMark Kettenis
written to detect the Intel RAID metadata format such that we no longer risk overwriting it. If this makes you lose your disks, you'll need to change the controller type from RAID to AHCI in the BIOS to get them back. ok marco@, deraadt@
2010-04-16syncMark Kettenis
2010-04-16Add ID for Sitecom WL-353.Mark Kettenis
2010-04-16Use a somewhat bigger hammer and als flush tlb entries that have the globalMark Kettenis
bit set. While there, add an #ifdef MULTIPROCESSOR to make the diff between amd64 and i386 smaller. ok art@
2010-04-16Additional gtt alignment paranoia:Owain Ainsworth
when we go to pin, additionally check alignment against that required for tiling and unbind/rebind if needed. We shouldn't hit this case, but it is a good to check (would have found the bug in the last commit). tested by mlarkin and matthieu (and myself, of course)
2010-04-16Correct reversed test in set_tiling. this should deal with the fenceOwain Ainsworth
alignment errors that matthieu and mlarkin saw. Tested by both of them, and by me.
2010-04-16Correct some comments and cleanup some whitespace.Owain Ainsworth
2010-04-16paranoia: NULL check before free.Owain Ainsworth
2010-04-16If we fail to idle the chip in leavvt don't disable the interrupt,Owain Ainsworth
retrying that will hurt.
2010-04-16fix types in two error printfs. one of these also had a %d bug no varargOwain Ainsworth
for it, oops.
2010-04-16byteswap the number of blocks on physical disks for bioctl correctly.David Gwynne
makes output sane on sparc64 and other BE archs. found by jason george
2010-04-16whitespace fixDavid Gwynne
2010-04-16fix an fatal flaw with iopools.David Gwynne
an xshandler gets put on a series of lists as it allocates different resources, and uses the same tailq entry on each of these lists as its only supposed to be on one of them at a time. however, it was possible for the xshandler to be added to both at the same time, therefore corrupting the lists and leading to a panic. this diff moves from using separate flags for each queue an xshandler could be on to having a single state variable that shows which one it is on (or not on). this prevents an xshandler on the io runqueue from being added to the openings runqueue, which in turn prevents the list corruption. some operations have been reordered to avoid races and complexity in this little state machine.
2010-04-16fix condition of retry counter.Yojiro Uo
reported by enami-san
2010-04-16catch up to the ttyopen() changesTheo de Raadt
2010-04-16if there is no raid, do not allocate a 0-sized structure for sensorsTheo de Raadt
and then start attaching it with 0 sensors attached ok dlg
2010-04-15two missing splx in error path; ok drahnTheo de Raadt
2010-04-15Add some missing splx()'s (and missing simple_unlock() no-ops) in pmap errorMark Kettenis
paths. Spotted by Mike Belopuhov.
2010-04-15Turn DIO_INHOLE() into a function, returning the next select code to probe at;Miod Vallat
and skip function codes 132 to 135, inclusive, on models 362 and 382 - this is a fake DIO device probably intended to let non-SGC aware (i.e. legacy) HP-UX lowlevel code be able to ``detect'' a frame buffer. This change (as well as letting sgc attach) is untested due to the lack of any 3x2 hardware, but shouldn't make things worse.
2010-04-15Let sgc(4) attach on models 362 and 382 - recent documents uploaded toMiod Vallat
bitsavers confirm the long suspicion the onboard frame buffer on these machines is an SGC device.
2010-04-15Match the interleaving scheme used on dual-PIMM capable IP35 systems (i.e.Miod Vallat
every ip35 but Fuel), when fetching spdmem records, so the DIMM number reported matches the numbering on the PIMM.
2010-04-15- fix bunch of use-after-free bugs found by splint;Marco Peereboom
- support sharing a phy port by devices (should work fine with sas expanders that share phy port number if such exist); - remove dead timeout_xs stuff; - make mpii_push_reply take a struct mpii_rcb argument instead of an address (like mpi does); - use SLIST instead of TAILQ to manage ccbs (ala mpi); - rototil openfirmware attachment code as it was copied verbatim (but with an error) from mpi and clearly wasn't tested; - increase reset delay to 240ms for stability purposes; - sprinkle some 'default' cases in a bunch of switch statements; - remove several splbio's from the code that runs on boot; - clarify/simplify the code that deals with sc_vd_id_low; - some slight cleanup.
2010-04-15Print both the tx and the rx interrup vector numbers instead of the tx numberMark Kettenis
twice. From Ted Patterson.
2010-04-15Use IPL_TTY instead of IPB_BIO as suggested by oga.Marco Peereboom
Tested by me and mlarkin on amd64 and i386 ok oga
2010-04-15new Hawking run(4) idsDamien Bergamini
from Linux
2010-04-15new Hawking run(4) ids.Damien Bergamini
from Linux
2010-04-15Allow multiple xbow to attach, to attach devices on multiple node systems.Miod Vallat
2010-04-15spacingTheo de Raadt
2010-04-15add yet another TEMPerHUM device identifier.Yojiro Uo
Reported by naddy@
2010-04-15use SENSOR_HUMIDITY instead of SENSOR_PERCENT.Yojiro Uo
support new TEMPer sensors: TEMPer, TEMPer1, TEMPer2, TEMPerNTC ok jsg@, deraadt@
2010-04-15use SENSOR_HUMIDITY instead of SENSOR_PERCENT.Yojiro Uo
and add LED blink routine. ok jsg@, deraadt@
2010-04-15add SENSOR_HUMIDITY to sensor framework to handle humidity valuesYojiro Uo
ok kettenis@ xsa@ sobrado@ krw@ deraadt@
2010-04-14clean Sitecom run(4) ids.Damien Bergamini
use real product names, add some ids, remove some ids that never made it into production.
2010-04-14clean Sitecom run(4) ids.Damien Bergamini
use real product names, add some ids, remove some ids that never made it into production.