Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1239150rwb; Thu, 10 Nov 2022 13:14:31 -0800 (PST) X-Google-Smtp-Source: AMsMyM6vYLAPAzdvUmMM9792OeELOvjaxMw63nx6jmMTKy2b8rSlhieyZ5i7PI+7eaJOwdmGdi/J X-Received: by 2002:a17:906:86c9:b0:7a1:1c24:e566 with SMTP id j9-20020a17090686c900b007a11c24e566mr3854806ejy.360.1668114871191; Thu, 10 Nov 2022 13:14:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668114871; cv=none; d=google.com; s=arc-20160816; b=XIVofKMAIt0lbYOzzx2oOJoMjLy4KLmz15btZqfMIXO1D3NAFOwzjAEvOqGv0AJ1kj tXdOAOKt2CevMIUluD4zOa90p8Df4eihs495beIDtjpXGMtBK/VRozdx7Y+6ClBeGHOi XvHw7DNne24sUVz8YEVzK/vVQVLvlUlDeSGOLIjBsPqdHEtWPQ8B+ciffm3HkVNJpzeC lZi1ahJTvdyfgEWMbJZnxBcF4C2tfpdhQ+wEQoL9/ldhbinwn50vWj9qst88mGL5TF8Y CXNERfGovbN9GIXPLBrowy1I8aqVHs0gZXlB9HsnTvBzoIQzZL3FtJdPZVP5x5qulYV+ jPsA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=VzPs/vncdGcdKZ6cLqNJd4X2oIpi3T0hBbcv7zAGsGE=; b=0rOwnyaFsMnF1PFTYYYXt1to1aO0M6jlWr9xNFfK3RY6o2ddo2CZeGXaFaEQOdVM3c 5bLReuOoHTBqWSCZHpx75qZRL23uNi6bvdzkjkku4lQPFEpbfn/F61BHcjeiVpVLyff5 3ouW7YwMVnO0nNkKGZrD2zk+gRFRARASOIwTyOZUIMm4XsSD5bEOHAy/llPTKIh/Gtus N0sVZEFQ3Ntn0V6Pvz7D92PlJ8MaIeDV/CX4ilwI5LgDn+fEIGKpw3PPpcqbMZFu76aJ AqMy2tjyYYYnRdPIrwWxJfsMkTbhIuAmNvfmvTRMaT/DgbSJ/2CjbczUzokLywb7+uy3 8WhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Pj5kMSE9; 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 qa7-20020a170907868700b00788361f96a2si301689ejc.776.2022.11.10.13.14.07; Thu, 10 Nov 2022 13:14:31 -0800 (PST) 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=Pj5kMSE9; 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 S229790AbiKJUOy (ORCPT + 92 others); Thu, 10 Nov 2022 15:14:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbiKJUOv (ORCPT ); Thu, 10 Nov 2022 15:14:51 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAE4E43841; Thu, 10 Nov 2022 12:14:50 -0800 (PST) Received: from dimapc.. (unknown [109.252.117.140]) (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 19FBD660035C; Thu, 10 Nov 2022 20:14:47 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1668111289; bh=1CE2XRZ5gwUkawW6nA0IR/hqxUlaRPTZF6KuqbnAdK4=; h=From:To:Cc:Subject:Date:From; b=Pj5kMSE9GqU5pIod/hV/hQiqGrn1Pc82jV7zEoc3SPd49PVIzcSZtKB39PBIrJQfb slEMr55FoMedpN9OLyjLQUhkBaKsaedxt8g861x65hMcOuNc1EZ0tenq9K/+lRFSCv 6+N7I7KZHrq6w8JR7W/PkV/fbamPiDjKTFEBCZ843qXcAqj4Aske+v6OrVaT4WmHEn +O+YE8LCEqryYWmjsWquLHzHT7NNVjQsKTnNxMZ8OH4Zp3fxvBjFGES+SX6W+AtGfj LNmCjLz5cLOmPsp1J1pRKVECoWq3h3DH1kLQLg2LFr/VwQNJ3nRGXV9Tnidn22xWvB Ogmwwq6CY1ZRQ== From: Dmitry Osipenko To: Sumit Semwal , =?UTF-8?q?Christian=20K=C3=B6nig?= , Benjamin Gaignard , Liam Mark , Brian Starkey , John Stultz , Gerd Hoffmann , Daniel Vetter , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Thomas Zimmermann , Tomi Valkeinen , Thierry Reding , Tomasz Figa , Marek Szyprowski , Mauro Carvalho Chehab , Srinivas Kandagatla , Amol Maheshwari Cc: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-arm-msm@vger.kernel.org, kernel@collabora.com Subject: [PATCH v1 0/6] Move dma_buf_mmap_internal() to dynamic locking specification Date: Thu, 10 Nov 2022 23:13:43 +0300 Message-Id: <20221110201349.351294-1-dmitry.osipenko@collabora.com> X-Mailer: git-send-email 2.37.3 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 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 Hello, Recently, dma-buf got a common locking convention for importers and exporters. All the dma-buf functions were moved to the new locking convention, apart from the dma_buf_mmap_internal() that was missed out by accident. This series moves dma_buf_mmap_internal() to the dynamic locking specification and updates drivers that support mmaping of dma-bufs to use the debug-assert of the lock. Thanks to Daniel Vetter for spotting the missed function! Dmitry Osipenko (6): dma-buf: Move dma_buf_mmap_internal() to dynamic locking specification drm: Assert held reservation lock for dma-buf mmapping udmabuf: Assert held reservation lock for dma-buf mmapping dma-buf/heaps: Assert held reservation lock for dma-buf mmapping media: videobuf2: Assert held reservation lock for dma-buf mmapping fastrpc: Assert held reservation lock for dma-buf mmapping drivers/dma-buf/dma-buf.c | 7 ++++++- drivers/dma-buf/heaps/cma_heap.c | 3 +++ drivers/dma-buf/heaps/system_heap.c | 3 +++ drivers/dma-buf/udmabuf.c | 3 +++ drivers/gpu/drm/drm_prime.c | 2 ++ drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 2 ++ drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c | 2 ++ drivers/gpu/drm/tegra/gem.c | 2 ++ drivers/media/common/videobuf2/videobuf2-dma-contig.c | 3 +++ drivers/media/common/videobuf2/videobuf2-dma-sg.c | 3 +++ drivers/media/common/videobuf2/videobuf2-vmalloc.c | 3 +++ drivers/misc/fastrpc.c | 3 +++ 12 files changed, 35 insertions(+), 1 deletion(-) -- 2.37.3