mbox series

[0/3,SRU,Unstable,Oracular] Fix AMD Instinct MI300 unusable with integrated display

Message ID 20241001024816.111283-1-vicamo.yang@canonical.com
Headers show
Series Fix AMD Instinct MI300 unusable with integrated display | expand

Message

You-Sheng Yang Oct. 1, 2024, 2:48 a.m. UTC
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@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(-)

Comments

Timo Aaltonen Oct. 2, 2024, 8:13 a.m. UTC | #1
You-Sheng Yang kirjoitti 1.10.2024 klo 5.48:
> 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@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(-)
> 

applied to oracular, thanks

not needed in unstable as it hasn't yet been forked from oracular