summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2015-08-04do not save & restore a capability register, it is RO.deraadt1-6/+1
issue noticed by patrick kehishian, ok mlarkin
2015-08-04add Realtek ALC1150, from Alexandre H. ok deraadttedu1-1/+4
2015-08-04regentedu2-2/+7
2015-08-04add C610 HD Audio, from Alexandre H. ok deraadttedu1-1/+2
2015-08-04If we are setting ACPI_PM1_BM_RLD do it only once, and remember toderaadt2-5/+10
repeat this action at resume time. ok mlarkin guenther
2015-08-04Fix clct(4) audio driver which was stuttering to the point of being useless.stsp1-111/+63
Tested on Thinkpad X21 by me. All the hard work was done by ratchov@. I just made some cosmetic fixes while here. ok ratchov@ deraadt@
2015-08-04Provide the fallback C1-via-halt even when _CST can't be evaluated.guenther1-4/+4
Fixed systems that only provide _CST for a subset of the CPUs. Problem reported by <david.a.baer (at) gmail.com> ok mlarkin@ deraadt@
2015-08-04Fix a handful of incorrect register offsets in acpihpet.mlarkin1-7/+7
from patrick keshishian <pkeshish at gmail.com> ok deraadt@
2015-08-03Remove a debug printf that should have been removed years ago. ok ratchovstsp1-2/+1
2015-07-29Fix spacing and be more verbose in printfs under #ifdef AUDIO_DEBUG.ratchov1-4/+6
No binary change.
2015-07-29Use DMA pointer determine the number of times the audio(4) layer hasratchov2-8/+52
to advance in time. This is needed to properly recover, when interrupts are blocked for too long. Fixes permanent distortion on MP systems. ok deraadt
2015-07-29Something subtle in previous revision is locking up suspend or bootingderaadt1-83/+11
on some laptops. Mailing lists threads mention x220 and Asus machines. Reverting for now.
2015-07-29Determine and print Xen hypervisor version.mikeb2-3/+24
ok reyk, with deraadt@'s permission
2015-07-29Zap a SLIST in a more obviously correct/safe way.krw1-3/+2
Originally from pelikan@, recent prodding from bluhm@ and jsg@. ok pelikan@ millert@ bluhm@
2015-07-29Rework buffer position reporting code.ratchov1-37/+24
- use simpler data structures (makes the code shorter). - if multiple interrupts are missed, call audio(4) as many times as we missed interrupts (unless the pointer wrapped, which this is undetectable, but upper layer handles it) - fetch the link fifos size in the interrupt handler, as, according to the spec it may change dynamically. - certain devices expose the last offset of the link fifo size instead of the fifo size itself; workaround this by incrementing the reported link fifo size if it's odd. Fixes recovery after missed interrupts on asus eeepcs, maybe others. ok deraadt, help from armani@
2015-07-28add missing space, from Donovan Watteau <tsoomi at gmail.com>ratchov1-2/+2
thanks!
2015-07-28In case the system misses enough audio interrupts for DMAratchov1-3/+46
pointers to wrap, recover by detecting and compensating for the missed interrupts. Fixes certain audio hangs on MP machines. with help from armani@, typos fixed by Alexey Suslikov
2015-07-28Add the AUDIO_GETPOS ioctl() to fetch a snapshot of the 4 countersratchov1-4/+14
returned by AUDIO_GETxOFFS and AUDIO_xERROR ioctls. ok deraadt
2015-07-28Tweak a couple of [SLIST|TAILQ]_REMOVE() usages in loops to a morekrw1-15/+15
obvious idiom. ok bluhm@ jsing@
2015-07-28Add callbacks for supported hypervisors in pvbus(4) to print morereyk4-44/+121
information and for some generic CPUID/MSR-level initialization. This changes the attach/match path a bit. Hypervisor informatiom may include a version number, for example: pvbus0 at mainbus0: Hyper-V 6.3.9600 OK mlarkin@
2015-07-27zap trailing linefeeds from sr_error() and panic() callshalex2-8/+8
ok jsing@
2015-07-26When attaching on an alpha system, get the current textmode resolution bymiod2-4/+74
querying the 6845 registers, and preserve it if it is larger than 80x25 yet plausible. This is necessary to properly operate on the Alphabook 1 where the vga display is running in a 100x37 textmode. Other platforms are not affected.
2015-07-26Make pcic_ident_ok() completely silent in case of failure.miod1-4/+4
2015-07-24Switch back into counting bytes rather than blocks. We can't justratchov1-12/+14
multiply the block count by the block size to get the bytes count because they won't wrap correctly.
2015-07-24if we free the mbuf in the rx path, clear the pointer to it so we dontdlg1-1/+2
try and queue it for the stack and cause a use after free. found by maxime villard and brainy
2015-07-23Add the bhyve id to recognize if we're running under this hypervisor.reyk2-2/+4
OK mlarkin@
2015-07-22Represent the current stream position in blocks rather than bytesratchov1-12/+12
just because it's simpler this way. No behaviour change.
2015-07-21Switch pvbus(4) to fully dynamic autoconf - drivers don't have to bereyk3-22/+26
listed in pvbus.c anymore and are defined by the config only. OK mlarkin@ sf@
2015-07-21iRespect the access size when reading or writing to pci config space.kettenis1-11/+83
Fixes battery status passthrough in vmware and who knows what else. Tested by many. ok mlarkin@, deraadt@
2015-07-21Move vmt.c to sys/dev/pv/vmt.c. The history is lost but can be foundreyk2-3/+3
in the Attic of sys/dev/vmt.c. OK to do it deraadt@
2015-07-21Add pvbus(4), a pseudo-bus to attach non-PCI paravirtual devices and buses.reyk5-4/+288
vmt(4) is moved from mainbus0 to pvbus0, more devices will follow. OK sf@ deraadt@
2015-07-21A few more daddr_t fixes. Rename 'phys_off' variables to 'offset'krw8-108/+107
since they are now relative to chunks. Use 'blkno' as normal variable name for daddr_t items rather than mix of 'blkno, blk, offset. Change field name ssd_data_offset to ssd_data_blkno since it is a block and not byte quantity. No intentional functional change.
2015-07-20fix spacingmlarkin1-2/+2
2015-07-20Add a quirk for Cirrus Logic PD6729, for earlier silicon versions of thismiod1-2/+4
chip would advertize themselves as multi-function devices, while they are not.
2015-07-20Try to assign a secondary bus number if the BIOS left the CardBus bridgekettenis1-3/+15
unconfigured. ok miod@, mlarkin@
2015-07-20Tweak previous; the Synaptics TrackPoint in my ThinkPad T500 works again.kspillner1-2/+5
ok krw@
2015-07-19Make iwm(4) show command codes of unhandled firmware replies. Should makestsp1-4/+5
debugging easier when it happens, as observed by matthieu@ (not reproducible on demand, unfortunately). ok mpi@
2015-07-19Remove unneeded #include <disklabel.h>.krw4-8/+4
ok jsing@
2015-07-19Stop passing daddr_t parameters for lengths. Use long since that's the typekrw4-21/+22
of the destination fields. ok jsing@
2015-07-19Change some obviously incorrect usages of daddr_t (a DEV_BSIZEkrw1-13/+41
address) to 64 signed or unsigned ints. Add some paranoia checks during partition size calculations to account for the fact that partition sizes (DL_GETPSIZE()) are unsigned values. More daddr_t rectification to do. ok jsing@
2015-07-19Oops. Missed a file from offset commit.krw1-2/+1
2015-07-19Stop adding and subtracting data offset. Just keep to chunk relativekrw6-21/+12
block offsets until actual i/o is constructed and needs the physical offset. Eliminate a number of <<DEV_BSIZE shifts as a bonus. No intentional functional change. Fixed and ok jsing@
2015-07-19Use DEV_BSIZE instead of 512 where appropriate. Use DL_SECTOBLK()krw2-31/+33
where appropriate. Noop for disks with 512-byte sectors. i.e. the only kind currently allowed in softraid volumes. But starts laying the groundwork to allow disks with other sector sizes. ok jsing@
2015-07-19Don't emit values for 'width' thatkrw1-1/+21
/usr/xenocara/driver/xf86-input-synaptics/src/wsconscomm.c doesn't understand. 'Fixes' synaptics trackpad in Dell L400 laptop so the cursor can be moved in X. Problem noted and experimental Dell L400 donated by Paolo Aglialoro. Thanks! ok miod@ mpi@ jcs@
2015-07-19use standardized register defintion in mii.h rather than specificyuo2-135/+33
driver definetion. ok deraadt@
2015-07-19regenyuo1-3/+3
2015-07-19add RTL8211yuo1-2/+2
2015-07-19use standardized register definition in mii.h rather than eachyuo10-559/+149
specific driver definition. no logical change. ok deraadt@
2015-07-19revert privious commityuo1-2/+2
2015-07-19simplify a triple-deep ternary operation.bcook1-3/+3
ok beck@ krw@