Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp341550pxb; Thu, 25 Feb 2021 04:10:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmVRvn5102ogEPPZtsc/cWMUlUXR4tRNjH5RD4lsM0x3ej4OusTJgm5UxJlUu68k/wGUcr X-Received: by 2002:a17:907:da0:: with SMTP id go32mr2339115ejc.203.1614255034076; Thu, 25 Feb 2021 04:10:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614255034; cv=none; d=google.com; s=arc-20160816; b=Fl+l1fNm/HUgcW6RIoYg9diA0v8/bhahXeY9/AXJGS+4HoLlZhwXyeOFFWJPNnPO9C r7DusF1bu8TEneDh+izCW3ilmERXnas3bojt9AJHU8rTFWeDVqyV1ghibcFoDU5T+/z4 AIk3LFSfvM4FCoCCVQtCRP0AGlm3NsjGEnrA28MC7Bz6a9RHOuAUUcOoAt4Fsjfr9/NJ oLRThRqcKdC9Bn2MChkWhmvuooiVziKHlrp2IrYN8oEnUdLajqEvpIoLao/bIYKKDt4M agKcmTydH734h68iAGoRqnBr4j9o6eRPUqAu3SlR8y16oiKWZlB62Gkrd3P7xp5yc1mO +9BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ELgLGz7H/AOhfrIgqJUg8ymXUTn73BRbcyMsPjYv45E=; b=WSHXnDEA96Od5rcLhvsbRnEDTERPcIsOun5v4uaraxhTOWzsYL86S+vcrjFxXcZ2/S Px6vQo2gc+C+vuMiAV/PWH0R+f7B+zRhlOB/DzEfVkWsqkKCqeiFoBEiX/+zvZR7yTHP 4mj9MLvMGOYrZMujAXnJ/oR+n6PAIMtX9UKMpg95om6JZXfGHTSqsjf5WMhFo7lWk1Gr uTvEgU7rJPTlEWlwLaR5qRPYBQjFC6aeYJL0QwS8VSatewJIvwyvZ9E1shUNXc0aov6U wq2uKvzoAgDXCkjcynLwKF4JAzDZm8DcSIL1ee0a0ccEMtS0Amkeb4GQfH6icaWl1Il6 7R+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s23si1023103eja.266.2021.02.25.04.10.10; Thu, 25 Feb 2021 04:10:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232923AbhBYMGy (ORCPT + 99 others); Thu, 25 Feb 2021 07:06:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229566AbhBYMGu (ORCPT ); Thu, 25 Feb 2021 07:06:50 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD3C7C061574; Thu, 25 Feb 2021 04:06:10 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id C8E611F46026 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: fbuergisser@google.com, dianders@google.com, Collabora Kernel ML , acourbot@google.com, tfiga@google.com, Ezequiel Garcia , Greg Kroah-Hartman , Mauro Carvalho Chehab , Philipp Zabel , devel@driverdev.osuosl.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org Subject: [PATCH] media: hantro: Auto generate the AXI ID to avoid conflicts Date: Thu, 25 Feb 2021 13:06:01 +0100 Message-Id: <20210225120601.669238-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The AXI ID is an AXI bus configuration for improve bus performance. If read and write operations use different ID the operations can be paralleled, whereas when they have the same ID the operations will be serialized. Right now, the write ID is fixed to 0 but we can set it to 0xff to get auto generated ID to avoid possible conflicts. This change has no functional changes, but seems reasonable to let the hardware to autogenerate the ID instead of hardcoding in software. Signed-off-by: Enric Balletbo i Serra --- drivers/staging/media/hantro/hantro_g1_h264_dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/hantro/hantro_g1_h264_dec.c b/drivers/staging/media/hantro/hantro_g1_h264_dec.c index 845bef73d218..090088cd98ea 100644 --- a/drivers/staging/media/hantro/hantro_g1_h264_dec.c +++ b/drivers/staging/media/hantro/hantro_g1_h264_dec.c @@ -30,7 +30,7 @@ static void set_params(struct hantro_ctx *ctx) u32 reg; /* Decoder control register 0. */ - reg = G1_REG_DEC_CTRL0_DEC_AXI_WR_ID(0x0); + reg = G1_REG_DEC_CTRL0_DEC_AXI_WR_ID(0xff); if (sps->flags & V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD) reg |= G1_REG_DEC_CTRL0_SEQ_MBAFF_E; if (sps->profile_idc > 66) { -- 2.30.0