diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2017-03-08 06:13:19 -0500 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2017-03-16 05:14:49 -0400 |
commit | 320a89ad7bdaf90700fcdc3cb8a811b9b7a1a919 (patch) | |
tree | d690b6c8b36831febf769e3026a47d7e5f62283f | |
parent | 92681fe7e98eb8c0a3ef6e850db399b2de192562 (diff) |
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>
-rw-r--r-- | drivers/gpu/ipu-v3/ipu-image-convert.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/ipu-v3/ipu-image-convert.c b/drivers/gpu/ipu-v3/ipu-image-convert.c index 805b6fa7b5f4..524a717ab28e 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, | |||
671 | ipu_ic_task_idma_init(chan->ic, channel, width, height, | 671 | ipu_ic_task_idma_init(chan->ic, channel, width, height, |
672 | burst_size, rot_mode); | 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 | ipu_idmac_set_double_buffer(channel, ctx->double_buffering); | 681 | ipu_idmac_set_double_buffer(channel, ctx->double_buffering); |
677 | } | 682 | } |