From patchwork Fri Jan 12 23:42:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Klymenko, Anatoliy" X-Patchwork-Id: 13518776 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 2D46DC4706C for ; Fri, 12 Jan 2024 23:43:04 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WTfQ4CubdJN1U1SQjMcBnW6lsAQF2AuMqw/qzuP2v0c=; b=XTUrLX2M5Qo8UB mF9Ohtafq1ququWJC/RwLif0KsaSQjn8EjHGE6TvDP1IE+9MnloPbwkvKWXQzd/xh0ryCs0mBNT7n eCRAWaRpIx/nWmvLuMX0i13ilpTGFHtpkHnWI9q/y6YCO4W3JCzNM/rwYzEsd1g6OzFoG6++ZKgeR 5Ppp2ZChjrXHQLh69V2zBoOuu1iRKN9/8I+Hw0T/oDPYLo+ACeXR+owrnfy0BnJre+9qMGkGi7mt4 KNR0AYBAYNpr7RBNoOvJoc5PZ9AQL2tkSNXPaYdXnlzLChY1bltGv/VQCnokQhBQ5JUnWmQMDlPL1 oEsBnpy/QhNg2eWQNpWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rORAd-004GEM-0r; Fri, 12 Jan 2024 23:42:39 +0000 Received: from mail-dm6nam12on20600.outbound.protection.outlook.com ([2a01:111:f403:2417::600] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rORAX-004GCL-2K for linux-arm-kernel@lists.infradead.org; Fri, 12 Jan 2024 23:42:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OEYDkfQgr8vBqkYm7YIf4ssOT0qTiSD79DsW9mKIswie0z678UaKDICO+uiavMfXZ8jVqAMPh+m9khyJ6Lif7LZkalCLLR1z4Aj1t6Rsep78RIA+4KUTKo284echImLJjWm3ysUj4LU2nKL5qOjVC20CDcphCXCneCdp6TXSfZYkin4yG06tK0bRjj41Whrjq88PYyxGwSI4y5Rg0zf0d/TYguiKduY7EflxjRYzPp4/JFSdwfexz6gu56iFDsws5vTZB1PfABeSsV+3z1EyELf3yQRJV4XHMUunreK0rXbxTuLdl5OeZ4KvX3ttdJMegueRUzhBj0OUDaZcloXpPw== 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=bg+Zk3e57igtWoKUrG6gPGLeLH/HPz2+uaOq6mcbCBI=; b=fKcAQUVwXESvwiew41tD3NdLpUQdjXXOG/5ARwjg1f716PCJ+zUkoNikE3Hn1mFbVqFJr9J4WoPvA4ateo18WeQv3CBsb6PJf0EMDjwI9TNc8qiu9po23FaXjYeszOlL2KjoWyoc+zLp3bYQw0f4DEFBVMcA+lDRLm0tzk56VPJQveXE0VWtX3LRYLdjvso2joS16QwUZI8Cukmwauhs0gAMSFaLUrKu7ef6tJGyL43rrjM41soOEuOGC0ooyUSTtKmiO7jQkLNYWf+u20COL4VTHSM5RtjHSWrvdqmlOtdg7cgISiAWbMN7R5NVouKZoGc7U2IdFLWjpyPQj7eyNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=ideasonboard.com 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=bg+Zk3e57igtWoKUrG6gPGLeLH/HPz2+uaOq6mcbCBI=; b=ytAZj844/i7fRUjRiF1fmu0dO14q11Y5185TtzRh/EHyXeERDcC2Ve8bHE9J+d2+9EAX+WtqNvTPQsbDCF3gj/VALSJBHwFU89cav8XEs2ENL+mbfBeJacpPvXNVJfu+iUNYForz8JDnSgn/m050AXNENVu5tLlv1lIC4UMWfXw= Received: from PH0PR07CA0005.namprd07.prod.outlook.com (2603:10b6:510:5::10) by SA1PR12MB7412.namprd12.prod.outlook.com (2603:10b6:806:2b2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.21; Fri, 12 Jan 2024 23:42:26 +0000 Received: from SN1PEPF000252A1.namprd05.prod.outlook.com (2603:10b6:510:5:cafe::30) by PH0PR07CA0005.outlook.office365.com (2603:10b6:510:5::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.21 via Frontend Transport; Fri, 12 Jan 2024 23:42:26 +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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by SN1PEPF000252A1.mail.protection.outlook.com (10.167.242.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7181.13 via Frontend Transport; Fri, 12 Jan 2024 23:42:26 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Fri, 12 Jan 2024 17:42:25 -0600 Received: from xsjanatoliy50.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.34 via Frontend Transport; Fri, 12 Jan 2024 17:42:24 -0600 From: Anatoliy Klymenko To: , , , , , , , , , Subject: [PATCH 2/4] drm: xlnx: zynqmp_dpsub: Fix timing for live mode Date: Fri, 12 Jan 2024 15:42:20 -0800 Message-ID: <20240112234222.913138-3-anatoliy.klymenko@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240112234222.913138-1-anatoliy.klymenko@amd.com> References: <20240112234222.913138-1-anatoliy.klymenko@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF000252A1:EE_|SA1PR12MB7412:EE_ X-MS-Office365-Filtering-Correlation-Id: 0d14618e-ded3-4b21-6ced-08dc13c821ce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +fOhuPIURfBxMhb0cjJ9U+6MplzO+tFGgyHPHzjY33retSHPz1eac/0NakXpwI5sHWz96k+BpFoJeyHUfvCAPUygbBZ4mThgxc8TMv/JEnJltpDMke2B1naRjlFqN5uFLav2x9nCVm3MNBEbKwWgF/e/1v0NNBwZI31bhPyc3n3deaRsgRaLskDas5FCTGCv1OQ+urO/v7YaD8FTzosHKE8jGFUkTz+XNLSNET8U9KoSuO6MG74lCekf/3z0yh8qkwau3+CN2lp2//XOPRiVZ/yg9PbC+83JBiK6EkP/b/7jLsVIGsP2CnLtP6xjajkqKg9Z9gdzop6GENgslCIU/levXhhdep9HzsELc+wBvnBRlMgWZVTU5T/bj/l4x6fnLtRUT2B4w/k+jFWwzcXoXowPTjgepMtuJbbs4nEKiG1nvAHKkgvifbjcNqdi7XZy6TKcQL2pbxXE50DpEaX+ZgOu9wqbPWxWg6kjlVV1tvIbyDRKPc50UUKbsSLCv6dU+TQXv2zsGTMr0xRVog+4faKvzYnnqf6lTwJIlLdBPGVLghJSvNiXN0hqC1iIPRPiC0RkhdIpii7REsPBpiRJrdGah9bEsMmmhaEra8G8OFniSkEKOQaZuR/sQD4s4K0adX7mu22NApOJULJzp4R+XDwkLROWihiqAb8dytegpnf3OL6PpCpOYaGkBUM4SkGaHpqWAm5Zq2B5Peu18nRhp+omVgmni9w3j8/IX/tP518PqcjCQcywtu5mFnBRm+dNvmprFqTG0KMCBds7mx24wTlT3GDrpNjxMgiDsK0X1myZ8lTTS6vzZOpIT1/LF3/b7aeFhYPmXWFYcPvIgGlW+mnObTLSBaJfufMEB1Ogy46cU+FlPTYkz+N1qygZ3uKh X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(136003)(376002)(39860400002)(396003)(346002)(230922051799003)(230173577357003)(230273577357003)(1800799012)(186009)(451199024)(82310400011)(64100799003)(46966006)(40470700004)(36840700001)(82740400003)(5660300002)(40460700003)(40480700001)(70206006)(44832011)(70586007)(110136005)(2906002)(316002)(81166007)(8676002)(86362001)(8936002)(4744005)(356005)(478600001)(47076005)(36756003)(6666004)(2616005)(1076003)(26005)(426003)(336012)(83380400001)(41300700001)(921011)(36860700001)(36900700001)(2101003)(83996005);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2024 23:42:26.0706 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0d14618e-ded3-4b21-6ced-08dc13c821ce 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF000252A1.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7412 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240112_154233_759730_392A5CD8 X-CRM114-Status: GOOD ( 11.22 ) 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 Expect external video timing in live video input mode, program DPSUB accordingly. Signed-off-by: Anatoliy Klymenko Reviewed-by: Tomi Valkeinen --- drivers/gpu/drm/xlnx/zynqmp_disp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xlnx/zynqmp_disp.c b/drivers/gpu/drm/xlnx/zynqmp_disp.c index 407bc07cec69..8a39b3accce5 100644 --- a/drivers/gpu/drm/xlnx/zynqmp_disp.c +++ b/drivers/gpu/drm/xlnx/zynqmp_disp.c @@ -1166,7 +1166,7 @@ void zynqmp_disp_enable(struct zynqmp_disp *disp) /* Choose clock source based on the DT clock handle. */ zynqmp_disp_avbuf_set_clocks_sources(disp, disp->dpsub->vid_clk_from_ps, disp->dpsub->aud_clk_from_ps, - true); + disp->dpsub->vid_clk_from_ps); zynqmp_disp_avbuf_enable_channels(disp); zynqmp_disp_avbuf_enable_audio(disp);