summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2010-06-01regenMarcus Glocker
2010-06-01Add ``StarTech CONV-USB2DVI'' udl device.Marcus Glocker
From Bryan Vyhmeister
2010-05-31do not immediately panic if we find a non-increasing heartbeat counter butAlexander Hall
keep count for at least 33 seconds. then panic. ok marco@, moral support johan@
2010-05-27Add missing license (amd, mit/x11)Owain Ainsworth
armani@ noticed that is was missing.
2010-05-26add a new getparam member to get the contents of scratch register 3 (theOwain Ainsworth
one we use to dump the software interrupt number). For some strange reason noticed upstream, writeback doesn't seem to be working for this value for use, so instad of using the get_scratch functions, we fallback to a direct register read (more bus traffic, but it actually works). This is to be used by new mesa on r100 and r200 since they reworked stuff for dri2, and we have local patches that prevent userland mapping the registers in dri clients. Tested by Josh Elsasser on a M9 (rv250), thanks very much to him.
2010-05-26- no need for a separate mpii_minphys;Marco Peereboom
- save about 26K of kernel memory by giving scsi subsystem a hint that we won't be using more than one lun per target; - remove a debugging leftover. from Mike Belopuhov <mkb@crypt.org.ru>
2010-05-26Reintroduce bufqs. A few changes since it was backed out after some goodThordur I. Bjornsson
comments from dlg@. No need for a separate bufq.h, keep all of in buf.h; As requested by kittens and deraadt. Only sd(4) and wd(4) for now. The rest of the drivers will be converted soon, also other goodies like heuristics for sd(4) for selecting the bufq type and the death of disksort() are forthcoming. Tested on: i386, amd64, sparc64, macppc, loongson and alpha by myself and phessler. OK art@, beck@, kettenis@, oga@
2010-05-26the addr field in read cap 16 is 8 bytes, not 4. pity, i had really bigDavid Gwynne
disks for a few minutes there.
2010-05-25The logic in this function is a little tricky (though correct).Owain Ainsworth
Explain how an invaviant is satisfied and add an assertion to check (never hit that one). As a side benefit clang doesn't bitch about a possible NULL deref now.
2010-05-25Having just calculated which sequence number we wish to wait for (soOwain Ainsworth
that in the reading-only case we need only wait for all gpu writes to be done and flushed), don't then wait for the full seqno anyway. Found by Clang's static analyser where it flagged a dead store to the seqno variable.
2010-05-25rename struct drm_i915_private to struct inteldrm_softc, to be more inOwain Ainsworth
line with everything in the tree. No functional change. I have wanted to do this for ages! More cleanup will be forthcoming.
2010-05-25Remove the DRI1 code paths from inteldrm as promised two weeks ago.Owain Ainsworth
We no longer support these paths, only memory managed mode is now allowed.
2010-05-24Support fibre PHY on BCM5709S. From FreeBSD via Brad.Stuart Henderson
Tested by Brad on: BCM5706, BCM5708C Tested by me on: BCM5716 (BCM5709 PHY)
2010-05-24regenJonathan Gray
2010-05-24shrinkJonathan Gray
2010-05-24We sometimes compile kernels with -Wvariable-decl because it makes usTheo de Raadt
happier regarding potential kernel stack overflows, so just use the (small) maximum buffer size in one case. ok marco
2010-05-24Flush cache before suspend.Mark Kettenis
ok krw@, marco@
2010-05-24atascsi may (will) reuse ata_xfers, meaning the xa state thatDavid Gwynne
ahci_ata_cmd is called with might be the state of the xfer that ahci set previously. this stops ahci_ata_cmd from checking the state of ata_xfers its given, and instead trusts that atascsi is doing the right thing. reported and fix tested by matthew dempsky, who also did an awesome job of tracing the problem.
2010-05-24Remove the drm drivers that are not enabled (and have never been so).Owain Ainsworth
For now they are unmaintained, and work on kernel modesetting has very large inferface changes needing to be made. Also, when the radeon driver has been converted over, we will no longer support X with the DRI1 protocol, only DRI2. When the upheaval has finished, these drivers may be brought back after work to switch them to DRI2 style memory management and kernel modesetting has been done, but until then they are unsupported and probably broken (i know at least two of them have been reported broken before now). ragedrm will likely come back as a component of radeon (their interfaces are still fairly similar). The other drivers require rewriting. I have been threatening to do this for over a year. Discussed with deraadt@ and matthieu@ at various points since then.
2010-05-23remove another piece of ancient #ifdef arc codeTheo de Raadt
2010-05-23fix another signed/unsigned slipt. no functional change. I hate thisOwain Ainsworth
header. Found by Clang static analyser.
2010-05-23mac68k can move to defining __mac68k__ insteadTheo de Raadt
2010-05-23luna88k moves to defining __luna88k__ insteadTheo de Raadt
2010-05-23toast __arc__; we gave up on that platform around a decade agoTheo de Raadt
2010-05-23missing dkio.h includes; ok krw@Christian Weisgerber
2010-05-23move hp300 to -D__hp300__; ok miodTheo de Raadt
2010-05-23rely on __alpha__ instead of alphaTheo de Raadt
2010-05-23rely on __alpha__, __amd64__, and __i386__ insteadTheo de Raadt
2010-05-23Place drive in standby mode before shutdown. Avoids the loud click heard onMark Kettenis
many laptops when powering them down. ok jsg@, oga@, krw@
2010-05-21Make compile with NBIO = 0Marco Peereboom
2010-05-20Split some copies of two struct members together into two bcopy ratherNicholas Marriott
than one to make gcc4 -Wbounded happy. ok krw
2010-05-20add mode change command to support ZTE 3G modem (MF633 etc)Yojiro Uo
ok jsg@
2010-05-20regenYojiro Uo
2010-05-20add ZTE633 (3G modem) etcYojiro Uo
ok jsg@
2010-05-20New scsi code seems to be stable. Pluck previously identifiedKenneth R Westerback
low-hanging splbio/splx pairs that are no longer needed and see if this reveals any hidden scsi flaws. ok dlg@
2010-05-19Use the actual SSID length rather than a (wrong) sizeof. Makes gcc4Nicholas Marriott
-Wbounded happy. ok kettenis
2010-05-19BUS_DMA_ZERO instead of alloc, map, bzero.Owain Ainsworth
ok krw@
2010-05-19BUS_DMA_ZERO love.Owain Ainsworth
ok kevlo@, krw@
2010-05-19the virtual scsi disks that mpi(4) presents dont grok modifications to theDavid Gwynne
mode pages that control the caches. this adds code that talks to the mpi chip directly on behalf of those disks so you can enable write caching on them.
2010-05-18Add as yet untested support for the 82576 quad copper ET2Jonathan Gray
based on information in the linux driver. ok claudio@
2010-05-18regenJonathan Gray
2010-05-18Add some more em devices and workbit CF ATA.Jonathan Gray
2010-05-18more BUS_DMA_ZERO love.Owain Ainsworth
ok marco.
2010-05-18bus_dmamem_alloc() ...; bzero/memset(); ->Owain Ainsworth
bus_dmamem_alloc(, BUS_DMA_ZERO); "ok on all the ones with my copyright" marco@
2010-05-18oops. needs_fence should still be conditional on tiling due to the needsOwain Ainsworth
fence execbuffer logic.
2010-05-18Always invalidate fences in pin if they are invalid, not just if we needOwain Ainsworth
a fence. This will stop the case where a newly untiled buffer that has been reused will be execed as if it was tiled, causing havok. Solves the PTE errors on mlarkin's 945. He has another bug that he is currently bisecting for me which I am looking into.
2010-05-18dont let sys/ioctl.h imply that you get the ioctls in dkio.h. thisDavid Gwynne
gets rid of #include <sys/dkio.h> in sys/ioctl.h and adds #include <sys/dkio.h> to the places that actually want and use the disk ioctls. this became an issue when krw@'s X build failed when he was testing a change to dkio.h. tested by krw@ help from and ok miod@
2010-05-17Put the name string on the stack.Nicholas Marriott
Fixes build with gcc4 which otherwise optimises away the modifications to it, discovered by jakemsr@. ok marco jsg
2010-05-17regenJonathan Gray
2010-05-17add some devices found on a core i5 machineJonathan Gray