Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2392291pxb; Fri, 17 Sep 2021 08:46:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGwTdM+ns4soaftZejoYon3yZHkMoHuvIQTq189Vn2jmLDnDnwpzSq3jimZdi7xJ+Rsm/H X-Received: by 2002:a05:6638:4103:: with SMTP id ay3mr9438800jab.76.1631893599272; Fri, 17 Sep 2021 08:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631893599; cv=none; d=google.com; s=arc-20160816; b=KbeQvmhFzfSttLz+HpEcsPBveMEt1KLwADpx4oRFKXPc5spEgTf3QjNcIoJ6Q5rtsy OGcVqtixX5ENNVviA7QeY8dTP8wxQyaYxRl43h8OM0z5La4aC8Kc9anKNQ4Lc0Bg7RuV 5vU3lPSdLbsMmvQsxNjKiPtMAB/sV8nrE/UP4uvHgjKCMjz2fmHIErXvm8852RptXY56 YG3CVJueaK7Zg8Mn2NbQ9y03zvMYy3K9Te/B9XBqwyrILYiq0GIkM+S1w/0O2U4V0nYC V1LjQSvtmLIv9Spx9aef19h+In9hd7k4xhiB/3x98w1ae4ECRHpbuIVpQQ+7u7EcEI1e H8pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=eYZWVg2Fo/lgTFAWwDOCdDsCtgn1QSeKcFBATt6HycE=; b=EXpUwqD+xs4Uu/ASOBUKmIjb4V/F04Ezi69qYrNrgYnoiupIUgw+iYD8dlQUEZtp/t nuXvKbK6BhoA9ApwNQ0y50fDuS2wisvlHlmq4u1DK0WdK7dV7FLq1s0ddR/QojGlnEh0 DxN/dLzWbBvcN+ZzLZh1FD3zyc/Bz7o0PEx1rKF5eERhPmnD3N+Mo4m3bfpLCvQn1Ils C0oTaxetJrrJH0450te7u9o3iNyHn/PouB2bTyY2caDWCB9yZY6n33Ru7fI2BfBHuP6E glrbBC5dLTf2ZQXBFg648TKyzQxNpLRiDP1BvFCI9l6t0ikMoewxEOkvBO5bVU40We8z hO+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=RZLdBWyS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x1si5840685ilm.82.2021.09.17.08.46.27; Fri, 17 Sep 2021 08:46:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=RZLdBWyS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242723AbhIQPjt (ORCPT + 99 others); Fri, 17 Sep 2021 11:39:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242810AbhIQPjs (ORCPT ); Fri, 17 Sep 2021 11:39:48 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87A44C061767 for ; Fri, 17 Sep 2021 08:38:26 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id t4so18662794qkb.9 for ; Fri, 17 Sep 2021 08:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=eYZWVg2Fo/lgTFAWwDOCdDsCtgn1QSeKcFBATt6HycE=; b=RZLdBWyS1zzwyQ8AWr+TO8IbeXMrv4GkD9yrNwWLkEQyOyCXnDQ5fSKQPUD/s0MhKg xPGzOeolgoxijwXPYafTXoIFsWJ9ZH5uTwiUOZtfmRRxJKeuYfHYRs1uljQBg7frLMPl hB2KoXeC7zy3aDwmTGMjYb7uwpHrgGCEhCUQ/7gSX9y0P86eoYQ0TI2zxNcUCG+42qfH CtKDkpmjAilFtakfPBxyf9AXRN+ZAnLX1wMYZX67q6M6bZu0FdgAYrAwrrnr63xoZJHl LYjs5GJ8k/UC4yxHxh5Zup/joyt2tOBuMeI9RbWPPU2MQCpcRDe0jZNAiziMVYTANnTP cA3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=eYZWVg2Fo/lgTFAWwDOCdDsCtgn1QSeKcFBATt6HycE=; b=3T2CdcZLMEJjacJ2Pz5fVC76vRwO2qE1CWEeqMhfDEIRrBW+DxOyjMbpCsErEtrMO5 WJmBY5Yg8m7ybhJnrAnmqpQRzWCKXF2+5FfGvUFSrG7wzyhrYlxNVbPZxhArjF55Z0Vh pBn94kdj1C4A0Cp7O7zlttYN/eYtq7mcVanz7M/FNvAtKXi36902k/lNhdfexcYzHLUL jYs3ATaNFAwujJ3J9qq+H/gZ+DgkeiJDVPJumQgUwezONKa7ydcgb2FWx9D+3DDKUCSC OSPIYf8jx+zT2pIxXLRLzzMCgkQ2Ucp+hTfrkUpjcfrX6qAE/Dv8UDIdsbvRFyUgqVhF MDUA== X-Gm-Message-State: AOAM532fbqzzO9dx+2cxGHWe8d0ubs1Se43kYAMFJN/kkkimDliXpn2R c4dikhUW09IPALh/8MbYYcCrIw== X-Received: by 2002:a05:620a:1397:: with SMTP id k23mr11014086qki.380.1631893105758; Fri, 17 Sep 2021 08:38:25 -0700 (PDT) Received: from localhost ([167.100.64.199]) by smtp.gmail.com with ESMTPSA id t194sm5357503qka.72.2021.09.17.08.38.25 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Sep 2021 08:38:25 -0700 (PDT) Date: Fri, 17 Sep 2021 11:38:24 -0400 From: Sean Paul To: Fernando Ramos Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, sean@poorly.run, linux-doc@vger.kernel.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH 07/15] drm/shmobile: cleanup: drm_modeset_lock_all() --> DRM_MODESET_LOCK_ALL_BEGIN() Message-ID: <20210917153824.GG2515@art_vandelay> References: <20210916211552.33490-1-greenfoo@u92.eu> <20210916211552.33490-8-greenfoo@u92.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210916211552.33490-8-greenfoo@u92.eu> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 16, 2021 at 11:15:44PM +0200, Fernando Ramos wrote: > As requested in Documentation/gpu/todo.rst, replace driver calls to > drm_modeset_lock_all() with DRM_MODESET_LOCK_ALL_BEGIN() and > DRM_MODESET_LOCK_ALL_END() > > Signed-off-by: Fernando Ramos Reviewed-by: Sean Paul > --- > drivers/gpu/drm/shmobile/shmob_drm_drv.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/shmobile/shmob_drm_drv.c b/drivers/gpu/drm/shmobile/shmob_drm_drv.c > index 7db01904d18d..8ee215ab614e 100644 > --- a/drivers/gpu/drm/shmobile/shmob_drm_drv.c > +++ b/drivers/gpu/drm/shmobile/shmob_drm_drv.c > @@ -156,10 +156,12 @@ static int shmob_drm_pm_suspend(struct device *dev) > static int shmob_drm_pm_resume(struct device *dev) > { > struct shmob_drm_device *sdev = dev_get_drvdata(dev); > + struct drm_modeset_acquire_ctx ctx; > + int ret; > > - drm_modeset_lock_all(sdev->ddev); > + DRM_MODESET_LOCK_ALL_BEGIN(sdev->ddev, ctx, 0, ret); > shmob_drm_crtc_resume(&sdev->crtc); > - drm_modeset_unlock_all(sdev->ddev); > + DRM_MODESET_LOCK_ALL_END(sdev->ddev, ctx, ret); > > drm_kms_helper_poll_enable(sdev->ddev); > return 0; > -- > 2.33.0 > -- Sean Paul, Software Engineer, Google / Chromium OS