mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
msm: gsi: Read 64-bit ring RP value from registers
The DMA address allocated may be in 64-bit address range if dma mask is set to 64-bit, the MSB register value is required. Signed-off-by: Cheng Zeng <quic_chenzeng@quicinc.com>
This commit is contained in:
parent
93c0b93ba9
commit
e091b01ac4
1 changed files with 8 additions and 1 deletions
|
|
@ -1752,7 +1752,14 @@ static inline uint64_t gsi_read_event_ring_rp_ddr(struct gsi_evt_ring_props* pro
|
|||
static inline uint64_t gsi_read_event_ring_rp_reg(struct gsi_evt_ring_props* props,
|
||||
uint8_t id, int ee)
|
||||
{
|
||||
return gsi_readl(gsi_ctx->base + GSI_EE_n_EV_CH_k_CNTXT_4_OFFS(id, ee));
|
||||
uint64_t rp;
|
||||
|
||||
rp = gsi_readl(gsi_ctx->base +
|
||||
GSI_EE_n_EV_CH_k_CNTXT_4_OFFS(id, ee));
|
||||
rp |= ((uint64_t)gsi_readl(gsi_ctx->base +
|
||||
GSI_EE_n_EV_CH_k_CNTXT_5_OFFS(id, ee))) << 32;
|
||||
|
||||
return rp;
|
||||
}
|
||||
|
||||
int gsi_alloc_evt_ring(struct gsi_evt_ring_props *props, unsigned long dev_hdl,
|
||||
|
|
|
|||
Loading…
Reference in a new issue