Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1015381rdb; Mon, 19 Feb 2024 01:03:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWZOIysNs00uedqyTct7HIoofQaWLpFQUcEYTkCej3KRrTLxlUIA8JOb+W6KUYpm3BAlt2F0DfkX4IaUa5iLQxfH1+mNqLLRFOXMb+/OA== X-Google-Smtp-Source: AGHT+IFK/NEmLyRQr6532U8Vgoq/4SQpdoD63iie/kp73PAk2Z88MvUXEwiPlucqhnBLkLcTgoBK X-Received: by 2002:a17:90a:ba0d:b0:299:bb1d:640 with SMTP id s13-20020a17090aba0d00b00299bb1d0640mr518610pjr.5.1708333426448; Mon, 19 Feb 2024 01:03:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708333426; cv=pass; d=google.com; s=arc-20160816; b=sSqzSxm7I+2jjmmHlm7lZNE8ZpcVfMsMdh4eY0rAie6+B4e/FWjNArPC415RNvfFvl w3Lvfmg0cICBSJWjO/W7cd6I2E1GjFHaqAykSp35yALh6NOg2kuwlsB20sYtX4SJai2o a3GR6bamcBTgXTLr6cm5a26vmDpste0ZvehqdorXNpdYSeHFcr3TidZfmbmaIGsHWi3C Gh3JECZRJ6TLmRkP05b8dN9/HmVO6sUCePy7tHvOkckPH2dyoOH4qjSe7SIa8a6KuTS8 whbSYfCvmjp6PyXy8OprbE5bZMHlpo22OU6lDc+iPimD96YRVB3zOO1VDYmfQdJAH2sz VbqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ZpKmdWF4l0h1BVGTMex0dG1dAwPQuzLMKG/ldilePHU=; fh=p9Zs9QliuQi9n5HGVmGEVW3muBheVMoLO412xJ8KNGI=; b=uQcdCTpubBPhXqHp1S5MpEpLtFuZNk5/OX9vKfsMJzcQ+C9p2JBDGuOZxl585uqh62 nJl0BAoFp7Pas1igxBgQS5bahGnaAEmwwdyubpObf28uAXh1jt4A9frzsKo+6qHlQVfU sO6CcrWiTmJkYQPMisa+BqsvZuEXWg3o44qjpafHcBfD7uVUPkhIi0VoJy2tlNRrzHar igiwhYMnR1TFLh0x5yAYa57Zhd0lJGWIahL86mPazeDEgzHpXmtXLwkKrO/UcwiRsc+U aWhTDUKbn5G9r/Cjwbfw9AlYkXcEqAKX30JL0kvu8Xan5jb5q/uga/MFXvtGyGmubpBg 4v7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=qtGV317q; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-70988-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70988-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c10-20020a17090a8d0a00b00299536beb03si3836725pjo.109.2024.02.19.01.03.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 01:03:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70988-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=qtGV317q; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-70988-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70988-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2BC74282A70 for ; Mon, 19 Feb 2024 09:03:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB9E022EF4; Mon, 19 Feb 2024 09:03:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="qtGV317q" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C7B8224CC; Mon, 19 Feb 2024 09:03:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708333413; cv=none; b=qoGF+2cMM0EC8XtXmK4Bir8388cmRDnrz1qV55Umci3Y7NgHjs3YxE6Eemz4k2wRwtvNmp74RzosyNXR4uN5nPkBPEsuDX1+xpnreFJGinPKD1tk37B7OJQPuufOX9hO0CDwS9maLXw0mJf4L973XaiqJ8YgI10tWlvbKMQK0vI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708333413; c=relaxed/simple; bh=9N9JTATGue0lSrwB0YkyG4L8xvvl/c/Kp9BnJrpO4FQ=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=skKVijyAIo06Tf+PBlUxP51+xxFAZFBGmgkLe0CACG1HxJMrJ2s8ohExQL60zf4Sufgw1tYH+NvkW9FSKPuRPBoymmO3UCnjD+dyC/2YqH1q9XUWA30LxHmKverC0IUsv5yD3YW9UDNp/pReS0agGreJaSwufOZ2lozrWWa09NA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=qtGV317q; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from [192.168.1.102] (unknown [103.86.18.199]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AD68A183; Mon, 19 Feb 2024 10:03:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1708333402; bh=9N9JTATGue0lSrwB0YkyG4L8xvvl/c/Kp9BnJrpO4FQ=; h=Date:Subject:To:References:From:In-Reply-To:From; b=qtGV317qIx71HN77jzgzM1hT4bFDAScyOC+DWe70QgG1TtNW3329gWqf0GBrZ9yqM xV1JOTpX/FYwkOQBncMu0+9eHLSIq0PtqMjaWleV/s770VrrZglCVmrFsKq9qt+JBi XkYVEi58+/Y32KAJrIPbeQhn7GoXjnf1D9OAArs8= Message-ID: Date: Mon, 19 Feb 2024 14:33:21 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] media: rkisp1: Allow higher input resolution To: Adam Ford , =?UTF-8?Q?Ond=C5=99ej_Jirman?= , Laurent Pinchart , linux-kernel@vger.kernel.org, Dafna Hirschfeld , Mauro Carvalho Chehab , Heiko Stuebner , "open list:ROCKCHIP ISP V1 DRIVER" , "open list:ROCKCHIP ISP V1 DRIVER" , "moderated list:ARM/Rockchip SoC support" , Paul Elder References: <20240217185202.1754750-1-megi@xff.cz> <20240218205908.GA12766@pendragon.ideasonboard.com> Content-Language: en-US From: Umang Jain In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi All, On 19/02/24 7:39 am, Adam Ford wrote: > On Sun, Feb 18, 2024 at 3:02 PM Ondřej Jirman wrote: >> On Sun, Feb 18, 2024 at 10:59:08PM +0200, Laurent Pinchart wrote: >>> Hi Ondrej, >>> >>> (CC'ing Paul and Umang) >>> >>> Thank you for the patch. >>> >>> On Sat, Feb 17, 2024 at 07:51:58PM +0100, Ondřej Jirman wrote: >>>> From: Ondrej Jirman >>>> >>>> In BSP driver, it is allowed, and it works in practice. Tested on >>>> Pinephone Pro/RK3399 with IMX258 at full res. >>> Paul, Umang, do I recall correctly that you have a similar change ? >>> Could you review and test this (especially on the i.MX8MP) ? >> It's also a limit from the datasheet, so the change should not be that >> controversial: >> >> https://megous.com/dl/tmp/d2b333043ecebaf3.png >> >> (so that it doesn't sound like I just copied the BSP values) >> > From what I see in the i.MX8M Plus reference manual, it has a max > resolution of 4096x3072, so it might be necessary to move this off This is what I (and I assume Paul too) have been working with on i.MX8M Plus. So it's the known and tested value of max ISP input from out side. > from a #define into a structure that varies by product family. Yeah! > > adam >> regards, >> o. >> >>>> Signed-off-by: Ondrej Jirman >>>> --- >>>> drivers/media/platform/rockchip/rkisp1/rkisp1-common.h | 4 ++-- >>>> 1 file changed, 2 insertions(+), 2 deletions(-) >>>> >>>> diff --git a/drivers/media/platform/rockchip/rkisp1/rkisp1-common.h b/drivers/media/platform/rockchip/rkisp1/rkisp1-common.h >>>> index 4b6b28c05b89..74098ddbeeb3 100644 >>>> --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-common.h >>>> +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-common.h >>>> @@ -33,8 +33,8 @@ struct dentry; >>>> #define RKISP1_ISP_SD_SINK BIT(1) >>>> >>>> /* min and max values for the widths and heights of the entities */ >>>> -#define RKISP1_ISP_MAX_WIDTH 4032 >>>> -#define RKISP1_ISP_MAX_HEIGHT 3024 >>>> +#define RKISP1_ISP_MAX_WIDTH 4416 >>>> +#define RKISP1_ISP_MAX_HEIGHT 3312 >>>> #define RKISP1_ISP_MIN_WIDTH 32 >>>> #define RKISP1_ISP_MIN_HEIGHT 32 >>>> >>> -- >>> Regards, >>> >>> Laurent Pinchart