Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp895270rdb; Sun, 18 Feb 2024 18:09:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX9+hN7fXFedVGrbdcI2y9Z4dchSS1n+GQZLE0LgciglrrUdqI0WGOQSAdb0iPn3OChhwfYI+JfTyEp8WxsCFOsGtocSzjXnglGjduWCw== X-Google-Smtp-Source: AGHT+IFGUAXHkc3diHygLcB6bLyqWea15HWim3Gw1AKJwtotpJhJOylNKuQIb2yJ8uk0bewikSv6 X-Received: by 2002:a05:620a:454f:b0:787:234d:5e9e with SMTP id u15-20020a05620a454f00b00787234d5e9emr14838398qkp.45.1708308572377; Sun, 18 Feb 2024 18:09:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708308572; cv=pass; d=google.com; s=arc-20160816; b=GPjo3YfFkgteGV3cfUN15FPOQeKBKBRuQKlL+NGPwpxbT5YzZLjvf/6pTM9H74XsHB tdaWusPTR3R4MIAPsdp7eq/GB3CdAIgnb6sDhJOlqGxyaAKlrSzbI7xSJ6zV1U2rVIp8 uKLv3UXfxn9/TnoC3Fz2GRLAQvngkIUchZVD69/vr73rFPwvyzawpNjMQP9rfF3BeUlT Grynhk1gkw8Ssh4l1T1V3vON6UGpAb48v0vbxzQRvmWlILhM8JzExQmwYttz15WFl99m vbTDBPDa5XcolT8gYHyDt8hXK99Tz1wMkdKWy2SS+UfhzU0lHuKgnkgSSQwb9PQRPxbA tFlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=DIWM3tJrA0wlobXoamzegxBja/IHtDSwJBifnTDGEqo=; fh=20FxUPwbBh+5Q58ffuZJtonYf98uUBEZBKJ7impCPrI=; b=0FatavLMKHfFujMwmA5fsIMu51jf4ui38tDNe9KpliSVAw58QpF9KYJkWb4ZURDcFd zlKvfIQWVA3VyFCHrjOr/9DT35uoWEgps3OkuOtExqorcMmweZOK4Yw8CBy0T6V53tuU FjGRaE5xIlXyZchKTfNYXGmLpZ37tPbQ4Z2Ag8TQjM9w7Re57qvL6eu16js844hTfdu3 DuTM+K11OYR2AG6WpnysVn5OgBAy+h/q/B9E7rD/W+vLRVj3tEcc8CGYK5R5T73i7Dpt zMlpr0arsBuE/is5ES0r+baoIdKYcwze/xvSSMs3nh+aJrjhPijxNlW+4LW4MSSMgRz9 Uomg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="RKkk/BcT"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-70644-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70644-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bk26-20020a05620a1a1a00b007871669a7fbsi5441344qkb.780.2024.02.18.18.09.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 18:09:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70644-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="RKkk/BcT"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-70644-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70644-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 255421C20A71 for ; Mon, 19 Feb 2024 02:09:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B84A7443F; Mon, 19 Feb 2024 02:09:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RKkk/BcT" Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6836EEDD; Mon, 19 Feb 2024 02:09:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708308554; cv=none; b=A01xum6K4EwKfn6YU0MEgBwOJDHnCMp6cp+U2sIBN+1yThhRM1uZsFRTTpPO3C8DFDnYhMHbFCc8tFASa3EpsiGlied8rtZbzBH32un7E8K8VrMF0eYJ9vMufoGX6xdfbJ8TQY7fbhwToKUpmEBtXwKAurUaChxVcYl3X0Cc6Y4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708308554; c=relaxed/simple; bh=nh9PlCY5GHhOe6k2T31PX2SYfQhyKcaZxGHW7Vhc+2A=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Content-Type; b=DLZFrPA61W32fSQtlus7mGaOaP7uSP1unLLyMnJXomT7QjB+PCPZUiwJdzhg99NIYk7Y6O7G6uJXSpv6XNaPgf1VEaL71Bu1HKCeyUATvjD39wuGtB6h1PWf9MY2yI8eXSXyNmGuIA7vn77sFQe+PKg+3U1ujWXH73JPaR4M5LQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RKkk/BcT; arc=none smtp.client-ip=209.85.215.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-5ce2aada130so3466007a12.1; Sun, 18 Feb 2024 18:09:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708308553; x=1708913353; darn=vger.kernel.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DIWM3tJrA0wlobXoamzegxBja/IHtDSwJBifnTDGEqo=; b=RKkk/BcTlOfWAuWXfzhG1FHG7LVc6+GLG4JdnHeu/PTLDt69SO4tN6aKjqtkwrXFOZ 3RXEU/GhKhwq+szqSHFd22y8swkmMM/OxkzNzGOG/cRVRmZz8KS4fPex5xqfzWojrY3m k/zL7uSHioUKR83bC8Sd676J2bDYxhgtfYmcGepcauoMnC15E4e7DFTE3EMmdYn5roG0 CLfB6EwUAlPlpvHebcCVOspJIdA5dJu6vqenKpxDnxEWdW3BKcNJCuzkT7iPv6hIUZpZ ATlams5XslWVoQcxBeaBysY6+W3wVMF78LK4vaZmJKnGYU7gG+GlZjLQEXzcYRc3nnL6 51pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708308553; x=1708913353; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DIWM3tJrA0wlobXoamzegxBja/IHtDSwJBifnTDGEqo=; b=N8rIyWq8eYcGtyzFmo9yp8D/CBz5qQiRFiD9mg1rY7OLNGivwg76ZPr0ZJPyWqTXWh E4OyBVMFx16McRgW/JlztEdf24Fz3xMiatggQKoQchgFU2r5iaYrTieMuKzmbP99TGcg oTfdCY5DUCerXZKW2duHov+e5OtZnLwu1eBy3ZFmaEc/+TbslPmL/84Ut6cgPmjTdLDM AsEDEUolxpUTCKt5+NyGo5u3W4aURKHrrOhOHyFcn8EIrsYjMZqdNKR0FXnWXOyTEjAZ lJZlJsLRGsEedv8fdXpGKy5KJ4y29+HF+XRmHhNvwVz2wQhwqdcxLo/7mu4KRCgY3138 IeVw== X-Forwarded-Encrypted: i=1; AJvYcCUrn238jSfMXhASi0iRP2iwHE1lM4yzOMEpldmN/JQQH9UeccX2YUCF/5+jmWCsKSyoTJor7FlTP08F65L8T3kaF2oiM7bpmX9bRSmaUvvr51aMddM6muinMRwVtjH7SMrsaPav11dp/hk= X-Gm-Message-State: AOJu0YwEKLjY/tkhvmf5GvbKuH8IQ/5lRaBsv3pkEV6NpZP0mpoOk4V4 /CwXAFesIQoMVI2LnRtfayz+8jgm5hMJuSzlTNe1YIaic3F3iyTi8a61giDKFUKNJKnHNdheyoz GN9Zny0OwMKcqEenUUJmytOmyUMA= X-Received: by 2002:a05:6a20:9f91:b0:19e:b614:48ad with SMTP id mm17-20020a056a209f9100b0019eb61448admr10957320pzb.5.1708308552507; Sun, 18 Feb 2024 18:09:12 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240217185202.1754750-1-megi@xff.cz> <20240218205908.GA12766@pendragon.ideasonboard.com> In-Reply-To: From: Adam Ford Date: Sun, 18 Feb 2024 20:09:01 -0600 Message-ID: Subject: Re: [PATCH] media: rkisp1: Allow higher input resolution To: =?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 , Umang Jain Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Feb 18, 2024 at 3:02=E2=80=AFPM Ond=C5=99ej Jirman wr= ote: > > 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=C5=99ej 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 from a #define into a structure that varies by product family. 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 >