Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8664404rwi; Tue, 25 Oct 2022 09:18:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7dhohUaU3tpay8OweXMncLFLtxpObUjweoA9A+dwBCGY1DgUtge3roLgMFfhAC7lvljggj X-Received: by 2002:a05:6402:1944:b0:457:fed7:5c30 with SMTP id f4-20020a056402194400b00457fed75c30mr35532064edz.278.1666714709521; Tue, 25 Oct 2022 09:18:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666714709; cv=none; d=google.com; s=arc-20160816; b=YAOfDtXAmyu+rxMRjQLzKWMcPKd2sx9MW2pngdityg2h1lRPzbSLuWLD17PHlzvQ7a jevg2/ciN1XlmTJY3XtJAtsXbW+alGaUuPZJMJ5nMCiMv8r3BPkjzEVR8BOBcPhAYfJC rZpUHwdiCrohZlAp2TdSAayOKct76HyOWcVq+KCwaHovUv7t78erBvjTgJIOeQK5YzzX aHdsZm3q3EAXSIUrtyj+JUQFY2xLgv3B+bK3HUILUO09PK03uyr6hTUg5Vv8XB/HOzQ2 kiHIiRU0XZB0r1/aKQboyiGYbqavFs/nBvk5/VSXF7gXif4NgKj3ukIdHgoguuq+zK0e T+HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=r6+tPR/kzu6yF7DNjbTLOGctUOsV7x2e9sXfAZuE0k4=; b=sAW7WuipKkEvmohy2+EbVEimfYokGC/W+wod+fIZS55GEUGlRFf4dR0Bi5n9mSv3/8 hxCtKw2K19p09X73NpP9XkhXW8LCmAMgMQejJUvs5ZwiqJrFnkKbTOAd03K3XrtU28aO YnUexDCP0OQzslgW8zyU2EE2bnBNwvwIp4sNKJCQWucPCVIxdLWrKyl1USyi8WL4ik0A veMLBu1OlyAYAT5rjBv/lpc0pxeYOjQyGotwLDje1Z9LSttuRd0GGq75asfpRcXms4sz MySKL6fi1/VQnHr6DZP6m5J7Rgj5jqntOeiPie8FG7yDwhLHQ+UTmPmrDVtcVvAfjfuI cgKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="K/0n8sGD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j26-20020a170906255a00b0078de8494d15si2655217ejb.996.2022.10.25.09.18.03; Tue, 25 Oct 2022 09:18:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="K/0n8sGD"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229543AbiJYPQ0 (ORCPT + 99 others); Tue, 25 Oct 2022 11:16:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231368AbiJYPQX (ORCPT ); Tue, 25 Oct 2022 11:16:23 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C26299AC33; Tue, 25 Oct 2022 08:16:21 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id z14so8124287wrn.7; Tue, 25 Oct 2022 08:16:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=r6+tPR/kzu6yF7DNjbTLOGctUOsV7x2e9sXfAZuE0k4=; b=K/0n8sGD13R9NapDToBhBYXraQ2lv2zWdofXSCF4F7BjIa6/wKU3fG1eRxjlEYsiXD c0YVX3StPEiX4/sDk8pF3BaoYxnxE5Vg9oaC/nl/oBwgbsZ9G/MHJVhgjkli8c9Lhp4n 6x0BxFVlSjNYR76+vjd8I13nj/0cnPKK2k/kheJm9JmQhW0XsHpUsVv59PlUHo9WeZtt 1puXpbkugYO9+ew8skdfhTD830InDexc/trs5T3qjef/5mdty2ideJ22l4a3lJwPTSqy HXSPlN7zpHx8QjtdKG8rXkzIhq3paMF8+XYbZQzMg3Jpv1D0phBioMJx6tAE3oMEfCRV BI5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r6+tPR/kzu6yF7DNjbTLOGctUOsV7x2e9sXfAZuE0k4=; b=vsiVYYBEGKojDt6nL+tN1lJCc6IuOV+y+iK6StxLy4Bnbh9wm32X10hGiNdhE3idfZ UG3R+fVFDNbmf5N5IFnJQbTzsXhlFoNV7HmfDm7J66OhLwLYlQpLrh9mLsuGWF+WISSg /GGvVNiaQatRWOK7NcbIur24CymnS7XRP5Q9hlhBC+Z9tZfZxRW7Lk5jzl9oogHyntbR /l9ysMbomliX8Fp5BdW9cXibjTr7Wt9XizHq9i38e6AxGJePmZEGp1CFTJXqgAB/kk2l A/lkFFlUrwsY7CkU8z7yA7hTuSMbpHh5mA9G1K+p3EHAlMQ62Urh5jcA2PuIizSiiTmp 1mIg== X-Gm-Message-State: ACrzQf1rV9YGkEBbGHwywBa3uguwkma6kEBCv7GB7n5fHeYC5QhB5FBT EEQ9urIvgx293nTmtMpvlZf0THWj1HWosQ== X-Received: by 2002:a05:6000:1862:b0:230:fc9a:813b with SMTP id d2-20020a056000186200b00230fc9a813bmr25408691wri.552.1666710928334; Tue, 25 Oct 2022 08:15:28 -0700 (PDT) Received: from jernej-laptop.localnet (82-149-19-102.dynamic.telemach.net. [82.149.19.102]) by smtp.gmail.com with ESMTPSA id j37-20020a05600c1c2500b003b4c979e6bcsm12181227wms.10.2022.10.25.08.15.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 08:15:27 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Paul Kocialkowski Cc: mripard@kernel.org, mchehab@kernel.org, gregkh@linuxfoundation.org, wens@csie.org, samuel@sholland.org, hverkuil-cisco@xs4all.nl, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/11] media: cedrus: prefer untiled capture format Date: Tue, 25 Oct 2022 17:15:26 +0200 Message-ID: <4749341.GXAFRqVoOG@jernej-laptop> In-Reply-To: References: <20221024201515.34129-1-jernej.skrabec@gmail.com> <20221024201515.34129-9-jernej.skrabec@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dne torek, 25. oktober 2022 ob 17:05:16 CEST je Paul Kocialkowski napisal(a): > Hi Jernej, > > On Mon 24 Oct 22, 22:15, Jernej Skrabec wrote: > > While all generations of display engine on Allwinner SoCs support > > untiled format, only first generation supports tiled format. Let's > > move untiled format up, so it can be picked before tiled one. If > > Cedrus variant doesn't support untiled format, tiled will still be > > picked as default format. > > Makes sense to me. Of course the order shouldn't matter to smart-enough > userspace but it doesn't hurt to serve the most generic case first. Per Documentation/userspace-api/media/v4l/dev-stateless-decoder.rst driver should select most appropriate format for current platform by default. Setting capture format is optional by aforementioned document. Best regards, Jernej > > Acked-by: Paul Kocialkowski > > Cheers, > > Paul > > > Signed-off-by: Jernej Skrabec > > --- > > > > drivers/staging/media/sunxi/cedrus/cedrus_video.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/staging/media/sunxi/cedrus/cedrus_video.c > > b/drivers/staging/media/sunxi/cedrus/cedrus_video.c index > > 3591bf9d7d9c..f9f723ea3f79 100644 > > --- a/drivers/staging/media/sunxi/cedrus/cedrus_video.c > > +++ b/drivers/staging/media/sunxi/cedrus/cedrus_video.c > > @@ -56,13 +56,13 @@ static struct cedrus_format cedrus_formats[] = { > > > > .capabilities = CEDRUS_CAPABILITY_VP8_DEC, > > > > }, > > { > > > > - .pixelformat = V4L2_PIX_FMT_NV12_32L32, > > + .pixelformat = V4L2_PIX_FMT_NV12, > > > > .directions = CEDRUS_DECODE_DST, > > > > + .capabilities = CEDRUS_CAPABILITY_UNTILED, > > > > }, > > { > > > > - .pixelformat = V4L2_PIX_FMT_NV12, > > + .pixelformat = V4L2_PIX_FMT_NV12_32L32, > > > > .directions = CEDRUS_DECODE_DST, > > > > - .capabilities = CEDRUS_CAPABILITY_UNTILED, > > > > }, > > > > };