Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1317808ybg; Thu, 11 Jun 2020 06:52:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYH0YhTZ/DoemOzXXDeoexTxk/G8dnvNNt1nYUNqQnl3LXByhV82nhnpXbE0v51rgNp6oF X-Received: by 2002:a17:906:81cc:: with SMTP id e12mr8798559ejx.67.1591883576646; Thu, 11 Jun 2020 06:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591883576; cv=none; d=google.com; s=arc-20160816; b=Q+FrzsHnKOGHYRSfEqXbMQTO3VE3uOzue+AepTAKoO+QNVu8jklQ/wipo51tIwwVnh skGCZQETaEE1m9uHD4H3S7fH6c6UAv2W3UR1UJoa8SK1YzrqYLaQN8IjBHr64WS4GVUf kJu9i+R5wZd8oYjVaUSf58wL5CzLADwpEmZmMMCYsMDAMzQfqzFZyHRrkp/v6J4YZJHv mXqSOPYU0N0p/LLhqm2FydXt34HkVKTcRR8G9SF4Tcw/C83aBnA9oNKZ0rDgJsnlnyFb ha2mthl3kVynUbRq0681KnAsWcVdBEReLvjt8MDnKE/MrJlKi4scFK1o2lxXWtO94Hlv i7pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=jQjsWeIlhqPm1oZNMXNmNsjlPzih/RDA2oOywNwUB50=; b=0eaHMWYp2jJ+7+yXoiFMWaDY0uzB05hlEUPUj4TRs0nL5KXmYMxs8wp5Y5uXGsgaJV 8Z2VHJT8HUuIc/4OwjMhBLg8JoikWwdcAM+yvrkWdDpQb18Mjk+djpnl4WAwLTbXonkN 0Ae7hLDKXdhY7Szd98wzEdcLi40hTXma+zvuEjntPuTzWpm8T3/oTqMtUMkcTtjbI3JW 3xNjRo7m13eKm+crtajzZQ+0Xh5p7bikWfx6761jLw4MTNWauaIGAogykq82ANbPVXU6 E97aRNqavrYQci5jrTz9tf+XcLFyqYS2VXGAE/At4oggR5P5jc/paKikMcHQ4aONvQdJ ht3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=I87kwz69; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=PuzL4vF6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qk2si2036272ejb.271.2020.06.11.06.52.33; Thu, 11 Jun 2020 06:52:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=I87kwz69; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=PuzL4vF6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726747AbgFKNsa (ORCPT + 99 others); Thu, 11 Jun 2020 09:48:30 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:36867 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbgFKNs3 (ORCPT ); Thu, 11 Jun 2020 09:48:29 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 8062E5801A2; Thu, 11 Jun 2020 09:38:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 11 Jun 2020 09:38:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=jQjsWeIlhqPm1oZNMXNmNsjlPz ih/RDA2oOywNwUB50=; b=I87kwz69l9LvgHZdmVA+cDiJ9T9yrQX9kGu1qjvJiX LlG8iA49WMbkddT4lbo6z2ptt32ZhNcSKpTJns/HIsFWLSDt6OV03QLudgv/G5mC nnaz/AUdBPkmzPaMAfrgg/AmPurXxhdteD2LqasHZv6h99gyQfdLjvR7Zs82WWjV OSVsG4ViowKy5pqm3DygekU/rlm2qjQEYZUUV0PSsVT0oQ85NZC/v3JfmtvhKuu6 he6Afya9/QAZ9LXD5gEVE4eiZ6ApAc+8KdcfDGU6p3sBmOazQ3lCVlmCcn3peLXO YTK9NBchDnjmah2lSh2Q0UXwwoZi1C8l0hIkZN8ZCf9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=jQjsWeIlhqPm1oZNM XNmNsjlPzih/RDA2oOywNwUB50=; b=PuzL4vF6Dju4Xctz5wQb0mqpZKmzZEQan aLEyfReB4xgLdcjXl6pP/FW87U+gCqhQ8E2BLRft+UFfFhkmtbl3PuzxzQLrg8uV xApbyVVjR9Ji/dA4qe2dSWFoRMOY2gBAo5yymv3vo7U/EZKHTdVdOEw1Cq81Seck lvt4eJUe4L/cefvhiNZNIV2ZJGAIyR24fUkwhRUZdIaTZi7VDJDmj+SOartaueZl f0O+mvl8Ls0lliHdtj9VKxKBp7MC9bu3iP4j1uakXzln5ZLpxMvHJnmwY0gRsRVk ywSkO/9RG2YfApuUQN8rrRu+kCzi/Ny7WP2dAA05ZJwI1gcSs1aLg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudehledggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpeforgigihhmvgcu tfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrthhtvg hrnhepjeffheduvddvvdelhfegleelfffgieejvdehgfeijedtieeuteejteefueekjeeg necukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 71E1F3066656; Thu, 11 Jun 2020 09:36:59 -0400 (EDT) From: Maxime Ripard To: Nicolas Saenz Julienne , Eric Anholt Cc: dri-devel@lists.freedesktop.org, linux-rpi-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Dave Stevenson , Tim Gover , Phil Elwell , Maxime Ripard Subject: [PATCH v4 0/9] drm/vc4: Turn the TXP into a CRTC Date: Thu, 11 Jun 2020 15:36:45 +0200 Message-Id: X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is another part of the rpi4 HDMI series that got promoted to a series of its own to try to reduce the main one. This rework is needed since the bcm2711 used in the rpi4 has a more complex routing in the HVS that doesn't allow to use a fairly simple mapping like what was used before. Since that mapping affects both the pixelvalves and the TXP, turning the TXP into a CRTC just like pixelvalves are allows to deal with the mapping in the CRTC states, which turns out to be pretty convenient. Let me know what you think, Maxime Changes from v3: - Stripped the patches out of the main HDMI series - Change the bind order of the HVS to avoid a compatible check - Added Eric's tags - Rebased on top of drm-misc-next Maxime Ripard (9): drm/vc4: Reorder the bind order of the devices drm/vc4: crtc: Move HVS setup code to the HVS driver drm/vc4: crtc: Make state functions public drm/vc4: crtc: Split CRTC data in two drm/vc4: crtc: Only access the PixelValve registers if we have to drm/vc4: crtc: Move the CRTC initialisation to a separate function drm/vc4: crtc: Move the txp_armed function to the TXP drm/vc4: txp: Turn the TXP into a CRTC of its own drm/vc4: crtc: Remove the feed_txp tests drivers/gpu/drm/vc4/vc4_crtc.c | 427 ++++++---------------------------- drivers/gpu/drm/vc4/vc4_drv.c | 2 +- drivers/gpu/drm/vc4/vc4_drv.h | 38 ++- drivers/gpu/drm/vc4/vc4_hvs.c | 291 +++++++++++++++++++++++- drivers/gpu/drm/vc4/vc4_txp.c | 109 ++++++++- 5 files changed, 522 insertions(+), 345 deletions(-) base-commit: ebd11f706c9d9756edad5b5f3f3310d77d77f60c -- git-series 0.9.1