summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorNeena Busireddy <neena.busireddy@freescale.com>2015-09-22 15:02:50 -0500
committerOtavio Salvador <otavio@ossystems.com.br>2016-04-19 15:03:20 -0300
commit5c52405b94a34713955665a16a9b255feb57e864 (patch)
treee62ca132c93918b02d84232861ad6408a8cbac4a /recipes-kernel
parent7605f442b20e8fedd4ca513cb817c76ea19e05af (diff)
downloadmeta-freescale-5c52405b94a34713955665a16a9b255feb57e864.tar.gz
kernel-module-imx-gpu-viv: Upgrade to 5.0.11.p7.1 for 3.14.38-6QP_ga release
- Package name is changed to kernel-module-imx-gpu-viv. - Patch platform-Fix-kernel-version-check-for-3.14-based-ker.patch is no longer required as the fix has been applied upstream. - Upgrade to graphics version 5.0.11.p7.1 - Makefile patch will be included in next release. Signed-off-by: Neena Busireddy <neena.busireddy@freescale.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv/platform-Fix-kernel-version-check-for-3.14-based-ker.patch35
-rw-r--r--recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv/updatemakefile.patch158
-rw-r--r--recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p6.3.bb17
-rw-r--r--recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p7.1.bb16
4 files changed, 174 insertions, 52 deletions
diff --git a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv/platform-Fix-kernel-version-check-for-3.14-based-ker.patch b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv/platform-Fix-kernel-version-check-for-3.14-based-ker.patch
deleted file mode 100644
index 3b92ac8c..00000000
--- a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv/platform-Fix-kernel-version-check-for-3.14-based-ker.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From 617bdbec386a1237e2a148989318cc4a1360788a Mon Sep 17 00:00:00 2001
2From: Otavio Salvador <otavio@ossystems.com.br>
3Date: Tue, 18 Aug 2015 23:08:48 +0000
4Subject: [PATCH] platform: Fix kernel version check for 3.14-based kernels
5Organization: O.S. Systems Software LTDA.
6
7The build fail about the bus frequency header (linux/busfreq-imx6.h)
8not being found is caused by the mistaken check for the wrong kernel
9version.
10
11This patch fixes it by adding the right kernel version to be checked.
12
13Upstream-Status: Pending
14
15Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
16---
17 .../os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6q14.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/imx-gpu-viv-kernel-src/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6q14.c b/imx-gpu-viv-kernel-src/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6q14.c
21index a2e72ff..241614a 100644
22--- a/imx-gpu-viv-kernel-src/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6q14.c
23+++ b/imx-gpu-viv-kernel-src/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6q14.c
24@@ -40,7 +40,7 @@
25 #include <linux/pm_runtime.h>
26 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0)
27 #include <mach/busfreq.h>
28-#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0)
29+#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0)
30 #include <linux/busfreq-imx6.h>
31 #include <linux/reset.h>
32 #else
33--
342.1.4
35
diff --git a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv/updatemakefile.patch b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv/updatemakefile.patch
new file mode 100644
index 00000000..2ca10d43
--- /dev/null
+++ b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv/updatemakefile.patch
@@ -0,0 +1,158 @@
1Upstream-Status: Pending
2
3Signed-off-by: Neena Busireddy <neena.busireddy@freescale.com>
4
5diff -Naur kernel-module-imx-gpu-viv-5.0.11.p7.1_org/kernel-module-imx-gpu-viv-src/Makefile kernel-module-imx-gpu-viv-5.0.11.p7.1/kernel-module-imx-gpu-viv-src/Makefile
6--- kernel-module-imx-gpu-viv-5.0.11.p7.1_org/kernel-module-imx-gpu-viv-src/Makefile 2015-09-22 10:46:18.280385659 -0500
7+++ kernel-module-imx-gpu-viv-5.0.11.p7.1/kernel-module-imx-gpu-viv-src/Makefile 2015-09-22 10:46:51.000000000 -0500
8@@ -1,20 +1,54 @@
9 ##############################################################################
10 #
11-# Copyright (C) 2005 - 2014 by Vivante Corp.
12+# The MIT License (MIT)
13 #
14-# This program is free software; you can redistribute it and/or modify
15-# it under the terms of the GNU General Public License as published by
16-# the Free Software Foundation; either version 2 of the license, or
17-# (at your option) any later version.
18+# Copyright (c) 2014 Vivante Corporation
19+#
20+# Permission is hereby granted, free of charge, to any person obtaining a
21+# copy of this software and associated documentation files (the "Software"),
22+# to deal in the Software without restriction, including without limitation
23+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
24+# and/or sell copies of the Software, and to permit persons to whom the
25+# Software is furnished to do so, subject to the following conditions:
26+#
27+# The above copyright notice and this permission notice shall be included in
28+# all copies or substantial portions of the Software.
29+#
30+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
31+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
32+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
33+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
34+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
35+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
36+# DEALINGS IN THE SOFTWARE.
37+#
38+##############################################################################
39+#
40+# The GPL License (GPL)
41+#
42+# Copyright (C) 2014 Vivante Corporation
43+#
44+# This program is free software; you can redistribute it and/or
45+# modify it under the terms of the GNU General Public License
46+# as published by the Free Software Foundation; either version 2
47+# of the License, or (at your option) any later version.
48 #
49 # This program is distributed in the hope that it will be useful,
50 # but WITHOUT ANY WARRANTY; without even the implied warranty of
51-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
53 # GNU General Public License for more details.
54 #
55 # You should have received a copy of the GNU General Public License
56-# along with this program; if not write to the Free Software
57-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
58+# along with this program; if not, write to the Free Software Foundation,
59+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
60+#
61+##############################################################################
62+#
63+# Note: This software is released under dual MIT and GPL licenses. A
64+# recipient may use this file under the terms of either the MIT license or
65+# GPL License. If you wish to use only one license not the other, you can
66+# indicate your decision by deleting one of the above license notices in your
67+# version of this file.
68 #
69 ##############################################################################
70
71@@ -23,16 +57,15 @@
72 # Linux build file for kernel HAL driver.
73 #
74
75-AQROOT ?= .
76-
77 include $(AQROOT)/config
78
79-KERNEL_DIR ?= $(KERNEL_PATH)
80+KERNEL_DIR ?= $(TOOL_DIR)/kernel
81
82 OS_KERNEL_DIR := hal/os/linux/kernel
83 ARCH_KERNEL_DIR := hal/kernel/arch
84 ARCH_VG_KERNEL_DIR := hal/kernel/archvg
85 HAL_KERNEL_DIR := hal/kernel
86+HOST := $(shell hostname)
87
88 # Check and include platform config.
89 ifneq ($(PLATFORM),)
90@@ -63,6 +96,14 @@
91 $(OS_KERNEL_DIR)/gc_hal_kernel_debugfs.o \
92 $(OS_KERNEL_DIR)/gc_hal_kernel_allocator.o \
93
94+ifneq ($(CONFIG_DMA_SHARED_BUFFER),)
95+OBJS += $(OS_KERNEL_DIR)/allocator/default/gc_hal_kernel_allocator_dmabuf.o
96+endif
97+
98+ifneq ($(CONFIG_IOMMU_SUPPORT),)
99+OBJS += $(OS_KERNEL_DIR)/gc_hal_kernel_iommu.o
100+endif
101+
102 ifneq ($(PLATFORM),)
103 OBJS += $(OS_KERNEL_DIR)/gc_hal_kernel_probe.o
104 OBJS += $(OS_KERNEL_DIR)/platform/$(PLATFORM).o
105@@ -83,6 +124,10 @@
106 OBJS += $(ARCH_KERNEL_DIR)/gc_hal_kernel_context.o \
107 $(ARCH_KERNEL_DIR)/gc_hal_kernel_hardware.o
108
109+ifeq ($(VIVANTE_ENABLE_3D), 1)
110+OBJS += $(ARCH_KERNEL_DIR)/gc_hal_kernel_recorder.o
111+endif
112+
113 ifeq ($(VIVANTE_ENABLE_VG), 1)
114 OBJS +=\
115 $(HAL_KERNEL_DIR)/gc_hal_kernel_vg.o\
116@@ -99,10 +144,6 @@
117 OBJS += $(OS_KERNEL_DIR)/gc_hal_kernel_sync.o
118 endif
119
120-ifneq ($(CONFIG_ANDROID),)
121-EXTRA_CFLAGS += -DANDROID
122-endif
123-
124 ifeq ($(SECURITY), 1)
125 OBJS += $(OS_KERNEL_DIR)/gc_hal_kernel_security_channel.o \
126 $(HAL_KERNEL_DIR)/gc_hal_kernel_security.o
127@@ -118,15 +159,16 @@
128
129 # Define targets.
130 all:
131- @make V=$(V) ARCH=$(ARCH_TYPE) -C $(KERNEL_DIR) SUBDIRS=`pwd` modules
132+ @$(MAKE) V=$(V) ARCH=$(ARCH_TYPE) -C $(KERNEL_DIR) SUBDIRS=`pwd` modules
133
134 clean:
135 @rm -rf $(OBJS)
136- @rm -rf modules.order Module.symvers
137+ @rm -rf modules.order Module.symvers .tmp_versions
138 @find $(AQROOT) -name ".gc_*.cmd" | xargs rm -f
139
140 install: all
141 @mkdir -p $(SDK_DIR)/drivers
142+ @cp $(MODULE_NAME).ko $(SDK_DIR)/drivers
143
144 else
145
146@@ -261,8 +303,10 @@
147 EXTRA_CFLAGS += -I$(AQROOT)/hal/kernel/archvg
148 endif
149
150-obj-m += galcore.o
151+EXTRA_CFLAGS += -DHOST=\"$(HOST)\"
152+
153+obj-m = $(MODULE_NAME).o
154
155-galcore-objs := $(OBJS)
156+$(MODULE_NAME)-objs = $(OBJS)
157
158 endif
diff --git a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p6.3.bb b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p6.3.bb
deleted file mode 100644
index a27decda..00000000
--- a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p6.3.bb
+++ /dev/null
@@ -1,17 +0,0 @@
1# Copyright (C) 2015 Freescale Semiconductor
2
3SUMMARY = "Kernel loadable module for Vivante GPU"
4DESCRIPTION = "Provides flexibility to switch graphics between different kernels in future \
5releases. This package uses same source code as GPU kernel driver source."
6LICENSE = "GPLv2"
7LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
8
9inherit module
10
11SRC_URI = "${FSL_MIRROR}/imx-gpu-viv-kernel-${@'${PV}'.replace('5.0.11.p6.3', '5.0.11.p6.3-beta')}.tar.gz \
12 file://platform-Fix-kernel-version-check-for-3.14-based-ker.patch"
13
14SRC_URI[md5sum] = "6d46da80de94e98ee68ab1a75f384b89"
15SRC_URI[sha256sum] = "e4b02fc0c9bdbfc7ecc67a0bad0917e788921c8f2444d99bd77daae7f3cd95df"
16
17S = "${WORKDIR}/imx-gpu-viv-kernel-${@'${PV}'.replace('5.0.11.p6.3', '5.0.11.p6.3-beta')}"
diff --git a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p7.1.bb b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p7.1.bb
new file mode 100644
index 00000000..8d316ffd
--- /dev/null
+++ b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p7.1.bb
@@ -0,0 +1,16 @@
1# Copyright (C) 2015 Freescale Semiconductor
2
3SUMMARY = "Kernel loadable module for Vivante GPU"
4DESCRIPTION = "Provides flexibility to switch graphics between different kernels in future \
5releases. This package uses same source code as GPU kernel driver source."
6LICENSE = "GPLv2"
7LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
8
9inherit module
10
11SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.tar.gz \
12 file://updatemakefile.patch \
13 "
14
15SRC_URI[md5sum] = "a251a94390986371f75b338ad938e46f"
16SRC_URI[sha256sum] = "9aaef0a62bc2be69dc568228192b060c54970b5c700fee602d83a4d13e04a9b3"