Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10424121rwr; Fri, 12 May 2023 08:01:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4WzkvOL3eOWaCRQk8fG/Q1o0LnzV19rti+9mToMTAYANd5hghD8Kksbwq2jF+SirZ9+28r X-Received: by 2002:a9d:7d07:0:b0:6ab:82ac:fad8 with SMTP id v7-20020a9d7d07000000b006ab82acfad8mr3851438otn.15.1683903707129; Fri, 12 May 2023 08:01:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683903707; cv=none; d=google.com; s=arc-20160816; b=SRO6hz15rnVTwE5naBpa1dBaIvFNC9ZLtqPvWXVoUoYo67/s03nZJ9zt2ThhX/vnBF MXXKhMLd+kK/7+ODIr6lpw5vbwvQFt3Cm4LMI13ZCOY7umIEe5VHktmRRJoP7ly+6slv GGPg32p6+2MxQzkX2k3cdRoj+qO8h1ikVyQXD+N37M8mg413HMzaT0r5Nhoz7r7kiOEP PvaFzpkZ6u2RsM4jsMD0YlPuZ9vklJ5sJxDOTPJ/IU7t13UEJmGLRK4CpKdXsL6x0mcO ew0iVNF9nsFzDYGzqd7FU/XQkaCjvuhLeRf5gLHS3xVFZVLk1H01nsbrIpDCkxhc/MXl tGwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=KPibGk/VsIl1NlQ+E8IH62HD3HFwxeLmQ0A1sDyLGrY=; b=hp9vQxs1zoa9IT+QeaWTtg5E8FjyQzsVDb8wiF+uHn/PPHizZ9WcP36sS1gast/w0Y KL2lZlEju6zJiv9xW406jXI8wLSy3KCzy5HeRqHdt/Kovcv0kLwDIlrYROZk5a4q0Frm S3mlLuNsF5DEIOukFJsbJQz8VN+Ptw2dRMFiIy42t21cvS7Y6dS1oQsEpuX/fEWk2Y0a TbUhq0K6AsFqnwZVVwqMLDIHb8Q2o3ioS7+m6J4UZiVfkpj64gUUfqmpzWu7F2POXpIb 2bST+kK00P9SaYZhwvHBusU8USFprAx4feF4m/qH0425YZVpf/1cmj8kgoXcAPRH2yXm /B8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oTbQ0MBI; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ch11-20020a056830638b00b006a613ecf23fsi11862967otb.101.2023.05.12.08.01.31; Fri, 12 May 2023 08:01:47 -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=@linaro.org header.s=google header.b=oTbQ0MBI; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241607AbjELOzI (ORCPT + 99 others); Fri, 12 May 2023 10:55:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241592AbjELOzB (ORCPT ); Fri, 12 May 2023 10:55:01 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 170F510E4D for ; Fri, 12 May 2023 07:54:43 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f417ea5252so52753215e9.0 for ; Fri, 12 May 2023 07:54:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683903282; x=1686495282; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KPibGk/VsIl1NlQ+E8IH62HD3HFwxeLmQ0A1sDyLGrY=; b=oTbQ0MBI8O99aP/PPw6jI4vWNvScQWUEVVtYJraANg7ALPnGNrbsQhOg/7BE6YG2DG knUbYfPO47MoKkrGI+Pa+q+z8MbVXxH6SJhAF7i1so2qVCuA2LCyOI+1QTPEbjKzPJuM mToXO0p38qTrWNcoAfZ9ZVAi7uBdR//OddKFxWOmf7PU5FIHQ4LKl7IFbSOn3aj+swha 15IlcBrpedoTFLlctspWBEXrgz4JbBCHwEEKpFL9cTU1hMDkZDaKCTiGpP1X3SZQAd8E /Kt2rScCLy+3DJXp5l3IElEDnbd+foCmxd0FndbZzGfoBwmqnI/t9AAN+V46+3OGUYs5 ekow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683903282; x=1686495282; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KPibGk/VsIl1NlQ+E8IH62HD3HFwxeLmQ0A1sDyLGrY=; b=kAdkJg76YxT1wx5VMWPQf9Lq6yjGm5NzypFm7DOA0nEmdQau2AuMmKs9FP1VNDYbIi 1JN1ShPuNrOrit+HfnC4xbTwmfTcvJGz5v7buQtOOPOXjminiUpvcJ8TDjltOasdelUB fh/6n5d+Bw99fkMrRxKBWhbCh2P9GD127IAX/xop4jmGffXNve/e7l0FZqRHEvHE1tj5 he+NNx5BmN3/30yVpaXIHifYyRFkdWxlxRCO4JsqTbfZvK2Cf4Txy50DrCU0xJPQT7GT 8m9qjqs5pzYoVvYHJ/KW5l5zoVa/SeP2Lxx/MCiM2tEkQkbbr+h29CY/SbzaQMwWH05Q Nazg== X-Gm-Message-State: AC+VfDymfHbwPNBdnKr4HiWSGo8nMl5weP40dbt7ToITIR8nwC+2smfZ hmz/Qa4ozDVBCMzZ0ec44SusjA== X-Received: by 2002:a7b:cb53:0:b0:3f2:53a5:d308 with SMTP id v19-20020a7bcb53000000b003f253a5d308mr16833397wmj.6.1683903281792; Fri, 12 May 2023 07:54:41 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id v2-20020a1cf702000000b003f32f013c3csm28953540wmh.6.2023.05.12.07.54.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 07:54:41 -0700 (PDT) From: Srinivas Kandagatla To: Sumit Semwal , =?utf-8?q?Christian_K=C3=B6nig?= , 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 , Amol Maheshwari , Emil Velikov , Dmitry Osipenko 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 In-Reply-To: <20230406160637.541702-1-dmitry.osipenko@collabora.com> References: <20230406160637.541702-1-dmitry.osipenko@collabora.com> Subject: Re: (subset) [PATCH v2 0/7] Move dma-buf mmap() reservation locking down to exporters Message-Id: <168390328031.185210.8399521458221830929.b4-ty@linaro.org> Date: Fri, 12 May 2023 15:54:40 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Thu, 06 Apr 2023 19:06:30 +0300, Dmitry Osipenko wrote: > This patchset makes dma-buf exporters responisble for taking care of > the reservation lock. I also included patch that moves drm-shmem to use > reservation lock, to let CI test the whole set. I'm going to take all > the patches via the drm-misc tree, please give an ack. > > Previous policy stated that dma-buf core takes the lock around mmap() > callback. Which meant that both importers and exporters shouldn't touch > the reservation lock in the mmap() code path. This worked well until > Intel-CI found a deadlock problem in a case of self-imported dma-buf [1]. > > [...] Applied, thanks! [4/7] fastrpc: Don't assert held reservation lock for dma-buf mmapping commit: 3f6b4c6f0bd0126f673f3578429239ae3860718b Best regards, -- Srinivas Kandagatla