summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2021-07-31drm/ttm: add a check against null pointer dereferenceJonathan Gray
From Zheyu Ma 5c3d753b872a706af9317fef4edfb6b640d8a71e in linux 5.10.y/5.10.55 9e5c772954406829e928dbe59891d08938ead04b in mainline linux
2021-07-31Fix displaying incorrect patterns on LUNA's wscons with 1bppKenji Aoyama
framebuffer when Backspace is typed. Reading data from LUNA framebuffer's 'common write plane' is not valid. But on 1bpp framebuffer routine attempts to read from common write plane in macro. That causes displaying incorrect patterns. This bug was found on nono's LUNA-88K emulation first, then inspected on the real hardware after I fortunately got 1bpp framebuffer. Spotted and investigated by Isaki and Sugahara of nono procject. Tested on my LUNA-88K2.
2021-07-30Add newline for debug printf.Marcus Glocker
2021-07-30Increase static number of nframes which enables very initial ISOC support,Marcus Glocker
e.g. uvideo(4) with lower resolutions. In general we might need to re-write parts of the nframes handling in the driver, since the NetBSD nframes transfer allocation doesn't match with our USB stack. With this we can at least start further testing and improvement for ISOC support.
2021-07-30Print iwx(4) firmware version numbers like Linux iwlwifi does it.Stefan Sperling
Starting with major version 35 the Linux driver prints the minor version number in hexadecimal. Same change was made for iwm(4) in CVS commit LCM6R5u9jeF8bcXB
2021-07-30Remove an unused 320k bytes DMA memory allocation from iwx(4).Stefan Sperling
This allocation was left over from code inherited from iwm(4) where it is used for transferring firmware code to the device. Devices supported by iwx(4) use an entirely different mechanism for loading firmware and don't need this allocation at all. Based on a patch by zxystd from the OpenIntelWireless project.
2021-07-30Use inline function for SFENCE.VMA instruction. Fixes missing "memory"Mark Kettenis
clobber in the inline assembly.
2021-07-30Cleanup ptrace-related code; still untested.Mark Kettenis
2021-07-30Fix the transfer abort function dwc2_abort_xfer() to work again with theMarcus Glocker
recently updated code. There, sync the hardware specific parts with the NetBSD driver.
2021-07-30set the name of the allocating process in struct drm_framebufferJonathan Gray
2021-07-29Fix device class.Visa Hankala
2021-07-29Switch iwx(4) to -63 firmware images as shipped in iwx-firmware-20210512.Stefan Sperling
These images contain fixes which address fragattacks vulnerabilities: https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00473.html Running fw_update(1) may be required before rebooting into a new kernel. sysupgrade(8) will take care of this. When reporting issues, please enable 'ifconfig iwx0 debug', reproduce the error once more, and include the full dmesg in your bug report. Tested: ax200: stsp, kevlo, hrvoje, jmc, Mark Patruck, Ashton Fagg ax201: kettenis, Fredrik Engberg, Eric Auge ok kevlo@
2021-07-29Implement support for the BAR_FRAME_RELEASE iwx(4) firmware notification.Stefan Sperling
New firmware will generate this notification when a block ack request is received. Older firmware passed the block ack request frame to the driver. ok kevlo@
2021-07-29Get Tx queues working with new iwx(4) firmware.Stefan Sperling
ADD_STA command version >= 12 implies that firmware uses an internal AUX station for scanning. We do not configure an AUX Tx queue in this case and data queue indices assigned by firmware shift upwards accordingly. ok kevlo@
2021-07-29Support the new iwx(4) firmware TLC_MNG_CONFIG command.Stefan Sperling
This command was expanded by a 4 byte max_tx_op field. As far as I can tell the Linux driver makes no use of this field, so just initialize it to zero. New firmware panics when we try to initialize Tx rate scaling otherwise. ok kevlo@
2021-07-29Support the new iwx(4) firmware session protection command.Stefan Sperling
Required for having associations succeed with new firmware. ok kevlo@
2021-07-29Add support for iwx(4) umac scan command version 14.Stefan Sperling
ok kevlo@
2021-07-29Add support for iwx(4) "reduced" scan config command required by new firmware.Stefan Sperling
ok kevlo@
2021-07-29Handle iwx(4) PHY context command version 3.Stefan Sperling
ok kevlo@
2021-07-29New iwx(4) firmware doesn't require an AUX station to be added.Stefan Sperling
ADD_STA command version >= 12 implies that firmware uses an internal AUX station for scanning, and firmware panics if we try to add one. ok kevlo@
2021-07-29Remove support for the narrow command header on the iwx(4) command queue.Stefan Sperling
This is related to the previous commit which fixed "BAD COMMAND" firmware errors. We can no longer use old-style "narrow" commands on the command queue with new firmware, and our current -48 firmware images don't seem to care either way. We can simplify this code and align it with iwlwifi. ok kevlo@
2021-07-29Fix "BAD COMMAND" errors with new iwx(4) firmware.Stefan Sperling
Firmware API versions >= 50 reject old-style commands in group 0 with a "BAD_COMMAND" firmware error. We must pretend that such commands were in the LONG_GROUP instead in order for firmware to accept them. ok kevlo@
2021-07-29Handle iwx(4) firmware alive response version 5.Stefan Sperling
ok kevlo@
2021-07-29Recognize "phy integration" and "num stations" TLVs found in new iwx(4)Stefan Sperling
firmware images. For now, we can simply ignore them while loading firmware. ok kevlo@
2021-07-29Ignore debug sections present in newer iwx(4) firmware images.Stefan Sperling
ok kevlo@
2021-07-29Increase fixed limits for the number of iwx(4) command versions, channels,Stefan Sperling
and microcode sections. Required for loading new firmware images. ok kevlo@
2021-07-29Declare additional iwx(4) firmware capability and api support flags.Stefan Sperling
ok kevlo@
2021-07-29Change driver class from DV_DULL to DV_IFNET, so that it can be recognizedPatrick Wildt
as boot interface when doing netboot. This makes auto install/upgrade work. ok kettenis@ visa@
2021-07-29drm/i915/gvt: Clear d3_entered on elsp cmd submission.Jonathan Gray
From Colin Xu 1df4fe5a8871f49d34d681ff5b7f93a84d50af4b in linux 5.10.y/5.10.54 c90b4503ccf42d9d367e843c223df44aa550e82a in mainline linux
2021-07-29drm/amdgpu: update golden setting for sienna_cichlidJonathan Gray
From Likun Gao fc31b5be1383e31ca046fdd6e11e0a9a0b3a01d5 in linux 5.10.y/5.10.54 3e94b5965e624f7e6d8dd18eb8f3bf2bb99ba30d in mainline linux
2021-07-29drm: Return -ENOTTY for non-drm ioctlsJonathan Gray
From Charles Baylis 69a603aa170e1c145b93d5d7efcca83a8b1268fe in linux 5.10.y/5.10.54 3abab27c322e0f2acf981595aa8040c9164dc9fb in mainline linux
2021-07-28The clocks for the Rockchip Ethernet controller need to be enabled muchPatrick Wildt
earlier. So far we haven't noticed this, as we had the assumption that all clocks are enabled anyway. On the NanoPi R4S this does not seem to be the case, so we need to bring the clock enable code closer to the other bringup code. ok kettenis@
2021-07-28On some RK3399 boards the firmware disables some of the clocks. AllowPatrick Wildt
some of those clocks to be enabled. Noticed on the NanoPi R4S, where the Ethernet controller clocks were surprisingly turned off. ok kettenis@
2021-07-28Switch to an MI implementation of kmap_atomic() and implementMark Kettenis
kmap_atomic_prot(). Use this to unstub ttm_copy_io_ttm_page() and ttm_copy_ttm_io_page(). This fixes suspend/resume of machines with certain radeondrm(4) hardware. Based on a diff from jsg@. Tested by Edd Barrett and Alf Schlichting. ok jsg@
2021-07-28Add RK3399 PCIe PHY reference clocks.Patrick Wildt
ok kettenis@
2021-07-28Add RK3399 Type-C PHY clocks.Patrick Wildt
ok kettenis@
2021-07-28Use a more descriptive name for the raw sensor which reflects the numberanton
of battery levels the device can report.
2021-07-28Delay installation of sensors until a device with battery support isanton
connected. Allows sensorsd(8) to pick up hotplugged devices. Thanks to Laurence Tratt <laurie at tratt dot net> for the report.
2021-07-28Fix previous: In one spot I incorrectly used Pos (unsigned short) whereTheo Buehler
I should have used Byte (unsigned char) which led to passing twice the correct size to free. Found & tested by bluhm with the sys/netinet/ipsec tests on i386.
2021-07-27Revert "Use per-CPU counters for tunnel descriptor block" diff.mvs
Panic reported by Hrvoje Popovski.
2021-07-27Implemented from the Linux driver:Marcus Glocker
* Introduce split transaction order queues. * Improve the NAK interrupt handler routine. * Mostly move from list_move() to list_move_tail(). Those changes fix an attachment problem seen for certain devices which are issuing NAK interrupts during split transactions, which don't get handled correctly by the driver today. This could result in unexpected channel halting, printing "ChHltd set, but reason is unknown", which finally leaves the device back on a disabled USB port. ok kettenis@
2021-07-27Introduce mutex(9) to protect pipex(4) session content.mvs
With bluhm@'s diff for parallel forwarding pipex(4) could be accessed in parallel through (*ifp->if_input)() -> ether_input() -> pipex_pppoe_input(). PPPOE pipex(4) sessions are mostly immutable except MPPE crypt. The new per-session `pxs_mtx' mutex(9) used to protect session's `ccp-id' which is incremented each time we send CCP reset-request. The new `pxm_mtx' mutex(9) used to protect MPPE context. Each pipex(4) session has two of them: one for the input and one for output path. Where is no lock order limitations because those new mutex(9)'es never held together. ok bluhm@
2021-07-27replace efibind.h files with the small amount we needJonathan Gray
tested on armv7 arm64 and amd64 (bootx64) ok kettenis@ mpi@
2021-07-27Fix Rx hash typeKevin Lo
This matches what Linux and FreeBSD do. ok jmatthew@
2021-07-26Use per-CPU counters for tunnel descriptor block (tdb) statistics.mvs
'tdb_data' struct became unused and was removed. ok bluhm@
2021-07-26Print a few more registers in dump_regs().Mark Kettenis
2021-07-26Do not queue crypto operations for IPsec. The packet entries inAlexander Bluhm
task queues were unlimited and could overflow during havy traffic. Even if we still use hardware drivers that sleep, softnet task instead of soft interrupt can handle this now. Without queues net lock is inherited and kernel lock is only needed once per packet. This results in less lock contention and faster IPsec. Also protect tdb drop counters with net lock and avoid a leak in crypto dispatch error handling. intense testing Hrvoje Popovski; OK mpi@
2021-07-26The mbuf header cleanup in revision 1.173 of ip_icmp.c was tooAlexander Bluhm
strict. ICMP error packets generated by pf were not passed immediately, but could be blocked. Preserve PF_TAG_GENERATED flag in icmp_reflect() and icmp6_reflect(). reported by sf@; OK patrick@ kn@
2021-07-26Adjust driver for device tree binding changes.Mark Kettenis
2021-07-26Fix accounting of the number of frames queued on an iwx(4) Tx ring.Stefan Sperling
Stop decrementing ring->queued inside the if-statement which guards maintenance of the OACTIVE flag. This is wrong and resulted in a negative counter value (visible in firmware error traces). The counter is already decremented in the loop above where frames are taken off the ring.