From: Lucas Stach Date: Wed, 8 Mar 2017 11:13:19 +0000 (+0100) Subject: gpu: ipu-v3: only set non-zero AXI ID for IC when PRG is absent X-Git-Tag: v4.14-rc1~674^2~20^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=320a89ad7bdaf90700fcdc3cb8a811b9b7a1a919;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Philipp Zabel --- diff --git a/drivers/gpu/ipu-v3/ipu-image-convert.c b/drivers/gpu/ipu-v3/ipu-image-convert.c index 805b6fa7b..524a717 100644 --- a/drivers/gpu/ipu-v3/ipu-image-convert.c +++ b/drivers/gpu/ipu-v3/ipu-image-convert.c @@ -671,7 +671,12 @@ static void init_idmac_channel(struct ipu_image_convert_ctx *ctx, ipu_ic_task_idma_init(chan->ic, channel, width, height, burst_size, rot_mode); - ipu_cpmem_set_axi_id(channel, 1); + /* + * Setting a non-zero AXI ID collides with the PRG AXI snooping, so + * only do this when there is no PRG present. + */ + if (!channel->ipu->prg_priv) + ipu_cpmem_set_axi_id(channel, 1); ipu_idmac_set_double_buffer(channel, ctx->double_buffering); }