summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2019-08-06Resolve some minor nits in diskmapioctl():anton
* Favor ENOTTY for unknown ioctl commands * Return the actual error from copyinstr and copyoutstr, removes the need to initialize the local error variable * Do not use parens around return expressions consistently ok visa@
2019-08-06Read the fifo depths from the appropriate configuration register andMark Kettenis
update the values if they are non-zero and smaller than the current hardcoded depths. Fixes dwiic(4) on Ampere eMAG. ok patrick@, jcs@
2019-08-05Favor vn_close() in the error path of diskmapioctl() since side-effectsanton
caused by calling vn_open() with write permissions must be reverted. Otherwise, the vfs subsystem could panic while releasing the last vnode reference if the writecount is still positive. ok visa@ Reported-by: syzbot+4724df09d9ab0fdca28a@syzkaller.appspotmail.com Reported-by: syzbot+a430606fd528645559db@syzkaller.appspotmail.com
2019-08-05Allow concurrent reads of the f_offset field of struct file byanton
serializing both read/write operations using the existing file mutex. The vnode lock still grants exclusive write access to the offset; the mutex is only used to make the actual write atomic and prevent any concurrent reader from observing intermediate values. ok mpi@ visa@
2019-08-05sis(4) calls mii_phy_reset(); add explicit dependency on mii_phy in configStefan Sperling
from grunk@
2019-08-04Add support for X-Gene/eMAG variant.Mark Kettenis
2019-08-04Implement smbios support on arm64.Mark Kettenis
ok deraadt@, jsg@
2019-08-02regenMark Kettenis
2019-08-02Add Ampere vendor and eMAG PCIe devices.Mark Kettenis
2019-07-31ihidev: continue doing polling when interrupt setup failsJoshua Stein
2019-07-31dwiic_acpi: handle GPIO interrupts when we have no appropriate driverJoshua Stein
Avoid printing a confusing "irq 0" message in this case.
2019-07-31dwiic: stop enabling polling by defaultJoshua Stein
The interrupt problem had nothing to do with changes in the Intel 100 Series and was due to most of these machines using the same DSDT template where we were walking _INI nodes in the wrong order. This lead to the touchpad device's _INI method being called before \_SB_.PCI0._INI (where \OSYS is initialized), making the touchpad device's interrupts setup for an OSYS of 0, but when its _CRS method was called later during ihidev attachment (after \_SB_.PCI0._INI was executed, modifying OSYS), it returned information for interrupts as if were initially setup for the proper OSYS.
2019-07-31aml_find_node: perform callback on matched direct-child nodes beforeJoshua Stein
recursing into child devices looking for matches. This ensures that when walking nodes with acpi_inidev, a method like \_SB_.PCI0._INI will be executed before \_SB_.PCI0.I2C1.TPL1._INI. This matches how ACPICA walks nodes and a commonly-used DSDT template assumes that \OSYS has been initialized in \_SB_.PCI0._INI before being used by other device _INI methods. This should also help to execute \_INI and \_SB_._INI first, if present, which ACPICA does explicitly. Tested in snaps, ok deraadt
2019-07-31The ACPI 3 spec says the ToHexString and ToDec(imal)StringJoshua Stein
operators can take a data argument of Integer, String, or Buffer types, not just Integer. ok kettenis, deraadt
2019-07-31drm/amd/display: fix compilation errorJonathan Gray
From Hariprasad Kelam 6a7047471073c2cf8e375b2fe5a71bacf9799973 in linux 4.19.y/4.19.63 88099f53cc3717437f5fc9cf84205c5b65118377 in mainline linux
2019-07-31drm/amd/display: Always allocate initial connector state stateJonathan Gray
From Nicholas Kazlauskas 11b4e9f3695c155f71cb2bc56d761284bf5e65b1 in linux 4.19.y/4.19.63 f04bee34d6e35df26cbb2d65e801adfd0d8fe20d in mainline linux
2019-07-31drm/amdkfd: Fix sdma queue map issueJonathan Gray
From Oak Zeng 210dfe6309112dd028bf06561b828a749b6e1169 in linux 4.19.y/4.19.63 065e4bdfa1f3ab2884c110394d8b7e7ebe3b988c in mainline linux
2019-07-31drm/amdkfd: Fix a potential memory leakJonathan Gray
From Oak Zeng db64bc13944013357d231cbf9d1aee798d7b9892 in linux 4.19.y/4.19.63 e73390d181103a19e1111ec2f25559a0570e9fe0 in mainline linux
2019-07-31drm/amd/display: Disable ABM before destroy ABM structJonathan Gray
From Paul Hsieh 6b1d2871fe369cb65f087cd300bad6af50764ac7 in linux 4.19.y/4.19.63 1090d58d4815b1fcd95a80987391006c86398b4c in mainline linux
2019-07-31drm/amdgpu/sriov: Need to initialize the HDP_NONSURFACE_BAStEJonathan Gray
From Tiecheng Zhou c242a531bb068c91bea7454353206330423ec1a6 in linux 4.19.y/4.19.63 fe2b5323d2c3cedaa3bf943dc7a0d233c853c914 in mainline linux
2019-07-31drm/amd/display: Fill prescale_params->scale for RGB565Jonathan Gray
From Nicholas Kazlauskas 147137f86b5b72aea3af4edb2e66f10c0baa841e in linux 4.19.y/4.19.63 1352c779cb74d427f4150cbe779a2f7886f70cae in mainline linux
2019-07-31Actually set promisc modes based on the interface stateJonathan Matthew
2019-07-30Update media type and status on link change events. Since we don't haveJonathan Matthew
any information about the actual media type (there might not even be one), just pick an arbitrary type of the right speed.
2019-07-30push rxed packets to the stack once per interrupt (per port)David Gwynne
pushing to the stack on every packet completion interacts badly with the backpressure mechanism in ifiq_input when you rx more than 8 or so packets per interrupt. while here move to ifiq_input and apply backpressure before we start dropping in software. the problem was found by olivier taibi and reported on bugs@ i tested this on an overdrive 1000 which uses msk for its onboard nic
2019-07-30enable DRIVER and KMS debug messages when DRMDEBUG is definedJonathan Gray
leave out CORE as it is quite noisy
2019-07-29Shut down queues properly when bringing the interface downJonathan Matthew
2019-07-29drm/i915: Fix I915_EXEC_RING_MASKJonathan Gray
From Chris Wilson 554f4253700e09d2b9ef7a133c68e32389a48c81 in linux 4.19.y/4.19.50 d90c06d57027203f73021bb7ddb30b800d65c636 in mainline linux
2019-07-29Add support for 802.11n Tx aggregation to net80211 and the iwn(4) driver.Stefan Sperling
In particular, add Tx block ack session management to net80211, with enough funcionality to support Tx aggregation on devices which perform A-MPDU subframe scheduling in firmware. Make use of the iwn(4) firmware Tx scheduler to build A-MPDUs. net80211's QoS support code is now enabled and used by Tx aggregation. A-MSDU frames inside A-MPDUs have been tested and work in principle. For now, this feature is disabled because unfair TCP connection sharing was observed during testing, where bursts of TCP Ack frames for a single tcpbench(1) connection arriving in A-MSDUs made other TCP connections stall. Switch off support for A-MSDUs inside A-MPDUs on the Rx side as well. Tested on iwn chipsets 1000, 4965, 5100, 5300, 2200, 6200, 6205, 6300 (committed version of tested diff has all debug printfs removed) tests/ok benno kmos mlarkin kevlo
2019-07-29reduce the diff to linuxJonathan Gray
2019-07-29dma-buf: Discard old fence_excl on retrying get_fences_rcu for reallocJonathan Gray
From Chris Wilson c947cf3e95839e9f449d8194fd15979e5ebc5f16 in linux 4.19.y/4.19.62 f5b07b04e5f090a85d1e96938520f2b2b58e4a8e in mainline linux
2019-07-29remove some VF bits now that iavf(4) existsJonathan Matthew
ok dlg@
2019-07-29Add iavf(4), a driver for Intel Ethernet Adaptive Virtual Functions.Jonathan Matthew
This should work with SR-IOV virtual functions of Intel 700 series and newer ethernet controllers. Written based on ixl(4) and the AVF Hardware Architecture Specification released by Intel. ok dlg@ deraadt@
2019-07-28regenJonathan Matthew
2019-07-28add newer intel nic virtual function idsJonathan Matthew
2019-07-27Make target numbers match the NVMe namespace identifiers. This fixes bootingMark Kettenis
from nvme(4) on sparc64 as the OBP device paths contain namespace identifiers that we end up matching to targets when trying to find the device we booted from. Also results in (slightly) cleaner code and less confusion as the numbers now match instead of being off-by-one. ok dlg@
2019-07-27drm/edid: parse CEA blocks embedded in DisplayIDJonathan Gray
From Andres Rodriguez 66a13b5e4e9cc7bb2c6a5d12a650df4309b77c46 in linux 4.19.y/4.19.61 e28ad544f462231d3fd081a7316339359efbb481 in mainline linux
2019-07-27Match linux path in i915_gem_mmap_ioctl() and change ggtt origin ifJonathan Gray
I915_MMAP_WC flag is set. ok kettenis@
2019-07-25regenMark Kettenis
2019-07-25Add Sun Static Direct I/O devicesMark Kettenis
2019-07-25Remove old unused drm_debug_flag var and make drm_debug (used byJonathan Gray
drm_print) a var instead of a define in a header. Makes it easier to change without rebuilding everything and allows the value to be changed at runtime via ddb.
2019-07-25Remove old DRM_READMEMORYBARRIER() DRM_WRITEMEMORYBARRIER() andJonathan Gray
DRM_MEMORYBARRIER() definitions and directly define rmb() wmb() and mb().
2019-07-25remove some unused macrosJonathan Gray
2019-07-25ipw, iwi, iwm, iwn, wpi(4): tsleep -> tsleep_nsec(9); ok stsp@cheloha
2019-07-24Set athn(4) Tx descriptor fields which specify Tx power used for retries.Stefan Sperling
tested by myself, jmc@, and Tracey Emery
2019-07-24Make athn(4) provide full Tx time of each frame in a Tx series to hardware.Stefan Sperling
Linux ath9k does the same. tested by myself, jmc@, and Tracey Emery
2019-07-22Even when polling is requested, install ihidev's interrupt handlerJoshua Stein
If an interrupt is received, turn off polling and rely on interrupts. This may happen after S3 resume. Also properly shut down polling during suspend and start it up again on resume only after dwiic is back in action.
2019-07-21add a panel orientation quirk for Kogan Atlas 2-in-1 D300Jonathan Gray
reported and tested by Peter Kane
2019-07-21apply backpressure when ifiq says the stack is getting busyDavid Gwynne
2019-07-20Get rid of `ddb_is_active' instead use `db_active'.Martin Pieuchot
From Christian Ludwig <christian_ludwig at genua dot de> ok visa@
2019-07-19ttysleep(): drop unused timeout parametercheloha
All callers sleep indefinitely. With help from visa@. ok visa@, ratchov@, kn@