Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1854610lqo; Sun, 19 May 2024 01:39:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyCjONMEyx3lqXAVkiP2ontH1hndkYUmOcgfi6K+BdQlbtpSyYph9ys0TbrzaQqo0O12RfZqRpZXAjwZQkYW+5CBywLS3kT9i9rDvxIQ== X-Google-Smtp-Source: AGHT+IF0NFOiWO7tsTlfIaDRVt2k425reCCl0mVRVUjlG/GGRsSOQ3wBX5p3j1REesn2pehI/4fU X-Received: by 2002:a17:906:6944:b0:a55:a895:46ae with SMTP id a640c23a62f3a-a5a2d67db94mr1710053566b.63.1716107994984; Sun, 19 May 2024 01:39:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716107994; cv=pass; d=google.com; s=arc-20160816; b=RuXAbYGp/TAiVzMJuj2miVchm6Bqm5680WNa0daYjqbltwWQ6FFtMFmRr93PAWzT75 SYfZzUA9lAOIA9BbbWRLb6EFLLAs5gn0jUR3IY+UjISpbzBipplbeBLWADARTpqiSkkk PYcw/8S7AkdHatIl00KI1k3q6OnVIe0H67ZU9H66E9B+biVxrbnUrN1GFvPS93O+awyj iERdycyJxCXt71PT/WLd1IRFyPFefK3Eni56LjT30FMeyhDiw4Wo7SZ1LQJlyWFCBLuu iMypZMM2xhR9TRl5IIXAW+YCj5sqSOWVwG86LyCML+YqFx6jTj8F01PRS4GdTwvtR280 OCiA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wINRsVYOfc9e8SdgZRbrSE/ek9LX88q64lK0ONVJskM=; fh=QSxq4Coe2J4v1RieKY7Al3SHH7J9yrYZN4u2YzBmzBM=; b=IFmUWCav8x+P8bazNgvSK5s2qhnt+QINf24/xpbEmtqIdVTcIgcFQHine9irCh/vMU 5cvCA51/Sf4iR5wFNfg6G0mroCoxoaxEaVjVWsgI+/+BklZGPIBXuoWGxUdDZkEAIGt3 j0/BvwfGOofOMEQVP/MgZmcZudeoqAfsOy59F+mEujXoDWjgyqhF7gBdtLJ77GDGl5Vq yJbcfiwRYUCa8RcRPOZjuKmDs9wICK1tFBMSshxYezitJx5Zu3H3EBdOaT/OZ7qjGl65 whZMD+t0qg7pw5Lw8Eb7AvqrCPgt3lScTTN6wJBYYIms9ggfz2qLf8gQzRGtK/ypq4Vp XhAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=utL5Gnzr; 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-183068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183068-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17c2c066si1182517066b.961.2024.05.19.01.39.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 01:39:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=utL5Gnzr; 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-183068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183068-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 876481F2150D for ; Sun, 19 May 2024 08:39:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B04D625779; Sun, 19 May 2024 08:39:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="utL5Gnzr" Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 3989D17580 for ; Sun, 19 May 2024 08:39:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716107986; cv=none; b=IevVL/QzgCh67J2SIXAh52U5zo1k850vGhhFUGrDYxtsy1NByejXxCrlsZKUIw8F15K3BQbd0dgpCkRX8ym/Wi0QavFnHqy6PhA0Eb8athUOLkzk0i8GJERSl8i3lWXTZ42Evs85jwtrNc9tsW1PqIenN+2cCev+N+asZ3xEqXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716107986; c=relaxed/simple; bh=Kg3YX6ii6Indv1+t4Rh29tADMsvqWwP3yWdw78z0LO4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XlMyeXZW/uZbMr641UrH4iZWSBV8aq8kEfef/63m2G8BPhYOnqoI8tGWRsej4LTfCopsr/VyFv9YsAfCA5pdWd59saiW1xJNhtTMtsnEiNghNrLBW9AiGhMLLah8+JeqzmF51qxw8Q6jTv4cty8NR108L3jCyb27DKDz+mvHWZE= 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=utL5Gnzr; arc=none smtp.client-ip=209.85.208.178 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-lj1-f178.google.com with SMTP id 38308e7fff4ca-2e1fa824504so23791431fa.0 for ; Sun, 19 May 2024 01:39:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716107983; x=1716712783; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=wINRsVYOfc9e8SdgZRbrSE/ek9LX88q64lK0ONVJskM=; b=utL5GnzrdmA5YirwGSS2B7C7qx9bs8AIq/33RBAoV/UUuRYYuJaiGb49/P/aoT21FP HZ4sr1Sf8H9PXL4bu4E+esevHoQ98v61q/MunYs2FyGyvMr6N8GwWbFUsBSOCtSvSBnc 2LMZIOhzyVXHj2i5J4Yheg+HhOwe4BbxnJbapgyjTj9LTUILSbdff72zPIzVFjzN42T6 yXHnOhw7SO07ypwfrgurKmVoc65kVolCGiJGUl8wT6IBDNj4bcC04v5WGvroGpwnmkiB BxIwAlZXR2KmRcYtJwLP8DNCh2DDjUNDIPWI4c3Le75JFbJLQmYO7hIJOAVZPYUMYaff gZ7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716107983; x=1716712783; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wINRsVYOfc9e8SdgZRbrSE/ek9LX88q64lK0ONVJskM=; b=uJshxFKofWssOkgRHA/U7NqK01X9rjGJyey6RyyKY95pIk5sG7+hNx1n88/X7+PBgx bonNvDXVvaoAHpIRvrJA65L7M3FiEW8XB54+uEY34+jWqeSfrihzJL70M+JdFu2nqW9G mcgY0YL0SXbTAvghYcLmJtEptonIAYroonqJCXlfrPQm8Of6kjrxd/pNljBlHDL9g5OI 1MZjKT8iNAGcKtJ2Kqtnlc91G0XqDfN4PAIyhpOIuRqk/VAqVeVynPTL7W55Lt3bbP1x 4qUcQwY6ti7zdlOBSEiEEmlg/MuRJ/QARbdkgi+oweddyvhbH8a21E8OEeN1VgNHlLFZ F32A== X-Forwarded-Encrypted: i=1; AJvYcCVLfO5LMSIwL0vyfUggU4B8dSehWVa4Dvjq2+TUTeGJjNBGT2swNFoRQHkCgUw8t/BfQGGSWlPzJ0ZBEMl159/sRhlOVilUr366aRUG X-Gm-Message-State: AOJu0YxJkv1k1N8ZBrXpiha3Z5o2w16aYrQxyxXUb8E7LdFOX+c7g9xY MnQY7MDftaHQFMZXHJlxC+FrL4DuEwVGhxVUjPideKK/1rKvOCxtf74tHdMBph8= X-Received: by 2002:ac2:520a:0:b0:51f:1e8e:f7d5 with SMTP id 2adb3069b0e04-5220fc6d51bmr17374319e87.35.1716107983501; Sun, 19 May 2024 01:39:43 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f38d8d70sm3840903e87.226.2024.05.19.01.39.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 01:39:43 -0700 (PDT) Date: Sun, 19 May 2024 11:39:41 +0300 From: Dmitry Baryshkov To: Abhinav Kumar Cc: freedreno@lists.freedesktop.org, Rob Clark , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, seanpaul@chromium.org, swboyd@chromium.org, dianders@chromium.org, quic_jesszhan@quicinc.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 4/4] drm/msm: switch msm_kms to use msm_iommu_disp_new() Message-ID: References: <20240517233801.4071868-1-quic_abhinavk@quicinc.com> <20240517233801.4071868-5-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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240517233801.4071868-5-quic_abhinavk@quicinc.com> On Fri, May 17, 2024 at 04:37:59PM -0700, Abhinav Kumar wrote: > 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); Reviewed-by: Dmitry Baryshkov Note to myself: make mdp4 use msm_kms_init_aspace(). -- With best wishes Dmitry