GitHub/LineageOS/G12/android_hardware_amlogic_kernel-modules_mali-driver.git
7 years agogpu: mali will report GL OOM to hwui when alloc_page fail [1/1]
binqi.zhang [Fri, 3 Nov 2017 05:53:14 +0000 (13:53 +0800)]
gpu: mali will report GL OOM to hwui when alloc_page fail [1/1]

PD# 152678

add GFP_KERNEL flag to alloc_page if alloc_page fail and try alloc again

Change-Id: I9bc87ed2e00c9525231eb2aaa3b3971cf0ac8ed8

7 years agogpu: check def_clk when probe
Jiyu Yang [Wed, 1 Nov 2017 08:20:26 +0000 (16:20 +0800)]
gpu: check def_clk when probe

PD#152825:

Change-Id: I9fb943fb13a0c3644d9247ce63eb394a0bcd1dbf
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
7 years agoMerge "gpu: seperately set gp0_pll before changed to 744M" into r6p1
Simon Zheng [Tue, 31 Oct 2017 11:55:31 +0000 (04:55 -0700)]
Merge "gpu: seperately set gp0_pll before changed to 744M" into r6p1

7 years agogpu: update EGL_KHR_wait_sync
Jiyu Yang [Thu, 26 Oct 2017 07:24:45 +0000 (15:24 +0800)]
gpu: update EGL_KHR_wait_sync

PD#153119
add EGL_KHR_wait_sync and remove EGL_KHR_reusable_sync
EGL_KHR_wait_sync which Server-side waits and reusable syncs are
mutually exclusive in the Mali Linux DDK, you
can only enable one at a time.

Change-Id: Id16f5403090337b5966a8c4ef0def733af8d4e07

7 years agogpu: seperately set gp0_pll before changed to 744M
Jiyu Yang [Sat, 28 Oct 2017 09:44:03 +0000 (17:44 +0800)]
gpu: seperately set gp0_pll before changed to 744M

PD#151164: seperately set gp0_pll before changed to 744M
Change-Id: I1550f2e5a3d2b0eea84770eacb36e81fe3a99248
Signed-off-by: Jiyu Yang <Jiyu.Yang@amlogic.com>
7 years agogpu: add null check for mali session memtrack [1/1]
Jiyu Yang [Thu, 21 Sep 2017 10:06:33 +0000 (18:06 +0800)]
gpu: add null check for mali session memtrack [1/1]

use default value if null

Change-Id: Ia725afb83c9fa33a3a8c3e9e487273aeeb245f7c

7 years agogpu: fixed sync leak in AOSP common kernel or LTS kernel 4.10
Jiyu Yang [Wed, 27 Sep 2017 11:42:17 +0000 (19:42 +0800)]
gpu: fixed sync leak in AOSP common kernel or LTS kernel 4.10

PD#151104
Change-Id: I1d1b1481b4579be486525c44378205326c372dd4

7 years agogpu: r8p0-01rel0 release
Jiyu Yang [Wed, 20 Sep 2017 03:56:17 +0000 (11:56 +0800)]
gpu: r8p0-01rel0 release

PD#151266
also add treble support
Change-Id: Ia1a1ba8bf5083d195e9095f7d62bbbbf271b8bb7

7 years agoMerge "gpu: limit the dump function due to kernel version [1/1]" into r6p1
Simon Zheng [Thu, 21 Sep 2017 05:17:00 +0000 (22:17 -0700)]
Merge "gpu: limit the dump function due to kernel version [1/1]" into r6p1

7 years agogpu: limit the dump function due to kernel version [1/1]
binqi.zhang [Tue, 22 Aug 2017 09:19:09 +0000 (17:19 +0800)]
gpu: limit the dump function due to kernel version [1/1]

PD# NONE

limit debug function

Change-Id: I3e294967436e024752b517454416b66ce9009f69

7 years agogpu:optimize the GPU performance [1/1]
binqi.zhang [Thu, 14 Sep 2017 06:02:58 +0000 (14:02 +0800)]
gpu:optimize the GPU performance [1/1]

PD# 150352

mv hw_get_module function out of eglCreateImageKHR

Change-Id: I53639a66ac74f359d8717f14edba0080f85aad14

7 years agogpu:replace the magic number with msecs_to_jiffies [1/1]
Jiyu Yang [Thu, 7 Sep 2017 03:15:42 +0000 (11:15 +0800)]
gpu:replace the magic number with msecs_to_jiffies [1/1]

PD#150542:replace the magic number with msecs_to_jiffies.

Change-Id: I6c5859ddcd487cf458acd3219d7469d13f6dd78e

7 years agosync: add sync_file patch [2/3]
Jiyu Yang [Tue, 5 Sep 2017 11:22:05 +0000 (19:22 +0800)]
sync: add sync_file patch [2/3]

PD#149525
Change-Id: Iaec0450be6ef4094665b9d3d2477be417a5cf374

7 years agogpu: mv gpu lib and mod to vendor [1/2]
Jiyu Yang [Mon, 4 Sep 2017 08:58:57 +0000 (16:58 +0800)]
gpu: mv gpu lib and mod to vendor [1/2]

PD#NONE
default path is system/lib if GPU_MOD_OUT not set
Change-Id: Ic300f7c8eee06251aec6b88781c144c1e894f49b

7 years agogpu: update r8p0 patch [6/7]
Jiyu Yang [Thu, 31 Aug 2017 13:57:24 +0000 (21:57 +0800)]
gpu: update r8p0 patch [6/7]

PD#149525
Change-Id: Ia207984ef4b84dbf6dd3f251f824b04ed7dc8414

7 years agogpu: dump meminfo when mali can't alloc memory [1/1]
Jiyu Yang [Thu, 17 Aug 2017 09:11:00 +0000 (17:11 +0800)]
gpu: dump meminfo when mali can't alloc memory [1/1]

PD# NONE

add debug info

Change-Id: I342dcd3e0600afdf7c77c118430252b0a49ef6b0

7 years agogpu: mali r8p0-00dev0 release [2/2]
Jiyu Yang [Fri, 11 Aug 2017 02:17:56 +0000 (10:17 +0800)]
gpu: mali r8p0-00dev0 release [2/2]

PD#148957
Change-Id: Idce52b46293f2947c342f846f015c0a78b97e69f

7 years agoNEEDLEPLAT-3051: map the scaled videobuffer instead of allocated. [1/1]
Jiyu Yang [Fri, 11 Aug 2017 14:55:58 +0000 (22:55 +0800)]
NEEDLEPLAT-3051: map the scaled videobuffer instead of allocated. [1/1]

PD#148923

[Problem]
AIV started with jittery playbak and then video froze (with audio running)
this problem was introduced in NEEDLEPLAT-1097.

[Solution]
map the scaled video buffer instead of the previous skip map which caused
the mali_mem growing larger and lead to the create EGLImage fail

[Platform]
needle, stark

Change-Id: I8ddbe51698bbec51e5a53afb43c5a9383df6a9db

7 years agoNEEDLEPLAT-2845: Coordinate SF and app rendering, Prevent SF grab gpu source. [1/1]
stark li [Tue, 1 Aug 2017 18:19:21 +0000 (11:19 -0700)]
NEEDLEPLAT-2845: Coordinate SF and app rendering, Prevent SF grab gpu source. [1/1]

PD#148617
[Problem]
IAP purchase dialog gets stuck and unable to make IAP purchases.

[Solution]
Coordinate SF and app rendering, Prevent SF grab gpu source.

[Platform]
needle, stark

Change-Id: I742e9ce825617fe7c1a149f79d66d24c9194b32c

7 years agogpu: fixed o-pdk compile error on r6p1
Jiyu Yang [Tue, 20 Jun 2017 05:49:13 +0000 (13:49 +0800)]
gpu: fixed o-pdk compile error on r6p1

PD#147955
Change-Id: I0088c737927b7901aba37c70e80dbe71e6c65fdf

7 years agoMerge "gpu: fixed min_state of thermal" into r6p1
Simon Zheng [Fri, 21 Jul 2017 07:33:33 +0000 (00:33 -0700)]
Merge "gpu: fixed min_state of thermal" into r6p1

7 years agoMerge "use HAL_PIXEL_FORMAT_YCrCb_420_SP for HAL_PIXEL_FORMAT_YCbCr_420_888" into...
Simon Zheng [Thu, 20 Jul 2017 12:30:20 +0000 (05:30 -0700)]
Merge "use HAL_PIXEL_FORMAT_YCrCb_420_SP for HAL_PIXEL_FORMAT_YCbCr_420_888" into r6p1

7 years agogpu: fixed min_state of thermal
Jiyu Yang [Tue, 18 Jul 2017 11:12:30 +0000 (19:12 +0800)]
gpu: fixed min_state of thermal

PD#143724 fixed error in m8b m8m2 driver

Change-Id: I6666ec1da1711225701e323d29fc2fc8c71df3d1

7 years agouse HAL_PIXEL_FORMAT_YCrCb_420_SP for HAL_PIXEL_FORMAT_YCbCr_420_888
Jiyu Yang [Fri, 14 Jul 2017 05:38:47 +0000 (13:38 +0800)]
use HAL_PIXEL_FORMAT_YCrCb_420_SP for HAL_PIXEL_FORMAT_YCbCr_420_888

PD#146294

use HAL_PIXEL_FORMAT_YCrCb_420_SP for HAL_PIXEL_FORMAT_YCbCr_420_888
(Android flexible YCbCr 4:2:0 formats)

This format allows platforms to use an efficient YCbCr/YCrCb 4:2:0
buffer layout, while still describing the general format in a
layout-independent manner.  While called YCbCr, it can be
used to describe formats with either chromatic ordering, as well as
whole planar or semiplanar layouts.

struct android_ycbcr (below) is the the struct used to describe it.

This format must be accepted by the gralloc module when
USAGE_SW_WRITE_* or USAGE_SW_READ_* are set.

This format is locked for use by gralloc's (*lock_ycbcr) method, and
locking with the (*lock) method will return an error.

When used with ANativeWindow, the dataSpace field describes the color
space of the buffer.

Change-Id: I1167c091350f17f8f6e4477841d0ab485e57954d
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
7 years agogpu: update the license [1/1]
Jiyu Yang [Wed, 21 Jun 2017 04:08:21 +0000 (12:08 +0800)]
gpu: update the license [1/1]

PD#146719 license clean up
Change-Id: Ib93afab3a19b29ac89cfc6ec964912efb51095d4

7 years agoPD#141398 r7p0 for m8b board
Jiyu Yang [Tue, 9 May 2017 11:03:19 +0000 (19:03 +0800)]
PD#141398 r7p0 for m8b board

Change-Id: Ib4a6ad69a24aa3ef46ad168db35f1b6ed61f2c03

7 years agoPD#142871 gpu: add mali for kitkat
Jiyu Yang [Tue, 13 Jun 2017 11:49:08 +0000 (19:49 +0800)]
PD#142871 gpu: add mali for kitkat

Change-Id: Ife80a228181bce52597987c2ae24c753e3fe177f

7 years agoPD#143724: fixed min_state of thermal
wenbiao.zhang [Wed, 3 May 2017 07:43:31 +0000 (15:43 +0800)]
PD#143724: fixed min_state of thermal

for stark dvfs tbl is 125, 285, 400, 500, 666, 744.
so get_mali_freq_level should report min_state for STARK below
744 -> 0
666 -> 1
500 -> 2
400 -> 3
285 -> 4
125 -> 5

Change-Id: Iad17b56e8f22a29064a432f5c1810b1cb26cc79b

7 years agoPD#139269 platform overlay buffer allocation
Jiyu Yang [Wed, 26 Apr 2017 13:35:07 +0000 (21:35 +0800)]
PD#139269 platform overlay buffer allocation

Change-Id: Ib6e62cc004eb1ca2444c59b0cb5addf3890896c9

7 years agoPD#141500 midgard r16p0 release
Jiyu Yang [Fri, 24 Mar 2017 07:19:19 +0000 (15:19 +0800)]
PD#141500 midgard r16p0 release

Change-Id: Id03df3256c49740cc517f63723101ab0cf98664a

7 years agomm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros
Jiyu Yang [Tue, 7 Mar 2017 10:42:37 +0000 (18:42 +0800)]
mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

PD#138714 kernel 4.9 bringup
PAGE_CACHE_{SIZE,SHIFT,MASK,ALIGN} macros were introduced *long* time
ago with promise that one day it will be possible to implement page
cache with bigger chunks than PAGE_SIZE.

This promise never materialized.  And unlikely will.

We have many places where PAGE_CACHE_SIZE assumed to be equal to
PAGE_SIZE.  And it's constant source of confusion on whether
PAGE_CACHE_* or PAGE_* constant should be used in a particular case,
especially on the border between fs and mm.

Global switching to PAGE_CACHE_SIZE != PAGE_SIZE would cause to much
breakage to be doable.

Let's stop pretending that pages in page cache are special.  They are
not.

The changes are pretty straight-forward:

 - <foo> << (PAGE_CACHE_SHIFT - PAGE_SHIFT) -> <foo>;

 - <foo> >> (PAGE_CACHE_SHIFT - PAGE_SHIFT) -> <foo>;

 - PAGE_CACHE_{SIZE,SHIFT,MASK,ALIGN} -> PAGE_{SIZE,SHIFT,MASK,ALIGN};

 - page_cache_get() -> get_page();

 - page_cache_release() -> put_page();

This patch contains automated changes generated with coccinelle using
script below.  For some reason, coccinelle doesn't patch header files.
I've called spatch for them manually.

The only adjustment after coccinelle is revert of changes to
PAGE_CAHCE_ALIGN definition: we are going to drop it later.

There are few places in the code where coccinelle didn't reach.  I'll
fix them manually in a separate patch.  Comments and documentation also
will be addressed with the separate patch.

virtual patch

@@
expression E;
@@
- E << (PAGE_CACHE_SHIFT - PAGE_SHIFT)
+ E

@@
expression E;
@@
- E >> (PAGE_CACHE_SHIFT - PAGE_SHIFT)
+ E

@@
@@
- PAGE_CACHE_SHIFT
+ PAGE_SHIFT

@@
@@
- PAGE_CACHE_SIZE
+ PAGE_SIZE

@@
@@
- PAGE_CACHE_MASK
+ PAGE_MASK

@@
expression E;
@@
- PAGE_CACHE_ALIGN(E)
+ PAGE_ALIGN(E)

@@
expression E;
@@
- page_cache_get(E)
+ get_page(E)

@@
expression E;
@@
- page_cache_release(E)
+ put_page(E)

Change-Id: I139b5a4aab2622a3813233b1c224c02f0df9a621

7 years agodma-mapping: use unsigned long for dma_attrs
Jiyu Yang [Tue, 7 Mar 2017 10:23:46 +0000 (18:23 +0800)]
dma-mapping: use unsigned long for dma_attrs

PD#138714 kernel 4.9 bringup
The dma-mapping core and the implementations do not change the DMA
attributes passed by pointer.  Thus the pointer can point to const data.
However the attributes do not have to be a bitfield.  Instead unsigned
long will do fine:

1. This is just simpler.  Both in terms of reading the code and setting
   attributes.  Instead of initializing local attributes on the stack
   and passing pointer to it to dma_set_attr(), just set the bits.

2. It brings safeness and checking for const correctness because the
   attributes are passed by value.

Semantic patches for this change (at least most of them):

    virtual patch
    virtual context

    @r@
    identifier f, attrs;

    @@
    f(...,
    - struct dma_attrs *attrs
    + unsigned long attrs
    , ...)
    {
    ...
    }

    @@
    identifier r.f;
    @@
    f(...,
    - NULL
    + 0
     )

and

    // Options: --all-includes
    virtual patch
    virtual context

    @r@
    identifier f, attrs;
    type t;

    @@
    t f(..., struct dma_attrs *attrs);

    @@
    identifier r.f;
    @@
    f(...,
    - NULL
    + 0
     )

Link: http://lkml.kernel.org/r/1468399300-5399-2-git-send-email-k.kozlowski@samsung.com
Change-Id: I570e4dc3f2bc898d0dffa65d6e85b2767bc33832

7 years agoPD#138881 disable state tracing when release
Jiyu Yang [Thu, 23 Feb 2017 10:35:03 +0000 (18:35 +0800)]
PD#138881 disable state tracing when release

Change-Id: Id2dd5a708f7b7f34ab5131053cacb98b5e8c0d6d

7 years agothermal compile ok for kernel 4.4
Tao Zeng [Tue, 21 Feb 2017 06:27:45 +0000 (14:27 +0800)]
thermal compile ok for kernel 4.4

PD#131267 kernel 4.4 bringup
Change-Id: I3601e6eed68e6843669d472154a2f422a753771d

7 years agoPD#139356 add NV12 support
Jiyu Yang [Wed, 8 Feb 2017 12:53:31 +0000 (20:53 +0800)]
PD#139356 add NV12 support

Change-Id: Ic4ec13fe0534d30decc026082f4b0b25cb6abebd

7 years agotemp disable gp pll request on 4.4
Jiyu Yang [Fri, 10 Feb 2017 03:04:54 +0000 (11:04 +0800)]
temp disable gp pll request on 4.4

PD#131267 kernel 4.4 bringup

Change-Id: I791702b5b479b52738e869bbcb17b7d2f8a82bbd

7 years agogpu compile for 4.4
Jiyu Yang [Mon, 21 Nov 2016 11:58:08 +0000 (19:58 +0800)]
gpu compile for 4.4

PD#131267 kernel 4.4
gpu compile ok, still have t83x themal can't be compiled.

Change-Id: Icbf7c75959c80166142194d4dc3cd9da9ebf4607

7 years agoPD#132693 fixed Bad frame in CtsMediaTestCases
Jiyu Yang [Fri, 20 Jan 2017 08:59:58 +0000 (16:59 +0800)]
PD#132693 fixed Bad frame in CtsMediaTestCases

this happened when run the below cmd:
run cts -m CtsMediaTestCases
-t android.media.cts.EncodeDecodeTest#
testEncodeDecodeVideoFromPersistentSurfaceToSurface720p

Change-Id: I535d00fe395b9893ddf7a6de5c52744c9fe0e3d0

7 years agoPD#132693 fixed libGLES_mali crash
Jiyu Yang [Thu, 5 Jan 2017 05:31:56 +0000 (13:31 +0800)]
PD#132693 fixed libGLES_mali crash

this crash happened when run the below cmd:
run cts -m CtsMediaTestCases
-t android.media.cts.EncodeDecodeTest#testEncodeDecodeVideoFromPersistentSurfaceToSurface720p

Change-Id: I0073cb730ee6aeec4f29af94371f76d9cd0dbf45

7 years agoPD#132695 fixed dEQP failed
Jiyu Yang [Thu, 22 Dec 2016 11:44:20 +0000 (19:44 +0800)]
PD#132695 fixed dEQP failed

Change-Id: I5eaaec1ce4c3cac02d5561f9189cd54be749e51e

8 years agoupdate mali450 library for Android N
Jiyu Yang [Tue, 18 Oct 2016 08:44:38 +0000 (16:44 +0800)]
update mali450 library for Android N

1. fixed video layer couldnot display
2. compile in Android N
Change-Id: Idcab239c15e1fcfc31e73627008641b9a5107d91

8 years agoupdate r7p0 ddk for mali450
Jiyu Yang [Tue, 11 Oct 2016 05:35:50 +0000 (13:35 +0800)]
update r7p0 ddk for mali450

Change-Id: I7cb4b41bc017bd1048b06c0e00a96239f4d55f07

8 years agoPD#128039 update 64bit so for t83x and t82x
Jiyu Yang [Wed, 22 Jun 2016 09:19:02 +0000 (17:19 +0800)]
PD#128039 update 64bit so for t83x and t82x

Change-Id: Ie05521f8acd9cd381e68c76de2dcf33e480c6ffd

8 years agore-enable --strip-debug to reduce mali.ko size
Lawrence Mok [Wed, 13 Jul 2016 01:19:59 +0000 (18:19 -0700)]
re-enable --strip-debug to reduce mali.ko size

from 7.6MB to 560KB

Change-Id: I86ff99724dea265657165e529892920fddf81d65

8 years agoPD#126286 rm max pp and min pp for midgard
Jiyu Yang [Tue, 7 Jun 2016 06:47:30 +0000 (14:47 +0800)]
PD#126286 rm max pp and min pp for midgard

Change-Id: Idfb467f2172a54aa65133c858a2717d4ff111749

8 years agoPD#126286 fix soft reset on midgard
Jiyu Yang [Tue, 21 Jun 2016 13:20:06 +0000 (21:20 +0800)]
PD#126286 fix soft reset on midgard

The driver will ensure that the GPU is idle
before requesting power down. The power down request
will be made only when all jobs on all slots
have completed (all jobs flush and invalidate
on completion meaning the L2 cache will be empty).
The power down requests of the shader cores,
the tiler and the L2 cache are deferred to the system code
that will disable the clock(TODO) and power-off the whole GPU.

By bypassing the shader cores and core group power down sequences, and power
off the whole GPU instead, allows to this workaround to avoid the beginning of
any spurious transaction.
ter suspend

Change-Id: I048370dc83cb92762217f61b21a0ef3db2da457e

8 years agoPD#126400: mali: move mali.ko to /system/lib
Ao Xu [Thu, 2 Jun 2016 02:46:48 +0000 (10:46 +0800)]
PD#126400: mali: move mali.ko to /system/lib

Change-Id: I9a38eff9eab1cd75a1d12c1fcdad7484469ab271

8 years agoPD#125571 fixed compile for customer dir
Jiyu Yang [Mon, 30 May 2016 10:04:49 +0000 (18:04 +0800)]
PD#125571 fixed compile for customer dir

Change-Id: I675c79ed3485293f3b321a1a5b7daef2af8326b1

8 years agoPD#125963 gpu lib: fix yuv align to 32
Jiyu Yang [Thu, 26 May 2016 12:13:03 +0000 (20:13 +0800)]
PD#125963 gpu lib: fix yuv align to 32

this bug was imported in PD#125571
Change-Id: If2b92384d86f42db66c85a78942ddea16208c4fd

8 years agoMerge "PD#125571 midgard r11p0 rel for t82x and t83x" into r6p1
Simon Zheng [Tue, 24 May 2016 10:33:14 +0000 (03:33 -0700)]
Merge "PD#125571 midgard r11p0 rel for t82x and t83x" into r6p1

8 years agoPD#125571 midgard r11p0 rel for t82x and t83x
Jiyu Yang [Mon, 23 May 2016 08:16:30 +0000 (16:16 +0800)]
PD#125571 midgard r11p0 rel for t82x and t83x

commit d28e5a582d83c19eafe00bc5e27f378ad67d82d0
Author: Jiyu Yang <jiyu.yang@amlogic.com>
Date:   Tue May 24 16:03:58 2016 +0800

    PD125571 update t82x t83x lib for android L

    Change-Id: If605b9f9e98dfb571698363fe1c306771b3536a7

commit a835f407444207c4110c40bb3d9c0be2192bc1e2
Author: Jiyu Yang <jiyu.yang@amlogic.com>
Date:   Mon May 23 20:56:27 2016 +0800

    PD#125571 add HAL_PIXEL_FORMAT_YCrCb_420_SP

    this will be removed when android N
    Change-Id: If23ba5d863b8f9d207b2923e82753949cbd0af55

commit 398ec136c3f1af79f6aa9c2c00912738cd66aed5
Author: Jiyu Yang <jiyu.yang@amlogic.com>
Date:   Mon May 23 13:00:51 2016 +0800

    PD#125571 update library for t82x and t83x

    Change-Id: Id16041676497fa91072a9af0586d968420c16536

commit b61cc518957e374975abe11ce743c792261b770a
Author: Jiyu Yang <jiyu.yang@amlogic.com>
Date:   Fri May 20 14:43:04 2016 +0800

    TX041-SW-99002-r11p0-00rel0

    Change-Id: I6d18ef50fad81b939cf3bff21b108456258e63de

commit 210fd8146e5b64a83ba674abdfb8edbd53b22097
Author: Jiyu Yang <jiyu.yang@amlogic.com>
Date:   Fri May 20 14:39:56 2016 +0800

    TX041-SW-99002-r10p0-00rel0

    Change-Id: I9d6aad092a3e69236c38f078ab6633d029a07997

commit 017572cb09550913ecd52e43ff2eb0754c5115c3
Author: Jiyu Yang <jiyu.yang@amlogic.com>
Date:   Fri May 20 14:37:31 2016 +0800

    TX041-SW-99002-r9p0-05rel0

    Change-Id: Iab5b27d200621612c36deec6d1fef049af65db19

commit 4e9d6a0f22046d717c7f2599d5c89816e37d35d9
Author: Jiyu Yang <jiyu.yang@amlogic.com>
Date:   Fri May 20 14:36:15 2016 +0800

    TX041-SW-99002-r8p0-02rel0

    Change-Id: Ic59759da9c59a5055595d96f9826ec1f98bdf8ce

Change-Id: I95c443fdc26dd1143ee90b2debdb40f94905e61c

8 years agoPD#125571 gpu: update mk
Jiyu Yang [Thu, 19 May 2016 14:51:38 +0000 (22:51 +0800)]
PD#125571 gpu: update mk

Change-Id: I96c5f6b4162c5eebef0f4b91535a6781e8eb3baa

8 years agoMerge "PD#125292 gpu:dont set gp pll twice" into r6p1
Simon Zheng [Wed, 18 May 2016 03:09:33 +0000 (20:09 -0700)]
Merge "PD#125292 gpu:dont set gp pll twice" into r6p1

8 years agoPD#125292 gpu:dont set gp pll twice
Jiyu Yang [Tue, 17 May 2016 07:22:03 +0000 (15:22 +0800)]
PD#125292 gpu:dont set gp pll twice

Change-Id: I4ac6a6f15b7f19f5dc4d7f9565754f53d641d58b

8 years agoPD#124800 add t82x support
Jiyu Yang [Sun, 15 May 2016 07:27:29 +0000 (15:27 +0800)]
PD#124800 add t82x support

Change-Id: I15a1198c0a39a81c10613f2b8da3e0ec3cc4600e

8 years agoPD#114881: add macro to control ipa
Tao Zeng [Wed, 20 Apr 2016 04:49:06 +0000 (12:49 +0800)]
PD#114881: add macro to control ipa

using CONFIG_DEVFREQ_THERMAL macro to control ipa
Change-Id: I54748b04015b00ac3476a16e3bdaeaac97481cb9

8 years agoPD#123871 gpu lib: update so for different android version
Jiyu Yang [Mon, 18 Apr 2016 13:59:39 +0000 (21:59 +0800)]
PD#123871 gpu lib: update so for different android version

Change-Id: I75d64ffdbaeb753e399e8ffbb50bd750217ee30c

8 years agoPD#121797 r6p1 01rel0 mali450
Jiyu Yang [Sat, 26 Mar 2016 09:15:18 +0000 (17:15 +0800)]
PD#121797 r6p1 01rel0 mali450

commit d8ca016baa66c77207970f93eba3d7b6290eb362
Author: Jiyu Yang <jiyu.yang@amlogic.com>
Date:   Thu Mar 24 13:14:10 2016 +0800

    PD#121797 r6p1 01rel0 mali450

    Change-Id: I789de0b5999738fb938960c4466307a0b58d3f7c

commit de5869e1564802896a8ab733bbacf6096dbfbe47
Author: Jiyu Yang <jiyu.yang@amlogic.com>
Date:   Wed Mar 23 15:49:39 2016 +0800

    PD#121797 r6p0 01rel1 mali450

    Change-Id: I784e085317b8065c5a1e592b6b12d12cd910c70b

commit 9d995f3cab7114fe5672db15473f56e2073b1767
Author: Jiyu Yang <jiyu.yang@amlogic.com>
Date:   Wed Mar 23 15:44:59 2016 +0800

    PD#121797 r6p0 01rel0 mali450

    Change-Id: I42ab3ba82b26c8258e8d8d5ae926e93f52fb62cf

commit 94925203b73e294c6839430433517a74c5db4261
Author: Jiyu Yang <jiyu.yang@amlogic.com>
Date:   Tue Sep 1 20:15:13 2015 +0800

    PD#121797 add mali r5p2

    (cherry picked from commit a87100bd8c10c4e5990cb956a97c60ce6a8de104)

    Change-Id: Icfffa60966ccbceac9bf5fc6a7d2ed92327c40d0

Change-Id: I3ac9aa3364938f01efa97d161b816747d43c81b8

8 years agoMerge "PD#119939 add array check for dvfs table" into r5p1-3.14-dev
Simon Zheng [Wed, 16 Mar 2016 03:34:53 +0000 (20:34 -0700)]
Merge "PD#119939 add array check for dvfs table" into r5p1-3.14-dev

8 years agoPD#119939 add array check for dvfs table for mali450
Jiyu Yang [Fri, 11 Mar 2016 06:34:02 +0000 (14:34 +0800)]
PD#119939 add array check for dvfs table for mali450

Change-Id: I9f6b40f28f6ad779c65fffae70d41987a01ab10e

8 years agoPD#119939 add array check for dvfs table
Jiyu Yang [Tue, 8 Mar 2016 10:14:41 +0000 (18:14 +0800)]
PD#119939 add array check for dvfs table

Change-Id: I6c0ab76284a5b60073259b7817de20f38434d92d

8 years agoPD#119373 fix suspend crashed in mali
Jiyu Yang [Fri, 19 Feb 2016 09:14:51 +0000 (17:14 +0800)]
PD#119373 fix suspend crashed in mali

Change-Id: I5d5c4838c8f7a5b39d3e62a5c22834170e4a7baa

8 years agoMerge "PD#117326: Have new gralloc (hardware/amlogic/gralloc/) for TV&MBOX; ...
Simon Zheng [Tue, 12 Jan 2016 08:02:39 +0000 (00:02 -0800)]
Merge "PD#117326: Have new gralloc (hardware/amlogic/gralloc/) for TV&MBOX;            This gralloc is no longer needed;" into r5p1-3.14-dev

8 years agoPD#116328 hibernate support for mali83x
Jiyu Yang [Mon, 21 Dec 2015 14:07:14 +0000 (22:07 +0800)]
PD#116328 hibernate support for mali83x

Change-Id: I906e75eefe7a4dadf83b1071b7ad0116ad997870

8 years agoPD#117326: Have new gralloc (hardware/amlogic/gralloc/) for TV&MBOX;
Stark Li [Tue, 29 Dec 2015 03:46:15 +0000 (11:46 +0800)]
PD#117326: Have new gralloc (hardware/amlogic/gralloc/) for TV&MBOX;
           This gralloc is no longer needed;

Change-Id: I55fa02a8d5471556ab5b1bad0c63b0073cbc7c24

8 years agoMerge "PD#116501: fix dma share fd will be destroyed when android crashed" into r5p1...
Simon Zheng [Mon, 28 Dec 2015 07:05:36 +0000 (23:05 -0800)]
Merge "PD#116501: fix dma share fd will be destroyed when android crashed" into r5p1-3.14-dev

8 years agoPD#116501: fix dma share fd will be destroyed when android crashed
Stark Li [Tue, 22 Dec 2015 06:16:02 +0000 (14:16 +0800)]
PD#116501: fix dma share fd will be destroyed when android crashed

Change-Id: I58b7c4e7e09e06821ff8e2cfb7a4b558455bb65a

8 years agoPD#115943 remove 905m clk limit
Jiyu Yang [Wed, 16 Dec 2015 11:18:45 +0000 (19:18 +0800)]
PD#115943 remove 905m clk limit

Change-Id: I0677ec24f097240f55c63cab7537f3a5cc4d746b

8 years agoPD#116616 fixed make errors for 64bits
Cheng Wang [Fri, 11 Dec 2015 10:37:18 +0000 (18:37 +0800)]
PD#116616 fixed make errors for 64bits

Change-Id: I41311c48482ab57826bda01e899674d3e49549d8

8 years agoPD#116026: gpu: add gpu legend dvfs for t83x
Jiyu Yang [Thu, 10 Dec 2015 04:54:16 +0000 (12:54 +0800)]
PD#116026: gpu: add gpu legend dvfs for t83x

Change-Id: I9fe3bc45a20bf0d823c1684270261dbd84543c28

8 years agoPD#115299: gralloc: Enable osd afbcd function or not dynamicly
Zhenxing Jin [Thu, 26 Nov 2015 11:40:03 +0000 (19:40 +0800)]
PD#115299: gralloc: Enable osd afbcd function or not dynamicly

Gralloc driver will enable osd afbc fucntion or not
according to the build properties of "fb.afbcd.enable".
Meanwhile the file node of "/sys/class/graphics/fb0/osd_afbcd"
will be set or not accordingly.
And this will inform osd driver to alloc proper frame buffer.

Change-Id: I6429e54ea15a9e8981a0e7fb544c7faee36d2bf9
Signed-off-by: Zhenxing Jin <zhenxing.jin@amlogic.com>
8 years agoPD#115299: gralloc: afbc enabled
Zhenxing Jin [Thu, 26 Nov 2015 12:33:41 +0000 (20:33 +0800)]
PD#115299: gralloc:  afbc enabled

1. afbc independ framebuffer fds support
port from: http://scgit.amlogic.com:8080/#/c/6117/

Change-Id: I0cbd0fe79c3945efceaf8df7f23693bbf0a4a65d
Signed-off-by: Zhenxing Jin <zhenxing.jin@amlogic.com>
8 years agoPD#115943 905m clk check
Jiyu Yang [Fri, 4 Dec 2015 03:29:19 +0000 (11:29 +0800)]
PD#115943 905m clk check

Change-Id: I27f84e943d3425316e5ac630bc1a6c63e48cf789

8 years agoPD#114881: add debug sysfs for devfreq governor
Tao Zeng [Thu, 3 Dec 2015 09:56:17 +0000 (17:56 +0800)]
PD#114881: add debug sysfs for devfreq governor

Change-Id: I7f7fa3902a0aa24478bc636ecfbe1a19c7ad1df8

8 years agoPD#116010: gralloc: add camera function for gxtvbb
Guosong Zhou [Mon, 30 Nov 2015 09:15:02 +0000 (17:15 +0800)]
PD#116010: gralloc: add camera function for gxtvbb

Change-Id: Ib1be8b2ca3d8e5fcf09598c79e943ce62192a44a
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
9 years agoMerge "PD#114881: add gpu cooling hooks for ipa" into r5p1-3.14-dev
Simon Zheng [Tue, 24 Nov 2015 08:16:26 +0000 (00:16 -0800)]
Merge "PD#114881: add gpu cooling hooks for ipa" into r5p1-3.14-dev

9 years agoMerge "Revert "PD#115299 afbc enabled"" into r5p1-3.14-dev
Simon Zheng [Wed, 18 Nov 2015 03:29:23 +0000 (19:29 -0800)]
Merge "Revert "PD#115299 afbc enabled"" into r5p1-3.14-dev

9 years agoRevert "PD#115299 afbc enabled"
Sandy Luo [Wed, 18 Nov 2015 02:51:07 +0000 (18:51 -0800)]
Revert "PD#115299 afbc enabled"

This reverts commit 405d7e04fc3f536fabfb1da61a4daf1de3d57f09.

Change-Id: Id469685758ad8330e413557ccaa850b5f51d133c

9 years agoPD#114881: add gpu cooling hooks for ipa
Tao Zeng [Thu, 5 Nov 2015 11:09:32 +0000 (19:09 +0800)]
PD#114881: add gpu cooling hooks for ipa

for t83x, using dev_freq as cooling driver

Change-Id: I9a8d582b858c4405dfa08cc0dd752bfa2a42ac32

9 years agoMerge "PD#115299 afbc enabled" into r5p1-3.14-dev
Simon Zheng [Tue, 17 Nov 2015 06:42:11 +0000 (22:42 -0800)]
Merge "PD#115299 afbc enabled" into r5p1-3.14-dev

9 years agoPD#115299 afbc enabled
Stark Li [Tue, 10 Nov 2015 07:30:01 +0000 (15:30 +0800)]
PD#115299 afbc enabled

1. afbc independ framebuffer fds support
2. changed [min, max] for dvfs
Change-Id: I3bd6cec2955c708d3767ade8489457e2ef269272

9 years agoPD#112245 fixed thermal could not go high
Jiyu Yang [Mon, 9 Nov 2015 06:22:02 +0000 (14:22 +0800)]
PD#112245 fixed thermal could not go high

Change-Id: If03e3e73aef44003280477f920ef7b5ee75e7037
(cherry picked from commit 6f33e6345654b760dd8e06f64d1b49b8b5e0f79d

9 years agoPD#114635: omx use new usage
Xu Jintao [Mon, 2 Nov 2015 13:53:40 +0000 (21:53 +0800)]
PD#114635: omx use new usage

Change-Id: I8321f7c6df5e977acb73035d12f0f3e2db001779
Signed-off-by: Xu Jintao <jintao.xu@amlogic.com>
9 years agoupdate video overlay flags
Jiyu Yang [Mon, 19 Oct 2015 16:17:09 +0000 (00:17 +0800)]
update video overlay flags

Change-Id: Ie4db195a80c69a6c6d4bb716e49a87c4a9de27db
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
9 years agoupdate gralloc to adapter hwcomposer 1.4
Stark Li [Thu, 15 Oct 2015 07:37:05 +0000 (15:37 +0800)]
update gralloc to adapter hwcomposer 1.4

1. update hwcomposer
2. rm extra directory

Change-Id: I94745226bbb591c381ca8f1e9ab3bdf9dac8e836
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
9 years agoadd mali_page_fault and pp_hardware_reset for mp
Jiyu Yang [Fri, 16 Oct 2015 10:54:12 +0000 (18:54 +0800)]
add mali_page_fault and pp_hardware_reset for mp

Change-Id: I0ff2e6ace0bb9b435730b1c7fe80d8864cf2a013
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
9 years agofixed red and blue swapped
Jiyu Yang [Wed, 14 Oct 2015 14:28:30 +0000 (22:28 +0800)]
fixed red and blue swapped

Change-Id: If8166551ac4b8032250fe3f144444c93fa00804a
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
9 years agoPD#111243 add t83x r7p0 from malidevelop.arm.com
Jiyu Yang [Sat, 10 Oct 2015 02:45:47 +0000 (10:45 +0800)]
PD#111243 add t83x r7p0 from malidevelop.arm.com

Change-Id: Ib65b744b5a8b7db87725f83194d5ea80bd27f80e
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
9 years agoadd mali_gp_reset_fail and mali_core_timeout for chip dectect
Jiyu Yang [Mon, 24 Aug 2015 09:06:07 +0000 (17:06 +0800)]
add mali_gp_reset_fail and mali_core_timeout for chip dectect

Change-Id: Ia4fa28228c1a84e674e7527f12972498c07ad241
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
9 years agoPD#112921 fixed memleak and kernel crash in debugfs
Jiyu Yang [Thu, 17 Sep 2015 12:16:04 +0000 (20:16 +0800)]
PD#112921 fixed memleak and kernel crash in debugfs

1. fixed memleak in monkey test.
2. fixed kernel crash in debugfs
3. changed to default instead of failed
4. change the print format

Change-Id: I48a6b04d0c0b7e14969db2a42c0c3cf395f1f3d9
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
9 years agoPD#105950 hibernate support for kernel 3.14
Jiyu Yang [Wed, 9 Sep 2015 08:56:07 +0000 (16:56 +0800)]
PD#105950 hibernate support for kernel 3.14

Change-Id: Iea2f4f5105a8aa5c5094314e57b3ae5f7757b0c8

9 years agoprint tgid name in /sys/kernel/debug/mali/gpu_memory node
Jiyu Yang [Thu, 10 Sep 2015 10:41:30 +0000 (18:41 +0800)]
print tgid name in /sys/kernel/debug/mali/gpu_memory node

Change-Id: Id754e0e2e2ab3f2f2cadb0868f1f744c5981d8f9
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
9 years agoPD#108267 fixed timeout when antutu5.7 many times run
Jiyu Yang [Fri, 7 Aug 2015 03:18:43 +0000 (11:18 +0800)]
PD#108267 fixed timeout when antutu5.7 many times run

this patch from these two patch
Errata847169_Crashes_In_Application_Close.patch
Errata850522_Mali450_Job_Scheduler_Stop_In_CornerCase.patch

backtrace is below
<6>[ 2131.508868] kworker/1:1     D ffffffc001085a00     0  1625      2 0x00000000
<6>[ 2131.515844] Workqueue: events delayed_fput
<4>[ 2131.519892] Call trace:
<4>[ 2131.522310] [<ffffffc001085a00>] __switch_to+0x74/0x8c
<4>[ 2131.527403] [<ffffffc001985938>] __schedule+0x2b8/0x744
<4>[ 2131.532572] [<ffffffc001985df0>] schedule+0x2c/0x80
<4>[ 2131.537417] [<ffffffbffc0188bc>] _mali_osk_wait_queue_wait_event+0x44/0x80 [mali]
<4>[ 2131.544833] [<ffffffbffc02fd00>] mali_timeline_system_abort+0xfc/0x120 [mali]
<4>[ 2131.551902] [<ffffffbffc01f54c>] _mali_ukk_close+0x58/0xb4 [mali]
<4>[ 2131.557938] [<ffffffbffc01fdcc>] mali_release+0x3c/0xd4 [mali]
<4>[ 2131.563708] [<ffffffc0011b1f20>] __fput+0x90/0x20c
<4>[ 2131.568452] [<ffffffc0011b20d8>] delayed_fput+0x3c/0x54
<4>[ 2131.573629] [<ffffffc0010b5ecc>] process_one_work+0x140/0x430
<4>[ 2131.579320] [<ffffffc0010b6d04>] worker_thread+0x140/0x3d4
<4>[ 2131.584754] [<ffffffc0010bd85c>] kthread+0xd8/0xf0

Change-Id: I884b38478b09e3bdbf0d168abd589faccd3f1e23
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
9 years agoPD#108267 set mali clock as the john's method
Jiyu Yang [Thu, 9 Jul 2015 07:18:26 +0000 (15:18 +0800)]
PD#108267 set mali clock as the john's method

Change-Id: Ibf29281170b3d348c2dbb33095d3e09f85070f6f
Signed-off-by: John Thodiyil <john.thodiyil@amlogic.com>
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
9 years agoPD#108237 fixed fence timeout
Jiyu Yang [Mon, 6 Jul 2015 11:24:15 +0000 (19:24 +0800)]
PD#108237 fixed fence timeout

use safe clock switch and remove the mali_dev_pause
and mali_dev_resume

Change-Id: I94e5efa2b3d6d322701ec78fcf9290eb214b1c75
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
9 years agoPD#108096 add pm ops
Jiyu Yang [Sun, 28 Jun 2015 07:03:00 +0000 (15:03 +0800)]
PD#108096 add pm ops

suspend/resume issues

Change-Id: I4f8818a0b4594d0026524a8f1b417de29b04f62c
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
9 years agoadd gp request
Jiyu Yang [Sun, 7 Jun 2015 07:37:18 +0000 (15:37 +0800)]
add gp request

Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
Change-Id: I12bf80d0e5e8d45e7461aa583c6072c52f93d73d

9 years agodisable mali debug
Jiyu Yang [Tue, 2 Jun 2015 04:45:50 +0000 (12:45 +0800)]
disable mali debug

Change-Id: I64fcabd10c51fa8dd2c2882a6fcd2c8e9caecc0f
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
9 years agouse gp0_pll as the high level
Jiyu Yang [Fri, 29 May 2015 14:09:27 +0000 (22:09 +0800)]
use gp0_pll as the high level

1. use gp0_pll as the high level
2. add clkp_freq as the clk_parent freq.

Change-Id: I6751c3639bef5a300f4ad1cfd9776624a505342c
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>
9 years agogxbb bringup
Jiyu Yang [Tue, 26 May 2015 13:14:18 +0000 (21:14 +0800)]
gxbb bringup

1. gxbb bringup.
2. left clock tree divider cannot work.

Change-Id: Ie4d3727fa64f60a78b4a0a94ba83b86c441b149b
Signed-off-by: Jiyu Yang <jiyu.yang@amlogic.com>