mirror of
https://github.com/Freescale/meta-freescale-3rdparty.git
synced 2025-07-19 12:09:01 +02:00
linux-boundary (3.0.35): update to match Freescale's 4.1.1 release
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
This commit is contained in:
parent
f83f92fbc3
commit
eca154f173
File diff suppressed because it is too large
Load Diff
|
@ -1,62 +0,0 @@
|
|||
From 2df4dba8faa9a781a5a1c6c09d646d2b692c9a0c Mon Sep 17 00:00:00 2001
|
||||
From: Loren Huang <b02279@freescale.com>
|
||||
Date: Tue, 4 Jun 2013 15:08:15 +0800
|
||||
Subject: [PATCH 2/6] ENGR00265465 gpu:Add global value for minimum 3D clock
|
||||
export
|
||||
|
||||
Add global value gpu3DMinClock so that minimum 3D clock can be change by user.
|
||||
When gpu min clock is too low, it may cause IPU starvation issue in certain case.
|
||||
Use echo x > /sys/module/galcore/parameters/gpu3DMinClock to change it.
|
||||
|
||||
Cherry-pick from 3.0.35 branch.
|
||||
|
||||
Upstream-Status: Backport [3.5.7-1.0.0]
|
||||
|
||||
Signed-off-by: Loren Huang <b02279@freescale.com>
|
||||
Acked-by: Lily Zhang
|
||||
---
|
||||
drivers/mxc/gpu-viv/arch/XAQ2/hal/kernel/gc_hal_kernel_hardware.c | 6 +++++-
|
||||
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c | 3 +++
|
||||
2 files changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/drivers/mxc/gpu-viv/arch/XAQ2/hal/kernel/gc_hal_kernel_hardware.c b/drivers/mxc/gpu-viv/arch/XAQ2/hal/kernel/gc_hal_kernel_hardware.c
|
||||
index 3829999..ebd36fe 100644
|
||||
--- a/drivers/mxc/gpu-viv/arch/XAQ2/hal/kernel/gc_hal_kernel_hardware.c
|
||||
+++ b/drivers/mxc/gpu-viv/arch/XAQ2/hal/kernel/gc_hal_kernel_hardware.c
|
||||
@@ -36,6 +36,7 @@ typedef struct _gcsiDEBUG_REGISTERS
|
||||
}
|
||||
gcsiDEBUG_REGISTERS;
|
||||
|
||||
+extern int gpu3DMinClock;
|
||||
/******************************************************************************\
|
||||
********************************* Support Code *********************************
|
||||
\******************************************************************************/
|
||||
@@ -4630,7 +4631,10 @@ gckHARDWARE_GetFscaleValue(
|
||||
)
|
||||
{
|
||||
*FscaleValue = Hardware->powerOnFscaleVal;
|
||||
- *MinFscaleValue = 1;
|
||||
+ if ((gpu3DMinClock > 0) && (gpu3DMinClock <= 64) && (Hardware->core == gcvCORE_MAJOR))
|
||||
+ *MinFscaleValue = gpu3DMinClock;
|
||||
+ else
|
||||
+ *MinFscaleValue = 1;
|
||||
*MaxFscaleValue = 64;
|
||||
|
||||
return gcvSTATUS_OK;
|
||||
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c
|
||||
index 2ed3d0e..64cace1 100644
|
||||
--- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c
|
||||
+++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c
|
||||
@@ -146,6 +146,9 @@ module_param(logFileSize,uint, 0644);
|
||||
static int showArgs = 0;
|
||||
module_param(showArgs, int, 0644);
|
||||
|
||||
+int gpu3DMinClock = 0;
|
||||
+module_param(gpu3DMinClock, int, 0644);
|
||||
+
|
||||
#if ENABLE_GPU_CLOCK_BY_DRIVER
|
||||
unsigned long coreClock = 156000000;
|
||||
module_param(coreClock, ulong, 0644);
|
||||
--
|
||||
1.8.3.2
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -1,61 +0,0 @@
|
|||
From a845abe4589366d3e37b5a646be6337984074b28 Mon Sep 17 00:00:00 2001
|
||||
From: Loren HUANG <b02279@freescale.com>
|
||||
Date: Wed, 22 May 2013 17:21:30 +0800
|
||||
Subject: [PATCH 5/6] ENGR00264275 [GPU]Correct suspend/resume calling after
|
||||
adding runtime pm.
|
||||
|
||||
After enabling runtime pm the suspend/resume entry is changed.
|
||||
|
||||
-Add new entry for suspend/resume in runtime pm frame work.
|
||||
-Add static define for all runtime pm function.
|
||||
|
||||
Upstream-Status: Backport [3.5.7-1.0.0]
|
||||
|
||||
Signed-off-by: Loren HUANG <b02279@freescale.com>
|
||||
Acked-by: Lily Zhang
|
||||
---
|
||||
.../gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c | 16 ++++++++++++++--
|
||||
1 file changed, 14 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c
|
||||
index 183000d..3632a6c 100644
|
||||
--- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c
|
||||
+++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c
|
||||
@@ -1252,20 +1252,32 @@ static const struct of_device_id mxs_gpu_dt_ids[] = {
|
||||
MODULE_DEVICE_TABLE(of, mxs_gpu_dt_ids);
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
-int gpu_runtime_suspend(struct device *dev)
|
||||
+static int gpu_runtime_suspend(struct device *dev)
|
||||
{
|
||||
release_bus_freq(BUS_FREQ_HIGH);
|
||||
return 0;
|
||||
}
|
||||
|
||||
-int gpu_runtime_resume(struct device *dev)
|
||||
+static int gpu_runtime_resume(struct device *dev)
|
||||
{
|
||||
request_bus_freq(BUS_FREQ_HIGH);
|
||||
return 0;
|
||||
}
|
||||
|
||||
+static int gpu_system_suspend(struct device *dev)
|
||||
+{
|
||||
+ pm_message_t state={0};
|
||||
+ return gpu_suspend(to_platform_device(dev), state);
|
||||
+}
|
||||
+
|
||||
+static int gpu_system_resume(struct device *dev)
|
||||
+{
|
||||
+ return gpu_resume(to_platform_device(dev));
|
||||
+}
|
||||
+
|
||||
static const struct dev_pm_ops gpu_pm_ops = {
|
||||
SET_RUNTIME_PM_OPS(gpu_runtime_suspend, gpu_runtime_resume, NULL)
|
||||
+ SET_SYSTEM_SLEEP_PM_OPS(gpu_system_suspend, gpu_system_resume)
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
--
|
||||
1.8.3.2
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
From 376d63e9b981118f83646a836ce6626e541de1a3 Mon Sep 17 00:00:00 2001
|
||||
From: Loren HUANG <b02279@freescale.com>
|
||||
Date: Fri, 31 May 2013 18:29:58 +0800
|
||||
Subject: [PATCH 6/6] ENGR00265130 gpu:Correct section mismatch in gpu kernel
|
||||
driver
|
||||
|
||||
-Remove the __devinit for suspend/resume function.
|
||||
-Replace __devinit to __devexit for remove function.
|
||||
|
||||
Upstream-Status: Backport [3.5.7-1.0.0]
|
||||
|
||||
Signed-off-by: Loren HUANG <b02279@freescale.com>
|
||||
Acked-by: Lily Zhang
|
||||
---
|
||||
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c
|
||||
index 3632a6c..9d9dc57 100644
|
||||
--- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c
|
||||
+++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c
|
||||
@@ -1111,7 +1111,7 @@ static int __devinit gpu_probe(struct platform_device *pdev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
-static int __devinit gpu_remove(struct platform_device *pdev)
|
||||
+static int __devexit gpu_remove(struct platform_device *pdev)
|
||||
{
|
||||
gcmkHEADER();
|
||||
#if gcdENABLE_FSCALE_VAL_ADJUST
|
||||
@@ -1123,7 +1123,7 @@ static int __devinit gpu_remove(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
-static int __devinit gpu_suspend(struct platform_device *dev, pm_message_t state)
|
||||
+static int gpu_suspend(struct platform_device *dev, pm_message_t state)
|
||||
{
|
||||
gceSTATUS status;
|
||||
gckGALDEVICE device;
|
||||
@@ -1173,7 +1173,7 @@ static int __devinit gpu_suspend(struct platform_device *dev, pm_message_t state
|
||||
return 0;
|
||||
}
|
||||
|
||||
-static int __devinit gpu_resume(struct platform_device *dev)
|
||||
+static int gpu_resume(struct platform_device *dev)
|
||||
{
|
||||
gceSTATUS status;
|
||||
gckGALDEVICE device;
|
||||
@@ -1284,7 +1284,7 @@ static const struct dev_pm_ops gpu_pm_ops = {
|
||||
|
||||
static struct platform_driver gpu_driver = {
|
||||
.probe = gpu_probe,
|
||||
- .remove = gpu_remove,
|
||||
+ .remove = __devexit_p(gpu_remove),
|
||||
|
||||
.suspend = gpu_suspend,
|
||||
.resume = gpu_resume,
|
||||
--
|
||||
1.8.3.2
|
||||
|
|
@ -8,17 +8,12 @@ DESCRIPTION = "Linux kernel for Boundary Devices boards"
|
|||
SRC_URI = "git://github.com/boundarydevices/linux-imx6.git \
|
||||
file://defconfig"
|
||||
|
||||
LOCALVERSION = "-4.0.0+yocto"
|
||||
SRCREV = "7d8752905c118af9063738a533227de0b2f6ecd4"
|
||||
LOCALVERSION = "-4.1.0+yocto"
|
||||
SRCREV = "58099389255add7c17ce6babf37a50ce5d11d6b8"
|
||||
|
||||
|
||||
# GPU support patches
|
||||
SRC_URI += "file://drm-vivante-Add-00-sufix-in-returned-bus-Id.patch \
|
||||
file://0001-ENGR00255688-4.6.9p11.1-gpu-GPU-Kernel-driver-integr.patch \
|
||||
file://0002-ENGR00265465-gpu-Add-global-value-for-minimum-3D-clo.patch \
|
||||
file://0003-ENGR00261814-4-gpu-use-new-PU-power-on-off-interface.patch \
|
||||
file://0004-ENGR00264288-1-GPU-Integrate-4.6.9p12-release-kernel.patch \
|
||||
file://0005-ENGR00264275-GPU-Correct-suspend-resume-calling-afte.patch \
|
||||
file://0006-ENGR00265130-gpu-Correct-section-mismatch-in-gpu-ker.patch"
|
||||
"
|
||||
|
||||
COMPATIBLE_MACHINE = "(mx6)"
|
||||
|
|
Loading…
Reference in New Issue
Block a user