drm/{amdgpu, i915, nouveau, radeon}: Fix fbdev and vga-switcheroo
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 1 replyIn review
- v23 patches 6 repliesSuperseded
Changes in v3 from the cover letter
* include drm_fb_helper.h in radeon_drv.c
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | drm/i915: Allow switching away via vga-switcheroo if uninitializeddrivers/ drivers/ | +6 | 0 replies | |
| 2/3 | drm/fb-helper: Set framebuffer for vga-switcheroo clientsdrivers/ | +8 | 0 replies | |
| 3/3 | drm: Call vga_switcheroo_process_delayed_switch() in drm_lastclosedrivers/ drivers/ drivers/ +9 more | +9 | 0 replies |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Daniel Vetter | Alex Deucher |
|---|---|---|
| Series | R-b | |
| 1/3 | ||
| 2/3 | R-b | R-b |
| 3/3 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/3] drm/{amdgpu, i915, nouveau, radeon}: Fix fbdev and vga-switcheroo
(was: drm: Generic fbdev and vga-switcheroo)
This patchset fixes how fbdev helpers interact with vga-switcheroo. The first two patches are bug fixes for the existing code. The third patch cleans up the drivers.
Patch 1 fixes i915 to do the correct thing if the device has not been initialized yet. Switching to the device is only possible after the initialization, but switching away is always possible.
Patch 2 is the original patch without the amdgpu changes. Installs the fbdev framebuffer in vga-switcheroo for the PCI device. Does nothing for drivers without vga-switcheroo.
Patch 3 cleans up vga_switcheroo_process_delayed_switch() in amdgpu and the other related drivers (i.e., i915, nouveau and radeon). The call is now located at the end of drm_lastclose() and drivers do not need their own lastclose helpers any longer.
I kept the r-bs from v1, but patch 1 is entirely new and patch 3 has significantly grown in size.
v3:
* include drm_fb_helper.h in radeon_drv.c
v2:
* expand to patch series
* fix i915, nouveau and radeon
Thomas Zimmermann (3):
drm/i915: Allow switching away via vga-switcheroo if uninitialized drm/fb-helper: Set framebuffer for vga-switcheroo clients
drm: Call vga_switcheroo_process_delayed_switch() in drm_lastclose
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 -- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 13 ------------- drivers/gpu/drm/drm_fb_helper.c | 8 ++++++++ drivers/gpu/drm/drm_file.c | 3 +++ drivers/gpu/drm/i915/i915_driver.c | 26 ++----------------------- drivers/gpu/drm/i915/i915_switcheroo.c | 6 +++++- drivers/gpu/drm/nouveau/nouveau_drm.c | 1 - drivers/gpu/drm/nouveau/nouveau_vga.c | 7 ------- drivers/gpu/drm/nouveau/nouveau_vga.h | 1 - drivers/gpu/drm/radeon/radeon_drv.c | 3 ++- drivers/gpu/drm/radeon/radeon_drv.h | 1 - drivers/gpu/drm/radeon/radeon_kms.c | 18 ----------------- drivers/gpu/vga/vga_switcheroo.c | 4 ++-- 14 files changed, 22 insertions(+), 72 deletions(-)
base-commit: 68d139b609a97a83e7c231189d4864aba4e1679b
prerequisite-patch-id: 0aa359f6144c4015c140c8a6750be19099c676fb
prerequisite-patch-id: c67e5d886a47b7d0266d81100837557fda34cb24
prerequisite-patch-id: 3f204510fcbf9530d6540bd8e6128cce598988b6
Signature · 1 line
2.39.0