summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-02-17ensure all pi_magic checks are inside DIAGNOSTICTheo de Raadt
2009-02-16Cancel the automatic boot when you hold ctrl to skip boot.conf.Stuart Henderson
"I like it" deraadt "sweet" tedu "love it" marco
2009-02-16at tedu's request, bring back the basic single "first word" PI_MAGIC checkTheo de Raadt
since it is essentially free. To turn on the checking of the rest of the allocation, use 'option POOL_DEBUG' ok tedu
2009-02-16allocate the large structures instead of putting them on the stack, andTheo de Raadt
use M_CANWAIT throughout ok sthen canacar claudio
2009-02-16More 88110 SMP work. Contains, horribly entangled:Miod Vallat
- dma_cachectl() split into a ``local cpu only'' and ``all cpus'', and an ipi to broadcast ``local dma_cachectl'' is added. - cpu_info fields are rearranged, to have the 88100-specific information and the 88110-specific information overlap, and has many more 88110 ugly things. - more ipi handling in the 197-specific area. Since it is not possible to have the second processor receive any hardware interrupt (selection is done on a level basis via ISEL, and we definitely do not want the main cpu to lose interrupts), the best we can do is to inflict ourselves a soft interrupt for late ipi processing. It gets used for softclock and hardclock on the secondary processor, but since the soft interrupt dispatcher doesn't have an exception frame, we have to remember parts of it to build a fake clockframe from the soft ipi handler (ugly but works). This now lets GENERIC.MP run a few userland binaries before bugs trigger.
2009-02-16Since NMI are now handled separately, remove the ``interrupt type'' argumentMiod Vallat
from interrupt() and related function pointers.
2009-02-16Disable pool debug stuff for the release (it has a performance hit, butTheo de Raadt
between releases we may want to turn it on, since it has uncovered real bugs) ok miod henning etc etc
2009-02-16Extend the scsi_adapter minphys() callback to take a struct scsi_link *Miod Vallat
as additional argument. This will allow intermediate layers between scsi devices such as sd and scsi host adapters to take appropriate action if necessary.
2009-02-16Don't try to SCSIDEBUG targets or luns >31 since we only have 32 bits toKenneth R Westerback
use to identify devices of interest. ok deraadt@
2009-02-16remove incorrect cast of pcb_cr3. okay kettenis@ weingart@Kurt Miller
2009-02-16Rewrite the way the initial processing of exceptions is done on 88110 - weMiod Vallat
now set up both the exception frame structure and the exception stack as soon as possible, so that we can safely get interrupted by an NMI as soon as we reenable shadowing.
2009-02-16Be a litte bit more paranoid and validate the APIC table before committingMark Kettenis
to APIC mode. tested by many ok marco@
2009-02-16Allow username and password to be up to 255 characters in length.Can Erkin Acar
Tested by many, thanks. Put it in" deraadt@
2009-02-16Core i7 chips don't have MSR_TEMPERATURE_TARGET register, and blow upKenneth R Westerback
if attempts are made to read it. So read MSR_TEMPERATURE_TARGET only when ci_model == 0xe. Found when my Core i7 box blew up. FreeBSD allows a few more chips but this allows my box to boot. ok jsg@
2009-02-16Store conditionally extended cpuid family/model valuesJonathan Gray
in seperate variables in struct cpu_info instead of duplicating the process of extracting it from the signature. Discussed with several, 'just do it' weingart@, ok mikeb@
2009-02-16Store conditionally extended cpuid family/model valuesJonathan Gray
in seperate variables in struct cpu_info instead of duplicating the process of extracting it from the signature. Use this value when determining the bus clock on P6/family 0x6 chips, which fixes speedstep on bernd@'s ThinkPad x200s. Discussed with several, 'just do it' weingart@, ok mikeb@
2009-02-16pfsync v5, mostly written at n2k9, but based on work done at n2k8.David Gwynne
WARNING: THIS BREAKS COMPATIBILITY WITH THE PREVIOUS VERSION OF PFSYNC this is a new variant of the protocol and a large reworking of the pfsync code to address some performance issues. the single largest benefit comes from having multiple pfsync messages of different types handled in a single packet. pfsyncs handling of pf states is highly optimised now, along with packet parsing and construction. huggz for beck@ for testing. huge thanks to mcbride@ for his help during development and for finding all the bugs during the initial tests. thanks to peter sutton for letting me get credit for this work. ok beck@ mcbride@ "good." deraadt@
2009-02-16on some buses (eg sas and fc fabrics) the initiator id doesnt meanDavid Gwynne
anything. we represent that in the midlayre by moving the initiator id out of the buswidth. let's not print it in that case. ok deraadt@ kettenis@ krw@ marco@
2009-02-16Kill ring.high_mark. it's unused.Owain Ainsworth
2009-02-15The core drm code calls drm_irq_uninstall() when needed at lastclose.Owain Ainsworth
Due to the fact that most of the drivers didn't keep their mmio regions mapped from attach, all irq-using drm drivers have a hook in lastclose() to remove the irq before it unmaps its registers. Since now they all keep them mapped, this isn't an issue. Remove the redundant calls.
2009-02-15dev_priv->irq_enabled is only set to zero and then ignored. kill it.Owain Ainsworth
2009-02-15radeon_do_cp_resume was only called in one place (and that function justOwain Ainsworth
did that one function call), so instead inline it in place.
2009-02-15the body of radeon_do_cp_flush() has been if 0ed out forever. so removeOwain Ainsworth
it and just remove it from the only place it was called.
2009-02-15Some knf nits.Owain Ainsworth
2009-02-15If we are on the NMI stack, do not switch to the curpcb stack moments later,Miod Vallat
this defeats the purpose of having a separate stack at this point... Oopsie
2009-02-15destatic and deinline. return type on line before rest of functionOwain Ainsworth
declaration. no binary size change.
2009-02-15move pflows ioctl to new numbers. Fixes a problem with wi(4)Joerg Goltermann
spotted by mcbride@ Theo@: "This diff is correct. Please commit it right away"
2009-02-15Revert previous.Marc Balmer
2009-02-15Fix compilation of kernels that have pf, but not pfsync.Marc Balmer
ok dlg, henning, sthen
2009-02-15on IGPGART chipsets, map the pcigart table uncached. This fixes some bugs forOwain Ainsworth
freebsd and linux, and i'm assured by an amd employee that it is needed. With this diff the RS690 at phesslers@'s work work the first time you boot it, you can even restart X to your heart's content. However, after a reboot it goes back to not working. I've not managed to rule out buggered hardware yet, so anyone with a RS690 chipset would make my very grateful by checking if the same thing happens there. RS480 also needs this, but seems to still be broken.
2009-02-15for the sake of correctness bus_dmamap_sync when necessary for theOwain Ainsworth
hardware-status-page.
2009-02-15Remove some ifdeffed out debugging code that I'm not so fond of.Owain Ainsworth
2009-02-15Remove some dead and unneeded defines, types and prototypes.Owain Ainsworth
2009-02-15Make the pcigart functions return 0 on success and an errno on failure,Owain Ainsworth
instead of 1 on success and zero on failure. I hated that twisty logic.
2009-02-15Split out the switch statement that writes the pcigart table entry intoOwain Ainsworth
a separate function. Makes this code a lot easier to read.
2009-02-15Remove drm_pci_alloc and associated definitions.Owain Ainsworth
2009-02-15Convert intel hardware-status-page allocation over to new dmamem api.Owain Ainsworth
2009-02-15convert drm_scatter code over to using the new dmamem api.Owain Ainsworth
removes the custom code in there, so shrinks the kernel by a few bytes. Convert other code to deal with data structure changes.
2009-02-15convert the pcigart case where the gart table is in system memory overOwain Ainsworth
to use the new api. More cleanup to this file coming soon.
2009-02-15Convert CONSISTENT maps over to dmamem api.Owain Ainsworth
2009-02-15convert drm_addbufs_pci over to new dmamem api.Owain Ainsworth
2009-02-15Convert machdrm over to new dmamem api.Owain Ainsworth
2009-02-15introduce drm_dmamem_alloc() to allocate dma memory with bus_dma.Owain Ainsworth
The next few commits will convert calls to drm_pci_alloc (which I hate) over to this new api, and convert other handrolled stuff over too. First part of my cleaning up bus_dma useage in drm.
2009-02-15do not check malloc return value against NULL, as M_WAITOK is usedCharles Longeau
ok krw@ miod@ (some months ago)
2009-02-15change M_WAITOK --> M_WAITOK | M_CANFAILCharles Longeau
with help from miod@ ok miod@ oga@
2009-02-15Set the limit of the GDT table to its size - 1.Mike Belopuhov
Reported by and diff from Remco <remco at d-compu.dyndns.org>, thanks! Checked with kettenis@. ok kettenis
2009-02-15Properly send a request sense command if the command status asks for it.Miod Vallat
2009-02-15Sun's usage of the "banner-name" property is just too inconsistent to giveMark Kettenis
us a chance to parse it and generate strings for hw.product and hw.vendor. Use the "name" property instead. This should give us a better chance of booting on UltraSPARC T2+ systems. ok deraadt@
2009-02-15copystr(), copyinstr() and copyoutstr() should all return ENAMETOOLONG ifJoel Sing
string length exceeds maxlength. ok miod@
2009-02-15attach the Intel WiFi Link 100 and 6000 Series (though no firmwareDamien Bergamini
is available yet.) branch the ampdu_{tx,rx}_{start,stop} callbacks too. remove code that is only needed for evaluation/test boards.