Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1253066lqo; Fri, 17 May 2024 16:38:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmF1N2E3MS6b8T1IaqEHfBXWhSAd7OdbsumYtWtI/AtH8pgR+PwucI7rIREoyHmryyrP8GJ3DXlq7VwUozAGJ9YpXaOJYxk8EaWtppQQ== X-Google-Smtp-Source: AGHT+IGGKAl/gbAFgAK+Ytu9avm/JdRYmWrv8gcsuHIqjWezlsGkikuSmPMJidZ+jxfj/9lC15j9 X-Received: by 2002:a05:6808:488:b0:3c9:7988:8750 with SMTP id 5614622812f47-3c99702a21dmr26746892b6e.4.1715989122297; Fri, 17 May 2024 16:38:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715989122; cv=pass; d=google.com; s=arc-20160816; b=wIOLia6G6XDFFE+j1BH4D+KRMC5ToH6JP6nTB+R7j7OTLwOe96diD6i2xOsHROIzny XRAB2Wr1/8KcC6Yt8LTYXKwPT2VMwiauMLMjPrVSOscDaR8FBKMXeQ9GSo7n6PJvCRIX j0CsxquOAaCXGRXV61r0wwDGNI8NoXoXOOF8ZPXGaycyatCI3dyFm2tMfCxbcMi20uHQ wgfoyIhkIS5AYJ6bUMoGsSfr8CjPUdJWk5Ym7+uR+/57a1m2ambrxRRWB1DvnN6BCBVm b6iI9evsxb7J+YHFpaAk3fe70I3adUxa36mrsVU4L11MScPDI0xIiMeHf/t6DD6vBqIw j5Ew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Wkf15et0LGIqkNnyWmzVU3f9IoC1kvo+kKKWTEObMfE=; fh=jIifofimyMhmIwy2lOdiMz6dgdWFM9UE7IPeqtamqCc=; b=wJmXG5c95Z1Fybf8UscQLHHYZ0xin8vleqU7PIZTaviTW1/UKGbD5syKSdPs0wS86T ESyj2JaND7Oijv636QqS8H8uXasJkxriUCIGALMqgSxyGujrb1ZVCIIP4rxV/U2mGEkj gNRiqxlfO6dcv30fm6HYoGdFdkcb/9BBaeXulyldhPgCI751MjHTSsyn2KzbKi/+PdiR E578DP8finLiNOC84kYMku6dMyPZeHRrBQ6miWkHoyiKpFPWH6Qdm8svS38ZqssZja7+ PuJKWtoEHW/pXGyi2et37o7y2ULBr53fuvA+x8+L9yq3UA61AzW3djHRSaj3EFS/iKfB xxig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=IEgc64Vb; 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-182699-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182699-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf30b7e8si105983485a.334.2024.05.17.16.38.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 16:38:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182699-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=IEgc64Vb; 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-182699-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182699-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 089771C20FFD for ; Fri, 17 May 2024 23:38:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 506AF1420BC; Fri, 17 May 2024 23:38:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="IEgc64Vb" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 151FD1E86F; Fri, 17 May 2024 23:38:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715989105; cv=none; b=PHXBSgF2I9R3RCq8LhpDeKtmyAMpCTndmhV7tQLkw4Cnqyk8IymNcPFximAmg9Bvf3C7Qwhjw3LqN7jtX8hMgZO19DV6KfkLaiKHJxdvutb1pO6YrI65DgcPL8QCGpRZNNXPtMr8ydaxdOtvoJ+Y06cBPrkAN/PGZwBy2K+rFBU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715989105; c=relaxed/simple; bh=jLEESef6TQjODRDsbyZTnjOu6IAvDEc42WtvZ8kQXuM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YCw5Z+F2dlajual64kk7JusbGlfXXEHEGRcspDyExlr4bC4xAwU2++6fgyPkAx9+GDpvpr8KWj2S0DqevYiFeH0JbizuM1rShJ/dF/3i8Fv7ZYsXTjOqU1tl+gOfrvqAdpxkerEdoFRKKlbkpsJWsFCJnfBPJ5ajNp7wYRg4rm0= 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=IEgc64Vb; arc=none smtp.client-ip=205.220.180.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 (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44HI0OoS026628; Fri, 17 May 2024 23:38:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= qcppdkim1; bh=Wkf15et0LGIqkNnyWmzVU3f9IoC1kvo+kKKWTEObMfE=; b=IE gc64Vbuen8Z3UpI0PRsCbVIecBsMPXyP8FqjHe68kH/XrJjUwKzepCjHLkNtax4t JNox/bG/6cg/5HBYZX9++6d2sGA7WsItz6OVWFhOe+oMazzcIZe9kvxhsGzgpJ/3 YAXk4HXTKJY4oQdIraq4zvbl+lNAEPYbG64GUopzznVePK/B2wontmJRZvEnklh7 OhxVNvhZgKA2wEXvKI2JRTGdynoZ8N5c0gueM+G4lHyV6cIzDVtqq8HP4FoddZAk FfNskOi8equ03yfDzwHP1PrLy1r0DN4p8tGC0h706mH1CHav0I5LHSZP6jntFIeR ge7q/xdorIIrpPkWLwkA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y45vbhe9f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 May 2024 23:38:17 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44HNcFhU020827 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 17 May 2024 23:38:15 GMT Received: from abhinavk-linux1.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 17 May 2024 16:38:15 -0700 From: Abhinav Kumar To: , Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , "Daniel Vetter" CC: , , , , , , Subject: [RFC PATCH 4/4] drm/msm: switch msm_kms to use msm_iommu_disp_new() Date: Fri, 17 May 2024 16:37:59 -0700 Message-ID: <20240517233801.4071868-5-quic_abhinavk@quicinc.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240517233801.4071868-1-quic_abhinavk@quicinc.com> References: <20240517233801.4071868-1-quic_abhinavk@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Ozp-vEdYGT0Yjhs9JwV2ItcjmRg4nNhe X-Proofpoint-ORIG-GUID: Ozp-vEdYGT0Yjhs9JwV2ItcjmRg4nNhe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-17_11,2024-05-17_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1015 mlxscore=0 suspectscore=0 spamscore=0 malwarescore=0 adultscore=0 mlxlogscore=999 phishscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405170184 Switch msm_kms to use msm_iommu_disp_new() so that the newly registered fault handler will kick-in during any mmu faults. Signed-off-by: Abhinav Kumar --- drivers/gpu/drm/msm/msm_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_kms.c b/drivers/gpu/drm/msm/msm_kms.c index 62c8e6163e81..1859efbbff1d 100644 --- a/drivers/gpu/drm/msm/msm_kms.c +++ b/drivers/gpu/drm/msm/msm_kms.c @@ -181,7 +181,7 @@ struct msm_gem_address_space *msm_kms_init_aspace(struct drm_device *dev) else iommu_dev = mdss_dev; - mmu = msm_iommu_new(iommu_dev, 0); + mmu = msm_iommu_disp_new(iommu_dev, 0); if (IS_ERR(mmu)) return ERR_CAST(mmu); -- 2.44.0