From patchwork Wed Oct 28 12:40:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 314817 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AED26C55179 for ; Thu, 29 Oct 2020 02:01:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 55E622076B for ; Thu, 29 Oct 2020 02:01:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726187AbgJ2CA5 (ORCPT ); Wed, 28 Oct 2020 22:00:57 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:36035 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728090AbgJ1Vux (ORCPT ); Wed, 28 Oct 2020 17:50:53 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 7D7BD580118; Wed, 28 Oct 2020 08:41:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 28 Oct 2020 08:41:08 -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=fm1; bh=iXTKYI0ategc7ffuiuB8ir+zWv 2EhcjdkdIAEe/TMaA=; b=nv/xQZC2Kc+FDvf1Fj2lQfWzIN7scuMoBeGKbdKqmg wvLnEXRGJ0HAYgWj4+D++2O3DSXKxVEgTMlR6uZW0wishu1zIJMWvy8W4cYr119J FhwKDfxzBKpluaYRdbVvpWm+avBOJyqwqbTXz5hWkYeMsmmrxDNikiOyBuafc5iG 9ERcVSeMGcCPUDozv9PHX+l+gWEse/qN1dw/EOsLCSTs0/K1onEiupBzjSK75M1I VSFGQ/VcYKQlliosEWpNpvhsUggLiLqIn4xlfAo8nKM9s/Z4A3DqwJo6yQD+SB7T kQ1LDvZbu5n8D5/wd/unwlpuiao9Kbxufe2twA+6wKKA== 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=fm1; bh=iXTKYI0ategc7ffui uB8ir+zWv2EhcjdkdIAEe/TMaA=; b=pdhmwA5cLaLNXCJ6d0fuYyOUcr/atPgZL 0FWwiflyQAA0CYmFD8D5GzHm6hKLH2jyU6mb0O2t7aF2ZAV7uGGakCsp8dmVmL73 LX0kKxgFoy81FRdJJGya0G3vYAmTiuLZn6iV0dvgaU/kAi1Qth2FKdO8ldwm4xLf eca2BvY3/nNkDeXc5CZULn2OYVeJUWVX8YoJTJtjr1yrwCq1DRZ8a84v6kjVSuK9 2qu2XOz2pye59ptKDzskv9l27Amr8bVk80GIqM99yDpnxx/0di8Q//0/DAaRVZQZ 4WptJ5fmkKgT8ktoLO+MaY0K/lwdG/bqKJlJYTfPv8z1cBC8PHyyA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrledugdegvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepofgrgihimhgvucft ihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtthgvrh hnpeejffehuddvvddvlefhgeelleffgfeijedvhefgieejtdeiueetjeetfeeukeejgeen ucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh 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 E9815306467D; Wed, 28 Oct 2020 08:41:05 -0400 (EDT) From: Maxime Ripard To: Mark Rutland , Rob Herring , Frank Rowand , Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard , Eric Anholt Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rpi-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, Dave Stevenson , Tim Gover , Phil Elwell , Hoegeun Kwon Subject: [PATCH v2 0/7] drm/vc4: Rework the HVS muxing code Date: Wed, 28 Oct 2020 13:40:57 +0100 Message-Id: X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi, Here's a second attempt at fixing the current issues we have with the muxing code that results in a PV muxing its HVS muxing when only another CRTC is modified by a state, or vblank timeouts when trying to wait for a vblank on a single CRTC while another one is inactive but enabled. Let me know what you think, Maxime Changes from v1: - Dropped the code trying to access all the CRTCs (whether in the state or not) state Maxime Ripard (7): drm/vc4: kms: Remove useless define drm/vc4: kms: Rename NUM_CHANNELS drm/vc4: kms: Split the HVS muxing check in a separate function drm/vc4: kms: Document the muxing corner cases drm/vc4: kms: Add functions to create the state objects drm/vc4: kms: Store the unassigned channel list in the state drm/vc4: kms: Don't disable the muxing of an active CRTC drivers/gpu/drm/vc4/vc4_drv.h | 2 +- drivers/gpu/drm/vc4/vc4_kms.c | 314 +++++++++++++++++++++++++---------- 2 files changed, 235 insertions(+), 81 deletions(-) base-commit: 66e2a590a11f54865fb3ffd3ec932a6a4e477b40