Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2400448ybi; Sun, 9 Jun 2019 10:49:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNUP9y3WsfB6WYgoe8ck0v5fK3MBwevqqhZvzySAOtFF5P6i55wIXc5Ecq7K5YvWVeikmd X-Received: by 2002:a17:90a:21d0:: with SMTP id q74mr7694370pjc.12.1560102548460; Sun, 09 Jun 2019 10:49:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560102548; cv=none; d=google.com; s=arc-20160816; b=1JDTShFQLysXFsxjDHGUx4DSepviyAJMM8YuiK2UNbTp76UJh5QX5g06GhfWOutRUL RwCINPmC8URFkOQrN8KWBYqRreol+2wkuCeCCqIlFlBFzkIaO11nfpYob0LdusgsMDhF x87DhdTJ3ktbPOpWCwJqEGUxxMh7zNIURYKDhytFNgsDFeTDb9xoNjiIfusMPgjneoZa C3Xo8Qq5CZGKlL6z7yZfkDcyTrBh51/WkQw2wyb021ILjzu5gMf1ZsPXp90YKPhrIAvm KZxRm20bqhtl8M6D9Cxj/HR28mbNlU9tQYL2Nh1H6rAQy4d0M5AcfpNxfvVg57YrsgZ/ gxUw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/SplPIzw3VkFL2y9CzPcS1PDT6IkqcN9G/aiEQ/EaM0=; b=qJD/WWJEv0gx5Vl0i73sbcTZxG72iygV3kZ1dQYF7KIxLnS9b/ffqZGG1AqlH8csKX dJg9YX7gs++OSY3HdCnxoBP+KR92vc4q5FOv8CJw3vI6Nm8ZkbR8+2aN4Dbsod32dVe7 QngZGIEgM7B4ihTP3ggtFPPSHVMrOEeBomRGKHQbhZvfBpXkfPMcZ+Lez3T+R3MPxo74 V+f6X4JqAqmSsAM7jfqLfZGY6muenL4moNGIQaqCriqs1LH2ihJuU1+xCx5QbaRya2vQ nNBsLVWWzXbCKppPTQwt0GfgfltY5L0CR86wga+9AlrCPNbkhCYVG8D4p/0L9g8hN9ag 7yhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oY9YtOop; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si8122292pfa.234.2019.06.09.10.48.52; Sun, 09 Jun 2019 10:49:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oY9YtOop; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730547AbfFIQqi (ORCPT + 99 others); Sun, 9 Jun 2019 12:46:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:44890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730530AbfFIQqh (ORCPT ); Sun, 9 Jun 2019 12:46:37 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CF4C12081C; Sun, 9 Jun 2019 16:46:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560098796; bh=rNPXyLNan5o0Ie9yTiEsm4WoLpPvO2aECItEdubWtIM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oY9YtOopIEaGBzFZC0i8yMFTwlfKCkCgIVsr8JO0dNGByMC3kpxqTbOQ2qPLt30IB svmNHqhh+a3ttl5eKGhDqZmecJep/1t0usyk0QJSZHN1Pl9s4i5J1JM0h2LQ1OhSO8 OMaUPE4ey0+xNqg0NkQr6O6Idy1P1E3o83BTyh0o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paulo Zanoni , Daniel Vetter , Jani Nikula , Daniel Drake , Jian-Hong Pan , Jani Nikula , Joonas Lahtinen Subject: [PATCH 5.1 64/70] drm/i915/fbc: disable framebuffer compression on GeminiLake Date: Sun, 9 Jun 2019 18:42:15 +0200 Message-Id: <20190609164132.805336281@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190609164127.541128197@linuxfoundation.org> References: <20190609164127.541128197@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Drake commit 396dd8143bdd94bd1c358a228a631c8c895a1126 upstream. On many (all?) the Gemini Lake systems we work with, there is frequent momentary graphical corruption at the top of the screen, and it seems that disabling framebuffer compression can avoid this. The ticket was reported 6 months ago and has already affected a multitude of users, without any real progress being made. So, lets disable framebuffer compression on GeminiLake until a solution is found. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108085 Fixes: fd7d6c5c8f3e ("drm/i915: enable FBC on gen9+ too") Cc: Paulo Zanoni Cc: Daniel Vetter Cc: Jani Nikula Cc: # v4.11+ Reviewed-by: Paulo Zanoni Signed-off-by: Daniel Drake Signed-off-by: Jian-Hong Pan Signed-off-by: Jani Nikula Link: https://patchwork.freedesktop.org/patch/msgid/20190423092810.28359-1-jian-hong@endlessm.com (cherry picked from commit 1d25724b41fad7eeb2c3058a5c8190d6ece73e08) Signed-off-by: Joonas Lahtinen Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/intel_fbc.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/gpu/drm/i915/intel_fbc.c +++ b/drivers/gpu/drm/i915/intel_fbc.c @@ -1278,6 +1278,10 @@ static int intel_sanitize_fbc_option(str if (!HAS_FBC(dev_priv)) return 0; + /* https://bugs.freedesktop.org/show_bug.cgi?id=108085 */ + if (IS_GEMINILAKE(dev_priv)) + return 0; + if (IS_BROADWELL(dev_priv) || INTEL_GEN(dev_priv) >= 9) return 1;