Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp294277lqm; Tue, 30 Apr 2024 23:57:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUu2/2mRx58E7ZDMKGyTO1sfyimSNMG7BdEBSj2Q1JyB9rS/FudaHAuTxwRJ6sP4BT+UC9tV7AS3Sb/QkhzbY3bxHEsshyI1VQLFAs7Bg== X-Google-Smtp-Source: AGHT+IEoThaU3i3SLzhvm7rNjmP1uf6LLitNt9/MwEi1og1N0ADtZl82gQIgj+zslhlf01KEOuAq X-Received: by 2002:a05:6214:c81:b0:6a0:6545:2306 with SMTP id r1-20020a0562140c8100b006a065452306mr1655031qvr.28.1714546629909; Tue, 30 Apr 2024 23:57:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714546629; cv=pass; d=google.com; s=arc-20160816; b=Fxl9kyU8JlsM4Qt4cL0+4GECUCdEdVJCZ1rP/HGyhESVanUW2CdEPm8moJKINAVsLQ 99KVTh9Pg3BKPFDsbCqXn3BMBoCUihNpDPh69oqY0og3zWNAHWX+3fDR0n6tu8ffyQ8s zLoFWwprW0L4BTO3f7EQqEIKpHwPUbHs9O9UXwriOEKBMGg1R4MJzGFsUMq2yzQ5JMZc LT8SeKtd8IhiKuUtQ++muhnKwwhuHp9CElpBuOJrjYpoE08sOcfjJcXDr/qg70lY3yeD ODfAj6hBHpWYvtWmjxGzMewW/JNYPpW7cJw94egBP1l5dzPPn5zpbZdUqYyGiiMRrmUr gkGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=ILiB0IMNxgBlXKeUIm7EU+x+o6ahKA6lRlFExAqHHQA=; fh=fGR18h///lMTyOyjB82q8MVWSVd5rH5g9ytunXdvZDY=; b=U4pBxLmqjXJ1XYOCFJEkaFsVFyrw9KVfHxaxUQ+PT8JJXTrFswGxh62eYsQvZzRWMb 5B6h0OafjhEurTLW958VynXXAzBz2kuOfaXmacc+4ic+aibGhIUcelpFhI2iH8+v4sei QUAyWPqLDbp4vtqfU3xTbE8SrhKtwXk6NxdULcuzH5IvWIEtUSsoXkHyEegHoXLU3PjL FDqjAa+TqxpPwOMhyu5AjxJEX7XHKEZpHcUNAu4sPFOhmghyLoB3tEQKo7j+bpORWJAg +Q2UqQ9vDBlvynZ1SakSp8VJDW+IW0SVKE0BygrUwLGZrRHWtWCD/KhBh6lbOvl9Jq/E BuAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=yuTqdv0+; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-164977-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164977-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c4-20020a056214224400b006a0c8d95d09si7362023qvc.451.2024.04.30.23.57.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 23:57:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164977-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=yuTqdv0+; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-164977-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164977-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7BCD61C221C6 for ; Wed, 1 May 2024 06:57:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAB124D135; Wed, 1 May 2024 06:57:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="yuTqdv0+" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A1537F; Wed, 1 May 2024 06:56:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714546620; cv=none; b=QPEQo6xlkp431QQR6Ip2jTJV4o8A8dbwM6vkM4uzqbJRvM5Pb6zr99q/zAASuSzplk8t/vfcel2658AokRUII3IqqqhWoFQTm9sQ88wdQfRKF9MB/BVvsl/oQiZ8aycuhoTIHBz7m7kVRT+7CV4tjRpM0idR6eUd5KAKgLl7T+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714546620; c=relaxed/simple; bh=+gpJXoDEqYzBuZulQbczBn4Pg+8UdQjqkKQDhtgftuY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=danZ7ljiAYcWRqJRBx/cU2t/56ekWpX/eOMDN+S/ckCUcd53UZQOO9cNakhpZ2Ct1Fgk10/pItMkUjKkZgJ0/TTzYt+vba8fmFekaoFZgQtcd36PbgRoWkFoaAja7kVHE9K9LXQX1SvgjfEst/vePYqILwXQ7rrWAzfcuOijqac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=yuTqdv0+; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1714546617; bh=+gpJXoDEqYzBuZulQbczBn4Pg+8UdQjqkKQDhtgftuY=; h=From:To:Cc:Subject:Date:From; b=yuTqdv0+509GARpdGOcAmrDFIxTdHACNuq70OZV/uZkrBBYLeXnkdHQppBi+f1K0w XhJvjKC4KJhIUNFstpRB1834LTcx959ulNuv/8zpD3sObav68v7HSdZkBmjxd8IrjM nfcPLv0yYiZ0ols0ubim7uB8TGHHVgiI3WE3mgo4yf3fHxVt8nRznYThiPm5yoG4HC dtO83IN9gN+qkr8cVynrVFxUpn4clCfMkbP6Pe1ap7foEK93Uw64rV/LIrE1qPO+YN nRSNJ2xO/fsIrFzjtP3oc2PicaCDckOy3HyqIGRYot5U0iNqVKczLMLrs1tPHQTnsm Twy98Bk3lgeKg== Received: from localhost.localdomain (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: alarumbe) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 43E7E3782087; Wed, 1 May 2024 06:56:56 +0000 (UTC) From: =?UTF-8?q?Adri=C3=A1n=20Larumbe?= To: Qiang Yu , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Boris Brezillon , Rob Herring , Steven Price , Sumit Semwal , Christian Koenig= , Dmitry Osipenko , Zack Rusin Cc: kernel@collabora.com, Adrian Larumbe , dri-devel@lists.freedesktop.org, lima@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org Subject: [PATCH v3 0/2] drm: Fix dma_resv deadlock at drm object pin time Date: Wed, 1 May 2024 07:55:58 +0100 Message-ID: <20240501065650.2809530-1-adrian.larumbe@collabora.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is v3 of https://lore.kernel.org/dri-devel/20240424090429.57de7d1c@collabora.com/ The goal of this patch series is fixing a deadlock upon locking the dma reservation of a DRM gem object when pinning it, at a prime import operation. Changes from v2: - Removed comment explaining reason why an already-locked pin function replaced the locked variant inside Panfrost's object pin callback. - Moved already-assigned attachment warning into generic already-locked gem object pin function Adrián Larumbe (2): drm/panfrost: Fix dma_resv deadlock at drm object pin time drm/gem-shmem: Add import attachment warning to locked pin function drivers/gpu/drm/drm_gem_shmem_helper.c | 2 ++ drivers/gpu/drm/lima/lima_gem.c | 2 +- drivers/gpu/drm/panfrost/panfrost_gem.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) base-commit: 75b68f22e39aafb22f3d8e3071e1aba73560788c -- 2.44.0