Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2243879rdb; Sun, 4 Feb 2024 23:29:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHsV9Vpj9y1Dcnr7hxrV6CS8rhbvq/T1c8GKxcS42Ywu5zb7BPc4Pv/K2ttJpFUSGg+4uoi X-Received: by 2002:a05:6102:2a42:b0:46d:215b:edce with SMTP id gt2-20020a0561022a4200b0046d215bedcemr2348961vsb.29.1707118158815; Sun, 04 Feb 2024 23:29:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707118158; cv=pass; d=google.com; s=arc-20160816; b=tA0eP4gVD3FPIUfvH34+xUid+TMx0a9RlLtinlSfPD1TdVVUEi8/HgtcZHkgex4vy7 Nk00O1cP5J8IAbNJ8mr+o2h32AVTHwCTYhnLqmuo9WAsyB+qsNESpZrWKCP6yXYmCNhn RDRUekfOK7N+MNCAfNBAC4+tent95gwK9cc4QpmAeU0fldYmFudEJN+ZzEguovSftRkE /fztn29dMnD12JKtw03OkUZD/N3YC76F2AYUHKzjvD/fbRP1SBeExN9euTLTtksyrtJE JaqCyhheZoVpDWQaLH+wTncGYfHbT5wOF8qnHgxqBirwV7XuLV8URxqhtAI6a2lOt+rA FTCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nr0kP21i/NBu4OOH4AtiyLBDoI6MF+r4Crp131y3gO8=; fh=9arqItjQc+NBKDUN9LQaL77cwZ1E5cmGu3/QyrME/o8=; b=ilv5A8sUWII3sX1JFu9os538RIL3LWV7fYUvLf2gbH5zmgScJ6r/anyanwKVeD5tJh hr1Nip81Ab+vWMzFC3j0Scn/jPRV5TsgyEvaVhOyJYM3AJ6CQipWlnNEm6NMsazjCFdt ATmoeQYtOeQRxyQf75leXSxqyta/6XQpaikYfaubf7Gss1ibviNiHasoDtKd2iWl586u fzgGIs+ul/aW05hLOE7OHPx36VxD9OCQ8erg3gATrFDY10lJvx/YrVQ46GvG6ZBwv2GQ Ivy0vV73rD2xh8dnugnpCNTF0kmAkGy3WiC1FURXGIRGAZJ5xnQCRByF8P6M23fCzHfb 0EhQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HMM8ttdW; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-52141-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52141-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCU0hWesBL7Ps7ZtUelke/+DxVLffnGzgzTGN/NXt0jKdc71hm9Hdi39ZaH0Rs9+0P9aWTjrnJLChl4cWK9x8FRTgIoS7e+GKXAiwnIjog== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c17-20020a0ceb51000000b0067f056ee1dasi7679159qvq.68.2024.02.04.23.29.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 23:29:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52141-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HMM8ttdW; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-52141-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52141-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8F2BF1C202F1 for ; Mon, 5 Feb 2024 07:29:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6908411199; Mon, 5 Feb 2024 07:29:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="HMM8ttdW" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58A0011185 for ; Mon, 5 Feb 2024 07:29:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707118152; cv=none; b=idZS1cR533Rek0T09h3Uolsmi+eOo5/9WdREFAzSbtkGJQDRbeh58qxEQUYlEYYtCp/iXRt61ZdHAirpVoNF8h2K8ZzP+gC3JbeSrl1GmUZeQYF+VB4P+fEgGdWdkkKzoIgNteOVlrQk+t48lL+WKH19s1+e4Vt/goY6Y1xDhVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707118152; c=relaxed/simple; bh=LFfsqhF5yh5rxZ01HaZmxLQPdLG81PK0wpbUW6uXSfQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OC61lWOchZdloJ/x6TORnJDBwKgwO3bAH2usWLTtpg5stW0V9mtDQbU6NP4AvE9uTi8lNfaj0a0pTrPeeptow/JzpNlEC5vg4KuKdNNTN+1+u9BaPPDBSaI64bIQtXyvofoXhvk26MZ9wsiD6a0Tm+EDzcxWWJfv/7Qs8QzLzk0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=HMM8ttdW; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (99.141-128-109.adsl-dyn.isp.belgacom.be [109.128.141.99]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 758DA667; Mon, 5 Feb 2024 08:27:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1707118064; bh=LFfsqhF5yh5rxZ01HaZmxLQPdLG81PK0wpbUW6uXSfQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HMM8ttdWdXy26wgclMS+zPW1vmO0x+7NBIwVNpGyKJwLlY6m7a3qIcku6PP10nQmj PDSBTOkAWSzmdiEE1nZrvEnL1/PFm7tLsQYsCW+aE0s7kZEoQtniAIiUjkSEiY1wIh jT6lmIH5ANbCacLWGbk4reubOPKyO3M1HKGC8AJ8= Date: Mon, 5 Feb 2024 09:29:08 +0200 From: Laurent Pinchart To: Tomi Valkeinen Cc: Anatoliy Klymenko , maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, michal.simek@amd.com, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/5] Fixing live video input in ZynqMP DPSUB Message-ID: <20240205072908.GE6804@pendragon.ideasonboard.com> References: <20240124025402.373620-1-anatoliy.klymenko@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240124025402.373620-1-anatoliy.klymenko@amd.com> Hello, This series looks good. Tomi, could you get it merged through drm-misc ? On Tue, Jan 23, 2024 at 06:53:57PM -0800, Anatoliy Klymenko wrote: > Add few missing pieces to support ZynqMP DPSUB live video in mode. > > ZynqMP DPSUB supports 2 modes of operations in regard to video data > input. > > In the first mode, DPSUB uses DMA engine to pull video data from memory > buffers. To support this the driver implements CRTC and DRM bridge > representing DP encoder. > > In the second mode, DPSUB acquires video data pushed from FPGA and > passes it downstream to DP output. This mode of operation is modeled in > the driver as a DRM bridge that should be attached to some external > CRTC. > > Patches 1/5,2/5,3/5,4/5 are minor fixes. > > DPSUB requires input live video format to be configured. > Patch 5/5: The DP Subsystem requires the input live video format to be > configured. In this patch, we are assuming that the CRTC's bus format is > fixed (typical for FPGA CRTC) and comes from the device tree. This is a > proposed solution, as there is no API to query CRTC output bus format > or negotiate it in any other way. > > Changes in v2: > - Address reviewers' comments: > - More elaborate and consistent comments / commit messages > - Fix includes' order > - Replace of_property_read_u32_index() with of_property_read_u32() > > Changes in v3: > - Split patch #3 into 3) moving status register clear immediately after > read; 4) masking status against interrupts' mask > > Link to v1: https://lore.kernel.org/all/20240112234222.913138-1-anatoliy.klymenko@amd.com/ > Link to v2: https://lore.kernel.org/all/20240119055437.2549149-1-anatoliy.klymenko@amd.com/ > > Anatoliy Klymenko (5): > drm: xlnx: zynqmp_dpsub: Make drm bridge discoverable > drm: xlnx: zynqmp_dpsub: Fix timing for live mode > drm: xlnx: zynqmp_dpsub: Clear status register ASAP > drm: xlnx: zynqmp_dpsub: Filter interrupts against mask > drm: xlnx: zynqmp_dpsub: Set live video in format > > drivers/gpu/drm/xlnx/zynqmp_disp.c | 111 +++++++++++++++++++++--- > drivers/gpu/drm/xlnx/zynqmp_disp.h | 3 +- > drivers/gpu/drm/xlnx/zynqmp_disp_regs.h | 8 +- > drivers/gpu/drm/xlnx/zynqmp_dp.c | 16 +++- > drivers/gpu/drm/xlnx/zynqmp_kms.c | 2 +- > 5 files changed, 119 insertions(+), 21 deletions(-) -- Regards, Laurent Pinchart