Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 320a89ad authored by Lucas Stach's avatar Lucas Stach Committed by Philipp Zabel
Browse files

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: default avatarLucas Stach <l.stach@pengutronix.de>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent 92681fe7
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -671,6 +671,11 @@ 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);

	/*
	 * 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);