Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2534672rbb; Wed, 28 Feb 2024 05:07:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX5ymhn5Gz3S8Ux35LqqC3qdeVFfDmtobB9jujotFoQdseR/pfBNpvzJI3vRezl8gkgWnjRldJ7zJ9i4eJdGHdCxaL7h29v/XcFYlMtOA== X-Google-Smtp-Source: AGHT+IF8JrW9aTMurVj5xMRYJwJuv1akqSjwdh5GXtisdUVTdiN/BfsuJ7dKtjGLUDJWe+iDRWbb X-Received: by 2002:a92:130d:0:b0:365:c0b:9662 with SMTP id 13-20020a92130d000000b003650c0b9662mr12857025ilt.32.1709125651151; Wed, 28 Feb 2024 05:07:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709125651; cv=pass; d=google.com; s=arc-20160816; b=qohbRYx2VOBV+zTaFR5MOjLm9kWY8Fa24vLMmkmJDTcD2SUfphbPFDHO1zocNGkg2w Qe0ipdnd9v2hGAn15MH5f8nHTrG/iz6qsKPgL8ypmucqhQd8XzVIzXatYB/Y45OkrXFY P1RNzA44tbbIresIRBb8EACXsTeVJOBQp79kToEk4RxGfNBJg2xTD62aJ8FIE6PfN+N/ BLhBXlzd/SvNDbUBEOCRiH+kcyxpMH4T375UqczrLBap/ot9DfP99APOSh3Jg+Xce7XG 44yzT2AEiYmGW/VAZMNJHY3YckoXJFg+QPrOaiu7tiZAktLMo30RmY+7+FPwy1SuTYOX Qq2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=RvzJ4l2yqF8ezySL48DF5MT1sZ9IXKITdWB7P32EZZg=; fh=Q1PojVZJdecSqgfWtLHHq2Rn/FfZoHCSOySDY6xgPOM=; b=Eaogn2j1VOOcuuDd9DP+MVwZlhH/JJGh98j0joX3bgEWOzBR0IP/qHOAMEzo23Ksvo 2i13hW7zOeC5sep9OWL/TsFSFit6WKEIQMJoHJalGO29yapWbI8rJq8eD/zt/CLS6F9y dAfhmgQq1FFpwjbX51opnfb3N0JH/pizQR+a3lmt885IUfbjBftXWN9Gl61yX2SgnQHL TZ+g+f8WmlPG3QfyA9QGKt+XRD1bTQK2f8h53Zbzsh4rU0izGKTmGaUDfntRbUjNICIY Gav8toV9oeGvS8dzoESB0YXU44UuIh9KUrN+gu3DwBKnPDQIDoLL1rjcsCkV0SVPorwf /FyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VBBHyHKJ; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-85063-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85063-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g1-20020a63dd41000000b005d8bd587734si7156438pgj.772.2024.02.28.05.07.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 05:07:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85063-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VBBHyHKJ; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-85063-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85063-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D295B285E4E for ; Wed, 28 Feb 2024 13:07:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 035EB73508; Wed, 28 Feb 2024 13:07:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="VBBHyHKJ" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8FCD145341; Wed, 28 Feb 2024 13:07:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709125640; cv=none; b=bfOQj3ZevTDpouFaQyMmMvdRzJKmW2lpdOou1C8vpldHT57rqnCHhnV3ucrsHZzc515Wi4ILg0j18w3duNEINWGSBxSh0p66rYuNvmPkWP6ghrmpAkp2fUIqvrAm/nUOsoTHN3ucHWPDeXh9WvhOO0FHhev3LjZyQUtLCGF6bDE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709125640; c=relaxed/simple; bh=RvzJ4l2yqF8ezySL48DF5MT1sZ9IXKITdWB7P32EZZg=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ZiBYrj+MgKJBFeTwodFFYX6anLAGxcyZRtMOTeQvA1yAkgLY5k2j/XUAZhTRxbadO0+pPhwFpUTn/PVHlAHZXwTtF75W6oMy5qlrRm4REQ2F9613c/kvrfCC+knunzC6PfvUzxZqvTsCzHqlMfz1ygVN14sbOtOMJh0jUbbM5ow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=VBBHyHKJ; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41SAuLrK012787; Wed, 28 Feb 2024 13:07:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=RvzJ4l2yqF8ezySL48DF5MT1sZ9IXKITdWB7P32EZZg=; b=VB BHyHKJi2WVlqSq1uK1IIrm98ZUntr3LfPyoXRSgRe7hd3Aux452/InroG32kFLxm OdcAKdx+8cnTx5jfqv3rUaW1OnloWsHC5bKEH5RX+Hbw/FNzxtxE4mGVr1OVHOel PmS8mT2IUztuUZ1W/2W9xfBQK30Xoif01ueFuUpPSsr7jTI2xk3CIZeEGoUgFn9I Ef/4bUmQrpkGC+O4niibJwP5kTKImRK9808yklUAkjsUFhGqkx8ucU4cz5E8cjBI OtQfFS+Y2FHgj1crKRH4Rk/sUcBIP65WSOpgLR4vjBjhFPiZMNGTctrdUsoD4bIj JW4Jn50wke+N4egMVOjQ== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3whtbw9d2b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Feb 2024 13:07:12 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41SD7B9i026071 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 28 Feb 2024 13:07:11 GMT Received: from [10.218.10.86] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 28 Feb 2024 05:07:04 -0800 Message-ID: <7cd328e2-6847-973f-c38b-93d1e64d3771@quicinc.com> Date: Wed, 28 Feb 2024 18:37:01 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v5 0/3] arm64: qcom: sa8775p: add cache coherency support for SA8775P Content-Language: en-US To: Krzysztof Kozlowski , , , , , , CC: , , , , , , , , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Bjorn Helgaas , , , , References: <1708697021-16877-1-git-send-email-quic_msarkar@quicinc.com> <866ea7ee-54c3-4a89-981e-64d6d3b46497@linaro.org> From: Mrinmay Sarkar In-Reply-To: <866ea7ee-54c3-4a89-981e-64d6d3b46497@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: HCcCySSSp6hMcYQVt0MSg1qXLvCNmev2 X-Proofpoint-ORIG-GUID: HCcCySSSp6hMcYQVt0MSg1qXLvCNmev2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-28_06,2024-02-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 suspectscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 spamscore=0 mlxlogscore=954 lowpriorityscore=0 mlxscore=0 bulkscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402280103 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. Thanks Mrinmay >