From 1d44de8f58cdfd71c90ce078070be1b6c6574832 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 23 May 2012 16:18:16 +0200 Subject: linux-ti33x-psp 3.2: sgx fix from PSP + dvi cape audio fix Also move more things to modules to speed up boot. Signed-off-by: Koen Kooi Signed-off-by: Denys Dmytriyenko --- ...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 00000000..f6860cb3 --- /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