Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp460967rdb; Sat, 27 Jan 2024 14:31:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGSuCKi7Jn9NwXzK7E4oESlQLDSDqiOYmxCVWVfHZ6ZN1aLwZEh2KF+TzNVefIavpkZfhQl X-Received: by 2002:a05:620a:5626:b0:783:32f4:1f1a with SMTP id vv6-20020a05620a562600b0078332f41f1amr2619700qkn.136.1706394664649; Sat, 27 Jan 2024 14:31:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706394664; cv=pass; d=google.com; s=arc-20160816; b=FFRWqOtTrOEhAlWiJyF1oOZ1PAmb8YiKoDomLmKPRxD6GBeOrYCOje3pyJTCefjUV3 I/cJorY8iwwa32FmydCheYdKHDJWC9tkYy7Z7etONslaTeKyKcpr60aPKR6ZTQo6TTtB WjdGb8yr5Dg98Z+p55Vfv8o04PgEpSr8n1BYs9UTYVUFP15BB+KoNF56H3zQ3xCYRPsu 3buoMJ7otsROX9uGfZSn1hk5JynoSXDxekQHins3qD+jTOwOxQyvQAT6TCbtT/waBkOU NlTp1jsjmETuHVb/Ozb2gjfob4AuCHpaquEPOuk3fV8QaM9r2YYtHWeAtZWknV3ABOTx IpvA== ARC-Message-Signature: i=2; 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=4JPBsjCL06kOGhN7z1Fx2j7ZKnZwrWFA9lhBnJ5cDK4=; fh=DPySNQD6q7KzomxOBVeTkwe9xe3UGFHRQbz1nPs4UhU=; b=KawA/QpZJouh4Gu8D5uKGAU0/8l3YjfopOyJm4xqxWfD8QezQX6rmcSTHril3ydLzI OZHW9P9ogXFCn7W9YMvKCiaZ9dUtrMIvy10qBXsVDYu8X4pmCpt6zkQeGAcXyrv30HPd HmqLODKsuX2kizZxSTwENsTvkc4loK1jdGUnPKYdAXCwjDXOECFSC+1Kyks7nDZbmJ7r blKK7ikCiMcSx3ChtbkO4JFeq/1Kw4hlzkegRFMOPyrRN/qwSMLS6XOc9fkflFMjjxJN sdo7OOQPcUjW4WHz3mfHb8i+KRl3mP3MVTfKfILG9t5WnyoPTktOxjtGXkGsBIwx6FnS g/jw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="f/q8Np7f"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41422-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 g3-20020a05620a218300b00783e24807d1si2385604qka.280.2024.01.27.14.31.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 14:31:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41422-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="f/q8Np7f"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41422-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 08FCF1C22B72 for ; Sat, 27 Jan 2024 22:30:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC45D1F5E7; Sat, 27 Jan 2024 22:29:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="f/q8Np7f" 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 D28871E86B; Sat, 27 Jan 2024 22:29:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706394592; cv=none; b=NaboI4jESvHhSIRGX96R34KE7Ako2jYQdc8NK3jZQbQlCgnKiWjdolfydG9Sjjjb1wBFLFrCI1PdZnNOh9HUhVOb6DgJpuvV+FUD/bbvMpzNj6sgVej1GR8W3uZMiPll4uO9MVzJ2PJ1H1UlyTI5r0fA1J+G205j8HnSX7TUr9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706394592; c=relaxed/simple; bh=iDQONVVSXY8ByWGgcnbg8EXM8f5kTgTJCLvawcFZRb8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uECBEcoVeiPIY1bJAg30L+8+PlMO+orcFwcplqDGXn9rQIN+CuBV9Fw6slfKoHWZXR0vW2JCz1BvTMHQ1rc/QL2tuxewOAoyAHW2OOOWotupHbymuoim1xgW4B6k/wjSdLaZrD3bSbtf0JY2b/WlQlacq7CSBbF3CkM2DbK/4fU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f/q8Np7f; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42E2EC433F1; Sat, 27 Jan 2024 22:29:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706394591; bh=iDQONVVSXY8ByWGgcnbg8EXM8f5kTgTJCLvawcFZRb8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f/q8Np7ft1P3qO701VRObNR8yiMxVnlqiRdWhxvLOe3vmLkdqxCoefwtKW4bm4S07 6Xz4wdajP7Dpb1A9ZFY3/iaWOi5rBrIxjuZSLOdy6kJTG8/EyE/p1Ue65NemRIvJoS Y7VPyy2FMFQsiv1fee3uJxdVGSGvNV2BcYn5eJYEvyMNHm80TOy5h9j4deHnLWku6E a97nhwDgXCq2uk6/fqk6IyPElK0LGJ3uKLiwOsIK+kgBjNut7YVSyWjz3H7f9GS3Nm z7YEaiP+q10CiRwtUozEoisu04hmc7vCjvVXiK4Nxf37seUbtQyz00kwTwpzqovjYd 2RhbiDz4Gp/aw== Date: Sat, 27 Jan 2024 16:29:48 -0600 From: Bjorn Andersson To: Luca Weiss Cc: Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Andy Gross , Konrad Dybcio , Mauro Carvalho Chehab , 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 2/3] arm64: dts: qcom: sc7280: Move video-firmware to chrome-common Message-ID: References: <20231201-sc7280-venus-pas-v3-0-bc132dc5fc30@fairphone.com> <20231201-sc7280-venus-pas-v3-2-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-2-bc132dc5fc30@fairphone.com> On Fri, Dec 01, 2023 at 10:33:19AM +0100, Luca Weiss wrote: > If the video-firmware node is present, the venus driver assumes we're on > a system that doesn't use TZ for starting venus, like on ChromeOS > devices. > > Move the video-firmware node to chrome-common.dtsi so we can use venus > on a non-ChromeOS devices. We also need to move the secure SID 0x2184 > for iommu since (on some boards) we cannot touch that. > > At the same time also disable the venus node by default in the dtsi, > like it's done on other SoCs. > > Reviewed-by: Bryan O'Donoghue > Signed-off-by: Luca Weiss > --- > arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi | 11 +++++++++++ > arch/arm64/boot/dts/qcom/sc7280.dtsi | 9 +++------ > 2 files changed, 14 insertions(+), 6 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi b/arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi > index 5d462ae14ba1..459ff877df54 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi > @@ -104,6 +104,17 @@ &scm { > dma-coherent; > }; > > +&venus { > + iommus = <&apps_smmu 0x2180 0x20>, > + <&apps_smmu 0x2184 0x20>; > + > + status = "okay"; > + > + video-firmware { > + iommus = <&apps_smmu 0x21a2 0x0>; > + }; > +}; > + > &watchdog { > status = "okay"; > }; > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi > index 326897af117a..0ff9a2484096 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -3836,10 +3836,11 @@ venus: video-codec@aa00000 { > <&mmss_noc MASTER_VIDEO_P0 0 &mc_virt SLAVE_EBI1 0>; > interconnect-names = "cpu-cfg", "video-mem"; > > - iommus = <&apps_smmu 0x2180 0x20>, > - <&apps_smmu 0x2184 0x20>; > + iommus = <&apps_smmu 0x2180 0x20>; qcom,sc7280-venus expects 2 items here. Please follow up with a patch to the binding, if you haven't send one already. Thanks, Bjorn > memory-region = <&video_mem>; > > + status = "disabled"; > + > video-decoder { > compatible = "venus-decoder"; > }; > @@ -3848,10 +3849,6 @@ video-encoder { > compatible = "venus-encoder"; > }; > > - video-firmware { > - iommus = <&apps_smmu 0x21a2 0x0>; > - }; > - > venus_opp_table: opp-table { > compatible = "operating-points-v2"; > > > -- > 2.43.0 >