summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
2018-03-17Add proper suspend/resume support.Alexandre Ratchov
Most of the resume work is already done in the audio(4) layer, so, to fix suspend/resume we just need to reinitize the device. ok kettenis@
2018-03-17Set base DMA pointers when DMA starts.Alexandre Ratchov
The allocm() functions are supposed to allocate memory and it's bad style to access the hardware there, so move the DMA base pointers setup to the trigger_xxx(). ok kettenis@
2018-03-16Add untested support for Cannon Lake and Ice Lake Ethernet (pch_cnp).Jonathan Gray
Going by changes in FreeBSD and Linux it is almost identical to pch_spt but doesn't need one of the workarounds for a pch_spt specific errata.
2018-03-16Improve calculation of the number of commands and sges available.Jonathan Matthew
The maximum number of commands may be specified in outbound scratch register 3, should be limited to 1024, and should further be reduced by one to ensure the reply queue doesn't overflow. The maximum number of sges in a command should be the highest power of two that fits in the space available in the io frame and in a chained sge frame. The maximum size of a chained frame is specified in outbound scratch register 2. part of a diff from Naoki Fukaumi ok dlg@
2018-03-16use MFI_STAT_INVALID_STATUS where appropriateJonathan Matthew
part of a diff from Naoki Fukaumi ok dlg@
2018-03-16Allocate an mfi frame for each ccb, to be used to submit passthroughJonathan Matthew
commands later. part of a diff from Naoki Fukaumi ok dlg@
2018-03-14regenJasper Lievisse Adriaanse
2018-03-14add a number of devices found on the new X1Jasper Lievisse Adriaanse
feedback and ok jsg@
2018-03-13drm/edid: Add 6 bpc quirk for CPT panel in Asus UX303LAJonathan Gray
From Kai-Heng Feng 5b7ed414974320d7ebda71d18c85f505f3d959c0 in linux 4.4.y/4.4.119 06998a756a3865817b87a129a7e5d5bb66dc1ec3 in mainline linux
2018-03-13drm/dp/mst: save vcpi with payloadsJonathan Gray
From Harry Wentland c088f7bc3310bb57e0aaea297c7e2f467015d215 in linux 4.4.y/4.4.94 6cecdf7a161d2b909dc7c8979176bbc4f0669968 in mainline linux
2018-03-10raise bnx(4)'s rxring lwm to 16, ok deraadtStuart Henderson
(I've had this diff locally for a long time on port build machines to avoid NFS stalls.)
2018-03-10match two more copper i210 idsJonathan Gray
2018-03-10regenJonathan Gray
2018-03-10Add ids for Ice Lake and Cannon Lake Ethernet and some more I210 ids.Jonathan Gray
From FreeBSD.
2018-03-10Add another ICH10 em(4). From John the.cheeze at gmail.Jonathan Gray
2018-03-10regenJonathan Gray
2018-03-10Add another ICH10 em(4). From John the.cheeze at gmail.Jonathan Gray
2018-02-28Ignore 'fseq version mismatch' notifications from 8265 iwm(4) firmware.Stefan Sperling
Kills "iwm0: unhandled firmware response 0xff/0xb8000010 rx ring" dmesg spam. Patch by jes@posteo via tech@, who found the corresponding change in Linux: https://patchwork.kernel.org/patch/9869017/
2018-02-28Correct a pointless longstanding difference in ioctl numbering betweenJonathan Gray
linux and add back struct members. Avoids diffs in inteldrm, libdrm and Mesa >= 17.2. ok kettenis@
2018-02-26regenccardenas
2018-02-26Add devices found on thinkpad e475 with an AMD A10-9600Pccardenas
(Bristol Ridge, aka tweaked Carrizo) not to be confused with Carrizo-L (16h apu). ok jsg@, mlarkin@
2018-02-25Don't pass our configured SSID to iwm(4) firmware during a background scan.Stefan Sperling
Apparently this can cause a firmware crash during a TX command on 7265 devices. Why this happens is unclear. Problem reported and workaround tested by trondd on bugs@ I have verified that hidden SSID APs still work, though we won't be able to seamlessly roam between them anymore. Seems like a fair trade-off for now.
2018-02-25My previous commit to iwn(4) broke the scan loop.Stefan Sperling
The problem happened if we didn't find an AP to connect to after one scan iteration. The net80211 stack then performs a SCAN -> SCAN transition to kick off another scan, but the driver treated this transition as a no-op and remained in SCAN state doing nothing. To fix this, introduce a flag which keeps track of whether a firmware scan command is in progress, and start another scan during a SCAN->SCAN transition if no scan is in progress. Matches what iwm(4) does. Note that previously (i.e. in 6.2), iwn(4) would always try to start a new scan regardless of what the firmware was currently doing. Problem noticed by myself and also by deraadt@ test & ok tb@
2018-02-23regenDavid Gwynne
2018-02-23masanobu saitoh pointed out i had the wrong id for XXV710 SFP28 devsDavid Gwynne
2018-02-21match linux whitespace in ioctl listJonathan Gray
2018-02-20stop mixing bsd and c99 fixed width types and just use c99 types everywhereJonathan Gray
2018-02-20Set the chain_offset field (same as sgl_offset0, only in 16 byte units)Jonathan Matthew
in passthrough IO requests, which makes AEN processing work on SAS2208 controllers, and since AEN processing works now, enable it again. tested on SAS2208 (PERC H710P) and SAS3108 (PERC H730), SAS3.5 parts should work too. ok dlg@
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
The account flag `ASU' will no longer be set but that makes suser() mpsafe since it no longer mess with a per-process field. No objection from millert@, ok tedu@, bluhm@
2018-02-08Move bwfm(4) from ifq begin/commit/rollback semantics to the newerPatrick Wildt
ifq dequeue semantics. This basically means we need to check for available space before dequeuing a packet. As soon as we dequeue a packet we commit to it. On the PCIe backend this check can not be done easily since the flowring depends on the packet contents and we cannot take a peek. When there is no flowring we cache the mbuf and send it out as soon as the flowring opened up. Then the ifq can be restarted and traffic can flow. Typically we usually run out of packet ids, which can be checked without consulting the packet. The flowring probably never becomes full as the bwfm(4) firmware takes the packets off the ring without actually sending them out. Discussed with dlg@
2018-02-07Move parsing the BCDC header on RX into a protocol specific RXPatrick Wildt
function so it can be shared with the SDIO attachment driver.
2018-02-02use the same bar used to determine memory type when mapping memoryJonathan Gray
should resolve mapping error on SAS3508 encountered by claudio@ ok jmatthew@
2018-02-01Make sure iwn(4) firmware and driver stay in sync when a scan isStefan Sperling
requested by ifconfig while associated. For completeness, do the same for RUN->{ASSOC,AUTH} and AUTH->ASSOC transitions. i.e. always keep the firmware's association state in sync with the driver's state. The firmware should only be associated in RUN state. Fixes a problem where the driver remained in SCAN state forever after running 'ifconfig iwn0 scan' in associated (i.e. RUN) state, presumably because the firmware didn't like the driver's scan command and never signaled completion of the scan. ok kevlo@ phessler@
2018-01-31Some wifi drivers don't call ieee80211_newstate() during some stateStefan Sperling
transitions, which means those state transition won't be shown in dmesg in interface debug mode. Make drivers print these transitions themselves. ok patrick@
2018-01-31adjust container_of() for const useJonathan Gray
avoids -Wincompatible-pointer-types-discards-qualifiers build errors with radeon_ucode.c
2018-01-31add pci_is_root_bus()Jonathan Gray
2018-01-31add list_prev_entry()Jonathan Gray
2018-01-31add dmi_match() and change dmi_found() to use itJonathan Gray
2018-01-30add more pci defines and pci_pcie_cap()/pcie_capability_read_dword()Jonathan Gray
2018-01-30add module_init()/module_exit()/signal_pending()Jonathan Gray
2018-01-30add stubs for pci_clear_master()/pci_save_state()/pci_restore_state()/Jonathan Gray
pci_set_power_state()
2018-01-30add mutex_destroy()/down_read_trylock()Jonathan Gray
2018-01-30add create_singlethread_workqueue()/system_power_efficient_wqJonathan Gray
2018-01-30add pm_runtime_* stubsJonathan Gray
2018-01-30Don't limit vga_switcheroo stubs to amd64/i386 and addJonathan Gray
vga_switcheroo_fini_domain_pm_ops() stub.
2018-01-30add iowrite64()/writeq()Jonathan Gray
2018-01-30add GFP_USER/__user/vmalloc()Jonathan Gray
2018-01-30add ilog2()/order_base_2()/gcd()Jonathan Gray
2018-01-30disable -Wformat-zero-length when building with gccJonathan Gray
-Wformat includes -Wformat-zero-length with gcc 4.2 which breaks building unmodified atom.c with the SDEBUG macro "warning: zero-length kprintf format string"
2018-01-30add i2c_bit_add_bus()Jonathan Gray