From patchwork Wed Nov 30 09:21:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsia-Jun Li X-Patchwork-Id: 2412 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp821502wrr; Wed, 30 Nov 2022 01:32:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf419jlHgjrTNj2lQXWAGifqXJjm3odocX6zOLbFJhD+PvowuSELiir90wmhZkw0mXgQfuF0 X-Received: by 2002:a17:907:9951:b0:7b2:7e7a:11c1 with SMTP id kl17-20020a170907995100b007b27e7a11c1mr35134193ejc.684.1669800771041; Wed, 30 Nov 2022 01:32:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669800771; cv=pass; d=google.com; s=arc-20160816; b=y85ycKtQKgstgYdbjvpDNuQ3y7KiJKsMX+qKDgmDCYC89DILDkGIlGowP79voTavsx 9hl6EL67ApN5lecFloPx7iW6LnwqyEuylBfD4WTVn1i62FxxkJkW6Fsme35JY8zcbzQC yFaMqo+SMRjl04gWLASaJjDkEEB4hqIQQY/2xeeLzrlvVcOgkzvyfueNfGcu9q9bKRjk 4oU8Z6FneK1OuMhBw3a1sHFnYYgueSkTY81IUFA4m+++O5ZE+PP/M26wNKAqE4xOFbNC W+Ypllpc4IFmt3NTpr6wjsgoyvj3PyZd2YOnOcVRMoS6a/AehaqrIjfWWe8OBXkevUFw Xn4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=EhcLVcuUqtxtsbfnHqCxtS9G50W9ouDoSS8xbVeFTi4=; b=VZ8tC3RttMg+8HXeY0P0lZrr1SHQdOnwYUyB/+pcyvjwqtLaMQ4x8qJ4qFhQ6bmuBZ nOqfDVoew3LMC/Afdmuh+j5wXs93MaOB3J7q+KblDu+6FqZUNVCaevJvi0WQFZDIdiFM P5daEJvs5KHKS2SoWtjYIa3PHarnoRaJs1RgPYvcR3jbHVtO1wDDiPgMMAYt4pK0AWX5 ChLGIQKe5nCFosH5FeeiA1NX2l97nK5mQ89iGQYeYrnjzH6AblrUqBDX8yyuEIsg7fyL ZDI6PmU/dTNy3z+BlFiGbskWx2C0IC0tTKqWmqXL0w+jZTfLXBuSvMUmD2ZPNwrFnMpN MYUA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b="h8fRt//d"; arc=pass (i=1 spf=pass spfdomain=synaptics.com dkim=pass dkdomain=synaptics.com dmarc=pass fromdomain=synaptics.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=synaptics.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020a170906b08700b007ae0e8f697fsi650355ejy.652.2022.11.30.01.32.26; Wed, 30 Nov 2022 01:32:51 -0800 (PST) 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=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b="h8fRt//d"; arc=pass (i=1 spf=pass spfdomain=synaptics.com dkim=pass dkdomain=synaptics.com dmarc=pass fromdomain=synaptics.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=synaptics.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232484AbiK3JWg (ORCPT + 99 others); Wed, 30 Nov 2022 04:22:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232281AbiK3JWd (ORCPT ); Wed, 30 Nov 2022 04:22:33 -0500 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2040.outbound.protection.outlook.com [40.107.95.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8931951335; Wed, 30 Nov 2022 01:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tn3rHK+OtKkuoGm6NiKR/kPMHVY7FWzLXqIu2C0U+Uc5QQQ3sBbXyXYRAxdHcDVKeRUI9MUVTgBgdBNywmY/ww1bM0gc7CFzSOvJWVBuixRK3pFhhYLZ8+4rriiXBCe4XSqIAV5Y5D62e/cmvPc8CeRltVIQ9Vteg4uGJMmZvHhwBIWQUobM4xav5fcJs8j2zN90CVKTsqbXhOn1ZZbuRVGH+G/7mIsOfWTbFp8zF2b5sQkYtQzjU4QHoAqMOu2tT9WpJxK2LBY+HsgVf/RZoCLFIkTtR2KPswU5Xr2N+e23gZwMyXOa4qXaDqBBk08XQ1tGBFNMSMqkXz6OG5avTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EhcLVcuUqtxtsbfnHqCxtS9G50W9ouDoSS8xbVeFTi4=; b=ONviR2CLRMlS+gmRSjH1HklmhgHvifJ4blCEboPuAY7Qj1aDSzjJcX3oCaSOa0hy5iEJIE++2L0RHhpb4qEIxncr24WRJleMNGAo2fynlP/gE1E7B0r0gZ5Q/sPJgrv5Qzjj8JAYnrDLgYGN913p+mrHd4tKtRHHomFNKgJZ840c8ir0CYyRtR2jUhWTDTgn/UDSX8ot8B9cGTwdKdaWrifPCkkK7xsSWHblkYWam5Q1gCmpi2n5jc6GBLwq8IlsMCUUNPCHkWvB8T/dkCXj3N13nrZ7V8pzjEJWRg/AMiAkhY7MLFHuE5x+brt5LgecNS8dPl/SfW3KVv9BEs1ExA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EhcLVcuUqtxtsbfnHqCxtS9G50W9ouDoSS8xbVeFTi4=; b=h8fRt//dIXHx5TFH69xSM+/nHn0YDHKfSkC01rZNthyHgL5lr27ebfO77RnOZ2voeDW26VJVTEQFYTfgv875YarpLevKk1Kr5G//U+Cfwo2WgFaG1iDFGhdIsjI7E9wCMv6lUdxG9CL9zoJhvMe4Q5B6U8gVexYrccyMMotu2vM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=synaptics.com; Received: from DM6PR03MB5196.namprd03.prod.outlook.com (2603:10b6:5:24a::19) by PH0PR03MB5799.namprd03.prod.outlook.com (2603:10b6:510:34::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.23; Wed, 30 Nov 2022 09:22:23 +0000 Received: from DM6PR03MB5196.namprd03.prod.outlook.com ([fe80::a132:66d9:ed0f:e5c1]) by DM6PR03MB5196.namprd03.prod.outlook.com ([fe80::a132:66d9:ed0f:e5c1%5]) with mapi id 15.20.5857.023; Wed, 30 Nov 2022 09:22:23 +0000 From: Hsia-Jun Li To: dri-devel@lists.freedesktop.org Cc: airlied@linux.ie, ayaka@soulik.info, sakari.ailus@linux.intel.com, ezequiel@vanguardiasur.com.ar, tzimmermann@suse.de, linux-kernel@vger.kernel.org, laurent.pinchart@ideasonboard.com, mchehab@kernel.org, tfiga@chromium.org, mripard@kernel.org, ribalda@chromium.org, maarten.lankhorst@linux.intel.com, linux-media@vger.kernel.org, sebastian.hesselbarth@gmail.com, helen.koike@collabora.com, nicolas@ndufresne.ca, linux-arm-kernel@lists.infradead.org, Hsia-Jun Li Subject: [PATCH v5 0/2] Add pixel formats used in Synatpics SoC Date: Wed, 30 Nov 2022 17:21:47 +0800 Message-Id: <20221130092149.102788-1-randy.li@synaptics.com> X-Mailer: git-send-email 2.37.3 X-ClientProxiedBy: SJ0PR05CA0142.namprd05.prod.outlook.com (2603:10b6:a03:33d::27) To DM6PR03MB5196.namprd03.prod.outlook.com (2603:10b6:5:24a::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR03MB5196:EE_|PH0PR03MB5799:EE_ X-MS-Office365-Filtering-Correlation-Id: 8de05845-7803-4fd8-56f8-08dad2b46320 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eyfjJdfBMBKALq4AOoHe779vWrnKxz56z32r8EkaeTnHPFN8WOfblciJ3f6TyWwcy1C1pdByt5snZjepaTRMyw+kagcLjuS3JDVzcVvdeWamOg8bvcS+7a2CGZYqVvG7yEtOW3t/x4JpRTqwlKEV6mEdIblXJgmF8AddJfssoiqRK7MifSeNsyjijjJpCzV2cPUguSUcyuEM/14HWp8ReF6W7RzepwtpJraWSOCFb6+pc2toQ+jGRZMJMy6HhQKWGL7SFUlV63XDa8+0ESYv+qV0+r+jiTmr4aY3xHakUqQ6rrFhKP3twnNI7rqrYd32Uny5Mfeb1cBvXD6cWbZuf2gaFjTwlMGu75hWRdnwr/C57p9Bvm6OLztl9K07Fh5MPlXfik7W2fvKpFaXymlrp9WVMBzeDuWQvEiyOFK4P6G5KX72SiOHOAi+9JAQOns2Y+TUyfdqvXrxkD6pMN6I4/MNSxvpxydmQoH+uvz16jz/yrLxWdBdLFNeX7Nfx6uOjGo8QcNjZMstxugthUmcCADjJynjKQi2JoVJqZWWuYvwuR7ZlNAVWT7cGB/iyQcdeu0Rlm5YyGy5UtQpWH1rdBsW+Z5qK79RDcWTKUz25JLh/8vnVjiJ64sInPp+Z7k4g+UCiu/w+sxvwEkqLBplS/6kZXFOEhqneQdZz+jyiXWplmwuQHLgR0pOFb9JXEdIyAtVgwy5NYtgPt9MWW5UVbhPXAj8N/YYVmo11mUDAYA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR03MB5196.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(136003)(346002)(366004)(396003)(376002)(39860400002)(451199015)(316002)(478600001)(66946007)(36756003)(2906002)(6916009)(1076003)(966005)(6486002)(86362001)(38100700002)(83380400001)(107886003)(6666004)(38350700002)(52116002)(6506007)(26005)(6512007)(186003)(2616005)(8936002)(5660300002)(7416002)(41300700001)(4326008)(8676002)(66556008)(66476007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Vs7uvlXieJSoYddchReRBWtuWJ/ZhBZF1vesmMc9reVJcqalX7ScSYkM1a6o1ABsZvpktL9j0oNRdV17wk4rYEaSezixqzgTcg+tS+KJNAnN92ENJPrXJgdSRMZ7VdSQsNcOA0gtBvfjaTRNMEyZQ4oO/AHjcVmdfBg5spgkXRKRKH50qdBqGGLa855lr7MreezPLoQw0Trm+PBKoa7RvMLkIrQyvkW5+zQxmwN8MikoiJebUdJuAakhFxY5pucPHeLQLKVlpoA7K1+CBbFWvA3hBEzJy0f6B0ncitx6Tsxtq7ps6KKyeYDCP2WPPilLkuRLLqKcI08OsJVtIFzOcGtvlpCPGBK0F/uqr5vHSA3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IcJmiKXWBS4kLBRyjnlV8ACQzHopaTsxLBkAqoIGaleGxvY344qZU7gDseE2ebqjJy+QNX1x4TMLhx1WaeG8+eRPOE/CtSBwf84bSj47dIQca0CAatCkq1YN1M/fSjve7X1tgTexATxSR8p70f3dl0KuZTO X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8de05845-7803-4fd8-56f8-08dad2b46320 X-MS-Exchange-CrossTenant-AuthSource: DM6PR03MB5196.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2022 09:22:23.2007 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LQo0zSjper/K8nuYI54jmO/l+6ahddrvZiedSpV3uzWiTYnO+hxXIsDV6cvWgfLFJIvHDDKw9Sm/4+ssb5QlHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR03MB5799 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750913013140589470?= X-GMAIL-MSGID: =?utf-8?q?1750913013140589470?= 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 connected to the MTR module could support those tiling and compressed pixel formats. https://synaptics.com/products/multimedia-solutions Changelog: v5: Moving back the document and rewriting the description. v4: Removed the patches for V4L2, V4L2 would use the drm_fourcc.h . Moving the documents to the mesa project. v3: There was a mistake in format macro. Correcting the description of 64L4 variant modifiers. v2: The DRM modifiers in the first draft is too simple, it can't tell the tiles in group attribute in memory layout. Removing the v4l2 fourcc. Adding a document for the future v4l2 extended fmt. v1: first draft of DRM modifiers Try to put basic tile formats into v4l2 fourcc Hsia-Jun(Randy) Li (1): drm/fourcc: Add Synaptics VideoSmart tiled modifiers Randy Li (1): Documentation/gpu: Add Synaptics tiling formats documentation Documentation/gpu/drivers.rst | 1 + Documentation/gpu/synaptics.rst | 104 ++++++++++++++++++++++++++++++++ include/uapi/drm/drm_fourcc.h | 76 +++++++++++++++++++++++ 3 files changed, 181 insertions(+) create mode 100644 Documentation/gpu/synaptics.rst