[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <qQ8K1eMN92mXXKiHVEiv4sUKmuXirPwokVQJRMsoMu4SmeW5OksIhhsx7P2MCymkWJeyAqX_YSvg-iUbP3Njt7XHHDXAqIRxtKmwoBkfRYA=@proton.me>
Date: Wed, 16 Oct 2024 22:04:47 +0000
From: Piotr Zalewski <pZ010001011111@...ton.me>
To: Andy Yan <andyshrk@....com>
Cc: hjc@...k-chips.com, heiko@...ech.de, andy.yan@...k-chips.com, maarten.lankhorst@...ux.intel.com, mripard@...nel.org, tzimmermann@...e.de, airlied@...il.com, simona@...ll.ch, dri-devel@...ts.freedesktop.org, linux-arm-kernel@...ts.infradead.org, linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org, skhan@...uxfoundation.org, Daniel Stone <daniel@...ishbar.org>, Dragan Simic <dsimic@...jaro.org>, Diederik de Haas <didi.debian@...ow.org>
Subject: Re:[PATCH v5] rockchip/drm: vop2: add support for gamma LUT
Hi Andy
On Wednesday, October 16th, 2024 at 11:23 AM, Piotr Zalewski <pZ010001011111@...ton.me> wrote:
> > > static void vop2_crtc_atomic_flush(struct drm_crtc *crtc,
> > > @@ -2790,7 +2945,13 @@ static int vop2_create_crtcs(struct vop2 *vop2)
> > > }
> > >
> > > drm_crtc_helper_add(&vp->crtc, &vop2_crtc_helper_funcs);
> > > + if (vop2->lut_regs && vp->crtc.dev != NULL) {
> >
> > There is no need to check vp->crtc.dev here, set has been set in drm_crtc_init_with_planes .
>
>
> I tested it and this check must be here because trying to enable color mgmt
> on CRTC with no associated device, causes null ptr dereference later on in
> drm_crtc_enable_color_mgmt (unless something changed in recent kernel
> versions, last time I tested was 6.10? or even 6.8).
Just tested it without the null check and it works. Next version will be without it.
Best regards, Piotr Zalewski
Powered by blists - more mailing lists