From patchwork Sat Sep 7 18:48:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13795270 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3DFD0EB64CA for ; Sat, 7 Sep 2024 18:51:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+MQl+w+EtPc0//xS+aXieS9CbUw0+8xjxLVKoHk7Lo0=; b=Rw0ED01GQkLf/igVT05fAaTiJS zYV555gVnElybKtqAhTGig43jMYSywd3LEB+1v2CLhX5wMSmUoT5SJizkPP/e/OsO40fk2uMF0M5y /Y6qzfWoDriBQpg9E7X3F1gedy892sBIDxieH4Wj/3o1/7iF4AWNen3d6F6ozN2VYQQV0nqjqi/FV epaqlp7oHA3Ojs9rXmPNlDV4r1yTPRKm6lNOQy4LqJwSdcRZaGeiqgubCKW/SvfWVrAzR2YRJiF6K HDIHw3Ws/AGY+ls8BNxX8/+4zbFEoTHJ5/et4PIiZz4egQBZeYDix3IV6pIGGlxui4oY47jZfogAb VFyaaDaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0Wr-0000000FUJz-1QAm; Sat, 07 Sep 2024 18:51:25 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sn0Tv-0000000FTaD-3V3n for linux-arm-kernel@lists.infradead.org; Sat, 07 Sep 2024 18:48:25 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2f75aaaade6so6706281fa.1 for ; Sat, 07 Sep 2024 11:48:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725734902; x=1726339702; darn=lists.infradead.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=+MQl+w+EtPc0//xS+aXieS9CbUw0+8xjxLVKoHk7Lo0=; b=m3xc6wJnTDM50STXW7X4yUjq9gqSAW0EtKeLhwPlVqMWWCRZjbIkeim7kVZhXvaShx BIam+rfFeSS7a1UBV/xNKo4BScwPN9idXIZcI5Q44ewJuRncMZn9H1fs1I3tqQ3miPGP 1VM/i9Zi/8+T7m/CUXh+wzlmGVsXy1v+HdoLTHQY0rePhc66X3YVl2lUwfN6msqGE1jA Nh1JoeXvDlQdkjv/4GcmF+m1NzpAT8+vnrIIFARbmebUFzMJVy9iAMip4WFeFQnXmfwH aPYuUu5WmKiLLEA9b8t+IQOLGmCqNHwND7LBIm+2wIl+lXxnHLDuX0Ycx+5dpXeWGmCn bKpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725734902; x=1726339702; 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=+MQl+w+EtPc0//xS+aXieS9CbUw0+8xjxLVKoHk7Lo0=; b=GGuBewFxU/kI4tXbToTtZUQr9WHLkaZO4gHO9cUV92CztM26vGV805m8ByhvcieKEs FppeeUk5IzPt/uk4KQThaNDI9i0f8bv6o528g7RHQXnxCcQbkHL1T02zCJThn1vDW0pS rFmYChlKAebJZdWGQGC6k9F1uRAH7VI+mJKF3OnvlPqbwejd4LdqiG3c3z3nFwjFLqjK hHBjVOtGFYXVTXwQaOpljofYmQK9M/pLU3jCU82/9/mbGNGEAIfWDwW80UfRk7Q8+z0+ PG0ltybaXN6YkMvk8Abex2BzKh8wDR5SvpYakQTLY9l9k9qOWUSlvNBUzqdkzrH6rUTd AFSg== X-Forwarded-Encrypted: i=1; AJvYcCXiGrTu3Yn6lc+kyw3SyjXLN3VydaWNdp5dN0OP13AuWeLJqRjb8l4OkdeNnP0NnFri7zamRVcKEeYaKhvhYYVB@lists.infradead.org X-Gm-Message-State: AOJu0YwPn54ux81lVX/2P5Z09X6outB6p77XAOmJO0NrG3RyCCk1qi4h tOQ44Ib+9Wr6U9jIUZg8mOySdaiA89EhBiAxNdKhrZgqfMVbi+9DMt13ntpcekY= X-Google-Smtp-Source: AGHT+IFt/F9gdcOgwpNi7fafKgTp/rZCPURIU7Ulv5ZyfJmoQN15S9LX022Fh+nYO3YABMxPYuOVhw== X-Received: by 2002:a2e:d02:0:b0:2f6:5d4e:bead with SMTP id 38308e7fff4ca-2f751f2b131mr30255761fa.21.1725734901592; Sat, 07 Sep 2024 11:48:21 -0700 (PDT) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f75c0b1af3sm2271861fa.129.2024.09.07.11.48.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2024 11:48:20 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 07 Sep 2024 21:48:14 +0300 Subject: [PATCH 3/7] arm64: dts: qcom: sda660-ifc6560: enable GPU MIME-Version: 1.0 Message-Id: <20240907-sdm660-wifi-v1-3-e316055142f8@linaro.org> References: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> In-Reply-To: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> To: Rob Clark , Will Deacon , Robin Murphy , Joerg Roedel , AngeloGioacchino Del Regno , Konrad Dybcio , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: iommu@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1341; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=czZ7T+mf6XqWzU6Vf6WURi7MEzoc/X2h0XJq3zPX//0=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBm3J/x7F2PoifzzkkFHxz2+pRkYLt9ML0xZEW+o 3DWhVRfPlCJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZtyf8QAKCRCLPIo+Aiko 1bLJCACJMd8jResuMsuhYfRhbO4DeTthTfGRK4rkPdDurx7rNtoeMvbbUL5rG3y2eVui87VLDfN EUAEwA6xXp4405PqYaI4rFWM0vWw5e4NEETlX0rgWjkglYhwNw5kN7xAA9SNakt27ds/M6MuN3L tJUM4EdZkcZfx4LF9qOlqX+JYa8SL+KidSHFtDbqK/3XYBqaIDYNWQUPwiUkbTbdqwgCGJrO+/J 3zWN7oDuWEH6MUsiyP9+fryFrqlDqZhw4/Ru3fQAias+d6YtPv/AT9ZEuLLrBKzyb1XV0t9g0mV dx6JraJkMAwruTpCoJiLcV8qTA2QHCIeT1IO2T8HP7OBYSqA X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240907_114823_918588_E1BD3BCE X-CRM114-Status: GOOD ( 10.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable Adreno GPU on the Inforce IFC6560 SBC. It requires the Zap shader binary that was provided by the vendor. Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts | 8 ++++++++ arch/arm64/boot/dts/qcom/sdm630.dtsi | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts b/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts index 60412281ab27..ac0197624c09 100644 --- a/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts +++ b/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts @@ -110,6 +110,14 @@ vreg_l10a_1p8: vreg-l10a-regulator { }; }; +&adreno_gpu { + status = "okay"; +}; + +&adreno_gpu_zap { + firmware-name = "qcom/sda660/a512_zap.mbn"; +}; + &adsp_pil { firmware-name = "qcom/sda660/adsp.mbn"; }; diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi index 40ad99d75738..92695375a63b 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -1150,6 +1150,10 @@ opp-160000000 { opp-supported-hw = <0xff>; }; }; + + adreno_gpu_zap: zap-shader { + memory-region = <&zap_shader_region>; + }; }; kgsl_smmu: iommu@5040000 {