drm/amdgpu: bypass tiling flag check in SRIOV
Subsystems (2)
PATCH 2/2 drm/amdgpu: bypass tiling flag check in SRIOV
vkms leverages common amdgpu framebuffer creation, and also it does not support pixel format modifier, so there is no need to check tiling flags when initing framebuffer. This can fix below calltrace:
amdgpu 0000:00:08.0: GFX9+ requires FB check based on format modifier
WARNING: CPU: 0 PID: 1023 at drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:1150 amdgpu_display_framebuffer_init+0x8e7/0xb40 [amdgpu]
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -1
@@ -1150,7 +1150,7 @@ int amdgpu_display_framebuffer_init(struct drm_device *dev,if (ret)return ret; -if (!dev->mode_config.allow_fb_modifiers) { +if (!dev->mode_config.allow_fb_modifiers && !amdgpu_sriov_vf (adev)) {drm_WARN_ONCE (dev, adev->family >=AMDGPU_FAMILY_AI ,"GFX9+ requires FB check based on format modifier\n" ); ret =check_tiling_flags_gfx6 (rfb);
Signature · 1 line
2.17.1
Deucher, Alexander
maintainer[Public]
I think we should check adev->enable_virtual_display instead of sr-iov? You can enable virtual display on bare metal as well.
Alex
________________________________
From: Chen, Guchun <[email protected]>
Sent: Friday, February 18, 2022 12:11 AM
To: [email protected] <[email protected]>; Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; Shi, Leslie <[email protected]>; Cui, Flora <[email protected]>; Koenig, Christian <[email protected]>; Pan, Xinhui <[email protected]>
Cc: Chen, Guchun <[email protected]>
Subject: [PATCH 2/2] drm/amdgpu: bypass tiling flag check in SRIOV
vkms leverages common amdgpu framebuffer creation, and also it does not support pixel format modifier, so there is no need to check tiling flags when initing framebuffer. This can fix below calltrace:
amdgpu 0000:00:08.0: GFX9+ requires FB check based on format modifier
WARNING: CPU: 0 PID: 1023 at drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:1150 amdgpu_display_framebuffer_init+0x8e7/0xb40 [amdgpu]
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -1
@@ -1150,7 +1150,7 @@ int amdgpu_display_framebuffer_init(struct drm_device *dev,if (ret)return ret; -if (!dev->mode_config.allow_fb_modifiers) { +if (!dev->mode_config.allow_fb_modifiers && !amdgpu_sriov_vf (adev)) {drm_WARN_ONCE (dev, adev->family >=AMDGPU_FAMILY_AI ,"GFX9+ requires FB check based on format modifier\n" ); ret =check_tiling_flags_gfx6 (rfb);
--
2.17.1
[Public]
Excellent point, exactly, we should check adev->enable_virtual_display. Let me send out a v2 soon.
Regards,
Guchun
From: Deucher, Alexander <[email protected]>
Sent: Friday, February 18, 2022 10:39 PM
To: Chen, Guchun <[email protected]>; [email protected]; Zhang, Hawking <[email protected]>; Shi, Leslie <[email protected]>; Cui, Flora <[email protected]>; Koenig, Christian <[email protected]>; Pan, Xinhui <[email protected]>
Subject: Re: [PATCH 2/2] drm/amdgpu: bypass tiling flag check in SRIOV
[Public]
I think we should check adev->enable_virtual_display instead of sr-iov? You can enable virtual display on bare metal as well.
Alex
________________________________
From: Chen, Guchun <[email protected]<mailto:[email protected]>>
Sent: Friday, February 18, 2022 12:11 AM
To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>; Deucher, Alexander <[email protected]<mailto:[email protected]>>; Zhang, Hawking <[email protected]<mailto:[email protected]>>; Shi, Leslie <[email protected]<mailto:[email protected]>>; Cui, Flora <[email protected]<mailto:[email protected]>>; Koenig, Christian <[email protected]<mailto:[email protected]>>; Pan, Xinhui <[email protected]<mailto:[email protected]>>
Cc: Chen, Guchun <[email protected]<mailto:[email protected]>>
Subject: [PATCH 2/2] drm/amdgpu: bypass tiling flag check in SRIOV
vkms leverages common amdgpu framebuffer creation, and also it does not support pixel format modifier, so there is no need to check tiling flags when initing framebuffer. This can fix below calltrace:
amdgpu 0000:00:08.0: GFX9+ requires FB check based on format modifier
WARNING: CPU: 0 PID: 1023 at drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:1150 amdgpu_display_framebuffer_init+0x8e7/0xb40 [amdgpu]
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -1
@@ -1150,7 +1150,7 @@ int amdgpu_display_framebuffer_init(struct drm_device *dev,if (ret)return ret; -if (!dev->mode_config.allow_fb_modifiers) { +if (!dev->mode_config.allow_fb_modifiers && !amdgpu_sriov_vf (adev)) {drm_WARN_ONCE (dev, adev->family >=AMDGPU_FAMILY_AI ,"GFX9+ requires FB check based on format modifier\n" ); ret =check_tiling_flags_gfx6 (rfb);
--
2.17.1