Thread (12 messages) 12 messages, 4 authors, 2010-05-14

RE: [PATCH v2 1/2] DSS2: Allow FB_OMAP2 to build without VRFB

From: Guruswamy, Senthilvadivu <hidden>
Date: 2010-05-14 05:36:46
Also in: linux-omap

 
-----Original Message-----
From: Menon, Nishanth 
Sent: Thursday, May 13, 2010 9:00 PM
To: Guruswamy, Senthilvadivu
Cc: linux-omap@vger.kernel.org; linux-fbdev@vger.kernel.org; 
tony@atomide.com; tomi.valkeinen@nokia.com; Hiremath, Vaibhav
Subject: Re: [PATCH v2 1/2] DSS2: Allow FB_OMAP2 to build without VRFB

Senthilvadivu Guruswamy had written, on 05/13/2010 10:20 AM, 
the following:
quoted
FB_OMAP2 can work without VRFB, but currently does not 
build. Fix this.
quoted
Signed-off-by: Senthilvadivu Guruswamy <redacted>
 
+#ifdef CONFIG_OMAP2_VRFB
 extern int omap_vrfb_request_ctx(struct vrfb *vrfb);
+#else
+static inline int omap_vrfb_request_ctx(struct vrfb *vrfb) 
{ return 0; }
quoted
+static inline void omap_vrfb_release_ctx(struct vrfb *vrfb) {}
the core of the problem not solved: How do we handle the same kernel 
bootup on OMAP3(vrfb) and OMAP4(tiler) if it is compile time decided?
[Senthil] Compile time decision would come into picture only for 
build with omap_4430sdp_defconfig.  Kernel is built with 
omap3_defconfig will have CONFIG_OMAP2_VRFB=y in it. 
In runtime,  VRFB APIs will not get called in OMAP4 since these 
calls are already within runtime check "if(rotation.type = VRFB)".

This patch is for omap_4430sdp_defconfig to build.
Reason:
VRFB functions make calls to "sms_..." functions in sdrc.c
which is applicable to omap2-3-common and gets compiled only with 
ARCH_OMAP2, ARCH_OMAP3. omap_4430sdp_defconfig has only ARCH_OMAP4 
defined in it, so sdrc.c is not included in the build leading 
to unresolved symbols "sms...".  So empty the VRFB functions for
non omap2-3 builds.



Regards,
Senthil
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help