summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2016-08-15For some reason the RTL8211E PHY on the Banana Pi responds to both address 0Mark Kettenis
and 1. As a result rgephy(4) attaches twice. Prevent this from happening by passing the PHY address, which is part of the device tree, down from the bus-specific glue to the generic driver code.
2016-08-15Remove IWM_CMD_SYNC, which expands to zero while all the otherStefan Sperling
IWM_CMD_* values are bit flags. The same was done 2 years ago in Linux git commit a10229271946731959b2269370d0492d88cfab23.
2016-08-14u_quad_t -> uint64_tDavid Gwynne
de is amazing(tm). it really should be cut back and simplified a bit.
2016-08-14change some types in bio from u_quad_t to uint64_t, and fix casts inDavid Gwynne
drivers that fill that field in too. quad types are going away.
2016-08-14replace u_quad_t with uint64_t.David Gwynne
guenther is proposing the removal of u_quad_t. uint64_t is more portable. tested on a perc5 and perc6, no functional change.
2016-08-13Add the core of the code for dwge(4), a driver for the Synopsis DesignwareMark Kettenis
GMAC core which is used on the Allwinner A20 SoCs and later SoCs in the Allwinner family. Since this core is very likely to show up the base of other devices, it gets to live here in dev/ic. Ported from NetBSD (where it is named awge(4)) by patrick@. Some further fixes by me. ok deraadt@
2016-08-13Add a minimal regulator "framework".Mark Kettenis
ok jsg@, patrick@
2016-08-10armish handled some early-gen arm machines, which required tons ofTheo de Raadt
workarounds. Some of them will soon stand in the way of armv7. Off to the attic you go.
2016-08-09Check xs->status for SCSI_CHECK even in underrun situations.Kenneth R Westerback
Lets Bacula find the end of medium on LTO5 drive. Reported & fix tested by Kor son of Rynar. ok mikeb@ deraadt@
2016-08-08Fixup incorrect format specification bugs spotted by jsg@Mike Belopuhov
2016-08-07Make iwm(4) automagically recover from fatal firmware errors by leaving theStefan Sperling
interface marked UP and scheduling the init task. Matches iwn(4) behaviour.
2016-08-07add $OpenBSD$ tagsJonathan Matthew
2016-08-06Add a generic pinctrl "framework".Mark Kettenis
ok patrick@
2016-08-05Switch pending event clearing to an atomic swap operationMike Belopuhov
Rather than performing an atomic bit clearing for every encountered event bit set we can adjust the code to perform an atomic swap of a single row of the events array and decrease the amount of expensive atomic operations. Same optimization as for Hyper-V. From FreeBSD.
2016-08-05Switch pending event clearing to an atomic swap operationMike Belopuhov
Rather than performing an atomic bit clearing for every encountered event bit set we can adjust the code to perform an atomic swap of a single row of the events array and decrease the amount of expensive atomic operations. From FreeBSD.
2016-08-05Fixup incorrect EAGAIN handlingMike Belopuhov
2016-08-05Read events array offset must be calculated in bytesMike Belopuhov
2016-08-05Remove incorrect optimization: ring data portion size is not power of 2Mike Belopuhov
2016-08-05Trigger link state update only on media status updatesMike Belopuhov
2016-08-05Fixup the condition that prevented heartbeat & co. from attachingMike Belopuhov
2016-08-03add a minimal TPM 1.2 driver just to issue a "save state" commandJoshua Stein
before suspending, in order to fix suspend/resume on some newer machines. more cleanup and TPM 2.0 support coming later. earlier version ok pirofti ok deraadt
2016-08-03Use atomic operations to manipulate event masking bitsMike Belopuhov
2016-08-03Remove the periodic timer and do rescheduling during Rx completionMike Belopuhov
This change adds a check into the Rx ring completion routine that schedules an interrupt task to be executed immediately after if consumer index has already advanced itself. The benefit of doing this compared to an additional loop after replenishing the ring (as done in FreeBSD for example) is that first of all this goes through the loop in the taskqueue thread with a yeild check to prevent CPU hogging and second is that it triggers Tx completion as well since interrupt handler runs both.
2016-08-03Use an atomic operation to clear pending event bitsMike Belopuhov
Pending event bits are located in a shared memory and are potentially accessed by multiple CPUs running dom0 and the guest VM. It appears that a failure to synchronize changes to this shared memory leads to race conditions resulting in the guest missing out on notifications.
2016-08-03Fold umass_atapi_attach() and umass_scsi_setup() into umass_scsi_attach() toKenneth R Westerback
shorten and simplify code. No intentional functional change.
2016-08-01Don't forget to destroy the taskqueue on interrupt disestablishMike Belopuhov
2016-08-01Mark shared producer and consumer indices volatileMike Belopuhov
2016-08-01Set SDEV_UMASS on all umass devices, even when they use ATAPI orKenneth R Westerback
UFI command sets. Probe all the LUNs a device reports instead of assuming ATAPI and UFI devices always have 1 LUN. Motivated by the device David Vasek reported as claiming to be ATAPI but wanting to use >1 LUN. Committing quickly to smoke out the inevitable device that works in the exact opposite way. All hail USB. ok kettenis@
2016-07-31Use m_devget(9).Mark Kettenis
ok claudio@
2016-07-31regenJonathan Gray
2016-07-31Add Xeon E3-1200 v5 host bridge and some more Sunrise Point H PCH ids.Jonathan Gray
2016-07-30add acpials(4), an acpi driver for ambient light sensorsJoshua Stein
hw.sensors.acpials0.illuminance0=11.00 lx (ambient light sensor)
2016-07-29Add a periodic timer to workaround missing completion eventsMike Belopuhov
2016-07-29Disable receive ring slot accountingMike Belopuhov
In the Netfront case it appears that by having scheduler decide when to run the workload we don't need to involve additional mechanisms to artificially limit resource availability to achieve better performance under heavy load. On the contrary, by performing a single pass through Rx and Tx completion rings and having scheduler decide when to run the next attempt, we limit the amount of time spent in the packet processing and achieve system responsiveness.
2016-07-29Move xen interrupt handlers to dedicated task queuesMike Belopuhov
Handling receive and transmit for multiple networking interfaces in a "shared interrupt" within normal interrupt vector code path introduces too much delay from the hypervisor POV which prevents it from injecting further completion event interrupts for Rx and Tx queues. Additionally, Netfront backend driver includes a mechanism to detect Rx ring stalls and "turn the carrier off" when the guest is not replenishing the ring (e.g. due to missing completion interrupts) that relies on guest waking up periodically and making sure that the Rx ring completion handling is progressing. Having tried both task queue + timeout and interrupts + timeout approaches, it appears that using the task queue is more flexible and provides superior performance under heavy network load.
2016-07-29Loop until we've read all available responsesMike Belopuhov
2016-07-29Update TX completion event index when putting a packet on the ringMike Belopuhov
2016-07-29Reduce the amount of sent RX producer notifications; from FreeBSDMike Belopuhov
2016-07-29Reduce the amount of sent TX producer notifications; from FreeBSDMike Belopuhov
2016-07-28Store the acpi processor ID/UID in struct cpu_info, and use it to attachMark Kettenis
acpicpu(4) drivers to the right cpu(4). ok mlarkin@, guenther@
2016-07-28Remove top level ring processing loops as too ambiguousMike Belopuhov
2016-07-28Revert previous commitMike Belopuhov
2016-07-28Convert ifq_deq_{begin,rollback,commit} dance to a single ifq_dequeueMike Belopuhov
2016-07-27Add interface to facilitate iterating over gpios.Mark Kettenis
ok patrick@
2016-07-27after system resume, re-write backlight levelJoshua Stein
2016-07-27zero sizeof a struct not sizeof the pointer to itJonathan Gray
ok mikeb@
2016-07-26Rename struct fdt_memory to fdt_reg to match the member namePatrick Wildt
used in the fdt attach args and the device tree. ok kettenis@
2016-07-26In rsu(4), put code that twiddles HT data in the ic under #ifdef notyet.Stefan Sperling
Some code paths in this driver peek at ic_htcaps and act upon it, so let's play it safe until this driver gets its 11n support enabled on purpose. Spotted while investigating the bug fixed in r1.35.
2016-07-26Unbreak rsu(4) which was broken since r1.32. Reported by Jake Swensen.Stefan Sperling
ok deraadt@
2016-07-26Fix byteswap errors in rtwn(4) and urtwn(4) introduced by me on June 17.Stefan Sperling
Repairs urtwn(4) on macppc. Problem reported by juanfra@. ok millert@ deraadt@