From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E977EC433EF for ; Thu, 16 Jun 2022 08:08:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DK3sxgs4qe+Gm/yZImu1P5xmXmKQWbNykLf+EbQcihA=; b=Wrqqq/5PFzJO1G bGmF9nTntdihDZFFWftA2b4NjZQ9Hk5gORG6o7rBQeQaiyQWUjWqh573CpNcwgHWT/3UPhQiSTXio 83PIAfF1iSgRRVOf3/qd8w1lZAzlsy8nhJnjf1yhCg78/qktPElp4QUgNkP9Y1pQdFQ/9OAChEFA9 St1L91JVHNvYqUDJmVikkJ/Cfp8v+U/sGwEHv+OC0YaHmsL18A5TuliqF//v7QIYovTM1TO2voUAi JtyIFl5Yk/kib6ZjRnU+fTI1udred05yjUss6eCcZFFllQPZOBSWqPw3g1ZooNcc3s6FzCHjTKgKe 5/t75o3U1DBgqAKQ1B2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1kXd-001Idm-Dh; Thu, 16 Jun 2022 08:07:49 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1kPU-001Exw-Vx for linux-rockchip@lists.infradead.org; Thu, 16 Jun 2022 07:59:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1655366365; x=1686902365; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=L+tPL642xoSqELoYjZzQr10gwoG3KMcWJQWSp9d9Hd0=; b=XfmD42nTbRFL5Gzf5HnTemO5EfdTd6+72d230lrFcYo7pvyyLUv1HblD qmnNl3zYKz9fWbXpTgR3Y7Gh0N3OK6hQOkkmSIFoyo7Y0MtUtaJMfjsMN P6KKNODSok5//fmdRaOG44VIkzcDKQqKt+24Iol4ULjhKS+GC6STM1fsF wPWsqoUIdj8U7UO7/Bred7QnoyPE/qCEKN4LoXbO3u/CwzWAN43FLTTGs 02KyYVDYOT4fOV3UIEuC56MXY+CBN2Fq/lul01iuyOF4iFoZtV0mN3Z8J 1Rq+D4ikwfk+Hf1L5FnbbYHhBVXhM9AQMvTfCG+9ViBmy80TRHP+8TqZG w==; X-IronPort-AV: E=Sophos;i="5.91,304,1647298800"; d="scan'208";a="24492156" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 16 Jun 2022 09:59:23 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Thu, 16 Jun 2022 09:59:23 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Thu, 16 Jun 2022 09:59:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1655366363; x=1686902363; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=L+tPL642xoSqELoYjZzQr10gwoG3KMcWJQWSp9d9Hd0=; b=nl9LdQI+k2s3MF6/DACyzqqAN3JbwUOP00N+vANxjRTpqidAl25Enk38 dnd3lXo2pzrIZZ2A5dA4/ciE6v+XMJFH8hlJH8nAbPJAQGddr8ndxjQEr Hp+8h5X0ZMf+gNPGNsdgQnrR0uFOOrhyA+YiAL5ry7H9PoMV+csNyf3Ci 57au4hqDCA5NGK8z/gooui3ywN0TixYZRsdeQGxL3oa/9UOEhjyW20mP/ eTKMGomGoNsyRS/2vagJpFlk/l1pT4imFcu7SwFzdzRHoL6S2NZheDyL4 Sl8zBgjhGjkC57M1YC6OAWNXVcW0TSp/kpvcLh2IoFpgjvuqjMbwkPSMU Q==; X-IronPort-AV: E=Sophos;i="5.91,304,1647298800"; d="scan'208";a="24492155" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 16 Jun 2022 09:59:22 +0200 Received: from steina-w.localnet (unknown [10.123.49.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id B24C3280056; Thu, 16 Jun 2022 09:59:22 +0200 (CEST) From: Alexander Stein To: Laurent Pinchart Cc: Paul Elder , linux-media@vger.kernel.org, dafna@fastmail.com, heiko@sntech.de, jeanmichel.hautbois@ideasonboard.com, jacopo@jmondi.org, djrscally@gmail.com, helen.koike@collabora.com, linux-rockchip@lists.infradead.org Subject: Re: (EXT) Re: (EXT) [PATCH 10/55] media: rkisp1: cap: Print debug message on failed link validation Date: Thu, 16 Jun 2022 09:59:20 +0200 Message-ID: <6138990.LvFx2qVVIh@steina-w> Organization: TQ-Systems GmbH In-Reply-To: References: <20220614191127.3420492-1-paul.elder@ideasonboard.com> <7310038.DvuYhMxLoT@steina-w> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220616_005925_489680_ADD7B737 X-CRM114-Status: GOOD ( 21.75 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Hello Laurent, Am Donnerstag, 16. Juni 2022, 09:41:22 CEST schrieb Laurent Pinchart: > Hi Alexander, > > On Thu, Jun 16, 2022 at 09:32:17AM +0200, Alexander Stein wrote: > > Am Dienstag, 14. Juni 2022, 21:10:42 CEST schrieb Paul Elder: > > > From: Laurent Pinchart > > > > > > When a link validation failure occurs, print a debug message to help > > > diagnosing the cause. > > > > > > Signed-off-by: Laurent Pinchart > > > --- > > > > > > .../media/platform/rockchip/rkisp1/rkisp1-capture.c | 10 +++++++++- > > > 1 file changed, 9 insertions(+), 1 deletion(-) > > > > > > diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c > > > b/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c index > > > 94819e6c23e2..94a0d787a312 100644 > > > --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c > > > +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c > > > @@ -1294,8 +1294,16 @@ static int rkisp1_capture_link_validate(struct > > > media_link *link) > > > > > > if (sd_fmt.format.height != cap->pix.fmt.height || > > > > > > sd_fmt.format.width != cap->pix.fmt.width || > > > > > > - sd_fmt.format.code != fmt->mbus) > > > + sd_fmt.format.code != fmt->mbus) { > > > + dev_dbg(cap->rkisp1->dev, > > > > I wonder if a dev_warn is more suitable here. > > I usually recommend dev_dbg() for conditions that are triggered directly > by userspace, to avoid giving unpriviledged applications an(other) easy > way to flood the kernel log. Agreed, this is a sensible thing to do. I'm still wondering if this information might be missing, when having a build without DYNAMIC_DEBUG. Nevertheless I'm fine to start with this debug output at least. Regards, Alexander > > > + "link '%s':%u -> '%s':%u not valid: 0x%04x/ %ux%u != 0x%04x/%ux%u", > > > + link->source->entity->name, link->source- >index, > > > + link->sink->entity->name, link->sink->index, > > > + sd_fmt.format.code, sd_fmt.format.width, > > > + sd_fmt.format.height, fmt->mbus, cap- >pix.fmt.width, > > > + cap->pix.fmt.height); > > > > > > return -EPIPE; > > > > > > + } > > > > > > return 0; > > > > > > } _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip