Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2580615rbb; Wed, 28 Feb 2024 06:23:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXLVgd9x8rBxzGVL6GfU3jlsq8uhyCeDI0HRui2FxRtcct6r6ZhyBczToBhwr/MOwNKMg2d38iqe+IQ6yK+U57nHT++lo+l7vi/4m19tw== X-Google-Smtp-Source: AGHT+IEC7v52+ZsODMEoOTFSJYGwXESHvFcOvucXwyBkb7rd1Ou7OdsAD7JigTO3fK7K9phXVP1a X-Received: by 2002:a17:902:e809:b0:1dc:abe7:a1a6 with SMTP id u9-20020a170902e80900b001dcabe7a1a6mr9142564plg.17.1709130227066; Wed, 28 Feb 2024 06:23:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709130227; cv=pass; d=google.com; s=arc-20160816; b=WbufHuxoKrDZWyY6nMgQ+/Lrvi+qFH1+coeHh3QBEM0teDz9aJDa8fd9GeKUa8vy5X fdcNOnkSjfoI+2DMG1ggLbp+op3Uk0lnJVh89TFkNEh/Wz2YrgI9hPNzEtsGt4bUBMlr 18LGl9Vs9YlnTT9tT0zAVDLcyjjt2a9cOjgER8uFjMd8ri0MCNwDRzHrSnaA9LbIvooC 1JngfoNCtv5yzYF1gwRXZjVs3fwj6xw0g7eSRq1ugLbHuVPW4QH9Q9INWEYKY2BYnvEl 7BnLtB+LT+d8hoirW8Avo4Mt1WC45QoygHt8vKorzzGOcKa2n/jtoICtmZE2O4Ld+05+ vpQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=Gqsun0Jf0TCpfJuW3oP8yfzJJU2GyOX68ENXwQM6Yxk=; fh=9Yd4ych121o7DGRy939ziwGkSRyCEewHyFfC9677oKE=; b=LLQjMvhW3PrpQQhG5kRIS0exRSQS5BqcHMgKprVDPrhN0ni9yvDavrg1BdEwtzFURC id0n5mx1NAKMVrREhJG+c+guedcEFtDCgHqTzIK29uJ/d7NvAfBOa9Rgm7qW4UUkns9+ vrN0zLlX7zOMxWNym9pw/Rj3lCsRfgTqCHHsNHyXT2ikZ/Kgym6XPzP9r1fKtY/n1tXP o2gtLYZlwcoy0CRxMcn42mDRPW7AxLcPORK5iq6x71oZFPcFDqEWq1ArXfg1dTEyV0GL zJuZ2m1uQ5VnbsBO7sryZSTjAWKuef9fXmDS8i0DSrIVuq2vOk794U8r7cbVu5y257Pz RlBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u0uS9TbR; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-85151-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85151-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z12-20020a170902d54c00b001dc56fed966si3619223plf.53.2024.02.28.06.23.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 06:23:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85151-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u0uS9TbR; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-85151-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85151-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B6063B25BAF for ; Wed, 28 Feb 2024 14:02:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F728153509; Wed, 28 Feb 2024 14:02:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="u0uS9TbR" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 174D2152E14 for ; Wed, 28 Feb 2024 14:02:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709128936; cv=none; b=YsTelxxilSurJQkTwrwC69ydeyPEuGPGgBGRUDTHuC8eI+xG7LmNIA/8lT+IGjK1cyRs9kYvFuSIuoxHHtZt0THGKQmXf++bis28KOff2KKc7xf1NgZtFw7ZEryT8TGVy/v92Etd8WVSTi+G9VmPQe/egjlFRuvYjtSXebHbhsQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709128936; c=relaxed/simple; bh=wttVcvvyazg/mrRyaOZJCd7pvncVIAniFlA3qhdMgGo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Ugk7M2OBaA6bHXYHlUEaKymUfVeUxDJjyUyJFHlm4OtlfVaL7u6sGomrBp1EsKb+G6eXkBQxPLMkKryLFGYqLVlFNYCORecC7tpulrrJLSt6d+68Zaui8IDsi1mtsea2u26uar93DODST0u6328LFPW+Zfw1Af5QHxc8O4ZQo60= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=u0uS9TbR; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a3ed9cae56fso170102066b.1 for ; Wed, 28 Feb 2024 06:02:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709128933; x=1709733733; 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=Gqsun0Jf0TCpfJuW3oP8yfzJJU2GyOX68ENXwQM6Yxk=; b=u0uS9TbRBnfObH8J+wRAaEptmVgWgEsjCZ7ZFzwEXYttVQL/YkkX+xXy2xaDgmupPu bmUbImcHFkv/oLUWklwKJhKia6jJsUPQZs+f1z4BrqJvddgCL+BKR39cqrUD625He/Ey HpAoTv2VgBajTYOBEAVnWmIdKxjmN51cAzV0ePmOug25hmBvEQ1xuQvEZnYD4+XcIz// pkOR86Cl0Ju3z+5LSXjc8nNDG/axUvdCkR/5DmmJ9pCuQUYubDlb9PPmgbI9o57jgJe9 xRTiYTtxTpbm36EtPU4y1MDEU3RezhtO6ifnvSQNGB45oj7gzaQ3UfJJJ+6gIcz0URTB DeBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709128933; x=1709733733; 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=Gqsun0Jf0TCpfJuW3oP8yfzJJU2GyOX68ENXwQM6Yxk=; b=V8X3kIKQGMTUY0KjvEhQaFn6pHuTc0AOt9o7Q/quF5p1FSgzL/fNsvhD+4QA3yk1Kh n8Xr0imMEWm+Qp11YtD831FH4bWzrHudrzYHYgMvqw0fH+H2rX0JP75ovOWnPf3xaEjq 7mCUaHNAtla8Vgfc+ds5vDrjiLaexffYxcMDvT9SuxUGNiNK6nazruyGmUIFfcxbIeCF TddDlTnLoYQFJh/tPKfSddmbJPb+1bXDhzO0V/X642rvrWZM0W+OSLKLfFPO35b3zFik dYHc5/FiRK/buRVe/luci2uD6WcaAy9eh27DPRTLLvrsKCEOzGpfJtt/coQpDAQ+9gDQ 3L1w== X-Forwarded-Encrypted: i=1; AJvYcCVBIWWOtlRWfa26K2ZtQQMwb5g5ZGLgU/5b5vP2No1TekUgJGowqzu+bqkITM7f0/z4Xnsee5eokISFplwh5Wa6CWm4b079qjyjzYiL X-Gm-Message-State: AOJu0Yw7+IAf8+7AdoOanXy2C1tjOJiJu4tNUCTwDp1nBXucYePsMXe3 m3uwDn9k/fWZydvkawLqEyWSYujYCo6w2cPgRvatG9BtV7V3m7KG6Xf70E6y1pA= X-Received: by 2002:a17:906:aac2:b0:a44:1008:a014 with SMTP id kt2-20020a170906aac200b00a441008a014mr1183556ejb.6.1709128933518; Wed, 28 Feb 2024 06:02:13 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id vh3-20020a170907d38300b00a433634ba03sm1888598ejc.43.2024.02.28.06.02.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Feb 2024 06:02:13 -0800 (PST) Message-ID: <5d3f4c6f-b7cd-4da0-83a0-ef7429a4a902@linaro.org> Date: Wed, 28 Feb 2024 15:02:11 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 0/3] arm64: qcom: sa8775p: add cache coherency support for SA8775P Content-Language: en-US To: Mrinmay Sarkar , andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, manivannan.sadhasivam@linaro.org, robh@kernel.org Cc: quic_shazhuss@quicinc.com, quic_nitegupt@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, dmitry.baryshkov@linaro.org, quic_krichai@quicinc.com, quic_vbadigan@quicinc.com, quic_schintav@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: <1708697021-16877-1-git-send-email-quic_msarkar@quicinc.com> <866ea7ee-54c3-4a89-981e-64d6d3b46497@linaro.org> <7cd328e2-6847-973f-c38b-93d1e64d3771@quicinc.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnL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Hz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <7cd328e2-6847-973f-c38b-93d1e64d3771@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 28/02/2024 14:07, Mrinmay Sarkar wrote: > > On 2/24/2024 3:49 PM, Krzysztof Kozlowski wrote: >> On 23/02/2024 15:03, Mrinmay Sarkar wrote: >>> Due to some hardware changes, SA8775P has set the NO_SNOOP attribute >>> in its TLP for all the PCIe controllers. NO_SNOOP attribute when set, >>> the requester is indicating that there no cache coherency issues exit >>> for the addressed memory on the host i.e., memory is not cached. But >>> in reality, requester cannot assume this unless there is a complete >>> control/visibility over the addressed memory on the host. >>> >>> And worst case, if the memory is cached on the host, it may lead to >>> memory corruption issues. It should be noted that the caching of memory >>> on the host is not solely dependent on the NO_SNOOP attribute in TLP. >>> >>> So to avoid the corruption, this patch overrides the NO_SNOOP attribute >>> by setting the PCIE_PARF_NO_SNOOP_OVERIDE register. This patch is not >>> needed for other upstream supported platforms since they do not set >>> NO_SNOOP attribute by default. >>> >>> This series is to enable cache snooping logic in both RC and EP driver >>> and add the "dma-coherent" property in dtsi to support cache coherency >>> in SA8775P platform. >> Please confirm that your patchset passes 100% dtbs_check. >> >> Best regards, >> Krzysztof > > I have run dtbs_check and it is passing. Hm, last time I checked dma-coherent was not allowed. Best regards, Krzysztof