Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp109590rdf; Thu, 2 Nov 2023 15:28:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/ZDd3XgLhLoE1luAsdnYfT1kvndssHLy2hClPMQu0f2QdeIxJJBpnjjkNlqCY5rkEdFEf X-Received: by 2002:a05:6a00:6c98:b0:6c3:3964:ac8a with SMTP id jc24-20020a056a006c9800b006c33964ac8amr3046398pfb.28.1698964124262; Thu, 02 Nov 2023 15:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698964124; cv=none; d=google.com; s=arc-20160816; b=hxXtuovcBkNLOA/TzjVmjCcEm08OoaaTvCBSsXhVCQINnhsbwGWy+7YjEX7Z+xgo7w 3HCOgNgjZ3937vLi3wtNJ10uCBykp//h6JOeXHLONkKnB5id6sHpIGehNPudFn+Flc5x tu9lCU4db/Cw9G7220UGgp86ouv+xkrXPkCLrBF7yws1rwsmbv0kPfuM7IhkhWwWEbIn VjcDpl0yS0FeF3AvnbNjRT3k1arbA+rQVoZQMTPiP74HU1O0K/OppziESZEYn58FpPIE UMECLl13IEiNsZgBrgIhkSBJS7CtX7FNNljGbh9Uj/PejDhuLuyICu6HDIcJd0lsMx92 XOow== 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:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=uXoVyVp5OG84zOQkOm7IQ+UVmBcdY/iCRvS4GnsnCOM=; fh=n3LSVss51re8LlpG/UNlGyTbKga47jgb0AB7d5nCqCo=; b=yZsTPEr3ZyZX1ssSL7IABiJxNc8MIP8ddAM1zalxRACUylrVLAGQRzqOqmjSnt36/M SO4quI1U0wQt+IK8zO+CWsrlDsGSliwaHRkrbqu/Iwmb3YthCOwWMXq6CyhSZZQ2+ktV Cyz20pl6fAd27j1VlpWYv5yL2t9YSCeO7vS26DKZPkX2jqt2Py0Fqsdy+qAOykbpU5Ri T+FCXsvSwSRYhuaQWKlHvKHMrmiW3q+N7FPcWP0DAnjVk6FMiB/n4SysxLyFfe7AN4mp hTC5fblNjyxyx/LvU0KMJdIQv+7TqAc0/HNsnWxEPhDRPxgxHqpoj+Sq9volVqgpVh5j 9obg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hk65anI8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id r27-20020aa7845b000000b0068fee0e95c5si364262pfn.89.2023.11.02.15.28.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 15:28:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hk65anI8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 176208244E7E; Thu, 2 Nov 2023 15:28:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377497AbjKBW2X (ORCPT + 99 others); Thu, 2 Nov 2023 18:28:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234457AbjKBW2V (ORCPT ); Thu, 2 Nov 2023 18:28:21 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 372F910D2 for ; Thu, 2 Nov 2023 15:27:35 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-509109104e2so1730560e87.3 for ; Thu, 02 Nov 2023 15:27:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698964053; x=1699568853; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=uXoVyVp5OG84zOQkOm7IQ+UVmBcdY/iCRvS4GnsnCOM=; b=hk65anI8DnLP6XYG32IVr91q+4QPdQesXNfZXu7n7Z3Oxi+hfPMVXiNp8uEYbFsrK1 xUy7Ph1BQygU+6QJBNRzD2ickq7d9jF9sIX8Bp9xSOONDX+iGZmvSwHVJL6f56+stO+V qQjzdm4FuuZHbULaZd3vxuElst9M2ol2Jd7qJD0fGG8U/9y81xrG0qmXIY7onMetI+nk sV5Yeosqvk6PuW8fwvmgNknqENNY3L958R0WjoBWSV5w+J2zBNj8BBCD73iaZ3mPm6VA rMp8PxxI05rhHg1a68KVMy5Vb5h55M1o7UITCgRXr5dRqvBqmX41RXbaKcT2hloO9hhk 9yGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698964053; x=1699568853; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=uXoVyVp5OG84zOQkOm7IQ+UVmBcdY/iCRvS4GnsnCOM=; b=VJ+g/5HGyJXZXPWbKQTu7/bdUcK1zAJNrm17mjmhYPa3urvOTN+LfbKpm9aWHxmNK+ 9LTACcFpJFaaGfL7GZwchJqbfmilxDLm5JeoVi0rl+HrLXl4Kzo6ZKF4PeKK7hy94p1K j6nSgQhJCzGK+mLEnOAe0v7efETPVYEtCBHw5wIEFSZsAkZCeCp22gmZEkyD92jSvhrL FvTjX0TwnA7bdQAEorX/6Hlyu9QlGpj+EDmY/VlnFsj9lsdRVDRGiBi3uV7BDQMZd5cs yUW+7e/NpN6GnOh15fIs/8lEoQZtJFrFpT6YYlgYt6EJY9Q3aAreGGfhuQ/dzXNAFRbg WRnw== X-Gm-Message-State: AOJu0YzKeCPs/wwpnPupsDUupgCJp1TCH6bRl25OVWWsb6OF6cGKOygI 9v4yRd8bwB8bulDbqzqLUOTcAw== X-Received: by 2002:ac2:5304:0:b0:507:a650:991d with SMTP id c4-20020ac25304000000b00507a650991dmr14430457lfh.58.1698964053368; Thu, 02 Nov 2023 15:27:33 -0700 (PDT) Received: from [192.168.1.118] (abyj199.neoplus.adsl.tpnet.pl. [83.9.29.199]) by smtp.gmail.com with ESMTPSA id a22-20020a509b56000000b0054037c6676esm220608edj.69.2023.11.02.15.27.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Nov 2023 15:27:33 -0700 (PDT) Message-ID: <1bdf3b44-8a6f-c6d4-e86b-ec4bc0fc871f@linaro.org> Date: Thu, 2 Nov 2023 23:27:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v1 1/3] PCI: qcom: Enable cache coherency for SA8775P RC 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> <73a332db-14d3-a5b6-331a-d52ffb27ee63@quicinc.com> From: Konrad Dybcio In-Reply-To: <73a332db-14d3-a5b6-331a-d52ffb27ee63@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 02 Nov 2023 15:28:42 -0700 (PDT) On 02/11/2023 11:16, Mrinmay Sarkar wrote: > > On 10/31/2023 10:20 PM, Konrad Dybcio wrote: >> 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)? > we need to set 1st and 3rd bit. yes, we can use BIT(1) | BIT(3). It would be great if you could explain what each of these bits means separately, #defining them instead and ORing at usage time. Konrad