Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2393161pxb; Fri, 17 Sep 2021 08:47:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxq2Uq9diSa7MC2mnVyVx41MxG8WIw3z1IwXxLNPce2EBzIVaB2z1uKkdDYeXrUUaKM/3N0 X-Received: by 2002:a05:6e02:1a28:: with SMTP id g8mr8989230ile.158.1631893674190; Fri, 17 Sep 2021 08:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631893674; cv=none; d=google.com; s=arc-20160816; b=R4/mY5HEYbGiyq4cVrBTGyBau9WhRicvk+zDfFL6hAolnFWts2ksFKJkFroUQaOTLl KCJJBepA7hnvUo4JpcsxpkoHL6H/nSDOYNdCaUUqb8QHTTalZhDQ/ihMWt4UbYsOmpGz psCTW/sPFGCH7v158Kxgj5ojNQs9lMNp7PHxter9CAHkdmSrrjP75agcaerNXnmCjLLl BpGExTmnlvsWA98VF6t9vyOWfA/uPe1xH9eNDjpltlccwWrdLchJ02bIwy5lFapNCGIb i33cnHpT5oyTwfTkoYvZGScYRBZkVj1JSi+wmR5RkhLHBLQsCGH5BzAJ0d+QcUn5Gu+w Zc0g== 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=sD9uOm5tvP8G0xyXDbxUkajObP/tQsvPQSYJ5ZYdDAM=; b=VDGrKzqV+6Qw9UmN6hQT3BP0VrHpz4P+lC/6mExmI+hNURiT9a/+bxVU41WZY/w/8m yorYXOhUBfHY/8kq4aMJUp45G6xWmVkfJXSz6S8T54gc2PJbZXVSIyeWRDM1KIxw/4DM oRSsWoED0e9SNpFcaXKGnwWwqEnyVeqFFWTHWzTZO2zJn3tnCOknQ9wDJlkG+dG0cwAJ HC2RjzufIi2T+J5b8eTQoo8bmuSVKeyDkBsSueQgkv2EKlQUSfgE5Ih/gYi4vTa1q7Ca DRVP2m6Pjbyi4a1bSCy8pZXm3AAx4o0Ii8qzucm8wkN2nmBecvvh52REoLF+Ra9x0ka4 9ulg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=Rg3pQPgR; 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 i20si6048179ilj.3.2021.09.17.08.47.43; Fri, 17 Sep 2021 08:47: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=Rg3pQPgR; 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 S233466AbhIQPnC (ORCPT + 99 others); Fri, 17 Sep 2021 11:43:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230146AbhIQPnB (ORCPT ); Fri, 17 Sep 2021 11:43:01 -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 226FCC061574 for ; Fri, 17 Sep 2021 08:41:39 -0700 (PDT) Received: by mail-qk1-x72f.google.com with SMTP id m21so18643096qkm.13 for ; Fri, 17 Sep 2021 08:41:39 -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=sD9uOm5tvP8G0xyXDbxUkajObP/tQsvPQSYJ5ZYdDAM=; b=Rg3pQPgRu26LSb3Ym25tiFmMLVhLfw9SdEEPoUud66ykQ931PiVOz52pLoXgAwC0ox /mHm2+hTiXHgLGuu8t2OWBPxQeOxDuKiW2UWpQCJgV/9B2iyAFVPcdrDxhJyA8LPkxyJ OVEGgkK3fO0TjncIvsrXlzuOkF9DG2sCzr1V8nefKneQvr08Iin7PI1M/USyeat1+qSV cOlTWgRk5Y/SwKT1Vqv7vzUsbBQS0nxnQuYMU4VQRwxuRpApDeTEvusujkPUACV+t5Rr PqWzgleLdsIFdM+KfFpZGV0L6vGeeHDCvPQNK/XrwqX+BsWpcls4hgKiAqKiOlKNQk9K vi7Q== 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=sD9uOm5tvP8G0xyXDbxUkajObP/tQsvPQSYJ5ZYdDAM=; b=E9ColUDoyrdHMhxFtOaauU5CdF1CtdOjugx/TvfMyoQyTZYM3W7nt328saJL2s+NRQ DYqUcONPO3GncN+ucpDTWXPcUjAzg5uabp4gGeJLpyVfE6PmURAs0PX9tPXbkwhWkjzs eK0gMNj/v0tV5S1PrMXt+fXijZz3E8VBowB0BzOuzLw9S9k0I16dNgiGezT4WOuGDI5H Rr1FadWiRK2un0wYC51+VOkA0gnWQ6xTpFKwa44M+9xSuQyrjoyU1LQPwgS3hBDh3a6n XYPvVZ06I+R3Q86yXZfSjJq/qUM8lox1ZCNxutA7B221UtPXwMepp5xuwNUXII1lQkY1 McOQ== X-Gm-Message-State: AOAM531WVsUwj2yAd0VJLnb6UwIxWyJpbjUqb4quc4qkCMfN/9GDCWBF XqzgYpEjh9GutUppyAYjgvpkbw== X-Received: by 2002:a37:a87:: with SMTP id 129mr3162058qkk.448.1631893298377; Fri, 17 Sep 2021 08:41:38 -0700 (PDT) Received: from localhost ([167.100.64.199]) by smtp.gmail.com with ESMTPSA id 9sm4122038qtz.83.2021.09.17.08.41.37 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Sep 2021 08:41:37 -0700 (PDT) Date: Fri, 17 Sep 2021 11:41:36 -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: <20210917154136.GJ2515@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, with that, Reviewed-by: Sean Paul > } > -- > 2.33.0 > -- Sean Paul, Software Engineer, Google / Chromium OS