Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp199085rdb; Thu, 30 Nov 2023 02:19:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFbJHlvoi4IFot2KshgTgchq0yt8Vvxfg/flYdOnzXXlwqC39e9jV1L42sF/iRb0UG0bhV3 X-Received: by 2002:a17:902:d4c1:b0:1cf:c329:6204 with SMTP id o1-20020a170902d4c100b001cfc3296204mr15864467plg.14.1701339540469; Thu, 30 Nov 2023 02:19:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701339540; cv=none; d=google.com; s=arc-20160816; b=CRhzIC/38T9Urd4xtGwzxjqZLmP2s/bIDe1ghr4tqBctUCONfRUm+Zcrqi+ommGros s+x6Vm/AWR2ZJbpaKnpo2sQBBdacUcPJ93ky2Hx4FJaZktwh3+v7Xo/k+WEQn1schMm6 +mwRwDjdDfAjOG2Pcyqn+HhIDuL4B1cHkMFRqiBmyya0h567kEFE5GElbc8RMu42WZWV wwRSmf5U35ZX0jfWbWDK4ssxnC3repB2s8j/UNGX7159vxrx7Jwmq/t1Dcqb9pok7DNJ eYZDXHqewTWudOuLFQZaVqM7WZIEW+AwWfXVxpoONetNWS8hL8SL8f/I7h5uQNWHUxXu 84ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=c5FGYC1au+a2xY09Qm1hrPpvUGudmGYI587sIOf2nQU=; fh=MyB7k1sgO0bQrc51IFV0oJx6nndmHddKgoeBhBuguIA=; b=n9in5DaJlR5ztbCE6sBSTUjQ4TLu677fzYe/PcRAxcw3rJzpDrgDK7QYXB9S4Cvm97 aFB3a2pHcFWMriV9rvNL/TtLTY9ZnNovYO3E1JQcqH+wLdFh6L5oNdNc4GygXyU1ArGo Yf3zw/ti4Mz6JH1u7Ax6hL5Tfkd7etWdPsMD4zK909ewuSpg4C9AlQhohfrUYWdBPJnE FsOH1uXXyL0ncvZxtsOwDFcMMnhIkpkvJxLCL+6cTw8qNC9Lbq4mSIVUfgF/VMMYtuBq yAzQttlHKyE0cWhDoYnAwqO6F+UeHdqzePQcG9EdtM9y8B5Yia7zaQPgUR9QdQAH1pjn R+tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=i1bt4jRa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id x18-20020a170902ec9200b001cfb7645406si935015plg.436.2023.11.30.02.19.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 02:19:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=i1bt4jRa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 81A1E8029332; Thu, 30 Nov 2023 02:18:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235128AbjK3KSl (ORCPT + 99 others); Thu, 30 Nov 2023 05:18:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231755AbjK3KSk (ORCPT ); Thu, 30 Nov 2023 05:18:40 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 709D41A3; Thu, 30 Nov 2023 02:18:46 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-50bba1dd05fso1130794e87.0; Thu, 30 Nov 2023 02:18:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701339524; x=1701944324; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=c5FGYC1au+a2xY09Qm1hrPpvUGudmGYI587sIOf2nQU=; b=i1bt4jRaVzh/qQfiI9kPe/qG2sYVIUEKCrcaqfxSgwtnBDinnCqGPWxuWcvBjr6lo1 /M0YSWEh5c219Zkl0AfAMzOUkfRHQZQx7xOB5qN/B+19dY4XQUTZEzTUyChQTpLUtq8J Mh5shUHV7khkfzW7b2Hbbl7qp/hXhEI3s7VknPG6sbtv+i94e8z/FCBHgRh1hNoCpR8o 5i0jTW/Z9LDtyT5K7N5KRLErUcN68xprmyVXDWhRo82+NzmbgCuIf6fPxqNEHwVSeBnO fkZ6oq+ZC6qPKvaM/+HBybP0Nf5Lc4/x3vcYDXJlJ0eTKikC/lZVTsghp0SsFlfRYh7V wFaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701339524; x=1701944324; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=c5FGYC1au+a2xY09Qm1hrPpvUGudmGYI587sIOf2nQU=; b=cCtZLqMw8vvKfmRnMf9EcAfoCLphlYhF3HlffT6lxN0OG7ht/ZXIBpwzPPKbdsgPQI zvEKfR/iqvXwozRc20S8TCYWnQ2DQTaqSVYnPfJKV1NVbAPI14IYA3KeDjcKdII9G7jV L8I6O7Q0EFBAGJOtsp7/sJeOoiI8/kY46Y6EUGZcjzd4LS26rMQ9SfYoWIKawbyTyALC UekwMBl+QgqoCB7sbE6irEcrQUk9okn5817Q7tJrXFjcg0BekdYCnWpfkJSqEyy0wTip PktLbCun0t9y4JzBNlf+4E/ogUuC+X1jDb3S3J9jAhb33Ba5SsmKfuV/hm4C1v4Ds4JO qocA== X-Gm-Message-State: AOJu0YzsyOS3vX6YsEukBnIXhPIdGgfoxsq1gldUuz9JwVtt10CtSmK5 /6OJJRod9Ul4+aoKYK1W2Sw= X-Received: by 2002:ac2:504f:0:b0:50b:bf06:ea0b with SMTP id a15-20020ac2504f000000b0050bbf06ea0bmr4812487lfm.53.1701339524296; Thu, 30 Nov 2023 02:18:44 -0800 (PST) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation (net-2-39-143-167.cust.vodafonedsl.it. [2.39.143.167]) by smtp.gmail.com with ESMTPSA id hg10-20020a05600c538a00b0040b398f0585sm1566915wmb.9.2023.11.30.02.18.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 02:18:43 -0800 (PST) Date: Thu, 30 Nov 2023 11:18:41 +0100 From: Tommaso Merciai To: Alexander Stein Cc: Kieran Bingham , Paul Elder , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, tomi.valkeinen@ideasonboard.com, umang.jain@ideasonboard.com, Dafna Hirschfeld , Laurent Pinchart , Mauro Carvalho Chehab , Heiko Stuebner , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] media: rkisp1: debug: Add register dump for IS Message-ID: References: <20231129092956.250129-1-paul.elder@ideasonboard.com> <170128834260.3048548.11979514587961676400@ping.linuxembedded.co.uk> <4881112.31r3eYUQgx@steina-w> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4881112.31r3eYUQgx@steina-w> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 30 Nov 2023 02:18:57 -0800 (PST) Hi Alexander, On Thu, Nov 30, 2023 at 10:54:46AM +0100, Alexander Stein wrote: > Hi Paul, > > Am Donnerstag, 30. November 2023, 10:47:00 CET schrieb Paul Elder: > > On Wed, Nov 29, 2023 at 08:05:42PM +0000, Kieran Bingham wrote: > > > Quoting Paul Elder (2023-11-29 09:29:55) > > > > > > > Add register dump for the image stabilizer module to debugfs. > > > > > > Is the Image Stabilizer on all variants of the ISP? > > > > > > I.e. is it valid register space on the RK3399 implementation? > > > > Yes, it is. > > Is there some public documentation available how this ISP works? For RK3399 or > i.MX8MP. For the ISP there is some public docs into imx8mp reference manual at page 5895 chapter: 13.14 Image Signal Processor (ISP) https://www.nxp.com/webapp/Download?colCode=IMX8MPRM https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/evaluation-kit-for-the-i-mx-8m-plus-applications-processor:8MPLUSLPD4-EVK This is not the full docs I think but cover some part of the ISP functionality. Hope this help. Regards, Tommaso > > Best regards, > Alexander > > > > > > If so then: > > > Reviewed-by: Kieran Bingham > > > > > > > Signed-off-by: Paul Elder > > > > --- > > > > > > > > .../platform/rockchip/rkisp1/rkisp1-debug.c | 18 ++++++++++++++++++ > > > > 1 file changed, 18 insertions(+) > > > > > > > > diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-debug.c > > > > b/drivers/media/platform/rockchip/rkisp1/rkisp1-debug.c index > > > > 71df3dc95e6f..f66b9754472e 100644 > > > > --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-debug.c > > > > +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-debug.c > > > > @@ -139,6 +139,21 @@ static int rkisp1_debug_dump_mi_mp_show(struct > > > > seq_file *m, void *p)> > > > > > } > > > > DEFINE_SHOW_ATTRIBUTE(rkisp1_debug_dump_mi_mp); > > > > > > > > +static int rkisp1_debug_dump_is_show(struct seq_file *m, void *p) > > > > +{ > > > > + static const struct rkisp1_debug_register registers[] = { > > > > + RKISP1_DEBUG_SHD_REG(ISP_IS_H_OFFS), > > > > + RKISP1_DEBUG_SHD_REG(ISP_IS_V_OFFS), > > > > + RKISP1_DEBUG_SHD_REG(ISP_IS_H_SIZE), > > > > + RKISP1_DEBUG_SHD_REG(ISP_IS_V_SIZE), > > > > > > I expect so as you haven't added the register macros in this series so > > > they must already be there ... > > > > Yep :) > > > > > > Paul > > > > > > + { /* Sentinel */ }, > > > > + }; > > > > + struct rkisp1_device *rkisp1 = m->private; > > > > + > > > > + return rkisp1_debug_dump_regs(rkisp1, m, 0, registers); > > > > +} > > > > +DEFINE_SHOW_ATTRIBUTE(rkisp1_debug_dump_is); > > > > + > > > > > > > > #define RKISP1_DEBUG_DATA_COUNT_BINS 32 > > > > #define RKISP1_DEBUG_DATA_COUNT_STEP (4096 / > > > > RKISP1_DEBUG_DATA_COUNT_BINS)> > > > > > @@ -235,6 +250,9 @@ void rkisp1_debug_init(struct rkisp1_device *rkisp1) > > > > > > > > debugfs_create_file("mi_mp", 0444, regs_dir, rkisp1, > > > > > > > > &rkisp1_debug_dump_mi_mp_fops); > > > > > > > > + > > > > + debugfs_create_file("is", 0444, regs_dir, rkisp1, > > > > + &rkisp1_debug_dump_is_fops); > > > > > > > > } > > > > > > > > void rkisp1_debug_cleanup(struct rkisp1_device *rkisp1) > > > -- > TQ-Systems GmbH | M?hlstra?e 2, Gut Delling | 82229 Seefeld, Germany > Amtsgericht M?nchen, HRB 105018 > Gesch?ftsf?hrer: Detlef Schneider, R?diger Stahl, Stefan Schneider > http://www.tq-group.com/ > > >