[PATCH 0/3][SRU][Unstable][Oracular] Fix AMD Instinct MI300 unusable with integrated display
You-Sheng Yang
vicamo.yang at canonical.com
Tue Oct 1 02:48:13 UTC 2024
BugLink: https://bugs.launchpad.net/bugs/2078773
[Impact]
Missing devices nodes for AMD Instinct MI300 card when installed along
with integrated display.
[Fix]
* https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.12-rc1&id=5fbca8b48b3050ae7fb611a8b09af60012ed6de1
("drm: Use XArray instead of IDR for minors")
* https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.12-rc1&id=45c4d994b82b08f0ce5eb50f8da29379c92a391e
("accel: Use XArray instead of IDR for minors")
* https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.12-rc1&id=071d583e01c88272f6ff216d4f867f8f35e94d7d
("drm: Expand max DRM device number to full MINORBITS")
[Test Case]
When enabled, additional drm devices will become available:
```
root123 at g593-sx1:~$ ls -l /sys/class/drm/
lrwxrwxrwx 1 root root 0 Sep 21 00:55 card10 -> ../../devices/platform/amdgpu_xcp_7/drm/card10
lrwxrwxrwx 1 root root 0 Sep 21 00:55 card11 -> ../../devices/platform/amdgpu_xcp_8/drm/card11
lrwxrwxrwx 1 root root 0 Sep 21 00:55 card12 -> ../../devices/platform/amdgpu_xcp_9/drm/card12
lrwxrwxrwx 1 root root 0 Sep 21 00:55 card13 -> ../../devices/platform/amdgpu_xcp_10/drm/card13
lrwxrwxrwx 1 root root 0 Sep 21 00:55 card14 -> ../../devices/platform/amdgpu_xcp_11/drm/card14
lrwxrwxrwx 1 root root 0 Sep 21 00:55 card15 -> ../../devices/platform/amdgpu_xcp_12/drm/card15
lrwxrwxrwx 1 root root 0 Sep 21 00:55 card16 -> ../../devices/platform/amdgpu_xcp_13/drm/card16
...
```
[Where problems could occur]
New hardware support. Expect more fixes in need.
[Other Info]
Targeting last supported generic/oem kernels only. Nominated for oem-6.11,
generic-6.11 and unstable.
MichaĆ Winiarski (3):
drm: Use XArray instead of IDR for minors
accel: Use XArray instead of IDR for minors
drm: Expand max DRM device number to full MINORBITS
drivers/accel/drm_accel.c | 110 +++------------------------------
drivers/gpu/drm/drm_drv.c | 97 ++++++++++++++---------------
drivers/gpu/drm/drm_file.c | 2 +-
drivers/gpu/drm/drm_internal.h | 4 --
include/drm/drm_accel.h | 18 +-----
include/drm/drm_file.h | 5 ++
6 files changed, 62 insertions(+), 174 deletions(-)
--
2.45.2
More information about the kernel-team
mailing list