From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Date: Sat, 29 Sep 2012 10:43:11 +0000 Subject: Re: [PATCH] fb: only enable console lock in fb for VGA console Message-Id: <1348915391.9378.8.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 14:03 +0800, Jun Nie wrote: > Hi Ben, > Yes. If framebuffer console is disabled, I do not see any need to > hold console lock in FB. Please help indicate the risk if any. Thanks! Because there is no other lock left in the entire fbdev layer.. a lot of fbdev drivers have no locking of their own and rely on the console semaphore in more than one way. Ben. > Jun > >> 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