From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4F88EC3DA5D for ; Mon, 15 Jul 2024 11:02:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:References:CC:To:Subject:From:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QCrrWxnCjXzDt5WJOpBQLe6l1iaKJ7QPrwp9hS6WCJo=; b=emuyt1fm0iIYa7akz2H+YavOAN 6JZNWegssxEb/y5BN6sNwDudUaUCZq0ClCnB6Fb1GnCHIxCJm0MPT1L6AuSIKis60HKCxWKMtgzLZ MuQRz1Q88BWdPp4VoVJiccTTQk9Sna/3XtB+BD6e75F5nmLezgi7Z1Z55RHepCoQDJ+tqk3w4gRWz 2HinA1dfo4+NvHb1PqfRNQkCasOBrHMWA2V5CfiWjyE5yyXye3wVlPtcqSzv3ZkFoaOoItsbEctm/ HxwloVJ7MbFYXLAhHSkorMD03F+ToTEvpgdG+p+W5VMS1fZN9X7e5m1PML0WHM92UARS4KuOlpbyE QB5brcZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTJT3-00000006nsX-04E4; Mon, 15 Jul 2024 11:02:05 +0000 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sTJSk-00000006nou-1XlX for linux-arm-kernel@lists.infradead.org; Mon, 15 Jul 2024 11:01:48 +0000 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46F2dGv7020893; Mon, 15 Jul 2024 11:01:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= QCrrWxnCjXzDt5WJOpBQLe6l1iaKJ7QPrwp9hS6WCJo=; b=h9BqrVBYKZ3sksFA LF11nKeJjlqzGcos7tlxTlODyBYuWQa+/be+KP7KLV2jggnidVs1VxWDL9kuVTCA JuOds3BvCJ982nIOHYt8XmP2Qdhd8IE6hP13AE4IFXsReeNX7ahesCmVz2a5qLlJ d72jaR2pPKQxfyoI5WXLtuek5xfyUvjWxi2YN0b+AGKIf8Eq4v4AWFJdcp9mlQYM 7VM7ivbQtZLRx8lK4T9c06thBoM/XBrmCXi2TrLkTDrQQkI/346cUzjHc3Fe7cus Dd/17yC6/ahEel2y29CQ1OaIUJmXccg/LCGe1Blg8DNPTHrTPizyqPWcAbT8w7eH a4TWvg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 40bgwg3q8q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 15 Jul 2024 11:01:37 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 46FB1aR6003290 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 15 Jul 2024 11:01:36 GMT Received: from [10.214.66.253] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 15 Jul 2024 04:01:31 -0700 Message-ID: Date: Mon, 15 Jul 2024 16:31:28 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Bibek Kumar Patro Subject: Re: [PATCH v13 6/6] iommu/arm-smmu: add support for PRR bit setup To: Konrad Dybcio , Rob Clark CC: , , , , , , , , , , , , , Rob Clark References: <20240628140435.1652374-1-quic_bibekkum@quicinc.com> <20240628140435.1652374-7-quic_bibekkum@quicinc.com> <0650ba0a-4453-4e2d-8a76-0f396ac1999c@quicinc.com> <4a5f54c7-120e-427d-8a0a-9fb83e13a72e@quicinc.com> <3b7c05b1-8f36-4c81-a55c-dbb467314099@quicinc.com> <9509f256-04a4-4907-98fc-148c5087d74d@quicinc.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 6tTKYRcgEHgo2Djr44KDs0v1tnx68jY5 X-Proofpoint-ORIG-GUID: 6tTKYRcgEHgo2Djr44KDs0v1tnx68jY5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-15_06,2024-07-11_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 adultscore=0 spamscore=0 priorityscore=1501 mlxscore=0 suspectscore=0 mlxlogscore=999 lowpriorityscore=0 clxscore=1015 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2407150087 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240715_040146_599352_1CD3E4A2 X-CRM114-Status: GOOD ( 13.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 7/11/2024 3:31 AM, Konrad Dybcio wrote: > On 10.07.2024 7:01 PM, Rob Clark wrote: >> On Tue, Jul 9, 2024 at 12:43 PM Bibek Kumar Patro >> wrote: > > [...] > >> If there is a clean break, such as all smmu-500 have PRR and all >> smmu-v2 do not, then it would be reasonable to use the compat strings. >> If not, I think we need a different way. > > if (a reserved-memory region is passed in dt) { > init_prr() > } > This would have been a straight forward way to pass as a check for PRR support, but as I mentioned in the above thread reserved-memory region is not required if gfx/drm allocates the page. So I think compatible string would be more approachable way? Thanks & regards, Bibek > Konrad