disp: msm: sde: Validate transaction counts for LUTDMA abs writes

Existing LUTDMA hardware runs into issues when an odd number of
LUTDMA absolute address writes are executed before a GDSC power
collapse. Update LUTDMA logic to force absolute write payloads to
always contain an even number of writes.

Change-Id: I476feeab550f4b176d0adccaa5f2d38041e87657
Signed-off-by: Christopher Braga <cbraga@codeaurora.org>
This commit is contained in:
Christopher Braga
2021-08-12 13:47:13 -04:00
szülő 8f51420d29
commit 43bfd9f435
5 fájl változott, egészen pontosan 42 új sor hozzáadva és 2 régi sor törölve

Fájl megtekintése

@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
*/
#ifndef _SDE_REG_DMA_H
@@ -232,6 +232,7 @@ enum sde_reg_dma_last_cmd_mode {
* @vaddr: cpu address
* @next_op_allowed: operation allowed on the buffer
* @ops_completed: operations completed on buffer
* @abs_write_cnt: count of mdss absolute addr writes in the current buffer
*/
struct sde_reg_dma_buffer {
struct drm_gem_object *buf;
@@ -242,6 +243,7 @@ struct sde_reg_dma_buffer {
void *vaddr;
u32 next_op_allowed;
u32 ops_completed;
u32 abs_write_cnt;
};
/**