Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp666558rwe; Wed, 31 Aug 2022 08:59:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR7e1lcNHICC6p83h8aojAK3ImSD+w44Y/EeAezbQ0jAx84DM+TW0jErEaAwTlhi4w/2LiiP X-Received: by 2002:a17:90b:4acb:b0:1fe:212:986 with SMTP id mh11-20020a17090b4acb00b001fe02120986mr3873879pjb.19.1661961576335; Wed, 31 Aug 2022 08:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661961576; cv=none; d=google.com; s=arc-20160816; b=aO7nFk+jsY9tXxQ7mnPg+W6XibRdv4PjApeflpdKFyVZTzoyOhTMLmXVj/bWLB4ake x3wYMsyPQNY9WNFdhTnDAX3g7l4Wn3mjh5PrYKajk4E0UE8Tjhpfwfgp0woXOrudEJap snpPONEIcqqRyJFNEGtf7wCqUGfoJOwE08wslqRy1cVQE7Fvzn6jI5ckzi2Zi00eK42o sZo//CJ/7/0C6DmNfoywldHFHvgKeWzlCrIXhDlm9ZZxpIMwjRhwWzs8ny4TIwZqPZ6v Ge7eZZH2/J4EuOvYfYY4JqOMgsPVILFI6j2FxSTEi3qmfgymV0SidBaGwWOcUugkSLQ4 sy8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PmllgPf/fu6CGiwatL966LYp3GsIBZpOJ8iS+n9jwzg=; b=XFSaAUaq7oWy2dtMEv9c8PqHdUVbNefcJuWJNed9XbYp/DLQdkkSh2gpC7jd46Kxr6 69u/E2BbiCHJLOR0hEZga5KDl/0+vtKPWryUV/J72+N9sjwPkSp/EA11Qi22pWiDeWyh GHKZk5Lm9GD4vfRE97bn5DFdzM/H7dgY911isFq6G+3HfuFUtEwmhnfd2jbjI4VJ6R8y rFw/BER5/YL1Hyo1tJXwA7JoLYI6tAIO1w8gqKTMy6ui7blKmb6ZR98Evp+OG8XaxoPZ uE/ZR9mrg5WVg6+bEcKQwitsj4EsvVYGwMEyexNzx/MtOJlo3kzrxxlD9Vw35F/37NFo YnlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="Ccr70/2w"; 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=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i25-20020a635419000000b0041beb6e9d14si5393469pgb.525.2022.08.31.08.59.20; Wed, 31 Aug 2022 08:59:36 -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=@collabora.com header.s=mail header.b="Ccr70/2w"; 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=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231310AbiHaPkX (ORCPT + 99 others); Wed, 31 Aug 2022 11:40:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231648AbiHaPkE (ORCPT ); Wed, 31 Aug 2022 11:40:04 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6467D9D40; Wed, 31 Aug 2022 08:39:38 -0700 (PDT) Received: from dimapc.. (109-252-119-13.nat.spd-mgts.ru [109.252.119.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id 7D3BF6601DE6; Wed, 31 Aug 2022 16:39:33 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1661960376; bh=ZOrcHb8zKnHR7kmehtqy6q5w2hwExe7YBoS68Sg6S1A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ccr70/2wDaLY8cFMMlFXNiDafzMzIWMa6RCnaLL9hcGSSNP+mKRPGG0W3TvukGOZJ b1op3JTPaygecFKZHb5o09JXoYL9zbfk6EdYptOtVkAy332zUbGGJYmpfthxB2KLwJ mLgzUkHTsRXAGBJJsGcmyuRfPetvZ9C5D3jhnXmJeDkgHwzqREnCMdBE5DJxQIN/4B M1yZfCcpplezXhmxCPxEt4qgcHXaQDYDgWGoni6M2NxlI20rV+zg9rC+lVChEvZZ2b SBZEkde8f1BxFGkmlJshtd+3W4jEUtEEniVzV2AZviWcWR/q55coqegH9RIDC2wxXZ 7bqa8H7OLCa6A== From: Dmitry Osipenko To: 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=20K=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=20Hellstr=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 Subject: [PATCH v4 07/21] drm/omapdrm: Prepare to dynamic dma-buf locking specification Date: Wed, 31 Aug 2022 18:37:43 +0300 Message-Id: <20220831153757.97381-8-dmitry.osipenko@collabora.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220831153757.97381-1-dmitry.osipenko@collabora.com> References: <20220831153757.97381-1-dmitry.osipenko@collabora.com> MIME-Version: 1.0 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,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 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 --- 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); -- 2.37.2