Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp369494rwe; Thu, 1 Sep 2022 00:20:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR6DHSQ4MulJxgglcy3uSt6dtiRa8mnIJmMfuGL0dcCkKtr+uJEn3Sp2t/gN7kFggXU3WmbT X-Received: by 2002:a17:906:8475:b0:740:2574:1f04 with SMTP id hx21-20020a170906847500b0074025741f04mr519656ejc.394.1662016823496; Thu, 01 Sep 2022 00:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662016823; cv=none; d=google.com; s=arc-20160816; b=vvZ2Tfwjxv2Nq0Kpz/P9+JfUdS0WNmbSHf60vysflGFlB880uyLDqC19C0lCBWS2Kj RhOIOsoHtAQ6OU5IHcWqcVWYBKmLSknmLLEUgtsqTAMuBc24NPcGhbj3i74b5mmLGGJV e2i8iC7QotEZo5pq2MnteFgFopaefIIKkbbxkkVhP6y8e3P2i/7iJhzRL/g6OQEnLn6+ ACYmPnx0cOmEyNF7Dgfqra0zwD1emUP8z+b6q70Vnz7lMi/lpffv3/3IhJuv5b1l+HMl iQf1lF9YWTHv73TxTVs9YbF0rtsgmY21ga3T/Yd1s2geW3el1u07wM7uZ0gdR4kNgO3M comA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=++zrN/rWVjY3ex9jtOllxTCInKN3pkXs9YkUhtChz5k=; b=u7bNvM3qYMWsND5qmYUILT9oJOidZEPauKIEfvomu2qmdnEwv153/6raYKuysrjecI uY4xCAGQToDv9elDaEOVtBDCriSi0NoLtuYs2X4NacCzkeFgbkp+0i0yL1TC/VseUCn/ Az0HsKXrCWoi/WSznbb+Fr1bKP/J1pQgh3SF3vxnK1UF8BolK979UMNlpWtZ83p22cTe mSDOySHAFE5ks81P5rT3ZsEOpW16oQs8VTKXT9PtbbGaOFb0nKA1w0kgKChrzRsGbUcI 2jZAfXc5HBCfHBiej3eGZOF5HUkqBlY0qYLGbQeLDMNJxMDPETmto8PuIzQSXL9lq73L 8QIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YnX8YJAi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e15-20020a056402190f00b00447abccda64si1552767edz.422.2022.09.01.00.19.57; Thu, 01 Sep 2022 00:20:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YnX8YJAi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233178AbiIAGpz (ORCPT + 99 others); Thu, 1 Sep 2022 02:45:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233207AbiIAGps (ORCPT ); Thu, 1 Sep 2022 02:45:48 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3214B07E5; Wed, 31 Aug 2022 23:45:46 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id b16so21255411edd.4; Wed, 31 Aug 2022 23:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=++zrN/rWVjY3ex9jtOllxTCInKN3pkXs9YkUhtChz5k=; b=YnX8YJAiNhDBYXCKbeG4LzILhSuYf6l34DOfoXAV+2BNNiqDejkT1JhCOqk85bbLvM zoR2Hcge5b95X53WQMadn1yVJwPDDawbp0y0RILXXbQrJ05xxfQJ9LytnW8uFtfxdomX HQxLEqSY0zmbjFH5qo+HIVqX11AzLuaXZXmMVUbkcVJyin2bh3p19cTXD3ijCHkGg3JQ QmozsU/gGAP4TCFY028A4kfd3jsdpgVW6S3Vuu6BkOJHrMWqfM1ne9IOHZplONd14kYK 3KjcL+VdwhlqnsHbUMqkKTTGVJncmoWHNfx6LnxwRuQcifdVoguXtSILMcx3/MwDW/MA kCEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=++zrN/rWVjY3ex9jtOllxTCInKN3pkXs9YkUhtChz5k=; b=i1f17dvN2MCEGwYHtVFoQq1aRH+sY9BxWQNZ5YaMcSXDrLlCF2kmYpeD4myPiTC6Ld /olIMykHLWU1AcW99ZTw1sSk+QOi9OfI+V83TbM1+/SZ+THz/9IuGsvW2PIVdbEtR3y2 7kA1B+LzHHyF60Mymio4TvXd1FTrVcmU7zdHG8hVGVaJHPubbVjx84NI6wIZpc5CBUvk 8xjfg4oulnv3gH7Xf3SkG5EzA74EzeJ4cEQaEf2Gur2bBdQRNqYJGLxVt38e82jZiPDJ ImwvDNveFUqPbU/W57fjPNmnrq+HQ5QkRAcqW3kWeqo9xmS1Yn10aeM0FDqNaOe+dR39 mWsA== X-Gm-Message-State: ACgBeo08MA6u71mYpQ0O6F9qQAY5P3ntgtQN4z7WEcAq3s3j6Hr2vi2D mQfXa2XY6gpPnLHlEr5uwusce8oYEDBalA== X-Received: by 2002:aa7:cb13:0:b0:448:3759:8c57 with SMTP id s19-20020aa7cb13000000b0044837598c57mr18470629edt.8.1662014745147; Wed, 31 Aug 2022 23:45:45 -0700 (PDT) Received: from [192.168.178.21] (p4fc20ad4.dip0.t-ipconnect.de. [79.194.10.212]) by smtp.gmail.com with ESMTPSA id gt23-20020a170906f21700b007306a4bc9b4sm8019660ejb.38.2022.08.31.23.45.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Aug 2022 23:45:44 -0700 (PDT) Message-ID: <06cad130-4b0d-a894-d444-21b5ee5b5a63@gmail.com> Date: Thu, 1 Sep 2022 08:45:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [Linaro-mm-sig] [PATCH v4 07/21] drm/omapdrm: Prepare to dynamic dma-buf locking specification Content-Language: en-US To: Dmitry Osipenko , David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Daniel Vetter , Daniel Almeida , Gert Wollny , Gustavo Padovan , Daniel Stone , Tomeu Vizoso , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Clark , Sumit Semwal , =?UTF-8?Q?Christian_K=c3=b6nig?= , "Pan, Xinhui" , Thierry Reding , Tomasz Figa , Marek Szyprowski , Mauro Carvalho Chehab , Alex Deucher , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , =?UTF-8?Q?Thomas_Hellstr=c3=b6m?= , Qiang Yu , Srinivas Kandagatla , Amol Maheshwari , Jason Gunthorpe , Leon Romanovsky , Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , Tomi Valkeinen , Russell King , Lucas Stach , Christian Gmeiner Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dmitry Osipenko , linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, kernel@collabora.com, virtualization@lists.linux-foundation.org, linux-rdma@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20220831153757.97381-1-dmitry.osipenko@collabora.com> <20220831153757.97381-8-dmitry.osipenko@collabora.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: <20220831153757.97381-8-dmitry.osipenko@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 31.08.22 um 17:37 schrieb Dmitry Osipenko: > Prepare OMAP DRM driver to the common dynamic dma-buf locking convention > by starting to use the unlocked versions of dma-buf API functions. > > Signed-off-by: Dmitry Osipenko Acked-by: Christian König > --- > drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c b/drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c > index 393f82e26927..8e194dbc9506 100644 > --- a/drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c > +++ b/drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c > @@ -125,7 +125,7 @@ struct drm_gem_object *omap_gem_prime_import(struct drm_device *dev, > > get_dma_buf(dma_buf); > > - sgt = dma_buf_map_attachment(attach, DMA_TO_DEVICE); > + sgt = dma_buf_map_attachment_unlocked(attach, DMA_TO_DEVICE); > if (IS_ERR(sgt)) { > ret = PTR_ERR(sgt); > goto fail_detach; > @@ -142,7 +142,7 @@ struct drm_gem_object *omap_gem_prime_import(struct drm_device *dev, > return obj; > > fail_unmap: > - dma_buf_unmap_attachment(attach, sgt, DMA_TO_DEVICE); > + dma_buf_unmap_attachment_unlocked(attach, sgt, DMA_TO_DEVICE); > fail_detach: > dma_buf_detach(dma_buf, attach); > dma_buf_put(dma_buf);