From: Javier Martinez Canillas <javierm@redhat.com>
To: "Chang, Junxiao" <junxiao.chang@intel.com>,
Thomas Zimmermann <tzimmermann@suse.de>,
"linux-fbdev@vger.kernel.org" <linux-fbdev@vger.kernel.org>
Cc: "lethal@linux-sh.org" <lethal@linux-sh.org>,
"patchwork-bot@kernel.org" <patchwork-bot@kernel.org>,
"deller@gmx.de" <deller@gmx.de>, "Li, Lili" <lili.li@intel.com>
Subject: Re: [PATCH] video: fbdev: don't remove firmware fb device if it is busy
Date: Tue, 3 May 2022 17:15:47 +0200 [thread overview]
Message-ID: <80f86146-2775-c8f1-6035-bc5cef8d7fd6@redhat.com> (raw)
In-Reply-To: <BN9PR11MB537070E36D25158B265C8490ECC09@BN9PR11MB5370.namprd11.prod.outlook.com>
Hello Junxiao,
On 5/3/22 14:29, Chang, Junxiao wrote:
> We tested Javier's fix, issue couldn't be reproduced anymore.
> https://lore.kernel.org/dri-devel/20220502135014.377945-1-javierm@redhat.com/T/#u
>
Thanks for testing!
> But this fix doesn't cover all FB driver's interface:
>
> .get_unmapped_area = get_fb_unmapped_area,
> .fsync = fb_deferred_io_fsync,
>
> file_fb_info(file) NULL checking should be added in these two interface functions(get_fb_unmapped_area and fb_deferred_io_fsync) as well?
>
Yes, I was about to send a new version adding checks for this but I decided
not to. Because by looking at these file ops, I see get_fb_unmapped_area()
is only used when:
#if defined(HAVE_ARCH_FB_UNMAPPED_AREA) || \
(defined(CONFIG_FB_PROVIDE_GET_FB_UNMAPPED_AREA) && \
!defined(CONFIG_MMU))
.get_unmapped_area = get_fb_unmapped_area,
#endif
so is not really a common configuration and fb_deferred_io_fsync() is not
defined in the same compilation unit, which means that file_fb_info() would
have to be exported (and probably renamed to fb_file_fb_info or something),
which will make the fix more complex and harder to backport to stable.
The fb_release() handler bug in the other hand is quite easy to trigger,
so I'll just keep this fix with the minimum change.
I plan to fix the other two handlers though in a separate patch.
--
Best regards,
Javier Martinez Canillas
Linux Engineering
Red Hat
prev parent reply other threads:[~2022-05-03 15:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-30 2:57 [PATCH] video: fbdev: don't remove firmware fb device if it is busy Junxiao Chang
2022-05-02 7:24 ` Thomas Zimmermann
2022-05-03 0:38 ` Chang, Junxiao
2022-05-03 7:16 ` Thomas Zimmermann
2022-05-03 12:29 ` Chang, Junxiao
2022-05-03 13:05 ` Thomas Zimmermann
2022-05-03 15:15 ` Javier Martinez Canillas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=80f86146-2775-c8f1-6035-bc5cef8d7fd6@redhat.com \
--to=javierm@redhat.com \
--cc=deller@gmx.de \
--cc=junxiao.chang@intel.com \
--cc=lethal@linux-sh.org \
--cc=lili.li@intel.com \
--cc=linux-fbdev@vger.kernel.org \
--cc=patchwork-bot@kernel.org \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).