From: Maxime Ripard <maxime@cerno.tech>
To: Julia Lawall <julia.lawall@inria.fr>
Cc: Linux Memory Management List <linux-mm@kvack.org>,
kbuild-all@lists.01.org
Subject: Re: [linux-next:master 331/3266] drivers/gpu/drm/vc4/vc4_hdmi.c:1459:2-8: preceding lock on line 1456 (fwd)
Date: Mon, 29 Aug 2022 09:42:09 +0200 [thread overview]
Message-ID: <20220829074209.nvpvqmu54mbbdomz@houat> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2208271632220.6645@hadrien>
Hi Julia
On Sat, Aug 27, 2022 at 04:33:11PM +0200, Julia Lawall wrote:
> Please check whether anunlock is needed before line 1459.
>
> julia
>
> ---------- Forwarded message ----------
> Date: Fri, 26 Aug 2022 07:43:10 +0800
> From: kernel test robot <lkp@intel.com>
> To: kbuild@lists.01.org
> Cc: lkp@intel.com, Julia Lawall <julia.lawall@lip6.fr>
> Subject: [linux-next:master 331/3266] drivers/gpu/drm/vc4/vc4_hdmi.c:1459:2-8:
> preceding lock on line 1456
>
> BCC: lkp@intel.com
> CC: kbuild-all@lists.01.org
> CC: Linux Memory Management List <linux-mm@kvack.org>
> TO: Maxime Ripard <maxime@cerno.tech>
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head: b5d939c951865f6fc229094e84b77c9a9e0ed0c7
> commit: cd00ed5187bff03d4c2ba143a5993383dd6ed66c [331/3266] drm/vc4: hdmi: Protect device resources after removal
> :::::: branch date: 18 hours ago
> :::::: commit date: 6 weeks ago
> config: arm64-randconfig-c44-20220824 (https://download.01.org/0day-ci/archive/20220826/202208260727.0o3WQ2wp-lkp@intel.com/config)
> compiler: aarch64-linux-gcc (GCC) 12.1.0
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@intel.com>
> Reported-by: Julia Lawall <julia.lawall@lip6.fr>
>
> cocci warnings: (new ones prefixed by >>)
> >> drivers/gpu/drm/vc4/vc4_hdmi.c:1459:2-8: preceding lock on line 1456
> drivers/gpu/drm/vc4/vc4_hdmi.c:1429:2-8: preceding lock on line 1426
>
> vim +1459 drivers/gpu/drm/vc4/vc4_hdmi.c
>
> c8b75bca92cbf0 Eric Anholt 2015-03-02 1442
> 8d9147466776c4 Maxime Ripard 2020-12-15 1443 static void vc4_hdmi_encoder_post_crtc_enable(struct drm_encoder *encoder,
> 8d9147466776c4 Maxime Ripard 2020-12-15 1444 struct drm_atomic_state *state)
> 09c438139b8f5b Maxime Ripard 2020-09-03 1445 {
> 09c438139b8f5b Maxime Ripard 2020-09-03 1446 struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
> cd00ed5187bff0 Maxime Ripard 2022-07-11 1447 struct drm_device *drm = vc4_hdmi->connector.dev;
> 633be8c3c0c5e0 Maxime Ripard 2021-10-25 1448 struct drm_display_mode *mode = &vc4_hdmi->saved_adjusted_mode;
> c3c2f38ce532c6 José Expósito 2022-04-20 1449 struct drm_display_info *display = &vc4_hdmi->connector.display_info;
> 8b3f90e98e1764 Maxime Ripard 2020-09-03 1450 bool hsync_pos = mode->flags & DRM_MODE_FLAG_PHSYNC;
> 8b3f90e98e1764 Maxime Ripard 2020-09-03 1451 bool vsync_pos = mode->flags & DRM_MODE_FLAG_PVSYNC;
> 81fb55e500a82a Maxime Ripard 2021-10-25 1452 unsigned long flags;
> 09c438139b8f5b Maxime Ripard 2020-09-03 1453 int ret;
> cd00ed5187bff0 Maxime Ripard 2022-07-11 1454 int idx;
> c8b75bca92cbf0 Eric Anholt 2015-03-02 1455
> 82cb88af12d29e Maxime Ripard 2021-10-25 @1456 mutex_lock(&vc4_hdmi->mutex);
> 82cb88af12d29e Maxime Ripard 2021-10-25 1457
> cd00ed5187bff0 Maxime Ripard 2022-07-11 1458 if (!drm_dev_enter(drm, &idx))
> cd00ed5187bff0 Maxime Ripard 2022-07-11 @1459 return;
Thanks for the report. You're right this was a bug, but it should have
been addressed by
https://lore.kernel.org/all/20220824161327.330627-2-dakr@redhat.com/
Maxime
prev parent reply other threads:[~2022-08-29 7:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-27 14:33 [linux-next:master 331/3266] drivers/gpu/drm/vc4/vc4_hdmi.c:1459:2-8: preceding lock on line 1456 (fwd) Julia Lawall
2022-08-29 7:42 ` Maxime Ripard [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=20220829074209.nvpvqmu54mbbdomz@houat \
--to=maxime@cerno.tech \
--cc=julia.lawall@inria.fr \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
/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).