RE: 答复: [RESEND 1/3] drm: fsl-dcu: Fix no fb check bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Daniel
	Thanks for your clarification, and I will fix this error.
--
Meng

-----Original Message-----
From: Daniel Stone [mailto:daniel@xxxxxxxxxxxxx] 
Sent: Friday, January 01, 2016 11:10 PM
To: Meng Yi <meng.yi@xxxxxxx>
Cc: Stefan Agner <stefan@xxxxxxxx>; dri-devel@xxxxxxxxxxxxxxxxxxxxx; Yi Meng-B56799 <B56799@xxxxxxxxxxxxx>
Subject: Re: 答复: [RESEND 1/3] drm: fsl-dcu: Fix no fb check bug

Hi,

On 30 December 2015 at 07:37, Meng Yi <meng.yi@xxxxxxx> wrote:
> I have tested your patch, It seems good to me.
> But I think state->fb check is still necessary, because fb is related to crtc , and panel is related to connector,. When fsl,panel is not valid, it indicate that connector is not available, but fb check is still needed. But I am not so sure, and what do you think?

fb is tied to planes. Planes are tied to CRTCs. CRTCs are tied to connectors. Connectors are tied to the panel. If the panel is not found, no connectors will be activated, so no CRTCs will be enabled, so no planes will be enabled.

Please let me be very clear though: setting fb == NULL is legitimate.
Userspace may do this at any time. Crashing when plane->state->fb == NULL is an error in your driver and must be fixed.

Cheers,
Daniel
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux