Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2701420rwb; Fri, 11 Nov 2022 13:24:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf70A5UWsTloZP1YLwY2Qj2krMDrKO/trHs9ksD6qoB6xS/it6oJRUwlYAittfwGcJ3UCzoO X-Received: by 2002:a63:181e:0:b0:470:f0c:96da with SMTP id y30-20020a63181e000000b004700f0c96damr3112616pgl.544.1668201871544; Fri, 11 Nov 2022 13:24:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668201871; cv=none; d=google.com; s=arc-20160816; b=Xzp5uTtoM+Au0BmjynjCufXgxSQZbBSwhbXzqe0nk9L7CMW9h41vNCYS5QacYm5Mx/ zcLzqF961YosiNdaD+Hq0bL/uLYwEhsHK649depZq1VBFuitrX6Y5HVNbxncHKkSLFYX u4u/IoPcOLcXxmfkiRQkQJ87wnm7XUSrsGLFs+wB//mohuqFux0tp9stthTEIHCnFYBH /jU2gKk2Oy3GDh60m5uDwLrDbLSizObQXN/Bpa6bLDZudz7O11dakpkVraTE+0r9D245 lD87EZOCxXXKGBdPjMkRAYqxZPDoHRANLW2V8kJMOFM3vwxEd3BCabQBqRcWFce704Va s4VQ== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=qJErHKx2mSsvBavpCOHPodwjs3ZmpCRTGOR/0CkS+v4=; b=dY7bSB7IKDuPhQUhB7xGCQwlQn2dQ5KA0MzAtndBgk43dAYQ46I1N4+bwTcGtvfxZ2 Bhu43Gy4xE5HZvWo558GiwBBYYpOt4W37cyXNbuj0jZd10bORGB9JkbM4diMG5DT8QS/ n8vGu9j85MtU43LiBOyu2QIrUnYPaGt/0HCxZdB+ihR96SVlx2yqCEqJdHCEeNYaB3rm dUd3+F/OY+pwMtxRuioD+gjY5CJQtTYLmLbkzcFH9Uh/I49DehBh9wcPkcigC8A30dje jJXf3KwAZ6Kc43dGohUDCQtum+pDmi+/MjlYcTOnAdtXty5YRDzyHCY5M45Ko5Fhj6zE jgXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kTzmPkaJ; 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 p2-20020a056a000b4200b00561cb07c77csi4029734pfo.232.2022.11.11.13.24.20; Fri, 11 Nov 2022 13:24: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=kTzmPkaJ; 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 S234253AbiKKU75 (ORCPT + 90 others); Fri, 11 Nov 2022 15:59:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231300AbiKKU74 (ORCPT ); Fri, 11 Nov 2022 15:59:56 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B7B77BE71; Fri, 11 Nov 2022 12:59:55 -0800 (PST) Received: from [192.168.2.108] (unknown [109.252.117.140]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 5CDA66602A68; Fri, 11 Nov 2022 20:59:50 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1668200392; bh=TrKdFBPru086RSsfc5wIzyFVxFZ3a1YCkJzhICjKkFM=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=kTzmPkaJO6D9W0IEssnpVYn8a0dml3ZRppn1qMWG4J42UsMw0cTQn/a79AsEqsy6X QMrYQYyC8OxRUVB5zQFJrKCVAXk0bJ8lzcA/P1uBAGVtFYj/6P3E36H7NotZfUXQlA m2J00IbXu60OvZGQx0RMmb7M4IIYhWVFKyaPRVOkHD/eqZ5Wfj3ySQg/WI6Ad+DAef nPvkNldq/VIa3A2nmhJSI7PnY0IhPvdxhv49NeWamYwI+4Mfs5X4K69Hy0Kql9cqfk 7XBjipx8WNWslnDHQMpiUXQCpO0KfknfBszxAN5doYyGy+65O+6Y9l+KzgTo5o0jdg 3B3qBv+X+50cg== Message-ID: Date: Fri, 11 Nov 2022 23:59:47 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v1 0/6] Move dma_buf_mmap_internal() to dynamic locking specification Content-Language: en-US From: Dmitry Osipenko To: Sumit Semwal , =?UTF-8?Q?Christian_K=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 References: <20221110201349.351294-1-dmitry.osipenko@collabora.com> In-Reply-To: <20221110201349.351294-1-dmitry.osipenko@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 11/10/22 23:13, Dmitry Osipenko wrote: > 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(-) > Applied to drm-misc-next -- Best regards, Dmitry