summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2021-10-06Change sendsig() interface so that the MD code does not need to accessClaudio Jeker
data from struct process anymore. This changes how siginfo and onstack are accessed and make sendsig() more MP friendly. With and OK semarie@ OK kettenis@
2021-10-06Allow AUTH->AUTH state transitions in the iwm(4) and iwx(4) drivers again.Stefan Sperling
AUTH->AUTH state transitions happen if the access point uses band-steering. This was originally implemented to fix interop with some Aruba APs, and was probably broken by my recent CVS commit XeKkqPoaUCklmgtC ("prevent attempts to transition towards the same state"). ok mpi@
2021-10-06Make sure iwm(4) uses the HT frame format only for data frames.Stefan Sperling
Non-data frames are not supposed to use HT. This change is for code correctness and does not fix any known issue. And it applies only if the Tx rate has been fixed for testing purposes with a command such as 'ifconfig iwm0 media HT-MCS13 mode 11n'. ok mpi@
2021-10-06Add openbsd,dma-constraint property to /chosen node on armv7Visa Hankala
On the Zynq-7000, the DMA constraint has to be adjusted because many bus masters are unable to access the lowest part of RAM. OK patrick@ kettenis@
2021-10-05cleanup conf.c, and bring in wd(4) supportTheo de Raadt
ok kettenis
2021-10-05Unref/free amaps before grabbing the KERNEL_LOCK().Martin Pieuchot
This is possible now that amaps & anons are protected by a per-map rwlock. Tested by many as part of a bigger diff. ok kettenis@
2021-10-05Cleanup the error handling in ipsec ipip_output() and consistentlyAlexander Bluhm
goto drop instead of return. An ENOBUFS should be EINVAL in IPv6 case. Also use combined packet and byte counter. OK sthen@ dlg@
2021-10-05Move setting ipsec mtu into a function. The NULL and invalid checkAlexander Bluhm
in ipsec_common_ctlinput() is not necessary, the loop in ipsec_set_mtu() does that anyway. udpencap_ctlinput() did not work for bundled SA, this also needs the loop in ipsec_set_mtu(). OK sthen@
2021-10-05Fix iwm(4) performance drop after roaming between APs in 11n mode.Stefan Sperling
Stop BA sessions directly in iwm_run_stop() and disable Tx agg queues when leaving RUN state. Otherwise Tx agg queues do not work properly after switching APs and Tx performance drops to about 2 Mbit/s with excessive retries being reported to RA. Tested: 7260: florian 8260: bket 8265: stsp 9260: florian 9560: stsp
2021-10-05For now the signal returned in cursig() is only set in p_siglist.Claudio Jeker
Simplify the code and remove the now unused CLRSIG() macro. OK mpi@
2021-10-05wd(4) device node support was missing, add it.Theo de Raadt
2021-10-04Allegedly a "Marvell Armada 3700 Functional Errata, Guidelines, andMark Kettenis
Restrictions" document exists that discusses an errata #251 in section "3.12 PCIe Completion Timeout" and suggests that setting the DIS_ORD_CHK flag in the Debug Mux Control register is necessary as a workaround: https://lore.kernel.org/linux-pci/20210624222621.4776-6-pali@kernel.org This workaround is still being discussed by the Linux developers, but it does fix an issue I am seeing with athn(4), where an external abort happens under load. So apply this workaround since its potential side effects seem to be significantly less severe than provoking an external abort that hangs the machine. ok patrick@
2021-10-04grow i386 media for new realtek firmwaresTheo de Raadt
2021-10-04Simplify sys___thrsigdivert a bit. cursig() always moves the pending signalClaudio Jeker
to p_siglist and so there is no need to check ps_siglist for the signal. OK mpi@
2021-10-04Use the fact the vnodes are locked when operations are inflight.Claudio Jeker
Remove the v_inflight member and alter the ffs and ext2fs sync code to track inflight by checking if the node is locked or not (which it already did before but for a different reason). OK mpi@
2021-10-04Build firmware for rsu(4), rtwn(4), and urtwn(4).Kevin Lo
We have to install the files with new filenames (removal of "fw" from each of the filenames) and change the driver to use the new filenames, such that the package becomes irrelevant. Discussed with deraadt@ and sthen@ ok deraadt@
2021-10-04Permission from Realtek to include wireless firmwaresKevin Lo
After deraadt@ explained why the Realtek firmware cannot be put into our tree, I reached out to Realtek to explain the situation. According to the LICENCE.rtlwifi_firmware.txt [1], the rules permitted adding their non-open-source firmware into open source operating systems but such an addition (ironically) makes that open source operating system not entirely open source. Realtek understood the irony, and change the license. Thanks to Realtek for this change which lets us put the firmware .h file into our tree, this means Realtek wireless will work without requiring a firmware download (which is difficult over a non-working Realtek network :) [1] https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/LICENCE.rtlwifi_firmware.txt?id=0f863ff1b388ad5b0f7d25decdbb642#n22 ok deraadt@
2021-10-03Apparently some athn(4) variants are buggy and may hand us corrupt framesMark Kettenis
that are marked "ok". Linux has some workarounds for this and checks whether the status word has error bits set in it regardless of the bit that marks the frame as "ok". Adapt this workaround to our driver and drop the frame after setting input errors. This doesn't filter out all corrupted frames, but it does keep things down to a level where it doesn't fill up the node cache anymore when athn(4) is used in hostap mode. Seen with: athn0 at pci1 dev 0 function 0 "Atheros AR9281" rev 0x01: intx athn0: AR9280 rev 2 (2T2R), ROM rev 16, address xx:xx:xx:xx:xx:xx ok stsp@
2021-10-03un.ifdef USB and PCI, since all our architectures (minus one) have modelsTheo de Raadt
which can have these busses, might as well make these distributable firmwares available in case the drivers find devices. ok kettenis
2021-10-02fuse: avoid namei_pool leaks in several functionsSebastien Marie
when calling namei(), cn_pnbuf is kept allocated when fs implementation is setting SAVENAME flag. In such cases, it is expected the fs implementation to also release memory when work is done. fuse(4) didn't put back the memory to the pool. correct it. ok mpi@
2021-10-02Extend workaround for reset on context closure from gen 7-8 to gen 4-8Jonathan Gray
as asavvycomputist@disroot.org reported this occurs on gm45 (gen 4).
2021-10-02remove dead variable from sys___realpath()Sebastien Marie
it is a leftover from LOCKPARENT removal in NDINIT() (in rev 1.337) ok mpi@
2021-10-02vfs: merge *_badop to vop_generic_badopSebastien Marie
It replaces spec_badop, fifo_badop, dead_badop and mfs_badop, which are only calls to panic(9), to one unique function vop_generic_badop(). No intented behaviour changes (outside the panic message which isn't the same). ok mpi@
2021-10-02Remove iwx_assoc() and iwx_disassoc(). Not needed because they duplicateStefan Sperling
work that is already handled by state transitions involving AUTH or RUN.
2021-10-02Remove iwm_assoc() and iwm_disassoc(). Not needed because they duplicateStefan Sperling
work that is already handled by state transitions involving AUTH or RUN.
2021-10-02Fix panic when iwx(4) firmware is not present at boot time.Stefan Sperling
Uncomfortable bug found the hard way by deraadt@
2021-10-01amd/display: downgrade validation failure log levelJonathan Gray
From Simon Ser 526261c1b706fec0ea80ce9f14c8fe8468bee34d in linux 5.10.y/5.10.70 7bbee36d71502ab9a341505da89a017c7ae2e6b2 in mainline linux
2021-10-01treewide: Change list_sort to use const pointersJonathan Gray
From Sami Tolvanen 55e6f8b3c0f5cc600df12ddd0371d2703b910fd7 in linux 5.10.y/5.10.70 4f0f586bf0c898233d8f316f471a21db2abd522d in mainline linux
2021-10-01drm/amd/pm: Update intermediate power state for SIJonathan Gray
From Lijo Lazar 68d4fbe6220cd1f3d07cab0a4901e62f8c12cc68 in linux 5.10.y/5.10.70 ab39d3cef526ba09c4c6923b4cd7e6ec1c5d4faa in mainline linux
2021-09-30In iwm(4) and iwx(4), prevent attemps to transition towards the same stateStefan Sperling
in cases where this would result in a redundant or illegal state transition. jmc@ observed ASSOC -> ASSOC transitions which would result in a hang. Such transitions are invalid and never intentionally triggered by net80211. They imply a race between the Rx interrupt handler and the newstate task. Tested by jmc@ on AX200 for a week and several known issues seem to be fixed.
2021-09-29Global variables to track initialisation behave poorly with MP.Alexander Bluhm
Move the tdb pool init into an init function. OK mvs@
2021-09-29Add support for Cannon Lake H and Tiger Lake H platforms.Mark Kettenis
ok jcs@
2021-09-29syncJonathan Gray
2021-09-29drm/amdgpu: add some additional RDNA2 PCI IDsJonathan Gray
From Alex Deucher 8f0c93f454bd7ab04eaec1d3c436c4c7c2378f07 in mainline linux
2021-09-29regenJonathan Gray
2021-09-29intel 0x5915 is a kaby lake graphics id not imaging unitJonathan Gray
fix strings in some other graphics devices as well
2021-09-29regenJonathan Gray
2021-09-29add amdgpu and inteldrm devices matched by 5.15 drm without force probeJonathan Gray
includes amd codenames for codenames so subject to change
2021-09-28Fix timeout behaviour bug introduced in 1.241.Claudio Jeker
If the timespec is zero-valued sys___thrsigdivert() should just do the check for pending signals and return immediatly. OK kettenis@
2021-09-27drm/amdgpu: Disable PCIE_DPM on Intel RKL PlatformJonathan Gray
From Koba Ko 45bd9dd1bee8aedc4cbd409b1ba7f9b4f941eea6 in linux 5.10.y/5.10.69 b3dc549986eb7b38eba4a144e979dc93f386751f in mainline linux
2021-09-27drm/amd/amdgpu: Increase HWIP_MAX_INSTANCE to 10Jonathan Gray
From Ernst Sjoestrand 8f95553f0016c3994d9c022b5af4a1a433d6714e in linux 5.10.y/5.10.68 67a44e659888569a133a8f858c8230e9d7aad1d5 in mainline linux
2021-09-27drm/amd/display: Update bounding box states (v2)Jonathan Gray
From Jerry (Fangzhi) Zuo b80a99e048275d566d63f2463a2f640065ccbf75 in linux 5.10.y/5.10.67 a7a9d11e12fcc32160d55e8612e72e5ab51b15dc in mainline linux
2021-09-27drm/amd/display: Update number of DCN3 clock statesJonathan Gray
From Aurabindo Pillai 583c4f3d09c3e980a683b59febbb0c775bdff1db in linux 5.10.y/5.10.67 0bbf06d888734041e813b916d7821acd4f72005a in mainline linux
2021-09-27drm/amdgpu: Fix BUG_ON assertJonathan Gray
From Andrey Grodzovsky 7b1abace16a9dff6804d4eb94750beb60d9502b4 in linux 5.10.y/5.10.67 ea7acd7c5967542353430947f3faf699e70602e5 in mainline linux
2021-09-27drm/dp_mst: Fix return code on sideband message failureJonathan Gray
From Rajkumar Subbiah bb693c114e8b53e3e0b8228be218d907d35959a5 in linux 5.10.y/5.10.67 92bd92c44d0d9be5dcbcda315b4be4b909ed9740 in mainline linux
2021-09-27drm/amdkfd: Account for SH/SE count when setting up cu masks.Jonathan Gray
From Sean Keely 0e9f4492219f8f991163691aad43897da8478c4e in linux 5.10.y/5.10.67 1ec06c2dee679e9f089e78ed20cb74ee90155f61 in mainline linux
2021-09-27drm/display: fix possible null-pointer dereference in dcn10_set_clock()Jonathan Gray
From Tuo Li 83449db3aac0895147eac723bf23d0739720b968 in linux 5.10.y/5.10.67 554594567b1fa3da74f88ec7b2dc83d000c58e98 in mainline linux
2021-09-27gpu: drm: amd: amdgpu: amdgpu_i2c: fix possible uninitialized-variable ↵Jonathan Gray
access in amdgpu_i2c_router_select_ddc_port() From Tuo Li 2254383788ff93a423e20068333b9f8376d56cb4 in linux 5.10.y/5.10.67 a211260c34cfadc6068fece8c9e99e0fe1e2a2b6 in mainline linux
2021-09-27drm/amd/display: fix incorrect CM/TF programming sequence in dwbJonathan Gray
From Roy Chan 63ebc1f1df813ebb40d19449c356480555008166 in linux 5.10.y/5.10.67 781e1e23131cce56fb557e6ec2260480a6bd08cc in mainline linux
2021-09-27drm/amd/display: fix missing writeback disablement if plane is removedJonathan Gray
From Roy Chan d763afc4ea2b251217ec87cf4c1e006c9f0aef99 in linux 5.10.y/5.10.67 82367e7f22d085092728f45fd5fbb15e3fb997c0 in mainline linux