summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2024-11-08Add support for MA devices.Mark Kettenis
ok stsp@
2024-11-06RegenMiod Vallat
2024-11-06Sync with NetBSD: remove duplicate mode entries when parsing edid records,Miod Vallat
be more robust against bogus edid data.
2024-11-06Sync with NetBSD: minor fixes and a couple more video modes.Miod Vallat
2024-11-06Make edid_parse() take a device name as extra argument so that the fewMiod Vallat
messages it may print are tied to the particular device it concerns.
2024-11-05The first field of struct cfdriver is a pointer. Put NULL rather than 0 here.Miod Vallat
2024-11-05The ability to attach a wsdisplay without a terminal emulator has beenMiod Vallat
removed quite many years ago. Drop the _emul component of config machinery symbol names, and merge the wsdisplay_emul_smth with wsdisplay_common_smth as they are their only users. No functional change, but you need to rerun config(8) on your kernels.
2024-11-05Implement CSI s and CSI u to save and restore cursor position. These areMiod Vallat
supported by the FreeBSD syscon and some software assumes running on *BSD implies they work.
2024-11-05Implement psp(4) shutdown command and ioctl(2) PSP_IOC_SHUTDOWN.Alexander Bluhm
This will be used by vmd(8) to reset psp(4) on startup. from hshoexer@; OK mlarkin@
2024-11-05Add support for CSI b control sequence (repeat last printed character) toMiod Vallat
the wscons vt100 emulation. Based on a diff from Crystal Kolipe, modified to properly handle partial updates, verified to work with udl(4).
2024-11-05Tweak softc initialization:Martin Pieuchot
- move softintr_establish(), which allocates memory, into dtalloc() - Use M_DEVBUF consistently for all memory chunks in the softc. - Do not check for NULL before calling free(9). Reviewed by Christian Ludwig, ok miod@
2024-11-04viogpu: tune down debug messagesStefan Fritsch
viogpu_send_cmd() is called for every framebuffer update. Only print log message at VIRTIO_DEBUG >= 3 to avoid log spam.
2024-11-04vio_dump: Fix control queue dumpStefan Fritsch
If the device has just been reset (e.g. after ifconfig down), we cannot query the feature bits. Make sure we dump the control virtqueue even in this case.
2024-11-02Use lowercase in locking comments when not refering to a global lock.Martin Pieuchot
Also talk about thread rather than proc which might be confusing.
2024-11-02Use a ringbuffer per CPU instead of a ringbuffer per PCB.Martin Pieuchot
Get rid of the per-ringbuffer mutex. Use a variable to prevent against recursion. Allow to process more events in the same timeframe. From Christian Ludwig.
2024-11-02Move edid_print() behind defined(EDID_DEBUG).Miod Vallat
2024-11-02Add ixv(4), a driver for virtual functions of Intel 82598EB, 82559,YASUOKA Masahiko
and X540. The driver was originally written by Intel and released as ixv driver version 1.5.32 and ported to OpenBSD by Yuichiro NAITO, naito.yuichiro at gmail.com. tested by henson at acm.org and many others. ok jmatthew
2024-11-01drm/amd/display: Disable PSR-SU on Parade 08-01 TCON tooJonathan Gray
From Mario Limonciello c79e0a18e4b301401bb745702830be9041cfbf04 in linux-6.6.y/6.6.59 ba1959f71117b27f3099ee789e0815360b4081dd in mainline linux
2024-11-01drm/amd: Guard against bad data for ATIF ACPI methodJonathan Gray
From Mario Limonciello 975ede2a7bec52b5da1428829b3439667c8a234b in linux-6.6.y/6.6.59 bf58f03931fdcf7b3c45cb76ac13244477a60f44 in mainline linux
2024-11-01drm/amd/amdgpu: Fix double unlock in amdgpu_mes_add_ringJonathan Gray
From Srinivasan Shanmugam 65ca9f8ddc0d1e66770cd5c4a7555a7169dac0d8 in linux-6.6.y/6.6.59 e7457532cb7167516263150ceae86f36d6ef9683 in mainline linux
2024-10-30For AMD SEV automatically load psp(4) firmware during vmd(4) startup.Alexander Bluhm
When opening /dev/psp for the first time, load the SEV firmware located in /etc/firmware/amdsev/ optained via fw_update(8). The relevant file is determined by CPU family and model. If firmware files are not installed or the correct file could not be determined, PSP will be initialized using the on-chip firmware. Alternatively a BIOS upgrade could install a newer version. from hshoexer@; OK mlarkin@
2024-10-30readd IFCAP_VLAN_MTU and NVLAN checksJan Klemkow
ok bluhm@
2024-10-30For AMD SEV implement psp(4) download firmware command.Alexander Bluhm
Implement the command to load new firmware onto the chip. Will be used for automatic firmware loading. from hshoexer@; OK mlarkin@
2024-10-30directly use dev_t for swdevt[], remove struct swdevtJonathan Gray
ok mpi@ miod@
2024-10-29Move psp(4) initialization from attach to device open.Alexander Bluhm
In preparation for automatic loading of the AMD SEV firmware, factor out the code that initializes the PSP. As the firmware must be loaded before the initialization, delay initialization to first use of the PSP. Initialization is triggered by opening /dev/psp for the first time. A later diff will add firmware loading in a similar way. Also provide a ioctl(2) for initialization. Not used right now. Will be later used by vmd(8) to reset the PSP. from hshoexer@; OK mlarkin@
2024-10-29virtio_pci: Negotiate ACCESS_PLATTFORM featureStefan Fritsch
Accepting VIRTIO_F_ACCESS_PLATFORM is required for SEV on KVM/qemu. We always use the standard pci access mechanisms of the architecture/platform we are running on. Therefore we should negotiate the VIRTIO_F_ACCESS_PLATFORM feature if it is offered. Strictly speaking we should bypass any existing IOMMUs if the host does not offer this feature, but this no regression and can be fixed later. feedback from kettenis@
2024-10-27To prepare to add ixv(4), update the mailbox functionalities of ixbgeYASUOKA Masahiko
to ixv driver version 1.5.32 from Intel. This change will not affect the existing usage of ix(4), since the change is only about the mailbox, and the mailbox is used only when the primary/virtual function is used. The diff from Yuichiro NAITO, naito.yuichiro at gmail.com. ok jmatthew jan
2024-10-24Attach psp(4) version 1.Alexander Bluhm
Some AMD CPUs come with an older platform security processor. It is detectet by PCI Id and has different register offsets. Move the dynamic register offsets into psp_softc. The PCI attach code is now in a separate psp_pci.c file and detects the version of the psp along with the ccp. The attach code is more verbose to display where problems might occur. Now the ccp_wait() has 2 seconds timeout, both for polling and interrupt. Also prevent a useless bus_space_read_4(). OK hshoexer@
2024-10-23drm/amdgpu: prevent BO_HANDLES error from being overwrittenJonathan Gray
From Mohammed Anees 64cf93b87fe34e72557de294718019c0ad2931b4 in linux-6.6.y/6.6.58 c0ec082f10b7a1fd25e8c1e2a686440da913b7a3 in mainline linux
2024-10-23drm/amdgpu/swsmu: Only force workload setup on initJonathan Gray
From Alex Deucher db0978d3ed8b1f69b6e09c3ccb66897fd2a9f6d7 in linux-6.6.y/6.6.58 cb07c8338fc2b9d5f949a19d4a07ee4d5ecf8793 in mainline linux
2024-10-23drm/radeon: Fix encoder->possible_clonesJonathan Gray
From Ville Syrjala 1a235af0216411a32ab4db54f7bd19020b46c86d in linux-6.6.y/6.6.58 28127dba64d8ae1a0b737b973d6d029908599611 in mainline linux
2024-10-23remove duplicate IWX_NVM_GET_INFO defineJonathan Gray
2024-10-23remove duplicate MCX_CAP_DEVICE_DRAIN_SIGERR defineJonathan Gray
2024-10-23remove duplicate ET_MAC_HDX_REXMIT_MAX defineJonathan Gray
2024-10-23remove duplicate ESA_MINISRC_OUT_BUFFER_SIZE defineJonathan Gray
2024-10-22remove duplicate entry in match tableJonathan Gray
2024-10-22put opening { on same line as struct nameJonathan Gray
ok claudio@
2024-10-22remove duplicate DEV_ID_PCH2 definesJonathan Gray
2024-10-21Correctly report print screen key in raw mode (i.e. under X); problemMiod Vallat
reported by kirill@
2024-10-19Change sdhc_bus_power() behavior to return success and not perform aJames Hastings
power-off voltage switch sequence when card is already operating at requested voltage. Zap the NOPWR0 quirk for Intel controllers. ok stsp@ kettenis@
2024-10-18Instead of always following up "power on" with a "reset", onlyTobias Heider
send a single reset during attach. We have discovered that some devices such as the built-in keyboard on the Thinkpad T14s Gen 6 don't like getting more than one reset sent or they become unresponsive. This has been in snaps for a while and hasn't caused any major regressions so we are confident the extra reset is not needed on most hardware. feedback from kettenis@ ok deraadt@ mlarkin@
2024-10-18drm/i915/hdcp: fix connector refcountingJonathan Gray
From Jani Nikula 55f2bd90b9fba95e929d4c407ffc422597152323 in linux-6.6.y/6.6.57 4cc2718f621a6a57a02581125bb6d914ce74d23b in mainline linux
2024-10-18drm/amd/display: Check null pointer before dereferencing seJonathan Gray
From Alex Hung 65b2d49e55fe13ae56da3a7685bdccadca31134a in linux-6.6.y/6.6.57 ff599ef6970ee000fa5bc38d02fa5ff5f3fc7575 in mainline linux
2024-10-18drm/amd/display: Revert "Check HDCP returned status"Jonathan Gray
From Alex Hung 939b4b2c008d4c620b8127bfd12cb22e40447141 in linux-6.6.y/6.6.57 bc2fe69f16c7122b5dabc294aa2d6065d8da2169 in mainline linux
2024-10-18drm/amd/display: Remove a redundant check in authenticated_dpJonathan Gray
From Wenjing Liu b505e4fc411c1015ff5114b0cca8c9b20ae2f679 in linux-6.6.y/6.6.57 4b22869f76563ce1e10858d2ae3305affa8d4a6a in mainline linux
2024-10-17drm/crtc: fix uninitialized variable use even harderJonathan Gray
From Rob Clark be6c52b059a28ec7f78a135061f2cc16b352ef70 in linux-6.6.y/6.6.57 b6802b61a9d0e99dcfa6fff7c50db7c48a9623d3 in mainline linux
2024-10-17Add pinctrl support.Mark Kettenis
ok patrick@, phessler@
2024-10-17Remove a lot of #include stanzas which used to be required by code found inMiod Vallat
this file at some point, but such code now lies comfortably in the Attic. ok jsg@ mpi@
2024-10-17regenDavid Gwynne
2024-10-17Kingston SNV2S nvme deviceDavid Gwynne