Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp404959rdb; Mon, 22 Jan 2024 07:48:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFqDrOjA1dEL87umkMlh8R5Gv9f0PjDZ96KN6UIrzbxglnJfOVJD+dSbofh1BJ+rX/R3uYH X-Received: by 2002:a17:903:41c9:b0:1d7:5bde:7c2f with SMTP id u9-20020a17090341c900b001d75bde7c2fmr658975ple.21.1705938479870; Mon, 22 Jan 2024 07:47:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705938479; cv=pass; d=google.com; s=arc-20160816; b=Jlhqof7cLxgwmYNsUmXj+iahfgmvRsZpLuBY3h66EMSHGV3wLxbjdUyeTE6TpLWzzR xcdGDrHgWakTwEa4adr+nhFd17aPXcFv6OqLg5KEYkmN+ykyGSIk5ucQ4nbxWrdg2ys/ n0S2Z+AV6kCXeFgp/w7BHaedAHF6qUYX5ulpt5irA4fKvnzPaUniDgoomn0RZyiCuYfV pAiERwH+WoERQhtpGQlKAB4Cuj5fW3SVrNvSajlLwdH+z7wOVQGtALsSINx3E1jVaTKc DHBEgE0jhWIWFBIH8TtAbYhWtZdS1Hp4s1pWJaROzb92ijEIJmWcu80lOcfgeIy3mULG lMUQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=kWjgac68zNbjOmz1kGz5o5jM2QS1NjQEs8NukyzPqxc=; fh=LnPkAaAaehFEhundXi020GvqWJr72hzHmU+vHwVmayQ=; b=bC6maZtCMsMMdBzkRgf19b1z5/8qbHl4ECt4AC9fJs0XmEt/EHtEBPfI3KMrgrNRyj eMqhpY7zS3ZJhT46dQxg8UGmiuY8+j9EaXc3jd585r2E8zGSGLsQZ59LZfo4LU1nO/Z3 ZaqRKBKTp2n81T3mNFLA5yyprUwjMJRQ6pL8J0lqaqeF7gifLp0DrM/A3tI9rNhxmnZE 7UK7vkdINKA6MBpQcTV1WbhDgi1KYXxTv803D5jgzqFD1erouVf+S16ON997khtZVFHZ /2KH06gxydrOCp5T5iH6ShzcW2sn9jN8smstV7Lr8G8edoEtnoKZRuHRBHjiSI4MQAgt hyYw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CeKN7zNF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33275-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33275-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s7-20020a170902ea0700b001d720bcb57asi6162776plg.357.2024.01.22.07.47.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 07:47:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33275-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CeKN7zNF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33275-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33275-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 08F63B2D77D for ; Mon, 22 Jan 2024 15:20:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 450175A0E0; Mon, 22 Jan 2024 14:59:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CeKN7zNF" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6BB3559B77; Mon, 22 Jan 2024 14:59:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935572; cv=none; b=AfPNQ7t8zpg/b2XC8kB3/2yITTX5aAq0aqJZmQb5xqvswcKc8Sdx3CYZRRwYOqsJWr90k9KLN9/2kL43D9WTBA7XBkCMtRn3HdRy0XDX0/DilrQ4q0SbGLlo1hhkB9KYJ56b15E5XLjIbhcx5+P0eq0aJcoHK+DakNpgNleeZ4k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935572; c=relaxed/simple; bh=oVoP1QrBDzXSphqRg1C7fxGg9wre9R0NmIDDR832sK8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bP+RNTzB/Qnf06nTaBBF+oKnjNS9GnFKn49qPWEdF0iIiXypS1090Q3gnIvvsz2bJ/e2rbtWgyenhtmAF4ciwJAqYMBdITqKC3JlwsM7xKLvo01WTxTi3j51ER82VoYrMeIf/T4uZVW5YOhiJDD2iYdCwxMiLuplFIFGTzjQG6A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CeKN7zNF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C27AFC433A6; Mon, 22 Jan 2024 14:59:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705935571; bh=oVoP1QrBDzXSphqRg1C7fxGg9wre9R0NmIDDR832sK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CeKN7zNFoyOzLbJ16nvfpppDn5SczUKxHJ20j1rx4mTOGEBeLDwoll1IKAtfFcKEv G25OZcCPwHE2i3hiA1FAFwEa+JPiNkGEqvTgcfifxXa8oFeVmt10MxTqJKaSkm3uo4 Z5PoXOzkdqDp/5Nqhj/0wR6poo3XT9v/ux12t2otoMOXnOnOHq9QJhyR/t4N1zHon/ CgiPYr8QGKqOkb8gD7DveiO3wXa6re1R2iDr8XQvqQEJ3B7CZftZwG4vS6W5unK4rh eDA6FB2AnvVdE3Ghb5w9Q6XYnCwmnUbA25+ARl0aEoe5obldat67RE1iEdo1wIBlNn BtJq7ZivMnZfQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Rob Clark , Abhinav Kumar , Marijn Suijten , Dmitry Baryshkov , Sasha Levin , robdclark@gmail.com, airlied@gmail.com, daniel@ffwll.ch, quic_jesszhan@quicinc.com, quic_khsieh@quicinc.com, quic_vpolimer@quicinc.com, quic_parellan@quicinc.com, quic_kalyant@quicinc.com, dan.carpenter@linaro.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH AUTOSEL 6.7 55/88] drm/msm/dpu: Ratelimit framedone timeout msgs Date: Mon, 22 Jan 2024 09:51:28 -0500 Message-ID: <20240122145608.990137-55-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240122145608.990137-1-sashal@kernel.org> References: <20240122145608.990137-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.7.1 Content-Transfer-Encoding: 8bit From: Rob Clark [ Upstream commit 2b72e50c62de60ad2d6bcd86aa38d4ccbdd633f2 ] When we start getting these, we get a *lot*. So ratelimit it to not flood dmesg. Signed-off-by: Rob Clark Reviewed-by: Abhinav Kumar Reviewed-by: Marijn Suijten Patchwork: https://patchwork.freedesktop.org/patch/571584/ Link: https://lore.kernel.org/r/20231211182000.218088-1-robdclark@gmail.com Signed-off-by: Dmitry Baryshkov Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 5 ++++- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c index 1cf7ff6caff4..ff0e3591b44d 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c @@ -39,6 +39,9 @@ #define DPU_ERROR_ENC(e, fmt, ...) DPU_ERROR("enc%d " fmt,\ (e) ? (e)->base.base.id : -1, ##__VA_ARGS__) +#define DPU_ERROR_ENC_RATELIMITED(e, fmt, ...) DPU_ERROR_RATELIMITED("enc%d " fmt,\ + (e) ? (e)->base.base.id : -1, ##__VA_ARGS__) + /* * Two to anticipate panels that can do cmd/vid dynamic switching * plan is to create all possible physical encoder types, and switch between @@ -2339,7 +2342,7 @@ static void dpu_encoder_frame_done_timeout(struct timer_list *t) return; } - DPU_ERROR_ENC(dpu_enc, "frame done timeout\n"); + DPU_ERROR_ENC_RATELIMITED(dpu_enc, "frame done timeout\n"); event = DPU_ENCODER_FRAME_EVENT_ERROR; trace_dpu_enc_frame_done_timeout(DRMID(drm_enc), event); diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h index b6f53ca6e962..f5473d4dea92 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h @@ -51,6 +51,7 @@ } while (0) #define DPU_ERROR(fmt, ...) pr_err("[dpu error]" fmt, ##__VA_ARGS__) +#define DPU_ERROR_RATELIMITED(fmt, ...) pr_err_ratelimited("[dpu error]" fmt, ##__VA_ARGS__) /** * ktime_compare_safe - compare two ktime structures -- 2.43.0