Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7045648rwn; Tue, 13 Sep 2022 12:58:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR4GsdhUDMFYOvVl0kwa8JHinAA4H9TaNH37nveNlDZUy8mj4u0sQQb3dyPcvz8jTgThBbBj X-Received: by 2002:a17:902:a705:b0:172:ecca:8d2d with SMTP id w5-20020a170902a70500b00172ecca8d2dmr33300771plq.27.1663099104976; Tue, 13 Sep 2022 12:58:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663099104; cv=none; d=google.com; s=arc-20160816; b=ChdcKTnapb4q9QEKUTmDOlnoLeyM10AItfRli7HruZpFvPdJUOyJT6vjDSNCS2/F2v zbBaMzV5EO2z79+ivEdSH5Seyy66GOErq1YB8iXr8M4H7U7Oo19CLTvp31584N8hum6U bZRnv4UkJSIrbeSxsicBkDV//t5Nr8PltE+kNvaWj03MG0yhafcWpTnUEWYqgeHqa4TQ CsHdOUHN7LqPXKDs66usaWItEIHmbDJnu7oG/Y/FI0B5RW7MAg1euQ/zqMqW2yB9Urhh hT1M3frvjfA2vbEf5nffKjpkUy2rzDxIMrrhFdcpKu6tPjxb52Wd4xJILcDI0ojSi3+t NoGg== 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=w2f+yVjhjZz2qVJ8oYN8mZlm6pYdBDlBJJPUx71zKXQ=; b=fMbemGMGyjp2yXsRAwtoJRI4eZwrdYfZvBQS1AE95FtAVOTvolO8OQMO0RU5f14AgT rB7I8snnrV74p0SP7/vg5u9eFnMuAJISxWeviA1SqbBQtLTGJtaWN+DI0AINyZrNgWHg MHmIxAykgJhcg4jEHRI3Z4jLpAnmYyJ8ecCaglabsWokHYD+nqLDQgdlUiMiQ31jGdCs 9/oYXSjDEvWR6v+NwWXv8hoOhivhKN1UtEWF1EhLO5JI/d0B4hExiZO0axvFWON00MGj W6IK+b85xWZLNvSXfRuL2FOMBwG1Qj1tgPrsUpWI7s4lQhxxid2nO3ZRwS7spEP1EKdE WyMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=RiEBhVBu; 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 mu15-20020a17090b388f00b00202d04a9205si7810535pjb.91.2022.09.13.12.58.12; Tue, 13 Sep 2022 12:58:24 -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=RiEBhVBu; 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 S229780AbiIMTaE (ORCPT + 99 others); Tue, 13 Sep 2022 15:30:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbiIMT3Z (ORCPT ); Tue, 13 Sep 2022 15:29:25 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71C4D74DE1; Tue, 13 Sep 2022 12:29:07 -0700 (PDT) Received: from dimapc.. (109-252-122-187.nat.spd-mgts.ru [109.252.122.187]) (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 01F7C6601FB9; Tue, 13 Sep 2022 20:29:00 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1663097345; bh=RCM7cbGa0hbU3izrAQh1wOIWATDaV8057tfGw8XuSMQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RiEBhVBu6XTDOKiYxORq5TuKySq6sD5bfTUsOTHgxxlrZiyQPZ1g8qEdVUfkrvo3/ 9gMYCwB/lv3omcK3N7kLXrP5H8NEvxCvZc52f6t93lGAH7RtJJEPCO+4LedVEjxplK TZ/UYAC+fMDKcujQSJTrA4WVk6efukv1avTK5OuCu+khCHI9OzIPhPi/gIVFwvOJ8v l2mctkO23qEDOCO3GnIw6FU+nPxvx5OC8rjPKbH3nl1sdyj6+exkd6wXLoDpK73a/e Dq2hDhLf+TQSIwwHOZ0zm1Ec1RVSA442NhjH6ZpRTVtJgVSaLguIBHMmTGExeTrxh9 Lt+ByMcLg0moA== 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 , Ruhl Michael J 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 v5 09/21] drm/etnaviv: Prepare to dynamic dma-buf locking specification Date: Tue, 13 Sep 2022 22:27:45 +0300 Message-Id: <20220913192757.37727-10-dmitry.osipenko@collabora.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220913192757.37727-1-dmitry.osipenko@collabora.com> References: <20220913192757.37727-1-dmitry.osipenko@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 Etnaviv driver to the common dynamic dma-buf locking convention by starting to use the unlocked versions of dma-buf API functions. Acked-by: Christian König Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c b/drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c index 3fa2da149639..7031db145a77 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c @@ -65,7 +65,7 @@ static void etnaviv_gem_prime_release(struct etnaviv_gem_object *etnaviv_obj) struct iosys_map map = IOSYS_MAP_INIT_VADDR(etnaviv_obj->vaddr); if (etnaviv_obj->vaddr) - dma_buf_vunmap(etnaviv_obj->base.import_attach->dmabuf, &map); + dma_buf_vunmap_unlocked(etnaviv_obj->base.import_attach->dmabuf, &map); /* Don't drop the pages for imported dmabuf, as they are not * ours, just free the array we allocated: -- 2.37.3