Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2655030pxa; Mon, 17 Aug 2020 15:38:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2cmtIt0Jmf8TbNiz7j3/7qE6iq4NyANq8e1Lgoig6jtVOGlxzITlp0XAXZe8md+uToAzv X-Received: by 2002:a17:906:6d91:: with SMTP id h17mr16494070ejt.531.1597703925786; Mon, 17 Aug 2020 15:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597703925; cv=none; d=google.com; s=arc-20160816; b=J0to+q7Gk5VJQG51yA2See+juzhwFKrwwGPU7ft8VfKaF4/GSfHcAaBa50LAYQroTe OGjf7p8aVYC0dzcVrLouFNX8nbVm6fKXjj6M2X4zb8H61fRi1RCRsmkAuQbWkcDjEiWy ERD2LZuIvgaRcKfsAeBm52qfiGo8Gt0eHE63UUoMz24tYVvkSwWvqhK9cFQN/XJvPtup dHI6vuGX02eG2lJ3ITo/V2xEBLJZgc7LzwOzYdwpNRYpecZw4ydcUGy62RUgHnYXldIN aPBXCO4VUClwBIEdyA/vdpiixDJ0HyeSDaMRZl5snWlPV9iAnUuNHI+mRH6MMGvdjaAz rGlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vCSAAKQohdeQ89lF09alVzUrX0xKxFWFL8MwbY/9lvI=; b=Z6U2ZpZ5ZXXrZO6XWKt2uI2HOJ1imIpHn1dhhjS1XDInJZnClLJLfIixdjhunXmn6g VBaHAU/wWIx/HeghH8+25tKkECJCJTcElxFfpPi+exTArpRiiFQb6ttFw8UXPhhVBjq9 wcMF9Y/Je0/Mo9BsTn98DQ97wBchtyMtTrAQIUvRVSlLyj4IFoaQGAqZ79RwFT6m/C5t WmPWTm7ojHmUZU1XvhH2e46c+kUTfBlWlHfH8oRtLuS0N3krJ+9qj1CvtYVxaL+vKgCG sUEeVwApJu/uK6uW0wqnZ/S/RZMLtJubH8h1fOj006J2Zkjj3EjtTvGguIYf+6aRnJ5/ TCWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="H2BWb/Os"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qw24si11866020ejb.416.2020.08.17.15.38.22; Mon, 17 Aug 2020 15:38:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="H2BWb/Os"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389765AbgHQRst (ORCPT + 99 others); Mon, 17 Aug 2020 13:48:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:46180 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388738AbgHQQNC (ORCPT ); Mon, 17 Aug 2020 12:13:02 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5636720658; Mon, 17 Aug 2020 16:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680781; bh=5SdRxwewqwZ7KrqOvfnH5u5FxN5Aybc+C9XT0SFfjLE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H2BWb/Os53+eengOIit/IpcURRU5QEgtm7so4sIWOx/yTr+2B+4GGAMPUxV/01Ttm EA8S0bPlmmfJ5Kc6jEU/O1LYW9nC2sUUHIMc1M7WGJcZz8zwdE524+4rErSeWCpgcT 0eps7aEdB7MlCzPlnGYX8/Wwj/AHFq9GiGP/Vbqk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rob Clark , Abhinav Kumar , Sasha Levin Subject: [PATCH 4.19 054/168] drm/msm: ratelimit crtc event overflow error Date: Mon, 17 Aug 2020 17:16:25 +0200 Message-Id: <20200817143736.449384458@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143733.692105228@linuxfoundation.org> References: <20200817143733.692105228@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rob Clark [ Upstream commit 5e16372b5940b1fecc3cc887fc02a50ba148d373 ] This can happen a lot when things go pear shaped. Lets not flood dmesg when this happens. Signed-off-by: Rob Clark Reviewed-by: Abhinav Kumar Signed-off-by: Rob Clark Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c index 4752f08f0884c..3c3b7f7013e87 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c @@ -659,7 +659,7 @@ static void dpu_crtc_frame_event_cb(void *data, u32 event) spin_unlock_irqrestore(&dpu_crtc->spin_lock, flags); if (!fevent) { - DRM_ERROR("crtc%d event %d overflow\n", crtc->base.id, event); + DRM_ERROR_RATELIMITED("crtc%d event %d overflow\n", crtc->base.id, event); return; } -- 2.25.1