Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2645909rwi; Tue, 11 Oct 2022 11:18:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5thwtXnky4PxQlGaRub4INILtjeiRq981rIWjFC+Ls92oAvF8twI1PoilXwcU3GP/l42ai X-Received: by 2002:a05:6402:26ca:b0:45c:9cad:1602 with SMTP id x10-20020a05640226ca00b0045c9cad1602mr1131470edd.325.1665512311512; Tue, 11 Oct 2022 11:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665512311; cv=none; d=google.com; s=arc-20160816; b=TEQhpb0WRlW2JS+4budRoZJ/nBWT8UaQ7Wteo6Njce/WJaK+9rLuooDfRU8m0trexm E3WefMYEUstn2zClvbBeRugs3eW6jIvGzwfle/kwTb7oXSLc45L3zQk4Mtz8Kdi2n2i7 sUEEarXs+/X5Nx6OkHMVlH4xl/itdGoxTiW0eknx0MTwqbKfO48JLHI/NuyLEZsrBobR TGbfF9IFr2jgjGCGWO8giw1t2miczEYmggGoZOqg1MCI8KAwUkfML8aV07iN8h2CfpVf 6RRaRhBC54qdnn1X0x4ad4HaFoHNNUAv431v+Q5H5BODSulF2rsIkp3iQPe+knvtjL/x dfsQ== 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 :content-language:references:cc:to:from:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=Dei/NFBhBCUslsRg1Tgb9i8bps7Xsy9G6ljhTGOOw2Q=; b=DuDumT3oX7HGd3ffv7eRJ63fj9CTyvRL8Z+a4aKUBmNVSp/kcBDb6Ml579FhiJzAeL 27bNv0RvoN8Vd/3jnS05oUjalHSc5ysGq+eFnVvWIPlQkSq1PfjdfUxEFry7+4wwIQQv z7y2wT7oLVPXBw7/3Gc4lBOJAAfsAc/JAUBYg7bcURo8AUKpqKGhWWSjFvFZd5KufDJe Nr3ZIhbz3OwWauDMqKDBo1D1s9mSJr6rd+KjD6I5DpbhU3vL+ZSPdGa19hYEoOi8YH3f qjdhs0U/B5rfn6X84Ra3szFaT8WHN9IQjW69PfM+W+wiy3SYWWp72kbRKJK9gmdwF9T0 59KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=j9FFZ8t9; 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 v4-20020a170906338400b0078d40f7ef1fsi13448025eja.330.2022.10.11.11.17.53; Tue, 11 Oct 2022 11:18:31 -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=j9FFZ8t9; 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 S230349AbiJKRgI (ORCPT + 99 others); Tue, 11 Oct 2022 13:36:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbiJKRfu (ORCPT ); Tue, 11 Oct 2022 13:35:50 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9407595AD8; Tue, 11 Oct 2022 10:33:17 -0700 (PDT) Received: from [192.168.2.145] (109-252-119-114.nat.spd-mgts.ru [109.252.119.114]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id BECC86602358; Tue, 11 Oct 2022 18:31:47 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1665509511; bh=FbjwvyBn8Jk5nWNvSwUKiVg917Dtcke8nkTgpCuxGHg=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=j9FFZ8t9+K/yyb3uyYTMRMmOZwbPmrFNo2nLiwt+NaQZrbzcY4YA8uPgvq9KqKyKu qfSxAQSs3xdybENOLmYyju3gm2jzJes8ytBnen1UmrG70xGfL9X93PKjnudy4jAGU9 gl+8JqZyTgX4VAz30gatLmK/w1aZ0uiSfREFVnx4BKEjtHICZB25vE8HLEsmHDTqCu yIpeJVFLrAb6mYjYFS9OIEMj1EcqLBHaz1mjNnYKGPhtHbHH9fs9DzhtYGqeU92wP3 bGYgN3stcLAlbVz256MpW1wDubM6bGRxeP+1wxa5ae3PSGyqaSwxKah/5yl/VkpzQm rYhgIy9tlB8RA== Message-ID: Date: Tue, 11 Oct 2022 20:31:45 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH v6 00/21] Move all drivers to a common dma-buf locking convention 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_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 , 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 References: <20220928191600.5874-1-dmitry.osipenko@collabora.com> Content-Language: en-US In-Reply-To: <20220928191600.5874-1-dmitry.osipenko@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 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 9/28/22 22:15, Dmitry Osipenko wrote: > Hello, > > This series moves all drivers to a dynamic dma-buf locking specification. > From now on all dma-buf importers are made responsible for holding > dma-buf's reservation lock around all operations performed over dma-bufs > in accordance to the locking specification. This allows us to utilize > reservation lock more broadly around kernel without fearing of a potential > deadlocks. > > This patchset passes all i915 selftests. It was also tested using VirtIO, > Panfrost, Lima, Tegra, udmabuf, AMDGPU and Nouveau drivers. I tested cases > of display+GPU, display+V4L and GPU+V4L dma-buf sharing (where appropriate), > which covers majority of kernel drivers since rest of the drivers share > same or similar code paths. All the non-drm patches have been acked by the respective maintainers. I'm now feeling comfortable to take this series into drm-misc-next and going to do it later this week. If anyone have more comments to add, then please do it now. It won't be possible to drop out patches from drm-misc once they will be merged. All further changes will have to be made on top of the applied patches. Thanks to all who reviewed this patchset! -- Best regards, Dmitry