From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Date: Sat, 29 Sep 2012 05:58:46 +0000 Subject: Re: [PATCH] fb: only enable console lock in fb for VGA console Message-Id: <1348898326.9378.7.camel@pasglop> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-fbdev@vger.kernel.org On Sat, 2012-09-29 at 13:29 +0800, Jun Nie wrote: > If VGA console is not enable, we do not have to > involve console lock/unlock in FB framework to avoid > hold the lock unnecessarily. Otherwise, UART console > output may be blocked by FB pan_display etc operations, > which hold the console lock. This may block the > panic log out on UART, where the lock may never be > released by FB. And you end up removing all locking from the entire fbdev layer ... did you actually think about what you were doing here ? Ben. > Signed-off-by: Jun Nie > --- > drivers/video/arkfb.c | 11 +++++------ > drivers/video/aty/aty128fb.c | 11 +++++------ > drivers/video/aty/atyfb_base.c | 11 +++++------ > drivers/video/aty/radeon_pm.c | 9 ++++----- > drivers/video/chipsfb.c | 8 ++++---- > drivers/video/da8xx-fb.c | 9 ++++----- > drivers/video/fb-puv3.c | 9 ++++----- > drivers/video/fbmem.c | 28 ++++++++++++++++++++++------ > drivers/video/fbsysfs.c | 21 ++++++++++----------- > drivers/video/geode/gxfb_core.c | 9 ++++----- > drivers/video/geode/lxfb_core.c | 8 ++++---- > drivers/video/i740fb.c | 11 +++++------ > drivers/video/i810/i810_main.c | 9 ++++----- > drivers/video/jz4740_fb.c | 9 ++++----- > drivers/video/mx3fb.c | 9 ++++----- > drivers/video/nvidia/nvidia.c | 9 ++++----- > drivers/video/ps3fb.c | 15 +++++++-------- > drivers/video/pxafb.c | 5 ++--- > drivers/video/s3fb.c | 15 +++++++-------- > drivers/video/savage/savagefb_driver.c | 9 ++++----- > drivers/video/sh_mobile_lcdcfb.c | 13 ++++++------- > drivers/video/sm501fb.c | 9 ++++----- > drivers/video/tmiofb.c | 11 +++++------ > drivers/video/via/viafbdev.c | 8 ++++---- > drivers/video/vt8623fb.c | 11 +++++------ > drivers/video/xen-fbfront.c | 5 ++--- > include/linux/fb.h | 2 ++ > 27 files changed, 140 insertions(+), 144 deletions(-) > > diff --git a/drivers/video/arkfb.c b/drivers/video/arkfb.c > index 555dd4c..774d902 100644 > --- a/drivers/video/arkfb.c > +++ b/drivers/video/arkfb.c > @@ -23,7 +23,6 @@ > #include > #include > #include > -#include /* Why should fb driver call console > functions? because console_lock() */ > #include