Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpu: ipu-v3: only set non-zero AXI ID for IC when PRG is absent

Using non-zero AXI IDs for anything other than the display channels
collides with the PRG AXI snooping, so only do this if there is no
PRG present.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

authored by

Lucas Stach and committed by
Philipp Zabel
320a89ad 92681fe7

+6 -1
+6 -1
drivers/gpu/ipu-v3/ipu-image-convert.c
··· 671 671 ipu_ic_task_idma_init(chan->ic, channel, width, height, 672 672 burst_size, rot_mode); 673 673 674 - ipu_cpmem_set_axi_id(channel, 1); 674 + /* 675 + * Setting a non-zero AXI ID collides with the PRG AXI snooping, so 676 + * only do this when there is no PRG present. 677 + */ 678 + if (!channel->ipu->prg_priv) 679 + ipu_cpmem_set_axi_id(channel, 1); 675 680 676 681 ipu_idmac_set_double_buffer(channel, ctx->double_buffering); 677 682 }