Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4839269rdh; Wed, 29 Nov 2023 12:07:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvcE/RViz9m1M3IP9Z8tfuqYdsi90tmEInSZ6YgTsk7VqnUuZisnVn7y9CpO6gAbqx5qly X-Received: by 2002:a17:903:246:b0:1cc:5a65:c535 with SMTP id j6-20020a170903024600b001cc5a65c535mr23836101plh.6.1701288469663; Wed, 29 Nov 2023 12:07:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701288469; cv=none; d=google.com; s=arc-20160816; b=SgyhQ86fN+P1H+tWCrRL78yGD3yNUZVtNpTcZQEHYLlfBsN/VilWvKlyR0kvYtaYql 8gBUpgFwTW72QsQnhA69hMaIMqWtn33Jw9yjyJS7pgVAdOJxKlBdkmR7Ak1pSt3I6ZG3 mUc6trnOHV3MDC27AkjD9wXIqHkbrQD0JiK4/GsgHPdExPcV8UvIwxIUpT8r+NHpqUUQ Q+HIT71a++Ho+aP0FBh7adjJqWBuGMnet9p9NH7xgNjnMtUsTVpNi6A3QhlUIGoaj5G/ CX4iMhVCDCxZcQXihrTpMBhn2Ml1OS0GVVPfvk05JasEYMkjGB05/H0M/F3Ix8BH1yLB fQHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=ST24rJd5FtEZVdvFqqGy92RP2Q5ghSLF8KO5rUTBul4=; fh=gy7JVSTF3EUfwgIy9iRzktdwj6hpY1MTHbJDXnZ46GY=; b=bQzAxsCVRVG6JpDGP6rixdbbsc6u/VRKEp2jyF6TMEecYaOTc6quXvx+EG1gK1DJxQ pqdG1yrfZQek2NoFa2B1v35sQ+CDLRVbukTNdtwYmaX1r4W/2iXUkjT7+lN/7PzcuXGH QoCvtllNa2x9BIItXuNCe9AXyT8s+Mjr/hk3qAqj5ow1HXcbJ0BTFh+LLAhJSNGkcZKT NM1M522vniu256pyBLupLAjChWs3s6bxDf9cqEUKqmfBk8aboVN16VT6seNZ7pDlpBw6 5sEgkEyjta/6bFfm1FKMZq0Y/3cFogemX2ximo2z9WJQDXy3ogp6kh2kSFOqdSG8Qsjy eU1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=VL05jxid; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id i8-20020a17090332c800b001d00594c6e6si3641641plr.106.2023.11.29.12.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 12:07:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=VL05jxid; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0DA0180685BF; Wed, 29 Nov 2023 12:07:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233640AbjK2UGs (ORCPT + 99 others); Wed, 29 Nov 2023 15:06:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231171AbjK2UGq (ORCPT ); Wed, 29 Nov 2023 15:06:46 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F80FD69; Wed, 29 Nov 2023 12:06:52 -0800 (PST) Received: from pendragon.ideasonboard.com (aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net [82.37.23.78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5F8556F0; Wed, 29 Nov 2023 21:06:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1701288375; bh=pr+DI5rX3G04hdirVZl6BkJQ1CLmT65yZtHt6DXjLiQ=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=VL05jxidfay1sFOSzYKbcy2FZEW1U8kscMsQ8whITFDm3SfVNs5cKFR7evcrNSPhR ID63lSLDWx5GiIxP4UAeBXndZgTHzGth7c2fg1EKtEd+zDlMwV1zJWVD542Bw+TAXk I1wr5C5rutATEIoNtXji7z4ziw6/lhFH/+D1DkT4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20231129092956.250129-4-paul.elder@ideasonboard.com> References: <20231129092956.250129-1-paul.elder@ideasonboard.com> <20231129092956.250129-4-paul.elder@ideasonboard.com> Subject: Re: [PATCH 3/3] media: rkisp1: debug: Count completed frame interrupts From: Kieran Bingham Cc: tomi.valkeinen@ideasonboard.com, umang.jain@ideasonboard.com, Paul Elder , Dafna Hirschfeld , Laurent Pinchart , Mauro Carvalho Chehab , Heiko Stuebner , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org To: Paul Elder , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org Date: Wed, 29 Nov 2023 20:06:48 +0000 Message-ID: <170128840893.3048548.12921821466589985052@ping.linuxembedded.co.uk> User-Agent: alot/0.10 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 29 Nov 2023 12:07:05 -0800 (PST) Quoting Paul Elder (2023-11-29 09:29:56) > Add a counter to debugfs to count the number of frame-end interrupts. >=20 And I alway like having counters for debug ... so I like this. Reviewed-by: Kieran Bingham > Signed-off-by: Paul Elder > --- > drivers/media/platform/rockchip/rkisp1/rkisp1-common.h | 1 + > drivers/media/platform/rockchip/rkisp1/rkisp1-debug.c | 2 ++ > drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c | 2 ++ > 3 files changed, 5 insertions(+) >=20 > diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-common.h b/dri= vers/media/platform/rockchip/rkisp1/rkisp1-common.h > index 1e7cea1bea5e..be69173958a4 100644 > --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-common.h > +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-common.h > @@ -417,6 +417,7 @@ struct rkisp1_debug { > unsigned long stats_error; > unsigned long stop_timeout[2]; > unsigned long frame_drop[2]; > + unsigned long complete_frames; > }; > =20 > /* > diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-debug.c b/driv= ers/media/platform/rockchip/rkisp1/rkisp1-debug.c > index f66b9754472e..1b1edfd3ab6c 100644 > --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-debug.c > +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-debug.c > @@ -232,6 +232,8 @@ void rkisp1_debug_init(struct rkisp1_device *rkisp1) > &debug->frame_drop[RKISP1_MAINPATH]); > debugfs_create_ulong("sp_frame_drop", 0444, debug->debugfs_dir, > &debug->frame_drop[RKISP1_SELFPATH]); > + debugfs_create_ulong("complete_frames", 0444, debug->debugfs_dir, > + &debug->complete_frames); > debugfs_create_file("input_status", 0444, debug->debugfs_dir, rki= sp1, > &rkisp1_debug_input_status_fops); > =20 > diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c b/driver= s/media/platform/rockchip/rkisp1/rkisp1-isp.c > index 64a956b9f2d0..06cdb4edf19c 100644 > --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c > +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c > @@ -991,6 +991,8 @@ irqreturn_t rkisp1_isp_isr(int irq, void *ctx) > if (status & RKISP1_CIF_ISP_FRAME) { > u32 isp_ris; > =20 > + rkisp1->debug.complete_frames++; > + > /* New frame from the sensor received */ > isp_ris =3D rkisp1_read(rkisp1, RKISP1_CIF_ISP_RIS); > if (isp_ris & RKISP1_STATS_MEAS_MASK) > --=20 > 2.39.2 >