Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5644894rwr; Mon, 1 May 2023 08:44:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ47xIxoGxjCOka69yQit5oFkAyItMqQ67paII/4Y4aKZ6Nkkn4d7xLGfVFCnj3RkMWNrxrJ X-Received: by 2002:a17:902:c442:b0:1a6:e583:80ef with SMTP id m2-20020a170902c44200b001a6e58380efmr11323918plm.18.1682955886109; Mon, 01 May 2023 08:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682955886; cv=none; d=google.com; s=arc-20160816; b=sG2xaE3fxhgJ6GGFnZTxQxP1kk18GglhGTdUS1qeUR4r8sA7X5pMD7NwH8c7tm9z4U tT2/si1oZsxED6Ti0uU+nb71glP/bffnljRvQ1UjpiCbcwTgQUNz9/8B6CSBIKaLYgJO G9pDSsID+BaP32YGim3wjyaoO8gEvf4HHBKXgbr4sZ+ztqkZz4zkNPgBSrk2GF3YUD9O A92JQF+6aWb6Vvt7OvWgFLn5s9iXT3aYiklbhK6lt0DjrQniqLIyRNO9w+pfa8sKhggp TIg0pITPXJC+5Yrt9NWz+A5gyg0pqrfY+XqCWCbQncg7G+JyltmyYRZdZH9Bzm5Sx+BU XeyQ== 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=xjn52POiJ75XWi7L8t3j/qZ+owyC+T5G5PZl0WZHhRA=; b=Llf7WKWLOVWvIvaHg+B7PdWFLF9v8FbkOb6b0OgrbQTkiKwcc0oDscNmUtD5htBaSJ MM+1rJcOUwkVIvk9cl4xWfghpJPCZ3zlPNqSbTYdzy6arKBgUpPaYMsujJxMe89b4hPD QZMeJ+PIi3hN8Fd0YGB+pL0auQFwUI4yYj373fhFzOv7Wnfo+v0be3z+lg/hIXuY/ki4 E9quCC2jAuKgMFQY3eWyUq+c48y4LoLXt0pl4chyppwNFiNGk7bZ6VKDdeMLP71+1sSG H42gtT2vdmTr87EPJUdjMCj9ETDNldgCQnqFut+gIQH3Er+nQ2aBxQk9rNARMlvv2CeN 6hrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WgvDqGNq; 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 bi7-20020a170902bf0700b0019c3ce49a13si28298963plb.372.2023.05.01.08.44.16; Mon, 01 May 2023 08:44:46 -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=WgvDqGNq; 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 S232833AbjEAPmw (ORCPT + 99 others); Mon, 1 May 2023 11:42:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232818AbjEAPmu (ORCPT ); Mon, 1 May 2023 11:42:50 -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 16073BC; Mon, 1 May 2023 08:42:48 -0700 (PDT) Received: from [192.168.2.246] (109-252-144-198.dynamic.spd-mgts.ru [109.252.144.198]) (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 EB81C66029DE; Mon, 1 May 2023 16:42:43 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1682955765; bh=tnb48ajCvVa+EQpEey/B5t9Rz5vp0zrnI8Dk3GtJzds=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=WgvDqGNqkRpELu/Mnul8g+QVtXq/hzn4k+FFEpusaFYSFGnm1Jzhw7htlINg83ht0 rimocQaotDdO/fUi53zoTX3QHV7v9281Ek5Igtx+auJwFkjZpXDctQ0M/Kn5vHfS4+ OW4QnmZX768H0BwI2PhD+LIZzOHhUDWBMs+Ix1NrYapO0+w/aY+gydF6hv1Foy7+Gb ViVwJ+6U+FpEkMOKSwdCn/llqkyoZM7FDHdwIeDlq2uH1XtoQerfiViPJdSJ5w6mWI 1vjSPku078f0wkOVjQ9EvdrbQ3FtYALJUEpnGClgOfUj1aOcHAQUZKOvTnrFiO979u 8o4Qf3UIpdQqQ== Message-ID: <14d7ed85-7ab6-04d9-1958-d5ceae2a79f8@collabora.com> Date: Mon, 1 May 2023 18:42:40 +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 v2 6/7] dma-buf: Change locking policy for mmap() Content-Language: en-US From: Dmitry Osipenko To: =?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, linux-arm-msm@vger.kernel.org, kernel@collabora.com, 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 References: <20230406160637.541702-1-dmitry.osipenko@collabora.com> <20230406160637.541702-7-dmitry.osipenko@collabora.com> In-Reply-To: <20230406160637.541702-7-dmitry.osipenko@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 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 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 4/6/23 19:06, 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, may I add yours ack to this patch? -- Best regards, Dmitry