drm/amdgpu: Add amdkfd softdep
Subsystems (2)
PATCH 1/1 drm/amdgpu: Add amdkfd softdep
amdgpu loads amdkfd via symbol_request(). Add a softdep hint so that userspace knows that amdgpu needs amdkfd in the initrd.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1 -0
@@ -633,3 +633,4 @@ module_exit(amdgpu_exit);MODULE_AUTHOR (DRIVER_AUTHOR );MODULE_DESCRIPTION (DRIVER_DESC );MODULE_LICENSE ("GPL and additional rights" ); +MODULE_SOFTDEP ("pre: amdkfd" );
Signature · 6 lines
2.6.6 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 14 lines · Michal Marek
amdgpu loads amdkfd via
symbol_request(). Add a softdep hint so that userspace knows that amdgpu needs amdkfd in the initrd.Reported-and-tested-by Martin Jambor <[email protected]>Signed-off-by Michal Marek <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c module_exit(amdgpu_exit); · line 636
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1
-0@@ -633,3 +633,4 @@ module_exit(amdgpu_exit);MODULE_AUTHOR (DRIVER_AUTHOR );MODULE_DESCRIPTION (DRIVER_DESC );MODULE_LICENSE ("GPL and additional rights" ); +MODULE_SOFTDEP ("pre: amdkfd" );
Will this work if amdkfd isn't built (CONFIG_HSA_AMD=n)?
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 10 lines · Michel Dänzer
Quoted 9 lines · Michal Marek
amdgpu loads amdkfd via
symbol_request(). Add a softdep hint so that userspace knows that amdgpu needs amdkfd in the initrd.Reported-and-tested-by Martin Jambor <[email protected]>Signed-off-by Michal Marek <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 + 1 file changed, 1 insertion(+)
Quoted 11 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c module_exit(amdgpu_exit); · line 636
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1
-0@@ -633,3 +633,4 @@ module_exit(amdgpu_exit);MODULE_AUTHOR (DRIVER_AUTHOR );MODULE_DESCRIPTION (DRIVER_DESC );MODULE_LICENSE ("GPL and additional rights" ); +MODULE_SOFTDEP ("pre: amdkfd" );Will this work if amdkfd isn't built (
CONFIG_HSA_AMD=n)?
It's a soft dependency, so it will be silently ignored. /sbin/modprobe --show-depends amdgpu will only list amdgpu.ko and its hard depedencies.
Michal
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 23 lines · Michal Marek
Quoted 10 lines · Michel Dänzer
Quoted 9 lines · Michal Marek
amdgpu loads amdkfd via
symbol_request(). Add a softdep hint so that userspace knows that amdgpu needs amdkfd in the initrd.Reported-and-tested-by Martin Jambor <[email protected]>Signed-off-by Michal Marek <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 + 1 file changed, 1 insertion(+)Quoted 11 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c module_exit(amdgpu_exit); · line 636
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1
-0@@ -633,3 +633,4 @@ module_exit(amdgpu_exit);MODULE_AUTHOR (DRIVER_AUTHOR );MODULE_DESCRIPTION (DRIVER_DESC );MODULE_LICENSE ("GPL and additional rights" ); +MODULE_SOFTDEP ("pre: amdkfd" );Will this work if amdkfd isn't built (
CONFIG_HSA_AMD=n)?
Quoted 2 lines
It's a soft dependency, so it will be silently ignored.
/sbin/modprobe--show-depends amdgpu will only list amdgpu.ko and its hard depedencies.
Thanks for the clarification.
The radeon driver probably needs this as well?
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 1/1 amdgpu, radeon: Add amdkfd softdep
Both amdgpu and radeon load amdkfd via symbol_request(). Add a softdep hint so that userspace knows that each of them needs amdkfd in the initrd.
---
v2: Also patch radeon
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 + drivers/gpu/drm/radeon/radeon_drv.c | 1 + 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1 -0
@@ -633,3 +633,4 @@ module_exit(amdgpu_exit);MODULE_AUTHOR (DRIVER_AUTHOR );MODULE_DESCRIPTION (DRIVER_DESC );MODULE_LICENSE ("GPL and additional rights" ); +MODULE_SOFTDEP ("pre: amdkfd" );
drivers/gpu/drm/radeon/radeon_drv.c +1 -0
@@ -617,3 +617,4 @@ module_exit(radeon_exit);MODULE_AUTHOR (DRIVER_AUTHOR );MODULE_DESCRIPTION (DRIVER_DESC );MODULE_LICENSE ("GPL and additional rights" ); +MODULE_SOFTDEP ("pre: amdkfd" );
Signature · 6 lines
2.6.6 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 7 lines · Michel Dänzer
Quoted 2 lines · Michal Marek
It's a soft dependency, so it will be silently ignored.
/sbin/modprobe--show-depends amdgpu will only list amdgpu.ko and its hard depedencies.Thanks for the clarification.
The radeon driver probably needs this as well?
You are right. I sent a v2 covering radeon as well.
Thanks,
Michal
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel