Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp596780rdf; Tue, 21 Nov 2023 10:41:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHf4kID9xh7V7jLXG6Zz8CiKC84G0xx4zLWT+XqRLvvbmROuDe/ofMOtH59S37S34p/71h1 X-Received: by 2002:a05:6a00:330a:b0:6cb:835a:8606 with SMTP id cq10-20020a056a00330a00b006cb835a8606mr7615pfb.4.1700592066368; Tue, 21 Nov 2023 10:41:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700592066; cv=none; d=google.com; s=arc-20160816; b=K1fCnRJMndawdOGKni7z2WCBs4lTI2PL6EE0k9aFXk+umypUtPq1R9E5WGTUDbBvNp icSud4LDfdpKkfp+I2/BNge4Y4QuepJf42zyeX4W2+EeOK6BmF8P6Mgl9EnyKdTc6ZoK 1HdgU83GqSzVRAlwjB08noAWQ3N6JkExxgQR3c6uutuRHgd9tRX0vQ40XalP5Takpo5S +2tM3Jxe7Lmr4Arvp9CODFrjfx1FUDdjJOWaxY9MxGCOIvadE7M59FN/WS2ImesCynYS 6ffdDjQSIaqMpoqhfBgXdJV6K9j2pdNXWKBp+VCNyJQirnl7dbAi5LAhJU6cruhelCx4 mzJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VJi+hwHIFMEK75b+gn7N3ATHUD4KW+X7YkfL5jpJno0=; fh=Q7MMoO86Xq8aQJFZLo7eMhES8FfFCdDF7ougyZU2fp4=; b=IJsfI0lF2ZhPQkeI3hyBi01WFXl+xgLeIYWKtN1t0yIuYq9V/seX//7IynMAV2s81T Jhx5musMfp2jjaArDM3olMyGZv1TaXRfLZ1aRKOy+P/SYBqcOqp2azsdwcQVq05h4szL 0vITYhmf/2pbfEGEyN6F2zq7HF3N1bwKt9s3VE6nY6W9SVtrbBycYSkX8JOYn/tLqmDN SHTlfvlvNBN+U0bPhZ0r8SHVR5bNcMnoZ5OMEW9ZbkrS2xbNjIfp3kzoHTeZUaQ4FO0d yv3bJRJHlVDevNWbUpxc4YMP3qfUp0y0o8mqOkqe3BYw932KHqOelvA5p9xi69J5E6Af o4DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hrdgv90s; 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 l10-20020a63570a000000b005c1b30b1b65si10623752pgb.648.2023.11.21.10.41.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 10:41:06 -0800 (PST) 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=hrdgv90s; 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 41927804C216; Tue, 21 Nov 2023 10:41:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234561AbjKUSku (ORCPT + 99 others); Tue, 21 Nov 2023 13:40:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231236AbjKUSkj (ORCPT ); Tue, 21 Nov 2023 13:40:39 -0500 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 912EA193 for ; Tue, 21 Nov 2023 10:40:35 -0800 (PST) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-5cc3dd21b0cso430227b3.3 for ; Tue, 21 Nov 2023 10:40:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700592034; x=1701196834; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VJi+hwHIFMEK75b+gn7N3ATHUD4KW+X7YkfL5jpJno0=; b=hrdgv90scQ4yUIzJlsUMbmA1tgnuWnWqJ3sYXRRFDGbKkXTFir4Y0zukJEBb/+tIBP iakgS1Y48/wLMYv96yupuakHMN3TG3ATE3QhdhgE9/MCB09bBXDQRo2ykZIUIFLVdK8g D4P0sOk+sby4avP9UBgxkHrAVELIT+U2cspg9Hpadtafk/h/IdZd7kh+R1Jd2/iQK618 EhO3zYhtYQi3fF8n3gg3VyNKa6QZ14JSdG9+5Ig8OuAtfp89foyKHi7oAWDjiyiXdkWS fCV6oyEx1trE4s9I6qi2e2eZiO5WVMJ8pmeRA3L5Jh+HtDzK1GUpGGLb4v6VpQ3rOeQK 87Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700592034; x=1701196834; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VJi+hwHIFMEK75b+gn7N3ATHUD4KW+X7YkfL5jpJno0=; b=DsD4o4U1cofrDyijEhHPuUo0nLs5tqO1NpU6+Im+4p8u6zhIr0nClQhCHCUTBZvJ6f maWq+h7VigMWj+NQfXhMX2ez4fP9KCjZpEBF4Brh7ttTJDh5p00AQqJYNsqqJdu5znuJ ocwSwF942ol79qm+D/FR2HucCov16QjSIZ8kyOvlhs/aRciUjKcY+OsaHnL6Pza2f9ZC EOiR7fuWeT/FVIgXOrgLqMZnACsGnjO/EkYzwe++5RievEulb0sEggLlOqzF5QVPedH7 vbUjSffZXlu4IStL/F1mRnFiFthruoGnHH4IZclfkPBFE0TTCTzJhaOzjMa36Drk2dPa LR2w== X-Gm-Message-State: AOJu0YxxA5Is49VkwmqWVROkEgXBYUODoqQ6pErnQYOEgrtdu7wmUfQO dmPUhhaOJ6mk4xKbAiIOukZ+6nie9rZkH0uTfErIUg== X-Received: by 2002:a0d:dc43:0:b0:59b:ec85:54ee with SMTP id f64-20020a0ddc43000000b0059bec8554eemr13643015ywe.39.1700592034763; Tue, 21 Nov 2023 10:40:34 -0800 (PST) MIME-Version: 1.0 References: <1700577493-18538-1-git-send-email-quic_msarkar@quicinc.com> <1700577493-18538-2-git-send-email-quic_msarkar@quicinc.com> In-Reply-To: <1700577493-18538-2-git-send-email-quic_msarkar@quicinc.com> From: Dmitry Baryshkov Date: Tue, 21 Nov 2023 20:40:23 +0200 Message-ID: Subject: Re: [PATCH v4 1/3] PCI: qcom: Enable cache coherency for SA8775P RC To: Mrinmay Sarkar Cc: agross@kernel.org, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, mani@kernel.org, robh+dt@kernel.org, quic_shazhuss@quicinc.com, quic_nitegupt@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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]); Tue, 21 Nov 2023 10:41:03 -0800 (PST) On Tue, 21 Nov 2023 at 16:38, Mrinmay Sarkar wro= te: > > In a multiprocessor system cache snooping maintains the consistency > of caches. Snooping logic is disabled from HW on this platform. > Cache coherency doesn=E2=80=99t work without enabling this logic. > > 8775 has IP version 1.34.0 so intruduce a new cfg(cfg_1_34_0) for this > platform. Assign no_snoop_override flag into struct qcom_pcie_cfg and > set it true in cfg_1_34_0 and enable cache snooping if this particular > flag is true. Thank you! > > Signed-off-by: Mrinmay Sarkar > --- > drivers/pci/controller/dwc/pcie-qcom.c | 20 +++++++++++++++++++- > 1 file changed, 19 insertions(+), 1 deletion(-) Reviewed-by: Dmitry Baryshkov --=20 With best wishes Dmitry