[PATCH 13/64] drm/vc4: hvs: Protect device resources after removal
Maxime Ripard
maxime at cerno.tech
Mon Jun 20 13:23:47 UTC 2022
Hi,
On Tue, Jun 14, 2022 at 05:59:15PM +0100, Dave Stevenson wrote:
> > > @@ -132,14 +139,18 @@ static int vc4_hvs_upload_linear_kernel(struct vc4_hvs *hvs,
> > > struct drm_mm_node *space,
> > > const u32 *kernel)
> > > {
> > > - int ret, i;
> > > + struct drm_device *drm = hvs->dev;
> > > + int idx, ret, i;
> > > u32 __iomem *dst_kernel;
> > >
> > > + if (!drm_dev_enter(drm, &idx))
> > > + return -ENODEV;
> > > +
>
> vc4_hvs_upload_linear_kernel is only called from vc4_hvs_bind, so
> unless bind and unbind calls can be concurrent, then there's no need
> for protection here.
Indeed. I've removed those changes and added a comment
Thanks!
Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20220620/017a2bb7/attachment.sig>
More information about the dri-devel
mailing list