diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 02:06:17 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 02:06:17 +0200 |
commit | 54eecdabe0cdfdc47d77b3e182fda5899702ded7 (patch) | |
tree | 8e28d750773f0aa38f0d2de83109b190faf0b425 /recipes-kernel/linux/linux-wandboard-3.0.35/0002-ENGR00265465-gpu-Add-global-value-for-minimum-3D-clo.patch | |
download | meta-fsl-arm-extra-54eecdabe0cdfdc47d77b3e182fda5899702ded7.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'recipes-kernel/linux/linux-wandboard-3.0.35/0002-ENGR00265465-gpu-Add-global-value-for-minimum-3D-clo.patch')
-rw-r--r-- | recipes-kernel/linux/linux-wandboard-3.0.35/0002-ENGR00265465-gpu-Add-global-value-for-minimum-3D-clo.patch | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-wandboard-3.0.35/0002-ENGR00265465-gpu-Add-global-value-for-minimum-3D-clo.patch b/recipes-kernel/linux/linux-wandboard-3.0.35/0002-ENGR00265465-gpu-Add-global-value-for-minimum-3D-clo.patch new file mode 100644 index 0000000..5725ab7 --- /dev/null +++ b/recipes-kernel/linux/linux-wandboard-3.0.35/0002-ENGR00265465-gpu-Add-global-value-for-minimum-3D-clo.patch | |||
@@ -0,0 +1,62 @@ | |||
1 | From 2df4dba8faa9a781a5a1c6c09d646d2b692c9a0c Mon Sep 17 00:00:00 2001 | ||
2 | From: Loren Huang <b02279@freescale.com> | ||
3 | Date: Tue, 4 Jun 2013 15:08:15 +0800 | ||
4 | Subject: [PATCH 2/6] ENGR00265465 gpu:Add global value for minimum 3D clock | ||
5 | export | ||
6 | |||
7 | Add global value gpu3DMinClock so that minimum 3D clock can be change by user. | ||
8 | When gpu min clock is too low, it may cause IPU starvation issue in certain case. | ||
9 | Use echo x > /sys/module/galcore/parameters/gpu3DMinClock to change it. | ||
10 | |||
11 | Cherry-pick from 3.0.35 branch. | ||
12 | |||
13 | Upstream-Status: Backport [3.5.7-1.0.0] | ||
14 | |||
15 | Signed-off-by: Loren Huang <b02279@freescale.com> | ||
16 | Acked-by: Lily Zhang | ||
17 | --- | ||
18 | drivers/mxc/gpu-viv/arch/XAQ2/hal/kernel/gc_hal_kernel_hardware.c | 6 +++++- | ||
19 | drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c | 3 +++ | ||
20 | 2 files changed, 8 insertions(+), 1 deletion(-) | ||
21 | |||
22 | 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 | ||
23 | index 3829999..ebd36fe 100644 | ||
24 | --- a/drivers/mxc/gpu-viv/arch/XAQ2/hal/kernel/gc_hal_kernel_hardware.c | ||
25 | +++ b/drivers/mxc/gpu-viv/arch/XAQ2/hal/kernel/gc_hal_kernel_hardware.c | ||
26 | @@ -36,6 +36,7 @@ typedef struct _gcsiDEBUG_REGISTERS | ||
27 | } | ||
28 | gcsiDEBUG_REGISTERS; | ||
29 | |||
30 | +extern int gpu3DMinClock; | ||
31 | /******************************************************************************\ | ||
32 | ********************************* Support Code ********************************* | ||
33 | \******************************************************************************/ | ||
34 | @@ -4630,7 +4631,10 @@ gckHARDWARE_GetFscaleValue( | ||
35 | ) | ||
36 | { | ||
37 | *FscaleValue = Hardware->powerOnFscaleVal; | ||
38 | - *MinFscaleValue = 1; | ||
39 | + if ((gpu3DMinClock > 0) && (gpu3DMinClock <= 64) && (Hardware->core == gcvCORE_MAJOR)) | ||
40 | + *MinFscaleValue = gpu3DMinClock; | ||
41 | + else | ||
42 | + *MinFscaleValue = 1; | ||
43 | *MaxFscaleValue = 64; | ||
44 | |||
45 | return gcvSTATUS_OK; | ||
46 | 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 | ||
47 | index 2ed3d0e..64cace1 100644 | ||
48 | --- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c | ||
49 | +++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c | ||
50 | @@ -146,6 +146,9 @@ module_param(logFileSize,uint, 0644); | ||
51 | static int showArgs = 0; | ||
52 | module_param(showArgs, int, 0644); | ||
53 | |||
54 | +int gpu3DMinClock = 0; | ||
55 | +module_param(gpu3DMinClock, int, 0644); | ||
56 | + | ||
57 | #if ENABLE_GPU_CLOCK_BY_DRIVER | ||
58 | unsigned long coreClock = 156000000; | ||
59 | module_param(coreClock, ulong, 0644); | ||
60 | -- | ||
61 | 1.8.3.2 | ||
62 | |||