artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cbeaaa
)
drm/amdgpu: fix check in fbdev init
author
jsg
<jsg@openbsd.org>
Thu, 18 Aug 2022 00:43:54 +0000
(
00:43
+0000)
committer
jsg
<jsg@openbsd.org>
Thu, 18 Aug 2022 00:43:54 +0000
(
00:43
+0000)
From Alex Deucher
27f8f5219fe4658537ba28fd01657e1062ac3960
in linux 5.15.y/5.15.61
sys/dev/pci/drm/amd/amdgpu/amdgpu_fb.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/amdgpu_fb.c
b/sys/dev/pci/drm/amd/amdgpu/amdgpu_fb.c
index
43f3762
..
8e70795
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdgpu/amdgpu_fb.c
+++ b/
sys/dev/pci/drm/amd/amdgpu/amdgpu_fb.c
@@
-379,7
+379,8
@@
int amdgpu_fbdev_init(struct amdgpu_device *adev)
task_set(&adev->burner_task, amdgpu_burner_cb, adev);
/* disable all the possible outputs/crtcs before entering KMS mode */
- if (!amdgpu_device_has_dc_support(adev) && !amdgpu_virtual_display)
+ if (!amdgpu_device_has_dc_support(adev) && !amdgpu_virtual_display &&
+ !amdgpu_sriov_vf(adev))
drm_helper_disable_unused_functions(adev_to_drm(adev));
drm_fb_helper_initial_config(&rfbdev->helper, bpp_sel);