All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Check for valid framebuffer's format
@ 2023-01-13 11:27 Maíra Canal
  2023-01-13 11:27 ` [PATCH v2 1/3] drm/framebuffer: Check for valid formats Maíra Canal
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Maíra Canal @ 2023-01-13 11:27 UTC (permalink / raw)
  To: Maxime Ripard, Maarten Lankhorst, Thomas Zimmermann, David Airlie,
	Daniel Vetter, Rob Clark, Simon Ser, Alex Deucher,
	Christian König, Zack Rusin
  Cc: André Almeida, Maíra Canal, amd-gfx, Melissa Wen,
	VMware Graphics Reviewers, dri-devel

This series is a follow-up of the [1] in which I introduced a check for valid
formats on drm_gem_fb_create(). During the discussion, I realized that would be
a better idea to put the check inside framebuffer_check() so that it wouldn't be
needed to hit any driver-specific code path when the check fails.

Therefore, add the valid format check inside framebuffer_check() and remove the
same check from the drivers, except from i915, because this doesn't work for the
legacy tiling->modifier path. Adding the check to framebuffer_check() will
guarantee that the igt@kms_addfb_basic@addfb25-bad-modifier IGT test passes,
showing the correct behavior of the check.

This patchset was tested on amdgpu and vc4 with the IGT tests.

[1] https://lore.kernel.org/dri-devel/20230103125322.855089-1-mcanal@igalia.com/T/

---

v1 -> v2: https://lore.kernel.org/dri-devel/20230109105807.18172-1-mcanal@igalia.com/T/

- Don't remove check from i915 driver (Ville Syrjälä)
- Don't unexport drm_any_plane_has_format().

---

Best Regards,
- Maíra Canal

Maíra Canal (3):
  drm/framebuffer: Check for valid formats
  drm/amdgpu: Remove redundant framebuffer format check
  drm/vmwgfx: Remove redundant framebuffer format check

 Documentation/gpu/todo.rst                  |  9 ++++-----
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 10 ----------
 drivers/gpu/drm/drm_framebuffer.c           |  8 ++++++++
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c         | 18 ------------------
 4 files changed, 12 insertions(+), 33 deletions(-)

--
2.39.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-01-13 13:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-13 11:27 [PATCH v2 0/3] Check for valid framebuffer's format Maíra Canal
2023-01-13 11:27 ` [PATCH v2 1/3] drm/framebuffer: Check for valid formats Maíra Canal
2023-01-13 13:06   ` Ville Syrjälä
2023-01-13 13:06     ` Ville Syrjälä
2023-01-13 11:27 ` [PATCH v2 2/3] drm/amdgpu: Remove redundant framebuffer format check Maíra Canal
2023-01-13 11:27 ` [PATCH v2 3/3] drm/vmwgfx: " Maíra Canal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.