Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4430985imb; Wed, 6 Mar 2019 13:15:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzzeeVehaGPmFN+vijvGI/rpQrEqhojd/knEg5nAqXbA42tgXP0djQelNSgOMU03rpUCyed X-Received: by 2002:a17:902:42d:: with SMTP id 42mr9302719ple.229.1551906919579; Wed, 06 Mar 2019 13:15:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551906919; cv=none; d=google.com; s=arc-20160816; b=r/vvyQL+gLttTlRJ5N4xAqLm4BHmTE4T08NcNrpBSMICN8rlSlDr/Dq4YMnhpIBtZs 93Bw+Xht4SNwHDaE6XATG8v+haPxf6YFINYSVGF4By5IVlAg6hN3xcAQ0zWvBxmSWgLB 86kqbyS88EG8pYec7AzQO6wrvqlDCRvE/8jbNOGSITod6djIs76WSsL9e4UqqzXjXw4e D50TBQn1qjLKxNvforBMBtlX58xjFAX1vKHFo/TDx45T855gtxsTo1mxD8xaKwMVk4+U ejOVwvHh3dFrvwyO4RASKKhJBuY7oA0QHSOvzHlyh/Ed1S9a9DYdOaVYd9ufifYu029u iTSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=dUgApQEnnPZq8y4nex4B77+X0eJDIoUS5YwhycxwFtQ=; b=BcIYSlrbhuDAqqSGm5g8RSidUw/N6NJXFe+YM7JKSXnvOq07dJH6r7oG/wFeKKFzvR qaJfoajoyGlqQD7bVidhUgYuO8bRKWgUNIP71dj/wCL8I715ly2XeIETNDKdgciHY38G +Zf0d6X6MBNgtReS43bGN2ooyBtT6ST9pp4sg+pp7Btui0TWOKbo6qsuAZZogZOQTfhy LdMjPslWO6/LHiQSxB2HRc2D1vgqaRjwZg2QmvGifqiEtQBa8NBPG2Uac1qAZOIBWgS7 WFicFlcHudeyj+Ej1fGY0CrZT59iqCDlgOVR1Szq99LsZ9kmHsGgVFqnwyWJFEbmPyQB 1zyA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b38si2463488plb.249.2019.03.06.13.15.04; Wed, 06 Mar 2019 13:15:19 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730412AbfCFUGa (ORCPT + 99 others); Wed, 6 Mar 2019 15:06:30 -0500 Received: from imap1.codethink.co.uk ([176.9.8.82]:50485 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727204AbfCFUGa (ORCPT ); Wed, 6 Mar 2019 15:06:30 -0500 Received: from [167.98.27.226] (helo=ct-lt-1124) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1h1cnz-0005BV-W3; Wed, 06 Mar 2019 20:06:20 +0000 Received: from tpreston by ct-lt-1124 with local (Exim 4.89) (envelope-from ) id 1h1cnz-0004XR-98; Wed, 06 Mar 2019 20:06:19 +0000 From: Thomas Preston To: jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, airlied@linux.ie, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Thomas Preston Subject: [PATCH] drm/i915/ddi: Fix default eDP detection on port A Date: Wed, 6 Mar 2019 20:06:18 +0000 Message-Id: <20190306200618.17405-1-thomas.preston@codethink.co.uk> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We rely on VBT DDI port info for eDP detection on GEN9 platforms and above. This breaks GEN9 platforms which don't have VBT because port A eDP now defaults to false. Fix this by defaulting to true when VBT is missing. Fixes: commit a98d9c1d7e9b ("drm/i915/ddi: Rely on VBT DDI port info for eDP detection") Signed-off-by: Thomas Preston --- drivers/gpu/drm/i915/intel_bios.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c index 1faa494e2bc9..efbbfb64b55f 100644 --- a/drivers/gpu/drm/i915/intel_bios.c +++ b/drivers/gpu/drm/i915/intel_bios.c @@ -1629,6 +1629,7 @@ init_vbt_missing_defaults(struct drm_i915_private *dev_priv) info->supports_dvi = (port != PORT_A && port != PORT_E); info->supports_hdmi = info->supports_dvi; info->supports_dp = (port != PORT_E); + info->supports_edp = (port == PORT_A); } } -- 2.11.0