Received: by 2002:a05:6358:579e:b0:115:34ad:32ad with SMTP id m30csp13752rwf; Tue, 4 Apr 2023 17:36:19 -0700 (PDT) X-Google-Smtp-Source: AKy350ZlFAwP55G0wmUEpJ+wby/ab2oVJqkWHbuweax90tAG61qJJLbbPTYJ13IydDqMLrJ+FOMA X-Received: by 2002:a17:906:e204:b0:947:5acb:920c with SMTP id gf4-20020a170906e20400b009475acb920cmr1137886ejb.34.1680654979169; Tue, 04 Apr 2023 17:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680654979; cv=none; d=google.com; s=arc-20160816; b=McYpPwN+eOJcg0eSKBFE2RDTWwKv7XzlG+VCAjNQOXYk+bYWpx3UOUqkE3SFwq9HKC 6VOhhgVQBGe+wsg0lVyxpU4YgBY58sNhOP/fNGHwr8XzAwXDo2/lRcclq8hPWY+zhaQ3 Tv5W9a/VLaf/yL9qjy8p/QQqI64gg+YqksKEz+ruS2AXMMTRh04gOPDEeQiiHQoliNC+ aDaUJcjIhP02eZIr5dyuKhZRgr4heXR6NAeMsPpvn8vQ3wyJOH6tmE1CIRZ+Usj7dn2D aZKbeP7EIfoA1GGP/VWuN29oza0GWPSFlceB0YYNii/PuZ/P0t5AOBovxP93cyYCpM75 jc1w== 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:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=bu+u6tye5LrMJVAJyDTzkaBEUZc3/U9bRBBhbg4qmlA=; b=PvfhHJ7PaDWA1l9HU5AIn859ZrdASgHUVxz8N0He2qM1uBWoQ3Aw6qKH9wwjUSzLuX +YXIatIt3Yv5lbUAh7RFtDbcSb3F7KOsZVRnoDQ7mwLAV6kSVF7/He6oSOJUWWhr1G1m PSL0XvOa0RTu4wXqoQugBZkwZpjnfAFk55zvp9eN0JK5VHZO1bnEzRo23Vv6q1MjT9jX MQR+Cp1bAPNKHl9rXNOsvgQgA5uG2DtXVgDUZH91ec5J7k+VbqZ+yx7ZthqnZeVjt0t8 uaDDbcQo7PFVgDvNDSS3ahh+IOlOqKpd6TtjvnQVrRayWLsW85nltm8qPf0yokjfWUpz 390Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=aDnntxld; 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=QUARANTINE sp=QUARANTINE 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 v26-20020a1709064e9a00b00931ac4cb302si7312104eju.948.2023.04.04.17.35.54; Tue, 04 Apr 2023 17:36:19 -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=aDnntxld; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236628AbjDEAdp (ORCPT + 99 others); Tue, 4 Apr 2023 20:33:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235609AbjDEAdo (ORCPT ); Tue, 4 Apr 2023 20:33:44 -0400 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 C982040FB; Tue, 4 Apr 2023 17:33:42 -0700 (PDT) Received: from [192.168.2.153] (109-252-119-170.nat.spd-mgts.ru [109.252.119.170]) (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 28F00660315A; Wed, 5 Apr 2023 01:33:28 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680654820; bh=via3dJkBW0Q8Yv2lNNPhM1xz+EXuwPR73o7cexB8slY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=aDnntxld9l5U1838pxs7NIC4zlfcPtaKCwF2NGov7MOFh4qL466qI5WvAOWi6K/p+ ZkhfEgrvEKpMEAEWNeA7+GiBxa7JYxR6fyecM+semPnPuQACmYxaGCmugo9Vqkyj3n TQAGZC8fpSAaeF3FJbLOWfw3N1n5vgRXhihKtWuKAGqn5BtzqJ0qQUiTihANTbojgg DHjAQGEVYOV2cTUTTPSllrvfZEYWoAokSc+lIt5KXU7UGGB6hiyPdXEn5ssBoxrSVS RQ8UUiSIQrVm2QmeQgmDwrKAXz4J2Gt2o2A//CeZjkd23tpyvvZJfu3pHQ/4RTUZZw nnt2kzHwFxcGA== Message-ID: <91788325-5050-9cf8-9246-5496d9db4df3@collabora.com> Date: Wed, 5 Apr 2023 03:33:22 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v1 5/7] Revert "drm: Assert held reservation lock for dma-buf mmapping" To: =?UTF-8?Q?Christian_K=c3=b6nig?= , Sumit Semwal , Benjamin Gaignard , Liam Mark , Brian Starkey , John Stultz , Gerd Hoffmann , Daniel Vetter , Jani Nikula , Arnd Bergmann , Greg Kroah-Hartman , Thomas Zimmermann , Tomi Valkeinen , Thierry Reding , Tomasz Figa , Marek Szyprowski , Mauro Carvalho Chehab , Srinivas Kandagatla , Amol Maheshwari , Emil Velikov 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: <20230402164826.752842-1-dmitry.osipenko@collabora.com> <20230402164826.752842-6-dmitry.osipenko@collabora.com> <7854897f-67f8-e82c-3edf-e8ef923d2474@amd.com> Content-Language: en-US From: Dmitry Osipenko In-Reply-To: <7854897f-67f8-e82c-3edf-e8ef923d2474@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 4/3/23 18:17, Christian König wrote: > Am 02.04.23 um 18:48 schrieb Dmitry Osipenko: >> Don't assert held dma-buf reservation lock on memory mapping of exported >> buffer. >> >> We're going to change dma-buf mmap() locking policy such that exporters >> will have to handle the lock. The previous locking policy caused deadlock >> problem for DRM drivers in a case of self-imported dma-bufs, it's solved >> by moving the lock down to exporters. > > I only checked the TTM code path and think that at least that one should > work fine. > >> Fixes: 39ce25291871 ("drm: Assert held reservation lock for dma-buf >> mmapping") > > This here is not really a "fix" for the previous patch. We just found > that we didn't like the behavior and so reverted the original patch. > > A "Reverts..." comment in the commit message would be more appropriate I > think. Ack, will drop the fixes tag in v2. Thank you and Emil for the review. -- Best regards, Dmitry