Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1390255rwd; Wed, 31 May 2023 13:16:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4u4K+nLuKhhypUIp3TEvO8gCO22cokZ6YduqxozJ3gv9HVWr6FcOxxamlYcINGUpM6fe/m X-Received: by 2002:a05:6a20:144f:b0:10f:13bb:5d4f with SMTP id a15-20020a056a20144f00b0010f13bb5d4fmr7030308pzi.2.1685564164399; Wed, 31 May 2023 13:16:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685564164; cv=none; d=google.com; s=arc-20160816; b=O0BttD2bVClyeTjQsiXMXzK95C7Tb+2AwcCHB3uMtHKgBcVUVB5lMY6NUUmBe15Xrf fOXyzVQON5Pb2NTqUpso3LodWoLiC4iyVq8oKDc3Bgcc5CyOlzfLDTdayEZhbArXnVEz dgno4YAYHviuKXoRAM2P5+fc/XNQwi6AOwZ79OANxiKUvPsMhxxsCUdQEv4NArpyif0h CYYcyFy/HELe7HpvVHjNRrU17Q8V2193gnqDOrPjSIrymy4wcwEh9hgqi6tUGfPplnhU ro21bdkeRIVJcuCWxf8dbwY54CSx4l1VY5UOstKM3k3izC8OReUanfvJzHGHxKwaHWll aSlQ== 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=ve3pcDcKSIt22gNYTNO6rDYVmKBPx3vaL86TwnaFcpI=; b=xAilc3hon5S4jkGhl4nkBiRJ9H+Wfx4M1/vwS9V0ZG5YF2yT73oPFA7GiRfx3mlLiX W0quigNDdu2UioeIJ9MkfdGU3rCke7z2jsk3s50MImEHaNr0gC7hsQFMVAOC0pIXhGFb KQJthl67YDxFRCLaP7wnsbSrhAwuxs74g9MF66N8TkXbgIpmiDdbKVoAkL5ustv2ycyh +TJABpoSjKErZ+uCmO3cYmQRHtSh2EiwyxSF9xEAax1RGlQexBfa/woFLw+lSpP5EQqB UUOr/QDhCJ49usYTEDtLXizfnWV7tCDQPBMvSvlpoHc6e1IihaGc7qLPJp/ru86yjej8 cIbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ElE3acRD; 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 u6-20020a170902e80600b001ae6b1c3fb6si1437356plg.470.2023.05.31.13.15.51; Wed, 31 May 2023 13:16:04 -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=ElE3acRD; 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 S229849AbjEaT62 (ORCPT + 99 others); Wed, 31 May 2023 15:58:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjEaT62 (ORCPT ); Wed, 31 May 2023 15:58:28 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA3BAB2; Wed, 31 May 2023 12:58:26 -0700 (PDT) Received: from [192.168.2.24] (109-252-150-34.dynamic.spd-mgts.ru [109.252.150.34]) (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 E13B26605718; Wed, 31 May 2023 20:58:22 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1685563104; bh=dCBQxEeV0Iw3HAIDzbjdU57qicANUXXtSRWbBbZaZfY=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=ElE3acRDApuw17RRzTN9VV+kygun7yJqVN9+uz8G81714zkzjTrQA5ChZzqizOGba /RnQoS7Kr8cZ0LPALUF/bGZY/Zw4fiKDlksKoo7LBogbHFjvXPOI6wmr+uqi/mSpbc D1ASAqPqd77jLEyNeuU2YVQsP3P9WzR+qsV3cw8BvAa9v8ueC80IOLE4RwMGNOCJug caIWXEOMGOX/XgIvm9osJf0LnvYCqg4NyfD4rtcwZbRFVRu5gOth5CVW4ZXRoFUdv6 tK1b0PzaaPNph//JupOGOcHkGUc48epxEbiN/BakIBdAQ8ZU5Y0N263W5HlyAMYhqJ P9Wd7TS1Auxww== Message-ID: <91466907-d4e1-1619-27a8-a49a01cbc8f1@collabora.com> Date: Wed, 31 May 2023 22:58:19 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v4 5/6] dma-buf: Change locking policy for mmap() From: Dmitry Osipenko To: Sumit Semwal , =?UTF-8?Q?Christian_K=c3=b6nig?= 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, kernel@collabora.com, Benjamin Gaignard , Brian Starkey , John Stultz , Gerd Hoffmann , Daniel Vetter , Jani Nikula , Arnd Bergmann , Thomas Zimmermann , Tomi Valkeinen , Thierry Reding , Tomasz Figa , Marek Szyprowski , Mauro Carvalho Chehab , Emil Velikov References: <20230529223935.2672495-1-dmitry.osipenko@collabora.com> <20230529223935.2672495-6-dmitry.osipenko@collabora.com> Content-Language: en-US In-Reply-To: <20230529223935.2672495-6-dmitry.osipenko@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 5/30/23 01:39, Dmitry Osipenko wrote: > Change locking policy of mmap() callback, making exporters responsible > for handling dma-buf reservation locking. Previous locking policy stated > that dma-buf is locked for both importers and exporters by the dma-buf > core, which caused a deadlock problem for DRM drivers in a case of > self-imported dma-bufs which required to take the lock from the DRM > exporter side. > > Reviewed-by: Emil Velikov > Signed-off-by: Dmitry Osipenko > --- > drivers/dma-buf/dma-buf.c | 17 +++-------------- > 1 file changed, 3 insertions(+), 14 deletions(-) Christian, you acked the drm patch of this series sometime ago, perhaps it also implies implicit ack to this patch, but I'd prefer to have the explicit ack. I'll apply this series to drm-misc later this week if you'll approve this dma-buf change. Thanks in advance! -- Best regards, Dmitry