mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "msm: kgsl: Update HW idle check for A619 holi"
This commit is contained in:
commit
e6c57233a1
1 changed files with 5 additions and 4 deletions
|
|
@ -1099,13 +1099,14 @@ static void a6xx_gpu_keepalive(struct adreno_device *adreno_dev,
|
|||
|
||||
static bool a619_holi_hw_isidle(struct adreno_device *adreno_dev)
|
||||
{
|
||||
struct kgsl_device *device = KGSL_DEVICE(adreno_dev);
|
||||
unsigned int reg;
|
||||
|
||||
adreno_read_gmu_wrapper(adreno_dev,
|
||||
A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS, ®);
|
||||
kgsl_regread(device, A6XX_RBBM_STATUS, ®);
|
||||
if (reg & 0xfffffffe)
|
||||
return false;
|
||||
|
||||
/* Bit 23 is GPUBUSYIGNAHB */
|
||||
return (reg & BIT(23)) ? false : true;
|
||||
return adreno_irq_pending(adreno_dev) ? false : true;
|
||||
}
|
||||
|
||||
bool a6xx_hw_isidle(struct adreno_device *adreno_dev)
|
||||
|
|
|
|||
Loading…
Reference in a new issue