summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2013-12-31another MCP61 idbrad1-3/+4
2013-12-30Add support for newer integrated Realtek PHY.brad1-3/+7
Tested with 8168G controllers.
2013-12-30Have rgephy(4) always use RL_GMEDIASTAT to retrieve the link/media statusbrad1-5/+10
when attached to re(4), as was done before rev 1.25 which was intended to fix rgephy(4) with external PHY with MACs other than re(4). This is to fix operation with some integrated PHY on re(4) where the PHY Specific Status register does not work properly and the link cannot be established. From FreeBSD and matches what the Linux driver does. Tested on a number of newer re(4) with PHYs rev 2, 4 and 5 and newer integrated PHY with the 8168G controllers.
2013-12-30Expand the MSI support to cover most of the remaining bge(4) chipsets with thebrad2-11/+63
exception being the BCM5714 family for now. Tested on a variety of newer chipsets. ok sthen@
2013-12-30Enable snooping on Lynx Point-LP HD Audio.jsg1-1/+2
Fixes audio problems on an Acer Aspire E1 572G reported by Mark Rowland.
2013-12-30Add Broadcom BCM57764, BCM57767 and BCM57787 PCI ids.brad3-3/+21
2013-12-29regenmiod2-2/+15
2013-12-29Intel NM70miod1-1/+2
2013-12-28Always call PHY_RESET upon attaching eephy(4) so as to do PHY initialization,brad1-5/+3
to match behavior before rev 1.52. ok deraadt@
2013-12-28Attempt to approximate what should happen on a suspend/resume cycle.deraadt1-1/+12
If the driver was doing some IO, we remove the timeouts, and force the fdc state machine into IOTIMEDOUT state with the final timeout count before a clean retry. In theory upon resume it should freak out quietly, and try the operation again. Noone has stepped forward to test this yet.
2013-12-28Sync activate code sequnces to if_msk.c as much as possible, in casederaadt1-31/+84
one of these is ever found in a suspend/hibernate system.
2013-12-28The few network drivers that called their children's (ie. mii PHYderaadt1-2/+1
drivers) activate functions at DVACT_RESUME time do not need to do so, since their PHYs are repaired by IFF_UP. NOTE: if_msk is the one that previously relied on mii/eephy.c doing a crazy dance.
2013-12-28The few network drivers that called their children's (ie. mii PHYderaadt13-26/+13
drivers) activate functions at DVACT_RESUME time do not need to do so, since their PHYs are repaired by IFF_UP.
2013-12-28mii drivers no longer need activate functions. Repair of the PHYderaadt35-120/+73
configuration setting is done at resume time because all networks drivers which were previously up, do an IFF_UP operation which hits PHY_RESET. This was in snapshots for about 2 weeks.
2013-12-28Move the fairly heavy eephy_init sequence [which was only done atderaadt1-39/+14
attach() and activate() time] into the eephy_reset() routine. This means that a bit more work gets done at PHY_RESET time, but it means also means it gets done in all scenarios. Why? For the next commit... This was in snapshots for about 2 weeks.
2013-12-28Put the entropy_pool[] into the ELF .openbsd.randomdata segment.deraadt1-9/+9
Also allow random_init() to be called later, by moving a few entropy control initializions into the lower-level _rs_seed() layer. tested by jsing, phessler and a few others
2013-12-25Instead of deciding which iockbc port is the keyboard port, and which one is themiod1-1/+6
mouse port, depending upon the system time, match what the prom is doing and actually probe for a keyboard on both ports, and decide the first port with a keyboard is the keyboard port. If no keyboard is found, but a mouse is found, decide the keyboard port is the empty one. If no device is found, then we can try and pick the defaults, depending upon the system we are running on, as this used to be the case (i.e. coping with Fuel having keyboard on port 1 and mouse on port 0 when connecting devices according to the chassis' markings). This is necessary because different IO9 board revisions on Tezro come with different wirings, and we can not tell these boards apart. Discussed with "nullnilaki" (nullnilaki on gmail) who is the lucky owner of an Onyx 350 with correct wiring and a Tezro with inverted wiring. Tested on Octane and Fuel with all combinations of devices connected (mouse only, keyboard only, keyboard and mouse) in both ports, glass and serial console. XXX We probably want to allow for more pckbd attachment flexibility on non-x86 XXX platforms eventually (at least where the PS/2 slots are really independent, XXX so that we can attach pckbd to any port and better cope with human error XXX when connecting devices.
2013-12-24If the FADT has its SMI_CMD set to zero, assume we're only ACPI-only hardwarekettenis1-8/+22
and don't need to disable SMI ownership of the ACPI hardware registers. ok mlarkin@
2013-12-23regenbrad1-1/+3
2013-12-23Add Atheros AR9462 and AR9565brad1-1/+3
2013-12-23Revert previous commit. It makes resume hang on some MP systems runningkettenis1-7/+1
GENERIC.MP.
2013-12-22Try to keep the framebuffer console layout that was set up by the firmwarekettenis1-7/+18
on sparc64.
2013-12-22Add support for BCM57786,which seems to be almost indistinguishable from thekettenis1-1/+3
BCM57785. Tested by Mark Rowland.
2013-12-22Use the rasops_info struct as the accesscookie for wsdisplay. Simplifies thekettenis1-47/+11
code as it allows us to use some of the rasops_xxx functions directly.
2013-12-22Bail out early if the PCI bus number is -1. This means the hardware isn'tkettenis1-4/+6
there and the AML might reference stuff that isn't there.
2013-12-22spacing; Loganaden Velvindronderaadt1-2/+2
2013-12-22format string fix: %08x instead of %p for uint32_tsf1-3/+3
2013-12-22size_t format string fixessf1-3/+3
2013-12-21Don't assign a literal number to a variable that otherwise holds an errno.guenther1-4/+3
ok jsing@
2013-12-21Advertise that we provide monotonic timestamps.kettenis2-2/+7
2013-12-21rearrange DVACT_RESUME chunk to avoid implying something ridiculousderaadt1-2/+2
ok stsp
2013-12-21save/restore hpet configuration. Perhaps a little more than wederaadt1-1/+98
need to do, since we do not use many hpet features. ok kettenis millert
2013-12-21i915_gem_mmap_ioctl() should return a Linux-style negative errno value.kettenis1-2/+2
2013-12-21Fix locking in the page fault handler. A (somewhat malicious) userlandkettenis1-24/+37
program could force a copyin/copyout from/to memory mapped through the GTT, forcing a "locking against myself" panic. The intel-gpu-tools "package" has a test for this. The problem can be circumvented by making the fault handler fail if we already hold the (DRM) lock. This will make the copyin/copyout return with EFAULT making the caller fall back on a "slow path". This makes it obvious that using a shared (read) lock here doesn't make any sense. So use an exclusive (write) lock like everywhere else in the inteldrm code.
2013-12-20regenmatthew2-2/+7
2013-12-20add virtio scsimatthew1-1/+2
2013-12-20Add vioscsi(4) driver.matthew3-1/+516
Still a work-in-progress, but functional enough to work with both Google Compute Engine and RHEVM. Committing so additional testing and cleanup can be handled in tree. thx Jiri B for RHEVM testing ok dlg, deraadt
2013-12-19be more careful during suspend/resume cycles, as roughly detailed in thederaadt1-5/+13
spec. More might be required. ok jordan matthew mlarkin
2013-12-17do not put a second : in a dmesg line, use , insteadderaadt1-2/+2
2013-12-17don't do a timeout+task song and dance, instead use DVACT_WAKEUP directly.deraadt1-33/+12
There will be slight burps on resume due to other drivers being slow with wakeup. ok kettenis ratchov
2013-12-17syncderaadt2-4/+16
2013-12-17elan products; Thomas Pfaffderaadt1-1/+5
2013-12-16Switch generic drm modesetting code over to Linux-style negative errnokettenis3-177/+177
return values. Fixes at least one bug where userland would see a negative errno value and hopefully doesn't introduce any new ones.
2013-12-16Restore hw.setperf upon resume like we do for apm(4) on i386. Seems we needkettenis1-1/+7
to do this fairly late in the resume to avoid hangs. ok deraadt@, mlarkin@
2013-12-15Fix error handling of ->fb_create() call. Prevents kernel panic if ankettenis2-4/+12
unsupported frame buffer configuration is requested.
2013-12-15Fix bthub compilation by adding missing prototypes.pirofti1-1/+4
Report and patch from Rafael Neves, thanks!
2013-12-15Fix ubt compilation after my last usbd_dying sprint.pirofti1-2/+2
Report and patch from Rafael Neves, thanks!
2013-12-15Overhaul the pread and pwrite code to match what Linux does. Should fix a fewkettenis2-136/+207
more cache coherency issues, hopefully reducing the number of artifacts showing up the screen.
2013-12-15Abuse phys_map to reliably wait for kva.kettenis1-3/+3
2013-12-14remove a duplicated includ file.yuo1-2/+1