Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4794721imb; Thu, 7 Mar 2019 00:16:42 -0800 (PST) X-Google-Smtp-Source: APXvYqwTm4fA0fHh544spEpdTf3aGkIx7+O9eQr/DP5pbo1wBdx2bE/O0ZVoS2r8TGjkv98tA+zA X-Received: by 2002:a17:902:28a7:: with SMTP id f36mr5862244plb.169.1551946602687; Thu, 07 Mar 2019 00:16:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551946602; cv=none; d=google.com; s=arc-20160816; b=IeIhRBqwzgcTeeoL1aV5d3SGLW56Wvpq/kererteWOVjV8VZcFvGoezEQRPiDYgGbz 3gYt7T5nwltYvlJg/JVSyvg/S8o3qIC5WJJ/9pNr8Wg0f8Ub5NalbEn5Ry3k2KSt70oy CFmFylEdzd7mL6T1qEtNCdT9Q/PBhcajU15I0QqUrsB1ERMEqE+wh/7NJj78TYNPjHzp faIuoR0BjnHvE1B0CGb8BPIz/9Ut1yiOJ3YbPLM2RM7IB6QH38mAMPtFhPPmhAQ4dTAF utDPkWr/GNu6JecCUn22Yq2aIXfkusdPs7NQdImPHa9v4ciROp+qHXWIgwj5/7fTXMC/ qMiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=TygB1VWBDNs/o/CdSgIZ8HNLVmnuE20/c5XRxzXEuKw=; b=t1EAlyBp5qzRV1lq42eGvlFFY0yTwOYsSh9rZXpDvQBYlmXshGtdxRc6bTMkY8GINg 5rHuHHM9TwmyiA7FISsKpe1IgOqERMBGUs6CK5tdYTd8cL+P3v/zumM2eb8kmkwQNvDV nIRXiezxnSPDU5WxqWBnfL6YBqpJ+2bcEWzqUvuMOzgDHJqTUgWU3xbz4uH5xt2hRV0s Brrsps205PkRtzHfjxOvEyM/DlnRWj7Uvie9EPk9SISxqgB/atlYmA4VypY6pKbMRCk8 3yyyYPmzWhODPUn9CAtOpLJSkGHi16ZQu2RvCA4yGtLEx+ZTH5l+aSpkVvm4L+7ByLeA JoRg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4si3650071pff.172.2019.03.07.00.16.26; Thu, 07 Mar 2019 00:16:42 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726138AbfCGIQH (ORCPT + 99 others); Thu, 7 Mar 2019 03:16:07 -0500 Received: from mga11.intel.com ([192.55.52.93]:54224 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfCGIQH (ORCPT ); Thu, 7 Mar 2019 03:16:07 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Mar 2019 00:16:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,451,1544515200"; d="scan'208";a="152825672" Received: from jnikula-mobl3.fi.intel.com (HELO localhost) ([10.237.66.172]) by fmsmga001.fm.intel.com with ESMTP; 07 Mar 2019 00:16:04 -0800 From: Jani Nikula To: Thomas Preston , 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: Re: [PATCH] drm/i915/ddi: Fix default eDP detection on port A In-Reply-To: <20190306200618.17405-1-thomas.preston@codethink.co.uk> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20190306200618.17405-1-thomas.preston@codethink.co.uk> Date: Thu, 07 Mar 2019 10:18:00 +0200 Message-ID: <874l8fm72f.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The subject should probably have "drm/i915/bios" or "drm/i915/vbt". On Wed, 06 Mar 2019, Thomas Preston wrote: > 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. Please include more details about the machine that doesn't have VBT. Why don't you have VBT? Personally I think it was a mistake originally to make guesses about the outputs in absence of VBT on DDI platforms, because we can never get the generic guesses right across all ports and all products. And for the record, that was the result of an easy choice to enable developers way back when, and forgotten. Certainly eDP is more likely than something else on port A. But this will break any outlier products without VBT that have a non-eDP output on port A. I guess it's a risk we have to take, and handle the fallout later. Acked-by: Jani Nikula > Fixes: commit a98d9c1d7e9b ("drm/i915/ddi: Rely on VBT DDI port info for eDP detection") The Fixes: format does *not* include "commit" text. BR, Jani. > 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); > } > } -- Jani Nikula, Intel Open Source Graphics Center