summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-12-07Use a pool to manage pmap pte pages and top level segment table, instead ofMiod Vallat
directly allocating pages from uvm; this will allow us to eventually use a different kernel page size without having to alter the pmap structures layout. No functional change; measured slowdown of 1.6% for 4KB page kernels.
2009-12-07When converting ARCBios memory spaces from ARCBios page size to the kernelMiod Vallat
page size, be sure to pick the strictest interval so as not to incorrectly claim ARCBios reserved data not (kernel) page size aligned as free memory. No functional change since the kernel uses the same page size as ARCBios (at the moment).
2009-12-07Be sure to always check tlbp return values for strictly negative valuesMiod Vallat
to consider the probe as failed; tlb pair #0 does not deserve to be magic in any way.
2009-12-07When netbooting the kernel image from ARCBios, our load address may not beMiod Vallat
honoured, and we may end up loaded at an uncached address (e.g. CKSEG1 on O2). This would cause the kernel to run with instruction cache disabled. Work around this by simply jumping to the address we really want to run at, at the beginning of locore.
2009-12-07When trying to return to ARCBios on a 32 bit ARCBios machine (such as the O2),Miod Vallat
disable interrupts and unconditionnaly use proc0 u area as the stack, so that once ARCBios loses the upper 32 bits of the stack pointer, accessing the stack does not fault (proc0 u area is allocated in CKSEG0 for this reason).
2009-12-07Fix a spacing nit, and replace a magic number with ETHER_ADDR_LEN.Stuart Henderson
From Brad.
2009-12-07Cleanup discipline initialisation.Joel Sing
ok marco@
2009-12-07Define discipline capabilities using a set of flags.Joel Sing
"shiny!!" marco@
2009-12-07oops, wrong version of previous diff.David Gwynne
we have to exec a command (with ata_exec) before we check if its done with ata_polled. of course an unstarted command will not be done. found by and debugged with krw@ ok krw@
2009-12-07get rid of the return codes from command submission, ata_cmd handlersDavid Gwynne
now return void. all state about a command is now represented within the ata_xfer structure, and all layers using it (both hba and atascsi) now check only ata_xfer. this relies on my scsi midlayer changes. it was written just before the second last backout of the midlayer.
2009-12-07do not forward and drop packets with M_MCAST flag set in ip_forward()Joerg Goltermann
ok henning@, claudio@ "I think this should go in"
2009-12-07Re-enable SCSIDEBUG display of commands and data. Original diffKenneth R Westerback
from dlg@, tweaking by me to make it compile. ok dlg@
2009-12-06Nuke SCSI_URGENT after removing its only use, in ncr53c9x.c. That useKenneth R Westerback
was to try to play dangerous games with tagged queuing. ok marco@
2009-12-06change M_WAITOK --> M_WAITOK|M_CANFAILCharles Longeau
with input from marco@ "that i like" marco@ ok dlg@
2009-12-06SCSI_USER is deprecated. the ioctl handlers arent special with regard toDavid Gwynne
the midlayer.
2009-12-06consistently refer to the softc pointer as sc, not sd.David Gwynne
2009-12-06biodone must be called at splbio.David Gwynne
2009-12-06nitems(array) is prettier than sizeof(array)/sizeof(array[0])David Gwynne
2009-12-06whitespace tweaksDavid Gwynne
2009-12-06ansify dvd functions a bit.David Gwynne
2009-12-05Use the correct member of the ieee80211com struct when testingJonathan Gray
if the current mode is 802.11a or 802.11b. found by gcc svn. ok damien@
2009-12-05Ignore HID devices that have the same vendor and product ids thanMatthieu Herrb
devices actually supported by this device. The Linux driver confirms they exist. ok miod@ jsg@.
2009-12-05Until we have better hooks and a proper framework, do not do the lidTheo de Raadt
suspend. It is neat but annoying without a 'button'.
2009-12-05Use new acpi_maptable on AMLOP_LOAD operations; do not panic if bad checksumJordan Hargrave
fixes Thinkpad SL300, maybe others
2009-12-04KNF whitespace, from Brad. ok jordan@Stuart Henderson
2009-12-04Send `* pwr d' instead of `pwr d' on powerdown, to have L1 broadcast theMiod Vallat
request to other bricks connected to our node.
2009-12-04calculate the number of frames per usb xfer only once, and take intoJacob Meuser
account possible "fractional samples" which occur when the usb frame rate is not a whole number factor of the audio sample rate, such as with 44.1 kHz audio sample rate and full-speed usb (1 kHz frame rate).
2009-12-04instead of returning a structure, return the only member of theJacob Meuser
structure that will be used. discussed with deraadt.
2009-12-04ahc fits againTheo de Raadt
2009-12-04ansify.Jasper Lievisse Adriaanse
ok md5@
2009-12-04In uaudio_detach(), check that sc->sc_alts is not NULL beforeAlexandre Ratchov
using it. This could happen if uaudio_attach() failed, for instance because the device has no valid audio stream interface. Certain MIDI devices expose such descriptors. ok jakemsr@
2009-12-03Stop using the linker script. Something is arranging memory just soTheo de Raadt
resulting in kernels starting up the other cpu's incorrectly on processors with very long pipelines, perhaps some bug instruction prefetch dependency in the mptramp.
2009-12-03prevent a completion interrupt pulling io of the buf queue and shoving itDavid Gwynne
down to the disk while a process is doing the same thing. this will avoid some relatively minor io reordering from occurring. discovered by krw@ during his long dark trek through the code. requested by marco@
2009-12-03Use 16-bit writes instead of 8-bit writes for writing theJasper Lievisse Adriaanse
station address with the ST1023 chipset. This resolves the problem which resulted in the hack of putting the interface into promiscuous mode all the time with the ST1023 chipset. from brad, tested by me on the ST1023. ok sthen@
2009-12-03fix order dependency of pfsync interface setup, with claudio;Otto Moerbeek
ok claudio@ dlg@
2009-12-03use a define rather than magic number, spotted by BradDariusz Swiderski
ok by claudio@
2009-12-03set the length of the cdb when synchronising cache.David Gwynne
noticed by deraadt@ and miod@
2009-12-03RM7000 processors with 64 TLB pairs instead of the usual 48 use an externalMiod Vallat
control bit to enabled use of the extra 16, in order to be able to be used as drop-in R5000 replacement without modifying RM7000-unaware software. Because of this, when a 64 TLB RM7000 processor is detected, check that the upper 16 really will be used before deciding how many TLB the kernel needs to invalidate whe ASID wraps.
2009-12-02Zap trailing whitespace. From Brad.Stuart Henderson
2009-12-02no firmware on ramdisks; ok kettenisTheo de Raadt
2009-12-02IPL_IPI priority raised to IPL_IPI > IPL_HIGH for handling TLB shootdown.Takuya ASADA
ok miod@
2009-12-02use kstack for curprocpaddr instead of proc0paddr.Takuya ASADA
ok miod@
2009-12-01Fix the mixer interface for the CE4231 sound card found in Sun machines. Still aEdd Barrett
lot of room for improvement in the driver, but atleast it works now. OK kettenis@, ratchov@
2009-12-01Don't claim to know about nehalem until we can be sureJonathan Gray
the the msr paths are sane. ok deraadt@
2009-12-01The MD ACPI PSS paths are using MSRs they shouldn't beJonathan Gray
so don't try to do EST on machines we don't know the bus_clock on for now. ok deraadt@
2009-12-01regenJasper Lievisse Adriaanse
2009-12-01- add a whole bunch of more devices from dmesgsJasper Lievisse Adriaanse
- fix a typo
2009-12-01- regenJasper Lievisse Adriaanse
2009-12-01- some more id's from dmesgsJasper Lievisse Adriaanse
2009-12-01Fix dmesg printing of error.Marco Peereboom