Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2175545iof; Tue, 7 Jun 2022 22:13:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjXExQK2JMoMQPP/38zhdXQ0+hoLeF6exCLFGqA1F4A07PAe/DidHaQsT/jjWPE79R7Hmb X-Received: by 2002:a63:67c3:0:b0:3fe:465:bfa2 with SMTP id b186-20020a6367c3000000b003fe0465bfa2mr5473200pgc.12.1654665208503; Tue, 07 Jun 2022 22:13:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654665208; cv=none; d=google.com; s=arc-20160816; b=FD5hiRN5CHUkYMfSK5U6qRIxH9skxKBldq/8GJ7kx2uWbYEhFwV3sRhOacRBr3G7p/ jEL+htT6aN8/tNigzsay7ifcZRyYMjx6GeOjnXf0b+PjGjpo0ShKUZ3v901rHYTHA4W5 PzvTOnEKqbP0eOPo+2EMvv5kA3fOds2fFuMBB6FvJYZRm7GJqiXe26Ih4/NU4ykj+4mm T2N008oxDudYAhH+m0VgiRwebgjcsY2CD6L/hZYFtDHo1Mi7ISsX1hbp41OChI84OLpP KCqQk3BHpR2h4NWKVNRIJzYoG52MvEtJgwAyLTyN3EkGqTrvHlXNiUaFoD+fV7a4yted uMwA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Lkqi4eeTF011POjLtXvX35sfWb/PWnQcw8fWNJ9quPY=; b=nNPhpX07uMHDfHMST2+vTwGRLO/Qf/NWI1xHdkN5k6DBizdYUPnOc4wZFo0Bj2cyHe Z8uUrJCK7+p/qFdJRRewpiPRZdqfzpZHOMw42uHZsVRBZiEuJXvzZ2uM1zIKnQU0WDTu qLFdgE5v6isjAejOIGNia0x7VxrIBIO2UUoyMN2mn1C8AxHpCK6RmnxhgGkhqL9pQ0NY JTJbApM8H4G2P3JZiHV+fP7dL1t37RN2mtV7YRCEOAN4900FFAKsXL+rByXITlfoCE6R skR+GuzTKdkLr1hOEM8LNcoUs5k86/JO2mMhz/vH7WuSZFV9qR6h/7Nwxqq/lSrQzthy 7qrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EBk4j5Um; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s8-20020a17090302c800b00161e9f72b11si24833145plk.540.2022.06.07.22.13.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:13:28 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EBk4j5Um; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 507F24158B1; Tue, 7 Jun 2022 21:43:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346590AbiFGWMB (ORCPT + 99 others); Tue, 7 Jun 2022 18:12:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378725AbiFGVJT (ORCPT ); Tue, 7 Jun 2022 17:09:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CC6D213E43; Tue, 7 Jun 2022 11:51:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3A95BB822C0; Tue, 7 Jun 2022 18:51:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DBB4C385A2; Tue, 7 Jun 2022 18:51:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654627862; bh=ooRjUvmGJzzu/siEDXfgX0wur8PrGZ7/pd2kHQ/UvyI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EBk4j5UmYfj/W4AuAlj2t2riqr/z4rfZJLrs9jWz4fZEk8on5MbpcQ/AveJOsT/E5 +/FtsI/UNz+0Q6R1ChtlgSBCyg7B3cmB8AUX3C0ag1C+gKumExsWVHXiY/qy1RBZJ1 0Vhoq7j1nOxSw1K6RP6+PGgBCKlduIPXkpPnNuLE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Baryshkov , Rob Clark , Jessica Zhang , Sasha Levin Subject: [PATCH 5.18 121/879] drm/msm/dpu: Clean up CRC debug logs Date: Tue, 7 Jun 2022 18:53:59 +0200 Message-Id: <20220607165006.213077149@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 From: Jessica Zhang [ Upstream commit 3ce8bdca394fc606b55e7c5ed779d171aaae5d09 ] Currently, dpu_hw_lm_collect_misr returns EINVAL if CRC is disabled. This causes a lot of spam in the DRM debug logs as it's called for every vblank. Instead of returning EINVAL when CRC is disabled in dpu_hw_lm_collect_misr, let's return ENODATA and add an extra ENODATA check before the debug log in dpu_crtc_get_crc. Changes since V1: - Added reported-by and suggested-by tags Reported-by: Dmitry Baryshkov Suggested-by: Rob Clark Signed-off-by: Jessica Zhang Tested-by: Jessica Zhang # RB5 (qrb5165) Reviewed-by: Dmitry Baryshkov Patchwork: https://patchwork.freedesktop.org/patch/484274/ Link: https://lore.kernel.org/r/20220430005210.339-1-quic_jesszhan@quicinc.com Signed-off-by: Dmitry Baryshkov Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 3 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c index 7763558ef566..16ba9f9b9a78 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c @@ -204,7 +204,8 @@ static int dpu_crtc_get_crc(struct drm_crtc *crtc) rc = m->hw_lm->ops.collect_misr(m->hw_lm, &crcs[i]); if (rc) { - DRM_DEBUG_DRIVER("MISR read failed\n"); + if (rc != -ENODATA) + DRM_DEBUG_DRIVER("MISR read failed\n"); return rc; } } diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c index 86363c0ec834..462f5082099e 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c @@ -138,7 +138,7 @@ static int dpu_hw_lm_collect_misr(struct dpu_hw_mixer *ctx, u32 *misr_value) ctrl = DPU_REG_READ(c, LM_MISR_CTRL); if (!(ctrl & LM_MISR_CTRL_ENABLE)) - return -EINVAL; + return -ENODATA; if (!(ctrl & LM_MISR_CTRL_STATUS)) return -EINVAL; -- 2.35.1