Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2172116rdb; Mon, 20 Nov 2023 04:18:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFfwO0adRjDIGlC9/uy36WUsW8Rcj489eHBuRuUv4oLf3UJSFSUb+EfJzZkE4RkhkIgMegn X-Received: by 2002:a17:903:2382:b0:1ce:89a7:4403 with SMTP id v2-20020a170903238200b001ce89a74403mr7283611plh.58.1700482733626; Mon, 20 Nov 2023 04:18:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700482733; cv=none; d=google.com; s=arc-20160816; b=hcsQXw0IhkDkIO15KFgj7P8V3UPcucl5gr75Orem0nR86mxC5g8tKsSF6BPE44PZhD +Oa3S29lgtte/6Zwm2GgX5kATSzvO1aX3+Q8lO9NLKAPPb4P9SVQurbDIJRGqusQbHSc /OO3/4gwq7i9IGAwph7wVZj9dDl0OlQRn/tHj+nMqcE3gZwTsadA7GZ/8k++R5ZEvBst cX9yQnpdTMlbFdfZlHqSZV+9L82j3S8Bb0idBCyMHF7EVDK+VT5d1Eucmr1i2XnLGxYv IJVFczWPoGpHnmBturzpqKJMHKmTa1r3vxcQz1fVq2QmbkLJonqDsnwkeg2nwci5ANUt hIkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=y4obJbFuX32a51CPgRwasEGqIWFeGs2SFetYjrfd9IY=; fh=mlIZHPbN87mtISF6MqYNWpjXSb9fByWKfC3t5kuxP6o=; b=GyaKfAy0vFnM7gayNQtpjGztVP2VYUUk96e/qEGo2sxt4WLomNf7BHx1PYdoDnyVBl cxlEakdxFg0/Vgxem3iYzEo0+Kd5YpyFajEVWmjyDNd8wPbftvvEolNp87d2uX4663NO T1WA3os+pKgGTF94M8HanqHEWYHgcvd7sul2ZNKaj1r3pRx752EEJ0oquBTw3ADCC3XJ yy/iYROIVzZ+L9icyN8cyjteHEHeyynVE9VPno5KzbmwSgGNehMmgeq4ftzG0N5S+M+3 5NwMhG/DF/QI2BZRgNZzlo+v3BDS8mGxU1kFJkYwPq67BI/idaNprNMTYwMZZTH68IiC 7IYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="BR/P1bMi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o3-20020a1709026b0300b001c746bca05dsi7463359plk.69.2023.11.20.04.18.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 04:18:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="BR/P1bMi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 9B5B880A0577; Mon, 20 Nov 2023 04:13:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233427AbjKTMNR (ORCPT + 99 others); Mon, 20 Nov 2023 07:13:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233413AbjKTMNN (ORCPT ); Mon, 20 Nov 2023 07:13:13 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16B07E9 for ; Mon, 20 Nov 2023 04:13:10 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-53f9af41444so6183090a12.1 for ; Mon, 20 Nov 2023 04:13:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700482388; x=1701087188; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=y4obJbFuX32a51CPgRwasEGqIWFeGs2SFetYjrfd9IY=; b=BR/P1bMiVUDoKw1BoecSGM4mIDLORYLlo7RbXSocFuXCQ1vmatjqkTtF6tc2iReXpT r5nkkdBIF3RwqdtcP1BGb4TlVMTgbdZT7mW/ttw47RtlAXI8lREjm7SYfWPPFCJPLbY0 Hr5oiNlsR0aUcsWjfVE/ZjtOCHXkjef3gTGHf7wRF34m+pBtC+g2SVtAreugOqaoMIJq nRExJfiPRZUp5I3GjbyxlWV5MXaTPTklBRuRUCTFxKqGFkjStPTqgj2Kluq0pW80hK0b XHGCpzLqmv9OiIESmafW96cu8K3LWoLmDX7a48l9a1m00MEhNUAaoAwZ+gRcF8sls/x4 xalg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700482388; x=1701087188; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y4obJbFuX32a51CPgRwasEGqIWFeGs2SFetYjrfd9IY=; b=rURX4dcCb/KqTzoEDmX3Dam6jmMJRCiemsdT5NTJRsdetysRB3xoMDb1zzNQus7ymP Hspdsa5OgIE4FuLTGNzxhFkeXxfWf0zy//e4QOqKmYmsWzhEH+N47aAle2F6lqLozNQd i62ogvoZ/UaI9NRw6E8cSOAv+RYSShTkeKtL6KXf92E01gpMDZ0TsPXDrMZInnM6cv3C JoJKXSVUxvwL5VWZYVbdOqI+VELhIdIctYzZOklMZkBr1R7NMjoWSjyzLm2AdVSUEA0g 9BXwmGAM1AyZIK2Z/KAM4kNQA/ol4aNwAP/+0vUYUqSUBD6hIBWo70OwUW1Jf0vQlBTd UG2Q== X-Gm-Message-State: AOJu0Yyxjx0+8ECoUu4y8pn7JrvAiGrfWciBs7ZgGgEkAf6UrsBnyCYl 6v5SvRZ3Tznp9LwqvCMsqPqySQ== X-Received: by 2002:a50:d7d4:0:b0:53f:2128:ff4f with SMTP id m20-20020a50d7d4000000b0053f2128ff4fmr4619581edj.17.1700482388356; Mon, 20 Nov 2023 04:13:08 -0800 (PST) Received: from [10.167.154.1] (178235187204.dynamic-4-waw-k-2-3-0.vectranet.pl. [178.235.187.204]) by smtp.gmail.com with ESMTPSA id i22-20020aa7c716000000b00548ac80f90csm1324584edq.40.2023.11.20.04.13.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 04:13:08 -0800 (PST) From: Konrad Dybcio Date: Mon, 20 Nov 2023 13:12:52 +0100 Subject: [PATCH v2 1/4] arm64: dts: qcom: sc7280: Add ZAP shader support MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230926-topic-a643-v2-1-06fa3d899c0a@linaro.org> References: <20230926-topic-a643-v2-0-06fa3d899c0a@linaro.org> In-Reply-To: <20230926-topic-a643-v2-0-06fa3d899c0a@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , cros-qcom-dts-watchers@chromium.org, Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephen Boyd , Akhil P Oommen Cc: Marijn Suijten , Luca Weiss , Rob Clark , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700482383; l=1670; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=FO3D/4Lb+LmHq1IGkCnu/dhJPyd8/ht4WBGb18ODAj4=; b=GDIoeoFFvlB60e66DCtoCtdYcFDJbtJgGMbZGN5KrIZ1iWjzao4lxLmmp21pEUKM97CcEFTle lF26xtdb/VUC4IGtZsC0gvQrUiKc+np3MWMmV6N9bzHMdNmiX96otsu X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 20 Nov 2023 04:13:30 -0800 (PST) Non-Chrome SC7280-family platforms ship a ZAP shader with the Adreno GPU. Describe that and make sure it doesn't interfere with Chrome devices. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi | 2 ++ arch/arm64/boot/dts/qcom/sc7280.dtsi | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi b/arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi index 5d462ae14ba1..88fc67c3646e 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi @@ -17,6 +17,8 @@ * required by the setup for Chrome boards. */ +/delete-node/ &gpu_zap_mem; +/delete-node/ &gpu_zap_shader; /delete-node/ &hyp_mem; /delete-node/ &xbl_mem; /delete-node/ &reserved_xbl_uefi_log; diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 04bf85b0399a..58563f8fdc16 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -152,6 +152,11 @@ ipa_fw_mem: memory@8b700000 { no-map; }; + gpu_zap_mem: zap@8b71a000 { + reg = <0 0x8b71a000 0 0x2000>; + no-map; + }; + rmtfs_mem: memory@9c900000 { compatible = "qcom,rmtfs-mem"; reg = <0x0 0x9c900000 0x0 0x280000>; @@ -2613,6 +2618,10 @@ gpu: gpu@3d00000 { nvmem-cells = <&gpu_speed_bin>; nvmem-cell-names = "speed_bin"; + gpu_zap_shader: zap-shader { + memory-region = <&gpu_zap_mem>; + }; + gpu_opp_table: opp-table { compatible = "operating-points-v2"; -- 2.42.1