Received: by 2002:a05:7412:8d08:b0:f9:2d0a:d759 with SMTP id bj8csp243543rdb; Sun, 17 Dec 2023 09:46:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHx5+t1tnrZaySk4/wgvaQPAN52k8wFETeW8Df38arzYuXHE/QTBu3WppKh4XeCzDtXnKsK X-Received: by 2002:a0c:c582:0:b0:67a:a721:9eab with SMTP id a2-20020a0cc582000000b0067aa7219eabmr13495602qvj.92.1702835194419; Sun, 17 Dec 2023 09:46:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702835194; cv=none; d=google.com; s=arc-20160816; b=srJHchPisD6DOcfkGmGzsyjiu9nsBtzop8cCX4oqcne8QzkOE2o7BQ7Ez20EJoXV67 GcXd3QBE5AWdysB06mwEoDCj+Psl1OK8zxCNG6tB9Rxz9izh3xgTZlS/d9KQYmi/HgxG aEqUYKkZBKMQP7eA7wxNu01Lcam8JjJdejXIXyN/N+mDOHLvynlRzao8QyNTG7VBhbHw 1d+ot2ijLXiiW+1sDJ2lAlX2XF/NVDQiiVqjBiSBvJTOYUqm1tdd8z+ZaXGuh/SgyRaB 9ktzE+nNAqKnSf+4G8ZLX62zj7Za7i2PoLw/ATAYwOjZdMtczlcdJOALIdI7BH8GKD8P jaJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mhccTwoXD87Qax5n/Zljcy9bWremxzMRZNPtHgvuFIc=; fh=U9IiJogmwPdnuumFjB9CyLV+g/Avva3ln3jMGL4oxe4=; b=LuyDkscij1SHZdPW/cPX4AgRMOFGh8XfLbI3g+BpEQWckmaIZ6CLse+QySsjZSx9yB yaefLiOyIQWbKOgZOFai4GqYNLxt7dP0N0YiXUCn/LJqxX+k15n3TbCerqX2VVk/aXMc iVl4PJ8VcrpzORlTXRbw5gh7tzMHepfeweV4Tvw/JJHajJtq0gJUG6kBOUeHt8+9KL1p Miagwv5TET6V6HUO75qj5ue20Eu606KathWrsgDcg99egVVLaPqM8NmDXI27JqRIwXW7 f78IcyshX5O0rZbAwVTJP7R5pexzbwcMvXAyEjIQHuypkEkKTABblFcbh3/Okct2JvIg jEEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="r/3XyNUe"; spf=pass (google.com: domain of linux-kernel+bounces-2756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y18-20020a0cd992000000b0067f2a4ccda4si3350653qvj.615.2023.12.17.09.46.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 09:46:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="r/3XyNUe"; spf=pass (google.com: domain of linux-kernel+bounces-2756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2F9D01C20905 for ; Sun, 17 Dec 2023 17:46:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 770C346B93; Sun, 17 Dec 2023 17:46:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="r/3XyNUe" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98A1B1DFE9; Sun, 17 Dec 2023 17:46:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E22E9C433C7; Sun, 17 Dec 2023 17:46:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702835181; bh=S/2wAk1uCnOrAZbHHoeWhyhqfRpMSGqjU1MgyCkHfn0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=r/3XyNUemtrxcr04kVm14K9CEPkkW/5XjD5/StgY3JCuljo8SyOcBsS8iWdd4O45G JeF59Dyw1wGTefssDgrkIYcSz36xWIXYTPvXAhFdYUHmCBd7K2cVDofv4JaFZba9g8 EZO/lItWezlk1xHdvHBeTG2DjATeEdXGGkx23pHFhXkdAESgdzVO/QDXZp/oNuf7/M ePLwkqrW6fgWdlLl3Hh8/kIV03rQtkoJFOLS1mlQipqBV2PGLblE5AQfPWx8bauqdy RFoPRlbnO82XT8ET61ZBhKQ5G0kP2BVpoHKGJFNtXL41ZMLc6Exll6iZE/RD1QDnC2 6/jdP0nwH/wjg== Date: Sun, 17 Dec 2023 11:46:17 -0600 From: Bjorn Andersson To: Luca Weiss , Mauro Carvalho Chehab Cc: Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Andy Gross , Konrad Dybcio , cros-qcom-dts-watchers@chromium.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v3 1/3] media: venus: core: Set up secure memory ranges for SC7280 Message-ID: References: <20231201-sc7280-venus-pas-v3-0-bc132dc5fc30@fairphone.com> <20231201-sc7280-venus-pas-v3-1-bc132dc5fc30@fairphone.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231201-sc7280-venus-pas-v3-1-bc132dc5fc30@fairphone.com> On Fri, Dec 01, 2023 at 10:33:18AM +0100, Luca Weiss wrote: > Not all SC7280 devices ship with ChromeOS firmware. Other devices need > PAS for image authentication. That requires the predefined virtual > address ranges to be passed via scm calls. Define them to enable Venus > on non-CrOS SC7280 devices. > > Reviewed-by: Konrad Dybcio > Reviewed-by: Bryan O'Donoghue > Reviewed-by: Vikash Garodia > Signed-off-by: Luca Weiss Mauro, this series looks ready to be picked up. Can you please merge this driver patch, so I can pick the two dts changes? Thanks, Bjorn > --- > drivers/media/platform/qcom/venus/core.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c > index 9cffe975581b..a712dd4f02a5 100644 > --- a/drivers/media/platform/qcom/venus/core.c > +++ b/drivers/media/platform/qcom/venus/core.c > @@ -881,6 +881,10 @@ static const struct venus_resources sc7280_res = { > .vmem_size = 0, > .vmem_addr = 0, > .dma_mask = 0xe0000000 - 1, > + .cp_start = 0, > + .cp_size = 0x25800000, > + .cp_nonpixel_start = 0x1000000, > + .cp_nonpixel_size = 0x24800000, > .fwname = "qcom/vpu-2.0/venus.mbn", > }; > > > -- > 2.43.0 >