* [PATCH] drm/gem-framebuffer: log errors when gem size < afbc_size
@ 2025-05-08 8:47 Andy Yan
2025-05-08 9:11 ` Daniel Stone
0 siblings, 1 reply; 4+ messages in thread
From: Andy Yan @ 2025-05-08 8:47 UTC (permalink / raw)
To: tzimmermann; +Cc: simona, mripard, dri-devel, linux-kernel, Andy Yan
Let the user know what went wrong in drm_gem_fb_afbc_init
failure paths.
Signed-off-by: Andy Yan <andyshrk@163.com>
---
drivers/gpu/drm/drm_gem_framebuffer_helper.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/drm_gem_framebuffer_helper.c b/drivers/gpu/drm/drm_gem_framebuffer_helper.c
index 6f72e7a0f427..baf99a68bdb5 100644
--- a/drivers/gpu/drm/drm_gem_framebuffer_helper.c
+++ b/drivers/gpu/drm/drm_gem_framebuffer_helper.c
@@ -607,8 +607,11 @@ int drm_gem_fb_afbc_init(struct drm_device *dev,
if (ret < 0)
return ret;
- if (objs[0]->size < afbc_fb->afbc_size)
+ if (objs[0]->size < afbc_fb->afbc_size) {
+ drm_dbg_kms(dev, "GEM object size (%zu) smaller than minimum afbc size (%u)\n",
+ objs[0]->size, afbc_fb->afbc_size);
return -EINVAL;
+ }
return 0;
}
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/gem-framebuffer: log errors when gem size < afbc_size
2025-05-08 8:47 [PATCH] drm/gem-framebuffer: log errors when gem size < afbc_size Andy Yan
@ 2025-05-08 9:11 ` Daniel Stone
2025-05-22 7:54 ` Andy Yan
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Stone @ 2025-05-08 9:11 UTC (permalink / raw)
To: Andy Yan; +Cc: tzimmermann, simona, mripard, dri-devel, linux-kernel
Hi Andy,
On Thu, 8 May 2025 at 11:49, Andy Yan <andyshrk@163.com> wrote:
> Let the user know what went wrong in drm_gem_fb_afbc_init
> failure paths.
Thanks for this, and thanks also for using drm_dbg_kms() to make sure
that userspace can't flood the log with errors.
Reviewed-by: Daniel Stone <daniels@collabora.com>
Cheers,
Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re:Re: [PATCH] drm/gem-framebuffer: log errors when gem size < afbc_size
2025-05-08 9:11 ` Daniel Stone
@ 2025-05-22 7:54 ` Andy Yan
2025-05-26 7:37 ` Thomas Zimmermann
0 siblings, 1 reply; 4+ messages in thread
From: Andy Yan @ 2025-05-22 7:54 UTC (permalink / raw)
To: Daniel Stone; +Cc: tzimmermann, simona, mripard, dri-devel, linux-kernel
Hello,
At 2025-05-08 17:11:01, "Daniel Stone" <daniel@fooishbar.org> wrote:
>Hi Andy,
>
>On Thu, 8 May 2025 at 11:49, Andy Yan <andyshrk@163.com> wrote:
>> Let the user know what went wrong in drm_gem_fb_afbc_init
>> failure paths.
>
>Thanks for this, and thanks also for using drm_dbg_kms() to make sure
>that userspace can't flood the log with errors.
>
>Reviewed-by: Daniel Stone <daniels@collabora.com>
May I kindly ask which Maintainer can take this patch?
>
>Cheers,
>Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/gem-framebuffer: log errors when gem size < afbc_size
2025-05-22 7:54 ` Andy Yan
@ 2025-05-26 7:37 ` Thomas Zimmermann
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Zimmermann @ 2025-05-26 7:37 UTC (permalink / raw)
To: Andy Yan, Daniel Stone; +Cc: simona, mripard, dri-devel, linux-kernel
Hi
Am 22.05.25 um 09:54 schrieb Andy Yan:
> Hello,
>
>
> At 2025-05-08 17:11:01, "Daniel Stone" <daniel@fooishbar.org> wrote:
>> Hi Andy,
>>
>> On Thu, 8 May 2025 at 11:49, Andy Yan <andyshrk@163.com> wrote:
>>> Let the user know what went wrong in drm_gem_fb_afbc_init
>>> failure paths.
>> Thanks for this, and thanks also for using drm_dbg_kms() to make sure
>> that userspace can't flood the log with errors.
>>
>> Reviewed-by: Daniel Stone <daniels@collabora.com>
>
> May I kindly ask which Maintainer can take this patch?
Merged into drm-misc-next. Thanks for the patch.
Best regards
Thomas
>
>> Cheers,
>> Daniel
--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-05-26 7:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-08 8:47 [PATCH] drm/gem-framebuffer: log errors when gem size < afbc_size Andy Yan
2025-05-08 9:11 ` Daniel Stone
2025-05-22 7:54 ` Andy Yan
2025-05-26 7:37 ` Thomas Zimmermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).