Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp977553rwb; Thu, 18 Aug 2022 16:12:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR79WZOXUgUYbhuo1yYfqkZvY12yRwRIVTrSRyV49apz7pnrIN2c/9gk1465DtaXAzau1azd X-Received: by 2002:a17:902:a60c:b0:171:407d:16f8 with SMTP id u12-20020a170902a60c00b00171407d16f8mr4599811plq.58.1660864367303; Thu, 18 Aug 2022 16:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660864367; cv=none; d=google.com; s=arc-20160816; b=CvOl1fCxodnJKomp+Uyk2YVLolj5nFtqGl2bE8Gf4eCdcK0NihwNjbnLYYOnYt2J5T NHRGvMAT3/IkO06bIPgV9ZozO73WzMCct9zZSaSMpkzE9lKA240zU98DDKXV/++ADrSX aNwjYaIcDM0Z3kb9uAUChU7unzva1zuAz4uGlctXX0c53mSVOSdVRdkoyTQBzN533gqX 1tEe0B6et6J6hngzfmrIV/nAY1geLZoSxn5m4sUrva5OupVtKPwiPX+jfK5sD8e889vr BdwZDBYDnilYwJbejk+T0v/m3HcYXwbeZSw4Vz18mUpCQyedmH4qAqrKBiZbx32gA6G4 TWrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5oSD/ao/gvJHMhrWDrAlwWTnyQf68mpROMdcZo1CAK0=; b=qphk4oXPd0jM7INy7PLZLg4r4n6c6xrWJPx86MDjvHphQkhDoRgwlqW/Hif/myxwBB Vnktb0drFRr+GgXEY9B6o3yM5vQHcTFcSFuDgU0pTMefNSDGokPVJsmo1kRp0LqRYcJl zJZYmDxk3xA/pL9mHzQ/fyxo0gIfYRdAvP5f9YCwAreITsgmeh2xvO5XddscxWnEqvG6 IQe3uyXMbRgbDiA/quMCUNcCUhTTdbjr8WLlxTow01EqQRx7JgAjMXo05UsZthAeGRLH ttlN0WVTQvGcdL1AMQapSXbTE1hdsVQbTkyhi0sqCmD6jTo9pEVhc12L1Rq9fPsX5AcP +P7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=UdH6mVd6; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x10-20020a65538a000000b0041286c0c381si126691pgq.270.2022.08.18.16.12.36; Thu, 18 Aug 2022 16:12:47 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=UdH6mVd6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244142AbiHRXIs (ORCPT + 99 others); Thu, 18 Aug 2022 19:08:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240507AbiHRXIo (ORCPT ); Thu, 18 Aug 2022 19:08:44 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33C2C20F7B; Thu, 18 Aug 2022 16:08:41 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2FED08B; Fri, 19 Aug 2022 01:08:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1660864119; bh=4PW0JoB03TlII/YoouL7jQizC1IyM+yy8mabacxO+gQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UdH6mVd6rDYDxPUVxru3l0Xei79gzGoJTMrC3IqfTFzlgYczifoyZ+XZI6wN7opwA r3rvhu0vH4/QbL6DbYoJIz0EYFn58xavLauFrbdVivwbKWp45Km1qvzifRgxAYK68B jU/Gix7Cw+IRHCUy6NrvEM4+iFchBirF0GTZMMwU= Date: Fri, 19 Aug 2022 02:08:35 +0300 From: Laurent Pinchart To: Hsia-Jun Li Cc: dri-devel@lists.freedesktop.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@linux.ie, daniel@ffwll.ch, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, ezequiel@vanguardiasur.com.ar, sakari.ailus@linux.intel.com, ribalda@chromium.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, tfiga@chromium.org, sebastian.hesselbarth@gmail.com, jszhang@kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 0/2] Add pixel formats used in Synatpics SoC Message-ID: References: <20220808162750.828001-1-randy.li@synaptics.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220808162750.828001-1-randy.li@synaptics.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Hsia-Jun, On Tue, Aug 09, 2022 at 12:27:48AM +0800, Hsia-Jun Li wrote: > From: "Hsia-Jun(Randy) Li" > > Those pixel formats are used in Synaptics's VideoSmart series SoCs, > likes VS640, VS680. I just disclose the pixel formats used in the video > codecs and display pipeline this time. Actually any device with a MTR > module could support those tiled and compressed pixel formats. The more > detail about MTR module could be found in the first patch of this serial > of mail. > > We may not be able to post any drivers here in a short time, the most of > work in this platform is done in the Trusted Execution Environment and > we didn't use the optee framework. Is that so for the display side too, or only for the video decoder ? > Please notice that, the memory planes used for video codecs would be 5 > when the compression is invoked while it would be 4 for display, the > extra planes in the video codecs is for the decoding internally usage, > it can't append the luma or chroma buffer as many other drivers do, > because this buffer could be only accessed by the video codecs itself, > it requests a different memory security attributes. Any other reason is > described in the v4l pixel formats's patch. I don't know whether a > different numbers of memory planes between drm and v4l2 is acceptable. I don't think that's a problem as such, as long as both the V4L2 and DRM formats make sense on their own. > I only posted the compression fourcc for the v4l2, because it is really > hard to put the uncompression version of pixel formats under the fourcc. > I would be better that we could have something likes format modifers in > drm here. Agreed, we need modifiers support in V4L2. This has been discussed previously ([1]), and a proposal ([2]) has been submitted two years ago, it needs to be revived. [1] https://lore.kernel.org/linux-media/20170821155203.GB38943@e107564-lin.cambridge.arm.com/ [2] https://lore.kernel.org/linux-media/20200804192939.2251988-1-helen.koike@collabora.com/ > https://synaptics.com/products/multimedia-solutions > > Hsia-Jun(Randy) Li (2): > drm/fourcc: Add Synaptics VideoSmart tiled modifiers > [WIP]: media: Add Synaptics compressed tiled format > > drivers/media/v4l2-core/v4l2-common.c | 1 + > drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++ > include/uapi/drm/drm_fourcc.h | 49 +++++++++++++++++++++++++++ > include/uapi/linux/videodev2.h | 2 ++ > 4 files changed, 54 insertions(+) -- Regards, Laurent Pinchart