Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp379049rdb; Tue, 31 Oct 2023 09:56:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEiKGCoaqhEQA1HtlAgYYf92BSQuYMlXUepQjXS1DdScurb52PcJQLbrkTQfhvmdv9T0fW/ X-Received: by 2002:a05:6300:8002:b0:181:219f:4a66 with SMTP id an2-20020a056300800200b00181219f4a66mr1214512pzc.34.1698771374649; Tue, 31 Oct 2023 09:56:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698771374; cv=none; d=google.com; s=arc-20160816; b=EEy99c8kxL0H9geolgrtSdyTYX6jXLKy+6Ew2sbYGBdK36eylHPoUeVkjtkpmGPI0j mSHmWOplSyM/R7kMZBuQbZtZN+nRENbxMg9oXuVRgpvWJfCWF6F5Tke7fOVqf8A2H+ou j06vJ6jWiLVz/Sj0M+OGmhi7HZT2jDDUL0LSK2ewEuJnjuLeBJ6jOaAHLlVi3Uj2L4pd EH7o4jMKIK9H+HyVAcaBhfg8IwtBfYSRUoESCdUQvjW6EGkE9rffDzX0oL/WVQ8oMgPD VYBnCSIODV/Rfc7UXjt/sJHAIsytsJj7zfmMu1Afd3KsdQusJSm4oduAHpVfZLx4zWSt OeVQ== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=d73v9cfketw/ArDcT80Q+U6ac8cwJQ83f2L/6k+AOxU=; fh=UylOH3NrThr0JJk6zxMu5lzCypoh0NkdR95Do4v5FtE=; b=TH+lxlTNjHiyfVjdGF3ug6TrJRNKCLDUdDlGI+ushFMMG99e9zbIuHQVvSpQyqYyyU OUIpBLFCru3/VEuyrUEvifVfY6mLnBM+GXoy6rQHd45kZR42KvVUaBeUP1BnRbDKa/dm YY2RMOqpi2FRC65SdcaGrIbARFfd1hkBw8sgo6xM7Za42Fn10VndzaYkkSDDi/inpWE/ Ybz2bTciRoxlVWvuQsDADkhlAYTDjSDxTmd8c39W2cocS5sQjPWExzk9gta9bXN7DDAS 4PXgzmB6sMi34HTPQQQscq35hfy1RLHKRJdeAIkvxwd1Ca0yVAUmW9P+4rL8cqmIx4sq ttAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fSrkm81u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id j69-20020a638048000000b005b9a149e61esi1221875pgd.649.2023.10.31.09.56.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 09:56:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fSrkm81u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id E39F2808A8F6; Tue, 31 Oct 2023 09:55:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346987AbjJaQzK (ORCPT + 99 others); Tue, 31 Oct 2023 12:55:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346739AbjJaQw6 (ORCPT ); Tue, 31 Oct 2023 12:52:58 -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 12ED0171C for ; Tue, 31 Oct 2023 09:50:26 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-507ad511315so8541389e87.0 for ; Tue, 31 Oct 2023 09:50:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698771024; x=1699375824; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=d73v9cfketw/ArDcT80Q+U6ac8cwJQ83f2L/6k+AOxU=; b=fSrkm81u9KvGs3w4t9T7AScPGLJkfv92JdfaQKLl1FxqHuE3SnfpnMYYPvHp49bIZX GjNBCYYfC5OcCQbl/dJOfaFT3BZ+UNiIr9BRFmLLyn67ZIUrmgEjWXemwjBY1qDhYVsJ ov55OSVPVDV748Gv4PFf9jdF9pq1nh6js5Q+TbAI/Dzz4DIuNow3q525egHJYUKvsL9c tuFTrxwlMxI7wBAGV2EolPOTFvirld6jJWQpE0x2l/A4StI1QhOAYCQ0Shhwfzh8Ouf4 tbEqFU1XAXmtmlE3W7oU2yCx6em8vBqXr6ycco7oZ/n4mKwepHmmy69TE+FMvFApfqL7 cPNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698771024; x=1699375824; h=content-transfer-encoding:in-reply-to:autocrypt: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=d73v9cfketw/ArDcT80Q+U6ac8cwJQ83f2L/6k+AOxU=; b=rGUtf5LosFC+ifaREqxUVDn6x/BHx0krQki3U6PnZyz2l+sMBBUDX2VE+U352ssR94 KczzXLeNOk2WH/GNegwYdkGM8PTtfs9eOlMxXqFlyRRW/U1Jsh062VAap/LyQZWe3Ero 084tYneBHd0lbgM7U3N60nHAaq+Z8f4K+2HsMyb/OmxmDzkDEEXG/i75tM/wgV6mcGJK 9p5cLxY9yIvxjjbpd9Kz8Ui/XcKu92NXXplJn6watXuaYmqPZSsqB4AuXAn7ldLQ6tF7 tiM6Annu0C6aSYkzyjODtac8LLlkP3N8v/CwO5n9nzQy0wF6c0JRfnYDNLne3WAF7amb i3WQ== X-Gm-Message-State: AOJu0Yx3058ZhLTIxNwfgzs8clYd4k3VIdBqC5MmA03b1FocyUyFXzQi fKuFsdZuool5eHH2JzrF9BJUJw== X-Received: by 2002:a05:6512:1282:b0:505:6ede:20a9 with SMTP id u2-20020a056512128200b005056ede20a9mr12384328lfs.65.1698771024156; Tue, 31 Oct 2023 09:50:24 -0700 (PDT) Received: from [192.168.143.96] (178235177091.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.91]) by smtp.gmail.com with ESMTPSA id j19-20020a056512345300b005079a61a182sm256853lfr.143.2023.10.31.09.50.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 Oct 2023 09:50:23 -0700 (PDT) Message-ID: Date: Tue, 31 Oct 2023 17:50:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 1/3] PCI: qcom: Enable cache coherency for SA8775P RC Content-Language: en-US To: Mrinmay Sarkar , agross@kernel.org, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mani@kernel.org, robh+dt@kernel.org Cc: quic_shazhuss@quicinc.com, quic_nitegupt@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, dmitry.baryshkov@linaro.org, robh@kernel.org, quic_krichai@quicinc.com, quic_vbadigan@quicinc.com, quic_parass@quicinc.com, quic_schintav@quicinc.com, quic_shijjose@quicinc.com, Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Bjorn Helgaas , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org References: <1698767186-5046-1-git-send-email-quic_msarkar@quicinc.com> <1698767186-5046-2-git-send-email-quic_msarkar@quicinc.com> From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhTeMkvt4KfE5m5ercid9+ZXAqoaYLUL4HCEw+HW0DXcKDwARAQABzShLb25yYWQgRHli Y2lvIDxrb25yYWQuZHliY2lvQGxpbmFyby5vcmc+wsGOBBMBCAA4FiEEU24if9oCL2zdAAQV R4cBcg5dfFgFAm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xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <1698767186-5046-2-git-send-email-quic_msarkar@quicinc.com> Content-Type: text/plain; charset=UTF-8 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,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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 31 Oct 2023 09:55:30 -0700 (PDT) On 31.10.2023 16:46, Mrinmay Sarkar wrote: > This change will enable cache snooping logic to support > cache coherency for SA8755P RC platform. 8775 > > Signed-off-by: Mrinmay Sarkar > --- > drivers/pci/controller/dwc/pcie-qcom.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c > index 6902e97..6f240fc 100644 > --- a/drivers/pci/controller/dwc/pcie-qcom.c > +++ b/drivers/pci/controller/dwc/pcie-qcom.c > @@ -51,6 +51,7 @@ > #define PARF_SID_OFFSET 0x234 > #define PARF_BDF_TRANSLATE_CFG 0x24c > #define PARF_SLV_ADDR_SPACE_SIZE 0x358 > +#define PCIE_PARF_NO_SNOOP_OVERIDE 0x3d4 > #define PARF_DEVICE_TYPE 0x1000 > #define PARF_BDF_TO_SID_TABLE_N 0x2000 > > @@ -117,6 +118,9 @@ > /* PARF_LTSSM register fields */ > #define LTSSM_EN BIT(8) > > +/* PARF_NO_SNOOP_OVERIDE register value */ override > +#define NO_SNOOP_OVERIDE_EN 0xa is this actually some magic value and not BIT(1) | BIT(3)? > /* PARF_DEVICE_TYPE register fields */ > #define DEVICE_TYPE_RC 0x4 > > @@ -961,6 +965,13 @@ static int qcom_pcie_init_2_7_0(struct qcom_pcie *pcie) > > static int qcom_pcie_post_init_2_7_0(struct qcom_pcie *pcie) > { > + struct dw_pcie *pci = pcie->pci; > + struct device *dev = pci->dev; > + > + /* Enable cache snooping for SA8775P */ > + if (of_device_is_compatible(dev->of_node, "qcom,pcie-sa8775p")) > + writel(NO_SNOOP_OVERIDE_EN, pcie->parf + PCIE_PARF_NO_SNOOP_OVERIDE); Why only for 8775 and not for other v2.7, or perhaps all other revisions? Konrad