From patchwork Wed Sep 30 13:47:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Joosten X-Patchwork-Id: 11809201 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D3F966CA for ; Wed, 30 Sep 2020 13:51:36 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A01522076B for ; Wed, 30 Sep 2020 13:51:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=atcomputing.nl header.i=@atcomputing.nl header.b="HIYLfPKn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A01522076B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=atcomputing.nl Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0FCD789DC1; Wed, 30 Sep 2020 13:51:36 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 55C0B89DBC for ; Wed, 30 Sep 2020 13:47:09 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id q9so1789652wmj.2 for ; Wed, 30 Sep 2020 06:47:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atcomputing.nl; s=atcomputing-nl; h=message-id:subject:from:to:date:organization:user-agent :mime-version:content-transfer-encoding; bh=DYqXNtnLEfZnCBFKtbviH+9NWjsKFBRmS/kwN3GTpa0=; b=HIYLfPKnGM8o5bdjc50HwUlCMAP3utMxQMs1kopwBfUxU4mwMV3d5yijzGxs5ccaEE Mb2jzlTBU7zoV8gjbps5lidJzdaB/la8hU43FSjJ5BkSOE3M7bzi3TILrnUv26JyDgyn pRPTdYNWmAHIHyIyFHpO8vwRmXbxbQSgRfsmA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:organization :user-agent:mime-version:content-transfer-encoding; bh=DYqXNtnLEfZnCBFKtbviH+9NWjsKFBRmS/kwN3GTpa0=; b=BbHDEwQ12elYoupZo6h5XHENurl1gZcdrPXh3rIZJ9uIzk2hUJkZscjbO9MIB8ytIW gO/wAadM+4rLm4Hfeh3/WIgCbA/MYCYmQk+vSsT4xUIuwu2VrpvarWkfEwctLI+1l1wV rtaEuDJ0G/fmc9CxLvcPZ5BAez80BwjgdTqKY7PH/bqlRyg4x9OItpi8KcyafwZkWKTv UNiBULVTZ/G5qIzN8iwzlmwF9+phIXfGhiv7OJjYzhSmzXkxCKFqOqLWzBzSqqINAwLr B8uNa9P6vApXqIp3hIiqGxAbRzj7wSGUbLUH+XCz0U5YoLy0tDZ5o0jGX6HxsXQPs6kY asog== X-Gm-Message-State: AOAM530MPSPUbNeHxPEIRNlZ/tQM+pqAbj5cQqZARExfbLI78ZPddpPr Wa9LK47hovz6GuxbmBkdmX/Oig== X-Google-Smtp-Source: ABdhPJzN/PZ6aGuW3RXOEPyUnQQ8HCa2Nbz6+quQg/MxuSdPTN35SEMoxvzwBkcsYYv5VfQ8XG4bUQ== X-Received: by 2002:a05:600c:283:: with SMTP id 3mr3273113wmk.110.1601473627953; Wed, 30 Sep 2020 06:47:07 -0700 (PDT) Received: from nyx ([2001:980:74ee:1:1ec4:4a28:e4c9:705c]) by smtp.gmail.com with ESMTPSA id v128sm2797486wme.2.2020.09.30.06.47.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 06:47:07 -0700 (PDT) Message-ID: <60a804aa6357eb17daa1729f4bce25e762344e9f.camel@atcomputing.nl> From: Stefan Joosten To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Date: Wed, 30 Sep 2020 15:47:06 +0200 Organization: AT Computing User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 30 Sep 2020 13:51:34 +0000 Subject: [Intel-gfx] [PATCH] Revert "drm/i915: Force state->modeset=true when distrust_bios_wm==true" X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" The fix of flagging state->modeset whenever distrust_bios_wm is set causes a regression when initializing display(s) attached to a Lenovo USB-C docking station. The display remains blank until the dock is reattached. Revert to bring the behavior of the functional v5.6 stable. This reverts commit 0f8839f5f323da04a800e6ced1136e4b1e1689a9. BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1879442 Signed-off-by: Stefan Joosten --- drivers/gpu/drm/i915/display/intel_display.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index b18c5ac2934d..ece1c28278f7 100644 --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -14942,20 +14942,6 @@ static int intel_atomic_check(struct drm_device *dev, if (ret) goto fail; - /* - * distrust_bios_wm will force a full dbuf recomputation - * but the hardware state will only get updated accordingly - * if state->modeset==true. Hence distrust_bios_wm==true && - * state->modeset==false is an invalid combination which - * would cause the hardware and software dbuf state to get - * out of sync. We must prevent that. - * - * FIXME clean up this mess and introduce better - * state tracking for dbuf. - */ - if (dev_priv->wm.distrust_bios_wm) - any_ms = true; - intel_fbc_choose_crtc(dev_priv, state); ret = calc_watermark_data(state); if (ret)