Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp546530lqp; Fri, 5 Apr 2024 01:18:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQN/pb5NMCFM+FQ4ZdPhO6HEerVUwZrNcP4cijmnDhDexbKGT9gWlY5VWxdJ5WZZwl6gCKXXc95DGWuzlRuhgX9FBx1V9cAzx2oB9R4w== X-Google-Smtp-Source: AGHT+IG2kykC1AXeUeL1PqEjDJarhmCCuByaKSMzcTsZRP0OrFOSWt+BmGdOtEZDb0tRTjVZL0aL X-Received: by 2002:a05:622a:1186:b0:434:6653:f43 with SMTP id m6-20020a05622a118600b0043466530f43mr5090qtk.20.1712305083372; Fri, 05 Apr 2024 01:18:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712305083; cv=pass; d=google.com; s=arc-20160816; b=OfAmtN/2sawfjg2FMnlIRBrsNXGE5CCAqShxG/RFp68+QcR2RbCsd3VuNddNSPwUWm F2VeFVLWqVhF0U68kU11IUtU2tcbHNMTv+M36jmLSt8SQ0rAF/yklVf8IoCInklk704l fGo8VWAsZe7io5P3ROsxKXIsGFj7mjAQonwxlfCMrwb2eAeY4z+hEuB1vVScoJDLFVTP Lm87VTsfIc1OSa9TGLNvX0urpSGPCcOf2j5Hc2FRjwS/hmZfPgqckWb/nsSQLjuose0C 7TziTJyjwTFfr6d6qH2h1twrbF8pu9kZcvmZCZ8miEx/nGGLWh52Dan/Z4V1hHSecu3C d0QA== 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:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=DI+1/9Oav5HfDhfT9Axnw0fGwx0OZjqhiD2/m26OLDk=; fh=UPC5dlrADZ2M5Ot579gkH35zhRDpeGkIec33WbYo3Gg=; b=lSezXkw22gfzUY85kS/UvNaE1L7OPdsGGBJC2HChkZVp8VBVCfveZAGQBz9+Jau+eY 3l0tpGcC+JYuLOiHSrWIJb+BwGEToTGxoEw9ksoE6adgKjsl+OpvKvS0nDP91V9nOPz3 lcsGE0KMg7GVaBU8O5QoxCe/clnuC3gexrckcTPKL/Ye+kfoR/P3W4b10/1b9MmdrWgg C/Qqx+vjKSHIuHjq2/SB+u/SgSPInEbBxqTBUl6vpPq8ZwGZYGoulci/Kvs3PzQ1INrw rFIsLimFFOQnqmBYT/fnIW0DGZboR1Rp0r6p8gxSjvwfe52nesZmxH8Uuv/5Rk+Rajb/ +zqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lNDi1GUq; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-132642-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bp7-20020a05622a1b8700b00432c497d1e6si1254428qtb.73.2024.04.05.01.18.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 01:18:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132642-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=@collabora.com header.s=mail header.b=lNDi1GUq; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-132642-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 0CFFB1C21040 for ; Fri, 5 Apr 2024 08:18:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8EA8E14658C; Fri, 5 Apr 2024 08:17:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="lNDi1GUq" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 491C648CF2; Fri, 5 Apr 2024 08:17:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712305073; cv=none; b=M4Irst499W+Y/DW/Mspb5TgbQHqH79vHkNWaMDVa9Zu8gE9TKLQSHnWN+a6APxoMNsZKXULAcXwk/44ezoveVy3RgxBb4yQO40pTupgoanR1zUas1lFFo6wI0IvwrIbtPawSNb1NzjxdAW2rP7YwV5QzMCzQ8s8gyCt8BJr0hDw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712305073; c=relaxed/simple; bh=2ttnx/syndg1SQwF3EPAEoa5ox2rpecAHGxXciYNAHA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QrKMQJcm2uQ3/oV62lMQciFrnOh1dYysj9uhPY2Why6sug3O0mVWS68Rr8vVhmMky7IX3V/UinpQwcYhv/TUhWUHr8avj0Lg7azD8RmcIjAHztaSyqfc5QZGo2T9Pe72XHTUpaImbgu4P3w1myfdwb/h79SlidA7mBc2cjhrPpM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=lNDi1GUq; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1712305070; bh=2ttnx/syndg1SQwF3EPAEoa5ox2rpecAHGxXciYNAHA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=lNDi1GUq481w8n4ZvQHskVubVZVHye+7Mk7oZ4ndKU3aKRXi0wnBIRrRrUsZSr8sM xPvcR7vsjVNzh0nC7bQ2uMvNmkhNxPw6bgv8JCcVBG+2Mr4Ey+jY2uKPCuKiX0DhNI EhE1L49+O+6Dtd5BxYrqV+/SJtktnSQNw+81/jKBivKNqKDMnIlgFXI1d3zO+tarKl 9nYSww5mpaH/LOqFLpqxbxCbYjvbLXzJT+dg9k8+2OwybGNheaTQd097QbeUco3gq2 1thO+Wi05vVqT8HPEhvlGJ7yA5amGyeBDlm6Tz6mfbRnvmgfLPp3AHAoTqU7n6cDx1 EV+OPSJKAk+3w== Received: from [100.93.89.217] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by madrid.collaboradmins.com (Postfix) with ESMTPSA id F0E073780EC6; Fri, 5 Apr 2024 08:17:49 +0000 (UTC) Message-ID: Date: Fri, 5 Apr 2024 10:17:49 +0200 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: verisilicon: AV1: Be more fexible on postproc capabilities To: Nicolas Dufresne , ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, mchehab@kernel.org, heiko@sntech.de Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com References: <20240328093439.18712-1-benjamin.gaignard@collabora.com> Content-Language: en-US From: Benjamin Gaignard In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 04/04/2024 à 19:59, Nicolas Dufresne a écrit : > Hi, > > Le jeudi 28 mars 2024 à 10:34 +0100, Benjamin Gaignard a écrit : >> RK3588 post-processor block is able to convert 10 bits streams >> into 8 bits pixels format. > Does it come with any HDR to SDR capabilities ? cause stripping off 2 bits means > that tone mapping will cause a lot of banding as it won't have the expected > precision. I'm simply trying to make up the big portrait so we don't just offer > yet another foot gun. But perhaps its fine to offer this, its just that we don't > have a mechanism to report which pixel format in the selection will cause data > lost. No it just to enable post-processor capabilities like we have already for G2/HEVC. Since it is a post-processor pixel format it will be enumerated after V4L2_PIX_FMT_NV15_4L4 so it will update to userland to decide to use it or not. Benjamin > > Nicolas > >> Signed-off-by: Benjamin Gaignard >> Fixes: 003afda97c65 ("media: verisilicon: Enable AV1 decoder on rk3588") >> --- >> drivers/media/platform/verisilicon/rockchip_vpu_hw.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/drivers/media/platform/verisilicon/rockchip_vpu_hw.c b/drivers/media/platform/verisilicon/rockchip_vpu_hw.c >> index f97527670783..964122e7c355 100644 >> --- a/drivers/media/platform/verisilicon/rockchip_vpu_hw.c >> +++ b/drivers/media/platform/verisilicon/rockchip_vpu_hw.c >> @@ -82,7 +82,6 @@ static const struct hantro_fmt rockchip_vpu981_postproc_fmts[] = { >> { >> .fourcc = V4L2_PIX_FMT_NV12, >> .codec_mode = HANTRO_MODE_NONE, >> - .match_depth = true, >> .postprocessed = true, >> .frmsize = { >> .min_width = ROCKCHIP_VPU981_MIN_SIZE, >