Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp754529ybt; Wed, 8 Jul 2020 10:49:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIc7JGgiY99orZM8eRNUCpS/ONwgk5mP8hffTlmfJZAoHIOUe26n0mfUuzsDtd2cb4Q4qu X-Received: by 2002:a17:906:1db1:: with SMTP id u17mr45633348ejh.72.1594230554926; Wed, 08 Jul 2020 10:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594230554; cv=none; d=google.com; s=arc-20160816; b=LgNGGLL6GChR7RnHFhUIvQ/P9Q1ePxUdLRuqAo7mXWIXtRp9c9gob0TGXTP64guIzH Qor8J811B6PfE73cmBp8iYJFPtjn1PgiUT9kO/i9Gs9uA3MSjUHylVbwP9RNLbQQAZT1 P/rw2ZOl6qcYMHHuKU2m3m2M2YsUDTyy0AZ+ONFu6F6/tnnZKeM3otN7WOu8cmIIQ9ue si7wRPXCAHipuv7WAtt87ykW73+APyU4e9RNx5Dlt0+W7lvx581wuBtqshxHfBE0kSHH tXiYKkjrMgi1F0rIZdl6nrB7fBOKo+Mfr5fAYRWJRwPC+yWAkGcJoDBZrkm9DwiswydE 1l6w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=3z1vhUekpXT6Qg/MZpaXLuYUmEvFHbtNlcabvjuHzko=; b=OANmG6QuowuUST6t99n/d58ZjnW+4eJOEaL+omiu0dMe+a5nm+hbFcbahcJ0UKqAf2 yJc20Gho1zPk8P9j/SdPoF4LxDSyt5vcR2PSGpCgxkFR6Hh0s7Kw9N3KnYnnYuPiPWgF OF+im3eTs17t9YOOe9ItZhhwdV5oo89rBM9RnpMIXAWOdyRmvQTcB7/YhDKtoR9u1cRV tlR+JLc9rGyz3SDb3SgfErAAOeuKek5xN4zEO7kjw8/2J2n+/Dt3lliVSStPQkp560XW wPo1JAI5PajZCdotlUcdpk3GcULakNZ+W+x6DrTOmioFjFymWbbsMBDTTBKOZWondOWH rX0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=bOQyECrX; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=j+Eh4poA; 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 ha20si287532ejb.683.2020.07.08.10.48.51; Wed, 08 Jul 2020 10:49:14 -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=bOQyECrX; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=j+Eh4poA; 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 S1726795AbgGHRrV (ORCPT + 99 others); Wed, 8 Jul 2020 13:47:21 -0400 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:42221 "EHLO wnew4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726809AbgGHRnJ (ORCPT ); Wed, 8 Jul 2020 13:43:09 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id BA0CB2F2; Wed, 8 Jul 2020 13:43:07 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 08 Jul 2020 13:43:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=3z1vhUekpXT6Q g/MZpaXLuYUmEvFHbtNlcabvjuHzko=; b=bOQyECrXLHeTBVAVdicKt13goNAqQ fjMEhGs53vD7Jucmct/cXRk7YHjiF3yHxe/Io0IkII/UentVf/Nlu8vD3svJyPJd 8cU3qG+Qq4JlYS7E8k9ICZUkcgIjS65g7a+1haSghFcIix29VyZTk67Ji+hkAW/U yPuDO9098QvPUgKvy9eIvVMWLh/S/Zo7b4Kgel5OEYeSbmXV/TZqHdI2hrZ+Z4D+ raXBFNJ87OfcL5YVZbHnFzAuewiQwA0B8YyJmxwUQ/0RQQrjDEYv0hXD7hOCgAdu D1kZHfPqcCnpx97MagL3vAzb8CiJ50UidCzUTd6IgnHaTq5yuh7fCHovA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=3z1vhUekpXT6Qg/MZpaXLuYUmEvFHbtNlcabvjuHzko=; b=j+Eh4poA hP16fZzLDmUj4xf0erjwiXM/Bo4LtRGIs6WW4kxVHn3VsrflVTjWSFOXmhSKW+aG UCEH5rftepphMuK2/dIdH0sktQ+YRu28OK1IY4qJ7T7GEiyJYNNoXjO2VbqC8oGo vVGjATdQCHibtc2+XunT3ZddA8s9S49jMuPbG7xU35E/nN5FNw/UrOohnbg1vudz XkTMU3UF+BiXk4LsFL67c35oIY1iQHHz6clkl3RZS2FnaauMDrIte/itd8FamcLx 7lT+9nFRVF5E1KhOHv2c3+ee3GtfSGvUZOA4vs6Lhf1RZ6s90oTLauuNN/hHGTSA aieVJ+Hmsz+0Aw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudejgdduudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepvdekleevfeffkeejhfffueelteelfeduieefheduudfggffhhfffheevveeh hedvnecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgepvdegne curfgrrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh 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 032B830600B1; Wed, 8 Jul 2020 13:43:06 -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 25/78] drm/vc4: crtc: Remove mode_set_nofb Date: Wed, 8 Jul 2020 19:41:33 +0200 Message-Id: <8bfc2e06f1c2a1f01151880e62e816b3ee629a75.1594230107.git-series.maxime@cerno.tech> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: 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 On BCM2711 to avoid stale pixels getting stuck in intermediate FIFOs, the pixelvalve needs to be setup each time there's a mode change or enable / disable sequence. Therefore, we can't really use mode_set_nofb anymore to configure it, but we need to move it to atomic_enable. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index 284a85b9d7d4..2eda2e6429ec 100644 --- a/drivers/gpu/drm/vc4/vc4_crtc.c +++ b/drivers/gpu/drm/vc4/vc4_crtc.c @@ -376,11 +376,6 @@ static void vc4_crtc_config_pv(struct drm_crtc *crtc) } } -static void vc4_crtc_mode_set_nofb(struct drm_crtc *crtc) -{ - vc4_crtc_config_pv(crtc); -} - static void require_hvs_enabled(struct drm_device *dev) { struct vc4_dev *vc4 = to_vc4_dev(dev); @@ -433,6 +428,7 @@ static void vc4_crtc_atomic_enable(struct drm_crtc *crtc, require_hvs_enabled(dev); vc4_crtc_pixelvalve_reset(crtc); + vc4_crtc_config_pv(crtc); CRTC_WRITE(PV_CONTROL, CRTC_READ(PV_CONTROL) | PV_CONTROL_EN); @@ -791,7 +787,6 @@ static const struct drm_crtc_funcs vc4_crtc_funcs = { }; static const struct drm_crtc_helper_funcs vc4_crtc_helper_funcs = { - .mode_set_nofb = vc4_crtc_mode_set_nofb, .mode_valid = vc4_crtc_mode_valid, .atomic_check = vc4_crtc_atomic_check, .atomic_flush = vc4_hvs_atomic_flush, -- git-series 0.9.1