Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2734897ybh; Mon, 16 Mar 2020 08:42:59 -0700 (PDT) X-Google-Smtp-Source: ADFU+vumexeSHy/bC85Pp+81H7/TWuQpnX27o+kfuWCctqHpaNDo1k0dJKer6qgSIWJjQltXBxRw X-Received: by 2002:a9d:708a:: with SMTP id l10mr12184399otj.152.1584373379151; Mon, 16 Mar 2020 08:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584373379; cv=none; d=google.com; s=arc-20160816; b=i1Q+6uheIJjWSnYm9BdsDVW8NFFWEzyCDKDMXLoadfK2r3JgeX6SVEonLkegYHKC5V RX5y+QejCCO7NUeZqu7OAQsoMiqg5hYWnFMPniZQ8gGVsmCd9COxkqbpUPqDH0/t7pz7 mdpa6O5O6JC9TpGfXHid9UCzwfkcQjjHRbjH/AnFRpUDzBMeJMLYlaWP+1YmV18fwaVj syh4Kjlm8R8Skv+fGxiSFQLK0kltifZWOVXCt16ZyKLE96oSOIL8Ng0OjsLwctf9mfwD JKtEl2KVUxWE40bY828yWhekQmjMpHx9+y0kuvvLHKe1kvaR5nPenWV10Zck3BGevOcl /N6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=EuH2JuinWmp99M5kgpRBVbGMWPMpSteTL2l8ALHXOxA=; b=qWUTrR702sAQYZl0zTlHqTQDAAeM6tIeSj/KdwnpPz2rxHNkxMecuG5YeGw2jvs32d zJ1BKd2CHAWYqkbhJvDu2smiV4tbwG3E9NRyLueVAtMuJOH5QIy55DGA7B+v6jUbYafl qjY9F0ci3I9+2Kzm+uz7u65NN/0NXBvUFMXrfnKvtIjCyh06BY1O4CsWjlmmKnVEbQ2u gkA4Bu2MR91UbPTx5sZVxv727dNLmeDGsE+LCBepPsapABkVxK37KErtdh5gg68wGC5A XDBj7/BpR7EW3ujXZO+lnF1ZBxHtFt4Sz8yQ6mBH8H9jY5ia9wgVGbE6Ze9C26MjTs2c aoaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SuBjR7SX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j184si164211oih.216.2020.03.16.08.42.47; Mon, 16 Mar 2020 08:42:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SuBjR7SX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731656AbgCPPmT (ORCPT + 99 others); Mon, 16 Mar 2020 11:42:19 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45759 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731554AbgCPPmT (ORCPT ); Mon, 16 Mar 2020 11:42:19 -0400 Received: by mail-wr1-f68.google.com with SMTP id t2so11769221wrx.12 for ; Mon, 16 Mar 2020 08:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=EuH2JuinWmp99M5kgpRBVbGMWPMpSteTL2l8ALHXOxA=; b=SuBjR7SXVaKqCALkd1H8UtvNwExNZJ6zJgrMM6mOmR/V8duV2z/Ny/rgwl/ICWYmHv RWBK+M3PyiJlb3+IMItQHsDQF5jSLhvuAHwNcv6LMVHk4wOfYJKCJcuzotqrz3dAGYH1 ZoMfxYPhj1aGisNVytbbz16FGd19F/GLWWKqmyz5QVUWCH852OZkHrnPPIWPrqC4neyS a7v3wobNSSlJVCWjnzCdEU/vJKwAqNo9QlJDdZZzhe6JJt9HI/Adz/aIlbUVRlVc5+r/ Wh3K+T1U8mRgzEN73lsQyDrC/jgt58bTBPttxWkvcuF/uHNDyFjl6FzCmQvD6Dy4PO5f 8Mtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=EuH2JuinWmp99M5kgpRBVbGMWPMpSteTL2l8ALHXOxA=; b=LP9U5u4BDH5h/Tgnp83XtZxMjiGuO6n7oz5Is1zzvywAp6AlJHGuOqzoGOYhW7Xysq uiaOwI8/juCnVvOI9f1WiA3Zld/zJBfavpWA+fB9R1LYmr/7dHYf+LHyEEHdJGdOZUe2 c8rtP3IGyUSgO6iFZ3e1yU6CfUw4Rc7eqrb+0hAcxe1BHb4Hrs+lB7yLJvGuuw6xY8rv PLFNsndiqqTf4r6qkuMXuen3zqny6fMbcAn/8ewoizAjf4OS11oXfImhmR3aAPQn7FdL N7E/tapOp0ILKSeso7H/xD0YM7IOzWDqypY5JpC5OjB7dHk5zB7BIS6iHsXXmodHH6aN GPCw== X-Gm-Message-State: ANhLgQ0l3THsudhW7F2WCoTdm1+wO+4hL5RewC81ZXhkoA0CkSWsBF90 FV1FZhaEygUnya4kdZLpGQDoaQ== X-Received: by 2002:adf:9e8b:: with SMTP id a11mr9088wrf.32.1584373337353; Mon, 16 Mar 2020 08:42:17 -0700 (PDT) Received: from myrica ([2001:171b:226b:54a0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id y80sm85174wmc.45.2020.03.16.08.42.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Mar 2020 08:42:16 -0700 (PDT) Date: Mon, 16 Mar 2020 16:42:09 +0100 From: Jean-Philippe Brucker To: Joerg Roedel Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, virtualization@lists.linux-foundation.org, Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , Rob Clark , Sean Paul , Will Deacon , Robin Murphy , Matthias Brugger , Thierry Reding , Andy Gross , Bjorn Andersson , Joerg Roedel Subject: Re: [PATCH 03/15] drm/msm/mdp5: Remove direct access of dev->iommu_fwspec Message-ID: <20200316154209.GD304669@myrica> References: <20200310091229.29830-1-joro@8bytes.org> <20200310091229.29830-4-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200310091229.29830-4-joro@8bytes.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 10, 2020 at 10:12:17AM +0100, Joerg Roedel wrote: > From: Joerg Roedel > > Use the accessor functions instead of directly dereferencing > dev->iommu_fwspec. > > Signed-off-by: Joerg Roedel Reviewed-by: Jean-Philippe Brucker > --- > drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c > index e43ecd4be10a..1252e1d76340 100644 > --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c > +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c > @@ -725,7 +725,7 @@ struct msm_kms *mdp5_kms_init(struct drm_device *dev) > > if (config->platform.iommu) { > iommu_dev = &pdev->dev; > - if (!iommu_dev->iommu_fwspec) > + if (!dev_iommu_fwspec_get(iommu_dev)) > iommu_dev = iommu_dev->parent; > > aspace = msm_gem_address_space_create(iommu_dev, > -- > 2.17.1 >