Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp821328qtx; Mon, 31 Oct 2022 14:55:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7YaelCozcJZUumHZC6CXbWJAyjdL6++KenooATTL2wwfJQ4eo/QQyg/ixwGGveJhCPm4Zh X-Received: by 2002:a17:90a:5a02:b0:212:f91b:b2d0 with SMTP id b2-20020a17090a5a0200b00212f91bb2d0mr34866619pjd.244.1667253341284; Mon, 31 Oct 2022 14:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667253341; cv=none; d=google.com; s=arc-20160816; b=xgw8RAh8sp22G4rdolXlB9PPfXX2SCvEVfeGIzVVDPzqxXWSvjA4Gw1kzZBBgtEcTV DtbpPqWQX0iS1KDCTk3UO5TTGsT312MuEDNtRsd5t2QOGxSYS4048JkSlaHFbR+oGTlU 0Q4vtYDzHAjeFjJzF+oY2tDDW7FD7Yooa5oCa+n6oOpUXdWLfpmyJdYBCT9ZhCg/Wv0Q MM4nxIPDh4rlhuNp85wY73TTrIAs987C+Va/pQleUHv6xH4iY8mb9edBUGfOX515w06C jbdr082bCxpcgPAvPwoy4oM5vF5dcBHN61d8FZCdIBPr8Us5gcm1AFuSBTPYymtzO1HG uFGw== 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; bh=8yELimJDk5Xv7L0IJfmHH8wP4Tv2QOtaQ9FgfO/ka/c=; b=q+53HBwycOGdarM5bzyrEZB0Nj5caO75Z/UrOG4U3G53Ke2eRWx8qwNC0YlFIijQle 92C+ng4vIWPhfiiovv38pRum1CTlhc22yWuV08ABO4mINKPoHRlkj6ZShqXGdhVlKuq7 GEGh0qTuXWoVVGuXmJydsOtuBPeq4odL6Kqj3s878x2AysjH62GvKs0vPu4nP3AFkmEP kB/U436AXcgeLCHBzgBGwtp21PPnqYgwCBkJIS+Usw+P1lhRHN6PvlTLbWQmQP0n23er L1xpwZutz2hqGlV3+9WpY7UA1g0rmfBiFFDhm+9sIHsO+Z6tEGOGaF5cgqObgaqQxeJY 12uQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 34-20020a630b22000000b0044ed36e4c57si11059156pgl.217.2022.10.31.14.55.27; Mon, 31 Oct 2022 14:55:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230281AbiJaVPM (ORCPT + 98 others); Mon, 31 Oct 2022 17:15:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230292AbiJaVPH (ORCPT ); Mon, 31 Oct 2022 17:15:07 -0400 Received: from relay05.th.seeweb.it (relay05.th.seeweb.it [5.144.164.166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6133E262B for ; Mon, 31 Oct 2022 14:15:04 -0700 (PDT) Received: from [192.168.1.101] (95.49.29.156.neoplus.adsl.tpnet.pl [95.49.29.156]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 102083EAF0; Mon, 31 Oct 2022 22:15:02 +0100 (CET) Message-ID: <90a99e4d-bf29-e2c0-d880-0c973be79681@somainline.org> Date: Mon, 31 Oct 2022 22:15:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 10/10] arm64: dts: qcom: sm6350: Add apps_smmu with streamID to SDHCI 1/2 nodes Content-Language: en-US To: Marijn Suijten , phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Martin Botka , Jami Kettunen , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Luca Weiss , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221030073232.22726-1-marijn.suijten@somainline.org> <20221030073232.22726-11-marijn.suijten@somainline.org> From: Konrad Dybcio In-Reply-To: <20221030073232.22726-11-marijn.suijten@somainline.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30.10.2022 08:32, Marijn Suijten wrote: > When enabling the APPS SMMU the mainline driver reconfigures the SMMU > from its bootloader configuration, loosing the stream mapping for (among > which) the SDHCI hardware and breaking its ADMA feature. This feature > can be disabled with: > > sdhci.debug_quirks=0x40 > > But it is of course desired to have this feature enabled and working > through the SMMU. > > Signed-off-by: Marijn Suijten > --- Reviewed-by: Konrad Dybcio Konrad > arch/arm64/boot/dts/qcom/sm6350.dtsi | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi > index b98b881ebe7e..c309a359ded9 100644 > --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi > @@ -485,6 +485,7 @@ sdhc_1: mmc@7c4000 { > interrupts = , > ; > interrupt-names = "hc_irq", "pwr_irq"; > + iommus = <&apps_smmu 0x60 0x0>; > > clocks = <&gcc GCC_SDCC1_AHB_CLK>, > <&gcc GCC_SDCC1_APPS_CLK>, > @@ -1064,6 +1065,7 @@ sdhc_2: mmc@8804000 { > interrupts = , > ; > interrupt-names = "hc_irq", "pwr_irq"; > + iommus = <&apps_smmu 0x560 0x0>; > > clocks = <&gcc GCC_SDCC2_AHB_CLK>, > <&gcc GCC_SDCC2_APPS_CLK>,