From patchwork Wed Mar 13 00:54:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Klymenko, Anatoliy" X-Patchwork-Id: 13590809 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 97B15C54E5D for ; Wed, 13 Mar 2024 00:55:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Uj41ygpaKs93w/B/ObNsHH27RbICWb+mQ5+a3do9V5M=; b=oIxIMPCW9ddAS1 KPNyvKmmCaBnnMDNSy6DDNlJ0MGBf6RWBHku8ClXMWl8uNZLcpz3OSK1pNRtp1vvD3asnG7DDa8qB 7dP9IZ+cD2f57cMKCsqNogLs8zkDf24/XbE3TGH61flzysHxh49PIWWxm+Sif+V/DH8+5X+bigPyW NlUiAm1yeE1h08V9SquC/9nNhJajeXp584lMPctazRG4aYkZLlQrjdxScFcjf2BHFkdJHfnGMsg/V 8ES2TorMJNOaeS2Wj6w5kUZnDW1zfjvTrtOCaIHMs2P/asQ1S83sSSIWnW30cjXaNQze0fwlxSSoV 64EuYQ0TZqF1iJ1YP3YQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkCuD-00000008CBK-1SuK; Wed, 13 Mar 2024 00:55:41 +0000 Received: from mail-dm6nam10on2061e.outbound.protection.outlook.com ([2a01:111:f400:7e88::61e] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkCtr-00000008Buq-0LQz for linux-arm-kernel@lists.infradead.org; Wed, 13 Mar 2024 00:55:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h18PV9dsKQh7pxW6qNxAvjafCN/0893JOVAPf5ZCgnPQ4fCmZJddLW2dX//yaSRFL76wcCtu2H1VmZwmEoRXVWFk2JhZZ//0OQeWYRVgLW9DisnwXdC0UISaJOdUeueFhoM/LpzGmUdtXAx/PDaoaBFItj5FTRyoplJvToOYRy6Q+H3tzC9h4UecbOdCNP+Rq+iS+JNg9IU9ZxUzwZqoCgBSoMu5zdDlcvW6218pNInVndZ87UDieRHWe9pZluBn2/T69Dsk7O+SHX9FTO63cckjYW2GhJme68pHzW2SmMUEZr4Pr2jLf9d7p0tpr5NyRq18uPTXaASsdmI4G3bBfg== 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=hvVwBLMlSU9YWMtY4tx0B3I3ictykDRn2LYjaW7J9Vg=; b=CeCYiBacihstSw4WPDjuAzKZPuqasZRdgvxBR/3khSzMqYKm+RiyI0Q4OCEsXS7wMRhWSrcWNgy3KEoVkj3IjJ1OK/aNO35SNjVYG1oRyqxzgj59YtLmOe+U5SaKhByps/M5vR9kXLrpDFN/pBUIW6O4fHitbKsXE70UMK1NxrhOYede0jALGtku4CQu8T4Krjp+KB1pFoogcyY1mvd7ykfbM6c6Q7FaROD94+R+7eVHzRbUlOG1zgU2M+nSahZ94rbgcsc4YZldV4W+azyKDduVbWBuTk77h8BUGgSVCs6fqwN0/M/3CF1n3Mw3EFNFMUGrLRuV4Qm2Xp9aiJ5M8g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kwiboo.se smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hvVwBLMlSU9YWMtY4tx0B3I3ictykDRn2LYjaW7J9Vg=; b=kCNLM9FWGU3xwUxQqXhUP9M2cZvuL86K0yIhhoGD1h2WHU3sBzlBqMsaKy1/cuZg1QBctiOxTsc2MrZmUec/0t0KTpfPli0f+FDBof3KUp5Vh6ZYkW1uwuf9UIdQHABRwx2vkbIKMVxdqFRdiMmrTDrrXHyjBUTwi5MM17lB6Fg= Received: from CH5P222CA0006.NAMP222.PROD.OUTLOOK.COM (2603:10b6:610:1ee::27) by DS7PR12MB8203.namprd12.prod.outlook.com (2603:10b6:8:e1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.36; Wed, 13 Mar 2024 00:55:10 +0000 Received: from CH1PEPF0000AD7A.namprd04.prod.outlook.com (2603:10b6:610:1ee:cafe::e8) by CH5P222CA0006.outlook.office365.com (2603:10b6:610:1ee::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.18 via Frontend Transport; Wed, 13 Mar 2024 00:55:10 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CH1PEPF0000AD7A.mail.protection.outlook.com (10.167.244.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7386.12 via Frontend Transport; Wed, 13 Mar 2024 00:55:09 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 12 Mar 2024 19:55:05 -0500 Received: from xsjanatoliy50.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 12 Mar 2024 19:55:04 -0500 From: Anatoliy Klymenko Date: Tue, 12 Mar 2024 17:54:59 -0700 Subject: [PATCH v2 2/8] drm: xlnx: zynqmp_dpsub: Update live format defines MIME-Version: 1.0 Message-ID: <20240312-dp-live-fmt-v2-2-a9c35dc5c50d@amd.com> References: <20240312-dp-live-fmt-v2-0-a9c35dc5c50d@amd.com> In-Reply-To: <20240312-dp-live-fmt-v2-0-a9c35dc5c50d@amd.com> To: Laurent Pinchart , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Michal Simek , "Andrzej Hajda" , Neil Armstrong , Robert Foss , Jonas Karlman , "Jernej Skrabec" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mauro Carvalho Chehab CC: , , , , , Anatoliy Klymenko X-Mailer: b4 0.13.0 Received-SPF: None (SATLEXMB03.amd.com: anatoliy.klymenko@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000AD7A:EE_|DS7PR12MB8203:EE_ X-MS-Office365-Filtering-Correlation-Id: 5b9ba767-5dec-4700-7bf9-08dc42f83ba8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tTFfUv2YaolUmVFDzhBTWLhEBuEqS0kJYpA6KOspzIUmwyPcv8ZaDmUA33eS3KWffbkLq2aqk+T5TaEPrS+t7Pgu385q6fs6ae8+HLdZDpuRpCgWHA8IM/yGWNr7LUxApQ34yEAf1ROlnTcjXlHkm6RPxc1HBfc1SvZW2d8QaPhwnTtj6cF8FNYDEdOc+WkIwSnT/CT8vR/ojjFRpIOKA1pQIs4tjozWozmLEqeqoI2YnBWPQjb5poF5G+0F1KdH3yIYmjJhdg5KRjOgdzH66aftBnnmyrbmjgDIkopGvAkDxF0iw6XtaDpR1mWdS5MN0BaGgnxO9v4wnX1lDUii4IQaI8Dpwgg0KpfjBQNTHAr+Rs8lXRG7e3pnwh/GU3Gja5Il9+msk85NdL3ukZVK3zdsscssx1hgXv3gF9+DV8ZCk6wGSEwx1zy6miulIf6rDs4V6MJP62mJlaLnPLICmKO8YaR7VoqR3QeG0h6f3pWJm78Y3roN71ZODqNXV94Qog6BJv7+C5qpce/MQvnIpyfk8bFpT8CCrvZtJ1monovFYdC8zcJftYkOAm+hXkqk/Lk5zuxgqA7dm63APKjqbK+vpVT6/i0guIFxixYbWdZ6xP91nxeanxokBLdktXSzUVIw2hr2rIFIcKC55vfLwDrDxI7REkK30Jec74Vp7n7+v4wU6j57gYcZtZfavboaytLDhY8Uwq4V//Q0ZL8pAswFTahNliif3iaWjp6O35SwPXf9Zcsnz/ZBmv3dh1WNSxYy1PMbXmqbFA+uGBPRXA== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(82310400014)(1800799015)(7416005)(376005)(36860700004)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2024 00:55:09.9362 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5b9ba767-5dec-4700-7bf9-08dc42f83ba8 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000AD7A.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB8203 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240312_175519_251378_92748FF3 X-CRM114-Status: GOOD ( 10.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Update live format defines to match DPSUB AV_BUF_LIVE_VID_CONFIG register layout. Signed-off-by: Anatoliy Klymenko Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/xlnx/zynqmp_disp_regs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/xlnx/zynqmp_disp_regs.h b/drivers/gpu/drm/xlnx/zynqmp_disp_regs.h index f92a006d5070..fa3935384834 100644 --- a/drivers/gpu/drm/xlnx/zynqmp_disp_regs.h +++ b/drivers/gpu/drm/xlnx/zynqmp_disp_regs.h @@ -165,10 +165,10 @@ #define ZYNQMP_DISP_AV_BUF_LIVE_CONFIG_BPC_10 0x2 #define ZYNQMP_DISP_AV_BUF_LIVE_CONFIG_BPC_12 0x3 #define ZYNQMP_DISP_AV_BUF_LIVE_CONFIG_BPC_MASK GENMASK(2, 0) -#define ZYNQMP_DISP_AV_BUF_LIVE_CONFIG_FMT_RGB 0x0 -#define ZYNQMP_DISP_AV_BUF_LIVE_CONFIG_FMT_YUV444 0x1 -#define ZYNQMP_DISP_AV_BUF_LIVE_CONFIG_FMT_YUV422 0x2 -#define ZYNQMP_DISP_AV_BUF_LIVE_CONFIG_FMT_YONLY 0x3 +#define ZYNQMP_DISP_AV_BUF_LIVE_CONFIG_FMT_RGB (0x0 << 4) +#define ZYNQMP_DISP_AV_BUF_LIVE_CONFIG_FMT_YUV444 (0x1 << 4) +#define ZYNQMP_DISP_AV_BUF_LIVE_CONFIG_FMT_YUV422 (0x2 << 4) +#define ZYNQMP_DISP_AV_BUF_LIVE_CONFIG_FMT_YONLY (0x3 << 4) #define ZYNQMP_DISP_AV_BUF_LIVE_CONFIG_FMT_MASK GENMASK(5, 4) #define ZYNQMP_DISP_AV_BUF_LIVE_CONFIG_CB_FIRST BIT(8) #define ZYNQMP_DISP_AV_BUF_PALETTE_MEMORY 0x400