Message ID | 20230108210445.3948344-3-dmitry.osipenko@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1851593wrt; Sun, 8 Jan 2023 13:07:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXshMd4bL47DO0l8RSXss9CK+i50m9/KGULEZkanrsc4MNjyIJKbzFzfnL6h6SALV0r81BWP X-Received: by 2002:a17:902:a50c:b0:192:6c8a:6b81 with SMTP id s12-20020a170902a50c00b001926c8a6b81mr50581238plq.31.1673212059107; Sun, 08 Jan 2023 13:07:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673212059; cv=none; d=google.com; s=arc-20160816; b=kUzOq0ZQsz3qNoshT0+8XG7+kRTH13H+xUA3dfn24xVBond8gMbp7GdZ7DonYnJkBf 0//B5t9Eh/zbDaYLdxwbFJ0aOVJQaybl/TBQn+GmomsBARN4RsSr8z98ZCFduNwAy4qw g5SxWGBwALGlxwWZ1pQg+TwaJOqXCJw2SjXeJzleMr1GUfcS4nFxDhz46uaOBP5gypX/ WlP006udhpSBvQ5KMrl0VxPPVcJP1xmObLiFpDmHb4SyGeHBkNnmCG0KcpNvl2EBZ94i Pu1KAsVr8PWQ/2JRNLayCKOucX1HZvRCc+qU9JLfX3QlyclmVtVr4QQUXHPkLkYqb8Ku GCtA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jnvE2foRjtB3vyX1MvHH4GQeQmETUtejxVivclllUgY=; b=nlDvdU1ZGZNwegxSWILBYoThaQmvB28R1dEQ7mm3LcHvqw4290TdvT4Yl7+B9ksMG3 4lB38pLbqAUVrF7QyTymBhyZbssuKdDJ5hZKS6yiL3KeizYrQanof+lAb+hZUQfkdVwi RhTQ/5iMYxNjwUHQ0AInDur3AknRWVBpvBK9u7xaNPGKZlF83osRA0WN2uDrBf+bv7BR foRFk/KpuyC8AJPb0XcYf8v2fRgFH+OwmG18P5/gJdqtxAo7e+8n+rLCzLckrPvi/jKM p+2XP2amgF3n2MSAHgTmYFnf9l273i0HrrjC3qdGoKtNJaWrUlakdEGeHkGJ3RfZhGt+ tvYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=UMFI6j7Z; 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=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a170902e5c500b001924c8d5639si8300656plf.37.2023.01.08.13.07.27; Sun, 08 Jan 2023 13:07:39 -0800 (PST) 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=UMFI6j7Z; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235384AbjAHVFt (ORCPT <rfc822;dolce.eric@gmail.com> + 99 others); Sun, 8 Jan 2023 16:05:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236163AbjAHVFW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 8 Jan 2023 16:05:22 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BA4910FD2 for <linux-kernel@vger.kernel.org>; Sun, 8 Jan 2023 13:05:20 -0800 (PST) Received: from workpc.. (109-252-117-89.nat.spd-mgts.ru [109.252.117.89]) (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: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id AD0AF6602D58; Sun, 8 Jan 2023 21:05:12 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1673211919; bh=JyCBBj57CG4UEcAgh5XlzQP+feZackRuTqvxuLO6FXw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UMFI6j7Z/T6DFKbnAwdQfrut6aKsVYXV2dofNiQFb8CHb2TvhtrF1RAT5Owkh21pd zFZwfVhTuPc6d6HtY8XCp/H/+BTNs7tgh+E23b0tqHSJ6kL8jirWu4CNCT5WxDvdrs N2sn8QQL/Ubbe12w4IqmdkfmLO79q119DJM2U9aeP0Yo1GHqLX883ISRdB42EUHssP MFHguzwQ92PPxqBQpymOxN5duVcrhdZGZZ47MyvBylI+5uWlmLBTKbr0Uwem1o7Y78 wNtTABMZM+yXa+R8rqLut5ih+fT5pOLzkbGP8PMS0IrDSIsyuAiJQflAJSXyfEbL50 pmUs+CKgmjl7Q== From: Dmitry Osipenko <dmitry.osipenko@collabora.com> To: David Airlie <airlied@gmail.com>, Gerd Hoffmann <kraxel@redhat.com>, Gurchetan Singh <gurchetansingh@chromium.org>, Chia-I Wu <olvaffe@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Daniel Almeida <daniel.almeida@collabora.com>, Gustavo Padovan <gustavo.padovan@collabora.com>, Daniel Stone <daniel@fooishbar.org>, Tomeu Vizoso <tomeu.vizoso@collabora.com>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, Rob Clark <robdclark@gmail.com>, Sumit Semwal <sumit.semwal@linaro.org>, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com>, Qiang Yu <yuq825@gmail.com>, Steven Price <steven.price@arm.com>, Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>, Rob Herring <robh@kernel.org>, Sean Paul <sean@poorly.run>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Abhinav Kumar <quic_abhinavk@quicinc.com> Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel@collabora.com, virtualization@lists.linux-foundation.org Subject: [PATCH v10 02/11] drm/panfrost: Don't sync rpm suspension after mmu flushing Date: Mon, 9 Jan 2023 00:04:36 +0300 Message-Id: <20230108210445.3948344-3-dmitry.osipenko@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230108210445.3948344-1-dmitry.osipenko@collabora.com> References: <20230108210445.3948344-1-dmitry.osipenko@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754490007719458441?= X-GMAIL-MSGID: =?utf-8?q?1754490007719458441?= |
Series |
Add generic memory shrinker to VirtIO-GPU and Panfrost DRM drivers
|
|
Commit Message
Dmitry Osipenko
Jan. 8, 2023, 9:04 p.m. UTC
Lockdep warns about potential circular locking dependency of devfreq with the fs_reclaim caused by immediate device suspension when mapping is released by shrinker. Fix it by doing the suspension asynchronously. Reviewed-by: Steven Price <steven.price@arm.com> Fixes: ec7eba47da86 ("drm/panfrost: Rework page table flushing and runtime PM interaction ") Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> --- drivers/gpu/drm/panfrost/panfrost_mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/panfrost/panfrost_mmu.c b/drivers/gpu/drm/panfrost/panfrost_mmu.c index 4e83a1891f3e..666a5e53fe19 100644 --- a/drivers/gpu/drm/panfrost/panfrost_mmu.c +++ b/drivers/gpu/drm/panfrost/panfrost_mmu.c @@ -282,7 +282,7 @@ static void panfrost_mmu_flush_range(struct panfrost_device *pfdev, if (pm_runtime_active(pfdev->dev)) mmu_hw_do_operation(pfdev, mmu, iova, size, AS_COMMAND_FLUSH_PT); - pm_runtime_put_sync_autosuspend(pfdev->dev); + pm_runtime_put_autosuspend(pfdev->dev); } static int mmu_map_sg(struct panfrost_device *pfdev, struct panfrost_mmu *mmu,