Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp168781pxb; Fri, 17 Sep 2021 22:40:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwifModb8BPME0JmHumdtja9tgNZoFaPWDihi56KmvoM2nOK3xIhJiCGB0fKWxnc+fhsx6/ X-Received: by 2002:a17:906:3699:: with SMTP id a25mr16504787ejc.452.1631943654163; Fri, 17 Sep 2021 22:40:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631943654; cv=none; d=google.com; s=arc-20160816; b=h5upc93pCjhWMsQmqq601kBHWIo2kjwsfLkissqHIvWeQhMUiL9m6HWEFDani6imsR phCTdWZsSvCJMVZsDFCIZWgadGRTjxliujiqIupLpSB/idbJfpXJsxSD9+7CAQQrqbmL rAtWXLlW7x+zPeeu2v4bQA1D0XVQvB6yXL5cAAR/I+9uGwD8xAOQ1GbvqXif8naBMLf+ PLPndw18EmSWDBo6xrTPfF908wJ2nsYHX2EUAWXBdFK6YWgJ8zOMkU91sX2VWbSzrqwd tM8w5yaaWQNahQvhY57d5A4bTlFRSy2jd5+ht3ouDyD68ntqFncuAgw3+/i4qHPBKSTV QUCg== 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=G/b3XiXy0Sb8x2PtTRvVL/40239eORGz1ZL98EY1EC8=; b=xOJ2cGmp3wc5rXByzDNXEtk928NS0dIUwyVEwzS0nVOaI7Tp6CGsJnda8FWU2mtGLH 1wreLTA4tOzMmbnwOYxHeMoWucipXjrwxnP71SC24M/Q5pf22YpSxBSnBB7Csio0aapl 4QZchmKD+w/+vbfsVCp1OivHGJo4UddWTsHNkJjTcnb1Iq+XNlvMHBB+RwGSYEaknXbj v2dFTw3Qo3fkSI3+ICLi6k0wriAsa+4I1dCOgmbwf210xHt67BpPOXrmDpxz/U+6+BNA VZrYEItPZ1f+sVgWEp4K2HDN3KX8xdP7Xj+oMQWJXdUHfUnXjxTPibc5JeDtVDZwAKFg L2PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=fzPGLaz8; 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 g14si6496618edj.523.2021.09.17.22.40.29; Fri, 17 Sep 2021 22:40:54 -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=fzPGLaz8; 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 S241725AbhIQPmZ (ORCPT + 99 others); Fri, 17 Sep 2021 11:42:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243905AbhIQPmX (ORCPT ); Fri, 17 Sep 2021 11:42:23 -0400 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CEC0C0613CF for ; Fri, 17 Sep 2021 08:41:00 -0700 (PDT) Received: by mail-qk1-x72f.google.com with SMTP id m21so18636756qkm.13 for ; Fri, 17 Sep 2021 08:41:00 -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=G/b3XiXy0Sb8x2PtTRvVL/40239eORGz1ZL98EY1EC8=; b=fzPGLaz85DNSjT8BpuMHmKOqlTmjcQ0qE3xixhpENWlDBqA/2YO/GHW63weTUvqukt /hTvkY+SrTcPo885plyDeFM72/dI9tOCbng/4AcduL2xIMkCXnVtu7q+T7+a/dD51gTH L7gwVnqTw/HxFpzCGCbsHv4pnw4VgWgPaHdZVIoNesVklyEarxWWcfWZeFjT4RjtbAt0 zKMyHOGfRmRVSf82T/XUmWcFRHrKWywI2DYIEWYrkh+TpOc6k/7I+sqzH4nT9t/FGY5F hAHLlOmKX+HDxFDYattoDa8cZNtr6c5DAixr6gOGgaZ9CCc1QkEkWDxuavEl/4geEn+l 1U9g== 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=G/b3XiXy0Sb8x2PtTRvVL/40239eORGz1ZL98EY1EC8=; b=ZPrb8QUUdiAMIblnNXnxaLl/b4lkBHfrSzhlODnCtL4fUQOnv28INwe0DY4Treg6g/ eaZBBGwLuSOyeusutGm9NSvnIIfua5u96TFV9/z74VLaB30UhHSK1L4v2km0X7SV3tMb opz72skg9MirJERrQoIqgUnFiFdkbAlDyRIWudUB9WuIK+XoYDvFniguI8lSCDt2GgeJ NGuW8+RHQMLT4G8cGmxW1V5p2NQAR3DkfurWoa7n7WfQphZcdr0+DQb17iDlgFvUzUVK INTxl92CumclRihG+e0B2No5i8LnodlEjBaqTEHciPpqyEXDY7hClEt2Zrr7Gz3nRbgb rOGQ== X-Gm-Message-State: AOAM530ZGEMa0vhuFrbzMZRTnHmcb7QPxxoyYjAbBygw1BdhJAQL00DH 3Xf5iowCnPZxMH094tMymDlCnA== X-Received: by 2002:a37:9b93:: with SMTP id d141mr10910675qke.236.1631893259801; Fri, 17 Sep 2021 08:40:59 -0700 (PDT) Received: from localhost ([167.100.64.199]) by smtp.gmail.com with ESMTPSA id l195sm3821941qke.98.2021.09.17.08.40.58 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Sep 2021 08:40:59 -0700 (PDT) Date: Fri, 17 Sep 2021 11:40:57 -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 09/15] drm/omapdrm: cleanup: drm_modeset_lock_all() --> DRM_MODESET_LOCK_ALL_BEGIN() Message-ID: <20210917154057.GI2515@art_vandelay> References: <20210916211552.33490-1-greenfoo@u92.eu> <20210916211552.33490-10-greenfoo@u92.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210916211552.33490-10-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:46PM +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 > --- > drivers/gpu/drm/omapdrm/omap_fb.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/omapdrm/omap_fb.c b/drivers/gpu/drm/omapdrm/omap_fb.c > index 190afc564914..56013c3ef701 100644 > --- a/drivers/gpu/drm/omapdrm/omap_fb.c > +++ b/drivers/gpu/drm/omapdrm/omap_fb.c > @@ -62,13 +62,15 @@ static int omap_framebuffer_dirty(struct drm_framebuffer *fb, > unsigned num_clips) > { > struct drm_crtc *crtc; > + struct drm_modeset_acquire_ctx ctx; > + int ret; > > - drm_modeset_lock_all(fb->dev); > + DRM_MODESET_LOCK_ALL_BEGIN(fb->dev, ctx, 0, ret); > > drm_for_each_crtc(crtc, fb->dev) > omap_crtc_flush(crtc); > > - drm_modeset_unlock_all(fb->dev); > + DRM_MODESET_LOCK_ALL_END(fb->dev, ctx, ret); > > return 0; Return ret here > } > -- > 2.33.0 > -- Sean Paul, Software Engineer, Google / Chromium OS