summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-02-09Don't panic if m_copyback() is working on a M_READONLY() mbuf. The old versionClaudio Jeker
did not care either and with this packets from drivers with external buffers (e.g. wpi(4)) would trigger this panic through pf(4). Found the hard way by Tim van der Molen tbvdm (at) xs4all (dot) nl
2009-02-09Start on bioctl support for ips. Only adapter and volume info for now.Alexander Yurchenko
2009-02-09Protect ips_poll call with splbio.Alexander Yurchenko
2009-02-09two more consistency checks for a disklabel, to prevent havoc laterOtto Moerbeek
on; prompted by Thorsten Glaser; ok miod@ krw@
2009-02-09fix uninitialized argument.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok krw@ tedu@
2009-02-09Remove an unused define.Owain Ainsworth
2009-02-09Only print information on the writeback test if it fails. Otherwise onlyOwain Ainsworth
print if we're debugging. Nagged often enough my marco@
2009-02-09Remove the inteldrm pageflipping code.Owain Ainsworth
Deprecated and broken. Sanity checked by a few people, no problems caused.
2009-02-09Don't enable vblank if the pipe is disabled.Owain Ainsworth
Based on a patch from the intel driver maintainers (Jesse Barnes, specifically) Tested by several people on various hardware.
2009-02-08fix potential null dereferences.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok oga@
2009-02-08Fix uninitialized arguments.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok oga@
2009-02-08Oops, initialize the nmi stack correctly for the boot processor.Miod Vallat
2009-02-08On 88110 processors, use a separate stack to handle NMI; these can occurMiod Vallat
while we are switching pcbs and all sort of bad things could happen.
2009-02-08Don't bother trying to recover from DSR_WE data faults in kernel mode,Miod Vallat
pmap makes sure these can't happen.
2009-02-08Move to 4.5-BETAMiod Vallat
2009-02-08fix uninitialized argument, and remove newly created unused variable.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok krw@ canacar@
2009-02-08remove dead assignment and newly created unused variable.Charles Longeau
found by LLVM/Clang Static Analyzer. ok oga@
2009-02-08Spacing nit.Alexander Yurchenko
2009-02-08Enable ips(4) on CD install media so people can try it.Alexander Yurchenko
ok miod@
2009-02-08Make sure than cpu_hardclock() never sets a ``next interrupt value'' which hasMiod Vallat
already been hit by the running timer; this happens very often on oosiop-based machines, due to these machines being among the slowest hppa, and oosiop being interrupt greedy. Unfortunately, when this happened, one had to wait for the timer to wrap, which would take up to 128 seconds on the 33MHz machines. Also, invoke hardclock() as many times as necessary if it turns out that we had to delay the interrupt 1/hz seconds to avoid the aforementioned wrap problem. With help from kettenis@; ok kettenis@
2009-02-08initial 802.11 defragmentation bits.Damien Bergamini
the code will allow the concurrent reception of fragments of three fragmented MSDUs or MMPDUs as required by the 802.11 standard.
2009-02-08Use the correct flags when bus_dmamap_sync()ing the s/g lists.Miod Vallat
2009-02-08Lower debug level back, looks like i've found that data corruption bug.Alexander Yurchenko
2009-02-08Add missing mux locators to non-USB keyboards and mice.Mark Kettenis
ok miod@
2009-02-08Put back bzero'ing cmd structure before filling it in which was lostAlexander Yurchenko
during driver rewritting at h2k7.
2009-02-08Temporary enable full debug to make it easier to commit diffs.Alexander Yurchenko
2009-02-08ips is not a real scsi controller and not supposed to talk directly toAlexander Yurchenko
various flacky scsi hardware (at least until passthrough implemented). So reduce huge default scsibus timeout values to somewhat reasonable.
2009-02-08Use sc_print_addr() to report drive errors.Alexander Yurchenko
2009-02-08Add drive state definitions.Alexander Yurchenko
2009-02-07Unifdef __OpenBSD__, these defines don't help us to sync with NetBSDAlexander Yurchenko
anymore but make reading the code harder. ok sthen@ miod@ krw@
2009-02-07Match on native/legacy MCP79 SATA ids.Jonathan Gray
From/Tested by Laurence Tratt on an asus p5n7a board.
2009-02-07regenJonathan Gray
2009-02-07Change MC79 SATA ids to reflect which mode they are currently operatingJonathan Gray
in "legacy" SATA/AHCI/RAID instead of flagging them all as AHCI. From Laurence Tratt
2009-02-06Split sti structures into rom-related information and screen-relatedMiod Vallat
information. This is preliminary work to help eventually supporting the dual-head ELK model. Also split the initialization code in several routines, this makes the code easier to read, and makes it easier to release resources upon failure. Finally, don't forget to clear the text planes on non-console displays when initializing.
2009-02-06Remove bogus casts of integer constants SPPPIO[GS]DEFS to caddr_tAlexander Yurchenko
and fix typo while here. ok canacar@
2009-02-06The new font selection logic would loop and consume all kmem on promsMiod Vallat
with only one font (such as many 712 onboard graphics). Oops again (poukram).
2009-02-06Fix crash on zaurus when sd memory card plugged by providing an attachmentAlexander Yurchenko
structure that slave devices like sbt expect.
2009-02-06- fix run_mcu_cmd(). it has the side-effect of fixing LEDs.Damien Bergamini
- fix run_rt3070_rf_write() for RT3070 - fix HW WEP for those who still care - add quirks required for RT3070+RT3020 committed over an EDIMAX EW-7711UAn (RT3070+RT3020)
2009-02-06typoMiod Vallat
2009-02-06Replace comparision between boolean expression result and an integerAlexander Yurchenko
that may confuse gcc with a simple boolean expression. ok reyk@
2009-02-06Fix kernel crash (page fault) for devices with unsorted frame index.Marcus Glocker
Problem reported by Kenji Aoyama
2009-02-05fix uninitialized var (in a code path that is not used yet).Damien Bergamini
found by chl@ using llvm/clang
2009-02-05Remove the BUS_DMA_NOCACHE flag from all azalia dma mappings.Owain Ainsworth
The fact that this has only just been implemented, and that this hardware is only found on x86 shows that this flag should not be needed for operation of this hardware. It's been here since the initial netbsd commit the code came from. "sounds good to me" jakemsr@, ok kettenis@.
2009-02-05Mirroring the i386 commit just made. Add MD PMAP_NOCACHE flag to pmap,Owain Ainsworth
and use it to implement BUS_DMA_NOCACHE for uncached mappings of dma memory. Needed for some broken hardware. Discussion with art, miod, kettenis and toby, ok miod.
2009-02-05add MD PMAP_NOCACHE flag to i386 and use it to implement theOwain Ainsworth
BUS_DMA_NOCACHE flag with guarantees that the dma memory will be mapped uncached. Some broken/odd hardware needs this. discussion with miod, toby, art and kettenis. ok miod.
2009-02-05Add some (currently unused) MD pmap flags to be used for pushing inOwain Ainsworth
parameters such as cacheability, which is too different per-arch to be MI. discussed with miod, kettenis and art. ok miod@, art@.
2009-02-05Fix slight logic error in a previous commit.Owain Ainsworth
2009-02-05KNF, and remove a debug printf I missed.Owain Ainsworth
2009-02-05KNF, no change to behaviour.Owain Ainsworth
2009-02-05Merge the static block allocation code from {i915,radeon}_mem.c intoOwain Ainsworth
non-static code that's shared between both. While i'm here convert them to TAILQ. Eventually, both of these will die, but until then I'd rather shave the space in the kernel. Tested on radeon and intel.