Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3978444rdh; Fri, 29 Sep 2023 07:52:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFdn29Z3oC3e2ck9vxi4PEqfg1jOLHhSaP63RcmAsMEyTXHNSsm3vOocRS3FQZE7FIlbUcA X-Received: by 2002:a17:90b:3b88:b0:274:116b:8f84 with SMTP id pc8-20020a17090b3b8800b00274116b8f84mr4483135pjb.34.1695999178212; Fri, 29 Sep 2023 07:52:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695999178; cv=none; d=google.com; s=arc-20160816; b=BH4UU1P0PlYiW/iCrIiogh9CUv6keKmA6ToQ5oibzZRHA0buk0p8Z2/2S0n/ZpHol2 Djbwzcxvb6KeDlXekRpv4gSriDhrq5NjYIVjvQHjMcm30XFR1sLeYVYzoQiFI+kVc1Z1 yAra9GsFhD/Z9sRHyUJZaOzoF88p39+b2Xh+C9Q3d58tLoEoqkgW7gDdqQx7ruWTK+uX BT+S+8rtH68ltOv/e3em39wVJEUWMVf250wbRdeUPo8ajp5IMEJuVYECDgguPpnj3okV JLgAN+njo8k4hADP2eIpcKAa47eXUKV7hrgEyw+uUSmk12B0tR0RFPfrX2mxb7iEzw+U In2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=rp1s3Cc6q3I+T5FJVJHZiDlmNzAU9w/FLuJ7hihiwMM=; fh=E97RPdjiCgR1jL4TE18jifHGbdU9pYfer7PioX5vxiw=; b=SmcAv3DgaY392D371cTbo0eO46CJVdOcA1ufClcldBaUGNJAi/itmBgaXbmgfXgy7m U1cIO7iefGogaz4vG9F28sSAbfII9CBUnZQFQxU1/bu852bZyI5KWfmJEuIyTmAiinNB nFSk3VQVV6C4ua43vq30gEnsTicJFdROxTAjitK6zdHK7QqeKi4pWrP8XWaeDjXWiue7 rx939miuA1SGBWSiH7GoQS7X6HmhbU5TWt85Ti/4q8Ea24sM81x/uTwlTuwuF8EATFu0 JC8JpV5tK5SABkMy3t8FjrZZIofwtd7+yJwynEagYAXGj9C26VDQeYI2/WH2zbvVPEb9 n60A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kev7qdyD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id i11-20020a17090a974b00b002765eee2b6bsi1703726pjw.46.2023.09.29.07.52.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 07:52:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kev7qdyD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id BE9CA84536BC; Fri, 29 Sep 2023 01:44:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232979AbjI2IoP (ORCPT + 99 others); Fri, 29 Sep 2023 04:44:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232978AbjI2Iny (ORCPT ); Fri, 29 Sep 2023 04:43:54 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7809B10D8 for ; Fri, 29 Sep 2023 01:43:49 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-40652e5718cso14591125e9.3 for ; Fri, 29 Sep 2023 01:43:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695977027; x=1696581827; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rp1s3Cc6q3I+T5FJVJHZiDlmNzAU9w/FLuJ7hihiwMM=; b=Kev7qdyDbfV0PuiAmVc4soJBmzZdk/mduOoXAzXHKnjHQQV1kTR6+jLlbC84ZtQdAo aHMxH513OEpTjgExCfa+XZb57lSxBIVEOpQbbdpDRmIIzKfAJemdmZPwamiaE+Lq853M cT2xQs336asEyk8EA+m6Ub82IYVl/F6Bpu/ZGqQo4cW4gP286zK5i4StpgRCI1d6yFY+ N4VTfB3+P58ud8CmlvSDPAcRnmOcuErXtL+4rUn0tSk9RwSyIOCx3uKJGYwdtyGKQywD MJZz7ac8JFwW+O4GBVWJuNycuYt5046Mpvg2W9laFgPnP+CK6QGKfr4AqYsyWL5Tk7cc WNOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695977027; x=1696581827; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rp1s3Cc6q3I+T5FJVJHZiDlmNzAU9w/FLuJ7hihiwMM=; b=LniWfe5BS2UNcym0UzF4FQaL4Pe0krqV9SjKbahpergi3LeezN/5+lkV8YMo/Vtsub 3xfYQH7F6j1TkCj97+ph1LR1msfYs7X4WwMqkz///UdLQTh2SE4RhwO3M4wDNA4AbJL3 14alRn8rwO/gXE2uAIGJChLWtycmuDsp3wbdUdvecIWhlPIqOYbna2Tk/SfKU6MFLsLw fuR8R+Yakjgq2Ut66AfKqrojp8mjTy/eiWuq6p2YAgMkLzWXbCai5CXuKXu27klzeouI Y0Mnj0AdXjO6ihgqnK8CwCaxJcLFqLhYuSfwdVbdHM2gGPySHMe2mjIUVPrtGFI+4k4h rkow== X-Gm-Message-State: AOJu0YxUXfKZzVLFxzIt38qVXY4c1iU7Ma4fYx/V1cXjNQqhOsL+Da5W jEXeWHz5bmXqshHT57bPsz17vw== X-Received: by 2002:a1c:7209:0:b0:403:cab3:b763 with SMTP id n9-20020a1c7209000000b00403cab3b763mr3252182wmc.33.1695977027437; Fri, 29 Sep 2023 01:43:47 -0700 (PDT) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id o11-20020a5d4a8b000000b0031ffb51f6f9sm21113634wrq.30.2023.09.29.01.43.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Sep 2023 01:43:47 -0700 (PDT) Message-ID: <91fa3315-b3da-430d-bc3c-7ec5ccbf419c@linaro.org> Date: Fri, 29 Sep 2023 09:43:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] arm64: dts: qcom: sc7280: Move video-firmware to chrome-common Content-Language: en-US To: Luca Weiss , Stanimir Varbanov , Vikash Garodia , Andy Gross , Bjorn Andersson , Konrad Dybcio , Mauro Carvalho Chehab , cros-qcom-dts-watchers@chromium.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: ~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 References: <20230929-sc7280-venus-pas-v1-0-9c6738cf157a@fairphone.com> <20230929-sc7280-venus-pas-v1-2-9c6738cf157a@fairphone.com> From: Bryan O'Donoghue In-Reply-To: <20230929-sc7280-venus-pas-v1-2-9c6738cf157a@fairphone.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 29 Sep 2023 01:44:37 -0700 (PDT) On 29/09/2023 09:38, Luca Weiss wrote: > If the video-firmware node is present, the venus driver assumes we're on > a non-TZ system. Move the video-firmware node to chrome-common.dtsi so > we can use venus on a TZ board. > > At the same time let's disable the venus node by default as is custom on > such nodes. > > Signed-off-by: Luca Weiss > --- > arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi | 8 ++++++++ > arch/arm64/boot/dts/qcom/sc7280.dtsi | 6 ++---- > 2 files changed, 10 insertions(+), 4 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..cd491e46666d 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi > @@ -104,6 +104,14 @@ &scm { > dma-coherent; > }; > > +&venus { > + 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 66f1eb83cca7..fa53f54d4675 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -3740,6 +3740,8 @@ venus: video-codec@aa00000 { > <&apps_smmu 0x2184 0x20>; > memory-region = <&video_mem>; > > + status = "disabled"; > + > video-decoder { > compatible = "venus-decoder"; > }; > @@ -3748,10 +3750,6 @@ video-encoder { > compatible = "venus-encoder"; > }; > > - video-firmware { > - iommus = <&apps_smmu 0x21a2 0x0>; > - }; > - > venus_opp_table: opp-table { > compatible = "operating-points-v2"; > > Reviewed-by: Bryan O'Donoghue