summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2018-05-21Consistently suffix the pre-processed NVRAM binary that the bwfm(4)'sPatrick Wildt
firmware requires on SDIO-connected chips. From ketttenis@
2018-05-21Implement power management Operation Region support.Mark Kettenis
2018-05-21Put controllers and child devices in D0 by calling _PS0 when we attach theMark Kettenis
controller. Some BIOSen deliver them to us in D3. Override card detect if ACPI says that the child devices are non-removable. ok mlarkin@
2018-05-21Pass interrupt description along as well.Mark Kettenis
ok mlarkin@
2018-05-20Add tipmic(4), a driver for the "Intel" Dollar Cove TI PMIC. This is actuallyMark Kettenis
a TI part (SND9039) but the datasheet is only available under NDA because it contains "Intel proprietary information". Initial implementation handles the thermal sensors, providing data to acpi(4) which is used by acpitz(4). Power management functionality will be added later. Disabled for now until some bugs in dwiic(4) are fixed.
2018-05-20Pass the acpi node corresponding to the i2c device down as the cookie.Mark Kettenis
ok mlarkin@
2018-05-20Wake up the acpi thread after scheduling a gpio event.Mark Kettenis
ok mpi@
2018-05-19Fix GenericSerialBus support by parsing ExtendedAccessField correctly.Mark Kettenis
ok mlarkin@
2018-05-19Akin to the PCI attachment driver we can extract the chip's dmesg(8)Patrick Wildt
over the SDIO bus by accessing the correct addresses. This helped me find the RX FIFO overflow issue and might help find more issues where the chip's firmware complains about our wrongdoing.
2018-05-18regenMark Kettenis
2018-05-18Fix entry for Intel CM238 LPC.Mark Kettenis
ok mlarkin@
2018-05-18Revert previous commit; it break reading the RTC on my Cubox-i.Mark Kettenis
2018-05-18After reading the first frame, which we can do in two reads (softwarePatrick Wildt
plus hardware header, which tell us the length of the following data), we can issue full packet reads. The software header contains a field that informs us of the full length of the next frame that we can read, so we can do that in a single sitting. This brings us down from three SDIO read invocation to a single one per packet for a given RX stream.
2018-05-18This needs some #ifndef SMALL_KERNEL as well. Fixes RAMDISK_CD.Mark Kettenis
2018-05-18Use SCSI_NOSLEEP for management commands issued during attach.Jonathan Matthew
No real change because we'll never run out of ccbs that early. Noticed during review of the preceding changes. ok dlg@
2018-05-18Add bio(4) and sensors for mfii(4), based on code from mfi(4). Most of theJonathan Matthew
work was done by Naoki Fukaumi, some tweaks and adjustment to match the preceding changes by me. Tested on SAS2208, SAS3008, SAS3108, SAS3508. ok dlg@
2018-05-18Make mfii_mgmt() allocate and release a ccb to simplify the most common useJonathan Matthew
case. Based on a diff from Naoki Fukaumi. We decided to keep using scsi flags rather than switching to MFII_DATA_IN/OUT (as done in mfi(4)) so callers can include SCSI_NOSLEEP if required. ok dlg@
2018-05-18Add DPRINTF/DNPRINTF for debug output as in mfi(4) and convert existingJonathan Matthew
debug output to use them. ok dlg@
2018-05-18Use passthrough IO rather than MFA for management commands.Jonathan Matthew
Investigation by Naoki Fukaumi determined that this is necessary on some controllers and works on all of them. Tested on SAS2208, SAS3008, SAS3108, SAS3508. ok dlg@
2018-05-17The Broadcom FullMAC firmware has a few ways of doing flow control. OnePatrick Wildt
of those is a sequence number based window mechanism. Essentially every packet on the SDIO bus has a sequence number. The chip records which sequence number we used last and when it sends us replies, it tells us the maximum sequence number it accepts. This means we can calculate a window of sequence numbers that we are allowed to use. With this I no longer overflow the chip's RX fifo and can do stable network transfers.
2018-05-17Sprinkle some #ifndef SMALL_KERNEL such that RAMDISK kernels cuild again.Mark Kettenis
pointed out by stsp@
2018-05-17Implement GenericSerialBus OpRegion support.Mark Kettenis
ok mlarkin@
2018-05-17Let hvn_iff handle promisc mode activationMike Belopuhov
Tested by Daniel Wade, <Daniel2 ! Wade at ge ! com>, thanks!
2018-05-17Implement LoadTable().Mark Kettenis
ok mlarkin@
2018-05-17Recent Broadcom chipsets have a dedicated PMU core and it can't bePatrick Wildt
accessed using the Chipcommon core anymore.
2018-05-17Fix iLO/IPMI remote access problem. At least for bge(4) network portYASUOKA Masahiko
which is shared with IPMI on HPE DL20 Gen9, its link state became down a while or never became active again. diff from FreeBSD through Naoki Fukaumi. https://svnweb.freebsd.org/base?view=revision&revision=248226 ok mpi dlg
2018-05-17regenMike Larkin
2018-05-17pci devices found on dell precision 7520Mike Larkin
2018-05-16regenMark Kettenis
2018-05-16Add a few Intel C620 PCH entries.Mark Kettenis
Add the PLX PEX 9733 PCIe switch.
2018-05-16After having finished transmitting the last mbuf, don't just return toPatrick Wildt
the caller. Otherwise we skip restarting the ifq which means that if we ever have a full queue and go oactive, there is no coming back. So break out from the loop and call ifq restart if the queue is not full.
2018-05-16Move the code that decodes the i.MX6 PLLs and PFDs into imxanatop(4)Patrick Wildt
instead of having imxccm(4) map more than it should and access the memory space that imxanatop(4) should be responsible for. ok kettenis@
2018-05-16Add glue for the USB3 controller on the i.MX8MQ SoC.Patrick Wildt
Discussed with kettenis@
2018-05-16Correct order of free(9) in an error case.Patrick Wildt
2018-05-16Correct shortcomings in imxiic(4) that occurred during the initialPatrick Wildt
development in 2013. Registers are to be accessed byte-wise. The command buffer, used to transfer the register index we want to access on the chip, is not only used on write operations, but also on read operations. Thus it has to be pulled into the main i2c exec method. Since these are two transfers, we have to set "repeat start" and wait for busy to be set. Some machines have a clock-frequency attribute on the controller node which controls the speed (e.g. 400 kHz instead of 100 kHz). ok kettenis@
2018-05-16Implement a BCDC control packet mechanism based on the command requestPatrick Wildt
ids. So far we were only able to have one command in flight at a time and race conditions could easily lead to unexpected behaviour, especia- lly combined with a slow bus and timeouts. With this rework we send or enqueue a control packet command and wait for replies to happen. Thus we can have multiple control packets in flight and a reply with the correct id will wake us up.
2018-05-15Implement Rx of multiple frames per interrupt in the iwm(4) driver.Stefan Sperling
Based on my original diff committed in if_iwm.c r1.171, with bugs fixed. Fixes bogus "unhandled firmware response" errors on 8265 reported by mlarkin@ Tests by mlarkin@, benno@, matthieu@, anton@, kn@, Tracey Emery, Jesper Wallin on 7260, 7265, and 8265 chips.
2018-05-14Add support for register shift/io-width to the console code as well.Mark Kettenis
ok visa@, patrick@
2018-05-13Add support for Elantech trackpoints to pms. Extend the list ofUlf Brosziewski
"IC types" that identify Elantech-V4 touchpads. Thanks to Ryan Lennox for help and testing. ok mpi@
2018-05-13Add bus DMA barriers to ensure the hardware does not see a TRB cycle bitVisa Hankala
flip before the rest of the TRB is updated. OK dlg@, pirofti@, mpi@
2018-05-09Mark `f_ops' as immutable.Martin Pieuchot
The only place where it was modified after initialization is a corner case where the vnode of an open file is substitued by another one. Sine the type of the file doesn't change, there's no need to overwrite `f_ops'. While here proctect file counters with `f_mtx'. ok bluhm@, visa@
2018-05-08Print xHCI revision in dmesg.Martin Pieuchot
ok patrick@, kettenis@
2018-05-07Add logging options to wsmouse. Input and event logging for debugUlf Brosziewski
purposes can be enabled and disabled by WSMOUSEIO_SETPARAMS requests.
2018-05-06Change the order in which whe write ouw own MAC address into the relevant twoMark Kettenis
hardware registers. On Rockchip hardware it seems the address latches into the filter logic only after writing writing the "low" register. Fixes the Gigabit Ethernet interface on the Rockchip RK3328 and RK3399. ok visa@, patrick@
2018-05-04Add a common rules file for ofw sources to help keep the configurationsVisa Hankala
of fdt-enabled platforms in sync. OK deraadt@
2018-05-03Set the assigned clock settings in imxesdhc(4), which leads to a frequencyPatrick Wildt
bump to 400 MHz for the eMMC on i.MX8MQ.
2018-05-03Add code to initialize the USB 3 PHY on i.MX8MQ.Patrick Wildt
ok kettenis@
2018-05-03Add an API to configure clocks to specific pre-assigned values. ThesePatrick Wildt
values are defined in the device tree and make sure that all clocks needed for controller and driver operation are configured as expected. This allows modifying a clock's rate and parent. For now expect that a parent clock is on the same controller as the muxed one. ok kettenis@
2018-05-03use rasops scrollback with radeondrm as wellJonathan Gray
2018-05-03Use the default background attribute when erasing rows in doswitch andJonathan Gray
scrollback. Fixes use of an uninitialised attribute value in scrollback. Patch from miod@ ok kettenis@