From patchwork Sun May 7 19:07:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 679778 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC9E7C7EE2A for ; Sun, 7 May 2023 19:07:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229533AbjEGTHp (ORCPT ); Sun, 7 May 2023 15:07:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229781AbjEGTHo (ORCPT ); Sun, 7 May 2023 15:07:44 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE0083595 for ; Sun, 7 May 2023 12:07:39 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4f139de8cefso24260955e87.0 for ; Sun, 07 May 2023 12:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683486458; x=1686078458; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Vi+qNNaZPyxsefGB1oajp1oVBPaOfr1xKPuapQZUe7c=; b=TJ2OW2h9+vAdfIimLLcFyqQpLgWeG13d7qrrf6/L4c9rdK2z/x9YfLYFal1s3weaPq Qas9IUxu4knuqOr+Qc8iqe7KXNJ3/Ui8jDwznA7k2fRx7LK7ycX3Ge/uor9R/QHsOTsj 2tU+/KBSNHO0jehJGuAOFL5YKnqHNgTKtAxGHZreISsnHRozBPIBCYZ8Co+Xg8zlho69 KX7JMZlYmp3+go6LLLSm/AANkOlRsok01w7Dm/NLi2WY0grLrEdqrwE77v97f3sLM15/ hAj1RheSj8S5M8u+V1W7sjS4HS4KR8RBLpcCn1bZGsp9Amuw2+9V5pjodKvQ7ehDXshs nlCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683486458; x=1686078458; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Vi+qNNaZPyxsefGB1oajp1oVBPaOfr1xKPuapQZUe7c=; b=AvLrYxMjloQNLC9Qdye9uW+ui58BSAHBuPmwJpfSe0nGpdkoUcUkjdXHQVY1pcZLM4 U+d8LSV1Xgn4U/pDCfbP0UabPBKGzsQ2zlj1bIFailO4I5bZn486YYspR7vLITN1AAiO H0XvkaHh5ioJtkB2g1aTB0B5UMRWUdwvoQbACiOLASKB9ICVgNZhO6CBk8RkDxX7XWxq GxRHasCyGEv3ZLn3fsNlTRi36/U/dwvpIrXO3KGJJ9tSypJ/fFwrKguwWu2UMTqSge+Z bsm9uzqil/bBUpITjJGxHR4k73fCT3WVxqUBPtslklDFSnbaCUDxX0q3+IatTVwdurYL MulQ== X-Gm-Message-State: AC+VfDxOm4uPIhdh7lbjkVI22eteI5eMbh9nP26VBH7wYFSXEn23SCEm TJW3+Mbv4jyLXwKCLW5SbXCaPw== X-Google-Smtp-Source: ACHHUZ54X56ZL4KurSonVDETk5lAq4ryk4zzE4ihXGauROlICUtkYX8683vKfjtxl1NB3mlT5ufddg== X-Received: by 2002:a19:5507:0:b0:4d8:5de4:e3b4 with SMTP id n7-20020a195507000000b004d85de4e3b4mr2069054lfe.1.1683486457955; Sun, 07 May 2023 12:07:37 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id f8-20020a19ae08000000b004f14ecc03f1sm755841lfc.100.2023.05.07.12.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 12:07:37 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Clark , Sean Paul , Abhinav Kumar , Rob Herring , Krzysztof Kozlowski Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 1/4] ARM: dts: qcom: msm8974: add ocmem clock to GPU Date: Sun, 7 May 2023 22:07:32 +0300 Message-Id: <20230507190735.2333145-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230507190735.2333145-1-dmitry.baryshkov@linaro.org> References: <20230507190735.2333145-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org To get GPU working with the OCMEM, the oxili_ocmemgx_clk clock should be enabled. Pass it to the GPU to get it to work on apq8074/msm8974 boards. Fixes: fe079442db63 ("ARM: dts: qcom: msm8974: add gpu support") Signed-off-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom-msm8974.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 834ad95515b1..fb661c1bd3d5 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -2104,8 +2104,9 @@ gpu: adreno@fdb00000 { clocks = <&mmcc OXILI_GFX3D_CLK>, <&mmcc OXILICX_AHB_CLK>, + <&mmcc OXILI_OCMEMGX_CLK>, <&mmcc OXILICX_AXI_CLK>; - clock-names = "core", "iface", "mem_iface"; + clock-names = "core", "iface", "mem", "mem_iface"; sram = <&gmu_sram>; power-domains = <&mmcc OXILICX_GDSC>; From patchwork Sun May 7 19:07:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 679777 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF58CC77B75 for ; Sun, 7 May 2023 19:07:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229781AbjEGTHr (ORCPT ); Sun, 7 May 2023 15:07:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231368AbjEGTHq (ORCPT ); Sun, 7 May 2023 15:07:46 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D7803588 for ; Sun, 7 May 2023 12:07:40 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2ac831bb762so35569371fa.3 for ; Sun, 07 May 2023 12:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683486458; x=1686078458; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7f2qMuaQsA4zz+ElXNpZm961GY4Y2a7Auy+y4P4Ssds=; b=WntRM6+Jusb/Evmn5zkoZJH9smaCe14lvWdAQ147xzmYVzNhXXVr3gScQIS6C9+peF 5v9YsI+nOpMOuWZ62z9X0TiMEYskYtNga+bYZZZzpw7GjdVkF1hjEa39dsQ+DzjwcPQj uw02plmp4Egh+vni7YET2nSrPwWvr7UuEgiKZt1i1kLOSkJbNYjJ7b81eMkc4L2S9Ho1 Xg2nyaFMCGWQYhwmcrxNJ4IH+Yd0FnwRhB9pmmuBtLxpXhBgEsGM9NYxPpyMHq4YN4Vh zDGiOI4yeQVsG/46mkf52yL5owdZg83vv71zHynLTC9orm/Z4Kv195Ty6Y70TYNjLlk5 FBvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683486458; x=1686078458; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7f2qMuaQsA4zz+ElXNpZm961GY4Y2a7Auy+y4P4Ssds=; b=C83Gwwapeckna+v/hl5jh4jy2+FNJ5Qn9OEcEhHGKFakgWrWJUH15PAw8+b07er+vT vrcEvCbH2Im832WMybOaw/2NK3QRKgPi4YVcQ+29QXul7/DI+wmu9/nhgF7W5Ll1zucE i+tzNvwa2ha00x9nAfUB07KQ282K15AVulvLY+XhDWj7onmBtnkZpDgPkoG19vnqVlFB xb+rTwbfI0993fhPbnVROcgIJlody+2s7WCrkYiV2nw1DmfOEaxIk+uImLXNAJsFo9WX k+VdCFDYw56CpWnJgZnrqYy2xjNBUdaDc9XtaZtzoEzgyLkKVdyS8qRopfYmfixLBoyW /Ghw== X-Gm-Message-State: AC+VfDzi5aToPOxg8P/exqfNle2meJu22gW+xPTIKihMsFmArPg1saAK qw7fMRa8PUKru8peEUCsQ2oO0w== X-Google-Smtp-Source: ACHHUZ6weIEbg8nFqO2GvrIbuf/UKWjpC0B3GIkmIEVbX1cI2k12pekwT0owkZDWPuQCp8Z7EUOvbw== X-Received: by 2002:a05:6512:21a6:b0:4ed:d2be:37e5 with SMTP id c6-20020a05651221a600b004edd2be37e5mr2015448lft.7.1683486458765; Sun, 07 May 2023 12:07:38 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id f8-20020a19ae08000000b004f14ecc03f1sm755841lfc.100.2023.05.07.12.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 12:07:38 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Clark , Sean Paul , Abhinav Kumar , Rob Herring , Krzysztof Kozlowski Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 2/4] ARM: dts: qcom: apq8074-dragonboard: Set DMA as remotely controlled Date: Sun, 7 May 2023 22:07:33 +0300 Message-Id: <20230507190735.2333145-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230507190735.2333145-1-dmitry.baryshkov@linaro.org> References: <20230507190735.2333145-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the qcom,controlled-remotely property for the blsp2_bam controller node. This board requires this, otherwise the board stalls during the boot for some reason (most probably because TZ mishandles the protection error and keeps on looping somewhere inside). Fixes: 62bc81792223 dts: msm8974: Add blsp2_bam dma node Signed-off-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom-apq8074-dragonboard.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts index 1345df7cbd00..6b047c679370 100644 --- a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts +++ b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts @@ -23,6 +23,10 @@ &blsp1_uart2 { status = "okay"; }; +&blsp2_dma { + qcom,controlled-remotely; +}; + &blsp2_i2c5 { status = "okay"; clock-frequency = <200000>;