summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2019-11-03Correctly re-initialize the nameinfo struct that is re-used forBob Beck
vn_open when vnconfig'ing from a read-only filesystem. This bug has been with us for a long time and was spotted by Kawamata Yoshihiro <kaw@on.rim.or.jp> after recent changes making vn_open more picky about the structure it is called with.
2019-11-02Add a few more PCIe capability registers and bits. As usual, the namesMark Kettenis
are taken from Intel chipset documentation. Prompted by a diff from kurt@. ok kurt@
2019-10-30drm/amdgpu: Bail earlier when amdgpu.cik_/si_support is not set to 1Jonathan Gray
From Hans de Goede 4d5307c099afc9ce5fe89e8acf9b3c65104d0e08 in linux 4.19.y/4.19.81 984d7a929ad68b7be9990fc9c5cfa5d5c9fc7942 in mainline linux
2019-10-30drm/ttm: Restore ttm prefaultingJonathan Gray
From Thomas Hellstrom 11377c3e997eca9c9ff562fc4fc7a41a455bddf6 in linux 4.19.y/4.19.81 941f2f72dbbe0cf8c2d6e0b180a8021a0ec477fa in mainline linux
2019-10-30drm/edid: Add 6 bpc quirk for SDC panel in Lenovo G50Jonathan Gray
From Kai-Heng Feng 33af2a8ee304ee2deb618eebb534b52ce166467f in linux 4.19.y/4.19.81 11bcf5f78905b90baae8fb01e16650664ed0cb00 in mainline linux
2019-10-30Revert "drm/radeon: Fix EEH during kexec"Jonathan Gray
From Alex Deucher 0933b0db7fb239be01270b25bf73884870d8c1e6 in linux 4.19.y/4.19.81 8d13c187c42e110625d60094668a8f778c092879 in mainline linux
2019-10-29syncJoshua Stein
2019-10-29add an Intel 9260 wifi cardJoshua Stein
2019-10-29Regen for Marvell 88SE9128 AHCI.Kurt Miller
2019-10-29Add Marvell 88SE9128 AHCI. okay kettenis@Kurt Miller
2019-10-28Have iwm(4) configure the PCIe LTR.Stefan Sperling
Patch by Imre Vadasz. Cross-check and pcireg.h tweak by kettenis@ ok patrick@
2019-10-28Make iwm_stop_device() power down bus master DMA clocks on 7k devices only.Stefan Sperling
Patch by Imre Vadasz ok patrick@
2019-10-28Recognize IWM_DTS_MEASUREMENT_NOTIF_WIDE PHY_OP notification which willStefan Sperling
be generated by version 17 firmware. While at it, declare all known firmware command groups and all PHY_OPS subcomand ids. Patch by Imre Vadasz, with tweaks by me ok patrick@
2019-10-28Get rid of version 1 of iwm's time event firmware API.Stefan Sperling
All supported firmware versions support IWM_UCODE_TLV_FLAGS_TIME_EVENT_API_V2. Rename struct iwm_time_event_cmd_v2 to iwm_time_event_cmd, and remove helper functions for converting from V2 API structs to V1 versions. Patch by Imre Vadasz ok patrick@
2019-10-28Remove a couple of unneeded IWM_UCODE_TLV_FLAGS_* flags:Stefan Sperling
IWM_UCODE_TLV_FLAGS_PM_CMD_SUPPORT IWM_UCODE_TLV_FLAGS_NEWBT_COEX IWM_UCODE_TLV_FLAGS_BF_UPDATED IWM_UCODE_TLV_FLAGS_D3_CONTINUITY_API IWM_UCODE_TLV_FLAGS_STA_KEY_CMD IWM_UCODE_TLV_FLAGS_DEVICE_PS_CMD IWM_UCODE_TLV_FLAGS_SCHED_SCAN All supported firmware versions have these flags set. Patch by Imre Vadasz ok patrick@
2019-10-28Remove unneeded IWM_UCODE_TLV_FLAGS_RX_ENERGY_API flag.Stefan Sperling
All supported firmware versions have this feature flag set. Remove now unneeded iwm_calc_rssi() function. Patch by Imre Vadasz. ok patrick@
2019-10-28Do not set IWM_SF_CFG_DUMMY_NOTIF_OFF bit in iwm SF_CFG firmware command.Stefan Sperling
It is only required for devices connected via SDIO which we do not support. Patch by Imre Vadasz ok patrick@
2019-10-28Skip the 'update MCC' command if iwm 8k firmware supports LocationStefan Sperling
Aware Regulatory (LAR) mode and LAR is disabled according to NVM. Patch by Imre Vadasz. ok patrick@
2019-10-28Use 0x6c as permanent ID for IWM_PHY_DB_CMD; remove incorrect comment.Stefan Sperling
Patch by Imre Vadasz. Matches Linux commit 176aa60bf148b5af4209ac323cef941dee76e390 by Sara Sharon. ok patrick@
2019-10-28Remove unused DEFAULT_MAX_TX_POWER definition from if_iwmreg.h,Stefan Sperling
which had a value different from the IWL_DEFAULT_MAX_TX_POWER constant in Linux iwlwifi. Patch by Imre Vadasz. ok patrick@
2019-10-28The iwm_prepare_card_hw() call in iwm_attach() is only needed on 8k devices.Stefan Sperling
Patch by Imre Vadasz. ok patrick@
2019-10-28iwm: tweak post-alive NIC locking to more closely match how Linux does itStefan Sperling
ok patrick@
2019-10-28iwm: enlarge maximum NVM section size; required for newer firmwareStefan Sperling
ok patrick@
2019-10-28Better error handling for bwfm(4) connection attempts. When we failPatrick Wildt
to connect, e.g. due to a timeout, we will switch the state to SCAN. Unfortunately this skips clearing the active channel set, which means that on a scan on all bands only the nodes on the active channel set, which is defined by whatever node we tried to connect to, are allowed and all other APs are ignored. Fix this by properly calling begin_scan(). When we fail to connect and start a scan, make sure to let the chip know that we don't want to associate anymore. Another issue existed when we interrupt a scan, for instance by setting a new nwid or wpakey. In this case we didn't abort the scan and started a new scan while the old one as still active. This could lead to a SCAN -> SCAN transition loop. Remove the "set ssid" event, since this would be an event in addition to a failed auth/assoc event, which would make us try to handle failure twice. Discussed with and ok stsp@
2019-10-27tweak the rx path to look more like the tx path.David Gwynne
it's a bit shorter, and a bit more correct wrt use of bus_dma. still a bit to go though.
2019-10-27Add i.MX5/6 support and enable this driver on armv7(4).Mark Kettenis
ok jsg@, patrick@
2019-10-27fix the last commit.David Gwynne
if gen is toggled per packet, then it needs to be toggled before each packet, not before the loop. also, if 0 out the right offload. brad pointed out the if 0 bit.
2019-10-26put vlan tag offload back inDavid Gwynne
2019-10-26make vmx transmit (vmxnet3_start) mpsafe.David Gwynne
to make mpsafetey a bit easier to figure out i disabled checksum and vlan offload. i'll put them back in soon though.
2019-10-26avoid rxr races between rxfill from the interrupt and timeout pathsDavid Gwynne
vmx "hardware" seems to be able to use rx descriptors as soon as theyre filled in, which means filling the ring from a timeout can run conccurently with an isr that's pulling stuff off the ring. this is mostly a problem with the rxr accounting, so we serialise updates to the alive counter by running rxfill in a mutex. most of the investigation was done by claudio@ and mathieu@ an earlier version of this diff was tested hard by mathieu@ and was ok@ claudio
2019-10-25Remove some space before tab and other small indentation errors.Claudio Jeker
2019-10-23Add sxisid(4), a driver to read the on-chip eFuses written byMark Kettenis
Krystian Lewandowski. ok patrick@
2019-10-23Use baseboard specific vendor, product and serial strings for DMI_BOARD_*Jonathan Gray
instead of using hw_vendor and hw_prod which are set from the system information structure possibly falling back to baseboard structure. Remove currently unused DMI_BOARD_VERSION case. Should fix the GPD Pocket panel rotation quirk that depends on baseboard vendor of 'AMI Corporation' while the system information vendor is 'Default string'. Reported by Alexander Shendi on bugs@.
2019-10-21Add sxipwm(4) and pwmbl(4). Thse two drivers together add support for theMark Kettenis
backlight controller on the Pinebook. ok patrick@, jsg@
2019-10-21On newer ThinkPads reporting HKEY version > 1, don't claim wsconsJoshua Stein
backlight controls so that acpivout can. This allows using all of the fine-grained backlight BCL steps defined in ACPI (usually 100) instead of the dozen or so available through acpithinkpad's proprietary ACPI or CMOS interfaces. This is also needed for future amdgpu work.
2019-10-21When incrementing or decrementing screen brightness, don't justJoshua Stein
adjust by 1 BCL level as there may be 100 levels. Find the next brightness level that is at least 5% up or down and use that. ok kettenis
2019-10-21Mark recycled USB `xfer' as NOT_STARTED to not confuse HCD abort methods.Martin Pieuchot
Prevent an infinite loop when aborting ulpt(4)'s pipe after an I/O error. Found by and ok stsp@
2019-10-20unstub amdgpu_ttm_bo_eviction_valuable()Jonathan Gray
The remaining commented block of code calls amdkfd_fence_check_mm() which does nothing when not built with CONFIG_HSA_AMD.
2019-10-18Add support for dynamic queue allocation (DQA) to iwm(4).Stefan Sperling
Required for new firmware images because the command queue index has changed. The driver remains compatible with our current firmware images for now. Tested by benno, jan, kevlo, florian, jmatthew, Tracey Emery ok jmatthew
2019-10-17Avoid including an armv7 MD header.Mark Kettenis
ok jsg@
2019-10-17drm/amd/display: num of sw i2c/aux engines less than num of connectorsJonathan Gray
From Hersen Wu 0e8e4fbf8d8905071c045f2922de55adbe1a6abe in mainline linux Avoids a NULL deref of aux_engine in dc_link_aux_transfer() with 'ASRock A320M-HDV R4.0' and Raven Ridge reported by semarie@ on bugs@. ok semarie@
2019-10-16Move sxidog(4) such that we can use it on arm64.Mark Kettenis
ok patrick@
2019-10-16Add a few newer _OSI strings to the parser.Mike Larkin
Early in the release cycle is the right time to do this. "yes please" jcs@. ok deraadt@
2019-10-16regenMike Larkin
2019-10-16Fix a bunch of lines that had whitespace at the endMike Larkin
2019-10-16Remove trailing whitespace from a lineMike Larkin
2019-10-16Fix reversed gotos; CID 1453190.Daniel Dickman
ok jmatthew@
2019-10-15Fix compiler's view of the alignment of xhci structs. Because the structVisa Hankala
fields are naturally aligned, it is enough to remove __packed. This lets the compiler generate saner machine code. In particular, now the compiler does not use lwl/lwr and swl/swr instructions on mips64 for changing xhci descriptors. The descriptors are properly aligned in memory, so lwl/lwr and swl/swr end up doing a redundant load or store. Feedback from guenther@ deraadt@ Tested on amd64 by krw@ OK mpi@ krw@ kettenis@
2019-10-14Convert tsleep(9) to tsleep_nsec(9).Martin Pieuchot
ok visa@, kn@
2019-10-14Add another quirk for the ALC285 on the X1C7 to avoid a clickingJoshua Stein
noise on the headphone output From Linux