From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from vms173003pub.verizon.net (vms173003pub.verizon.net [206.46.173.3]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 89DA9E006D9 for ; Tue, 29 May 2012 13:58:25 -0700 (PDT) Received: from gandalf.denix.org ([unknown] [108.48.117.33]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0M4S00BP0Y8KMU84@vms173003.mailsrvcs.net> for meta-ti@yoctoproject.org; Tue, 29 May 2012 15:57:57 -0500 (CDT) Received: by gandalf.denix.org (Postfix, from userid 1000) id 807C120043; Tue, 29 May 2012 16:57:56 -0400 (EDT) Date: Tue, 29 May 2012 16:57:56 -0400 From: Denys Dmytriyenko To: Koen Kooi Message-id: <20120529205756.GA10106@denix.org> References: <1337846249-26371-1-git-send-email-koen@dominion.thruhere.net> MIME-version: 1.0 In-reply-to: <1337846249-26371-1-git-send-email-koen@dominion.thruhere.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: meta-ti@yoctoproject.org, denys@ti.com Subject: Re: [PATCH 1/2] linux-ti33x-psp 3.2: sgx fix from PSP + dvi cape audio fix X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Mailing list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2012 20:58:25 -0000 Content-type: text/plain; charset=us-ascii Content-disposition: inline Koen, On Thu, May 24, 2012 at 09:57:28AM +0200, Koen Kooi wrote: > Also move more things to modules to speed up boot. > > Signed-off-by: Koen Kooi > --- > ...unding-FB-size-to-satisfy-SGX-buffer-requ.patch | 59 ++++++ > .../0063-beaglebone-dvi-cape-audio-hacks.patch | 217 ++++++++++++++++++++ > .../linux/linux-ti33x-psp-3.2/beaglebone/defconfig | 124 +++++++---- > recipes-kernel/linux/linux-ti33x-psp_3.2.bb | 4 +- > 4 files changed, 360 insertions(+), 44 deletions(-) > create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0062-da8xx-fb-Rounding-FB-size-to-satisfy-SGX-buffer-requ.patch > create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0063-beaglebone-dvi-cape-audio-hacks.patch > > diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0062-da8xx-fb-Rounding-FB-size-to-satisfy-SGX-buffer-requ.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0062-da8xx-fb-Rounding-FB-size-to-satisfy-SGX-buffer-requ.patch > new file mode 100644 > index 0000000..f6860cb > --- /dev/null > +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0062-da8xx-fb-Rounding-FB-size-to-satisfy-SGX-buffer-requ.patch > @@ -0,0 +1,59 @@ > +From 02ad70ea366cb2946cc7d7c14ddcbd0dabf3d3ff Mon Sep 17 00:00:00 2001 > +From: Aditya Nellutla > +Date: Thu, 29 Mar 2012 15:45:39 +0530 > +Subject: [PATCH 62/63] da8xx-fb: Rounding FB size to satisfy SGX buffer > + requirements > + > +In the real time use-case when SGX is used for rendering to FB buffers it has been > +observed that, the available memory from framebuffer driver is not sufficient for > +SGX under certain cases (like 16-bit WVGA resolution). SGX requires 2 swap buffers > +with each of the buffers aligned to lcm(line_length, PAGE_SIZE). > + > +Inorder to satisfy this requirement, we have two options, > + > + - Increase number of FB buffers (LCD_NUM_BUFFERS) to 3. This is not > + recommended as we end up wasting huge memory in most of the cases. > + > + - Align FB buffers to lcm(line_length, PAGE_SIZE).This ensures framebuffer > + size is increased to satisfy SGX requirements keeping alignment intact. > + > +This patch makes sure that FB allocates buffers aligned to above formula. > + > +Signed-off-by: Aditya Nellutla > +--- > + drivers/video/da8xx-fb.c | 5 ++++- > + 1 files changed, 4 insertions(+), 1 deletions(-) > + > +diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c > +index 86b19ac..9aaca5d 100644 > +--- a/drivers/video/da8xx-fb.c > ++++ b/drivers/video/da8xx-fb.c > +@@ -34,6 +34,7 @@ > + #include > + #include > + #include > ++#include > + #include