Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4882569imb; Thu, 7 Mar 2019 02:51:34 -0800 (PST) X-Google-Smtp-Source: APXvYqzVIvx0IogBOYrhymyD+/xi1xl43jkfW0bGA30QCmZRz0mdkjbmcAY+cpNcC/hyXIriXdfZ X-Received: by 2002:a17:902:f24:: with SMTP id 33mr11838334ply.47.1551955894666; Thu, 07 Mar 2019 02:51:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551955894; cv=none; d=google.com; s=arc-20160816; b=WR+AW8hGypieGrA2j4cUci2pPZJPIdMntCpuwBS50J4imwD85zKstSSsa6EGImcfjm pg3czR1XgFhVreXhARx/Z5KtiVfsFxia+AvvB6j/QsF5vP7GjEwyr8xW8+2o1EXZuvf/ AaS9qkgNMDh8FNL1Zf/Q2a8uEYD71quwtnQE7TyOYcQhIMUJ9dEIpxtkKSAE1UdiubuJ w1vOasc1zuNZsRp3rosg/2L/DC/jDackpDRiXipexRIP4KKqraLGQxHZkDw17jjlWL+N BgBB+k3yjswHB42N2A6rh/SXsWPwLDGV4XwrkYNMmGQ+13I0LaDFHJYev9ifAdH9zCXe zQ0w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=QcqBsY8AttEBKxZDOM5gaoN8zlvzIvIxYRL6IgveHb8=; b=BwVKDdnjj8ZHCw+WoHd9MxvE7pWxF252HQ88pwj9ryynFmob11FXiJXRtAY+xTfzTz RNx5Xuniv0eLblCR+Liob5Ne50AoqhRi0h5rFa/U+ixfNCbkjBJdQT9sEezo1P9bXgy9 6PTdZlTq4rxi1f9Xu612GJnguK2NpxgdEWJjsP3ltNyj2rLF1pD5AtK4Uzqmrym3StSl 3C2jY6eefSU0BN5ru3yFfOTS9qh/RU0sTCO0kHRMCxgyrBC0lJlMZ6Y2dttsJSWNz22B FqawOn409LPfA8VUVNbOClTTiS9jDsXREgI7cPWxLiwzdjqnDdXzkwMoj1YKXIpjpQQV Rd5Q== 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 s7si3972025plq.61.2019.03.07.02.51.18; Thu, 07 Mar 2019 02:51:34 -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 S1726399AbfCGKtd (ORCPT + 99 others); Thu, 7 Mar 2019 05:49:33 -0500 Received: from imap1.codethink.co.uk ([176.9.8.82]:60330 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726252AbfCGKtc (ORCPT ); Thu, 7 Mar 2019 05:49:32 -0500 Received: from [167.98.27.226] (helo=[10.35.4.91]) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1h1qaf-0003mR-Q8; Thu, 07 Mar 2019 10:49:29 +0000 Subject: Re: [PATCH] drm/i915/ddi: Fix default eDP detection on port A To: Jani Nikula , 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 References: <20190306200618.17405-1-thomas.preston@codethink.co.uk> <874l8fm72f.fsf@intel.com> <87va0vkm6e.fsf@intel.com> From: Thomas Preston Message-ID: <1bc46e12-5cee-e3d0-83db-2feee4fe5210@codethink.co.uk> Date: Thu, 7 Mar 2019 10:49:29 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <87va0vkm6e.fsf@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/03/2019 10:34, Jani Nikula wrote: >>> 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? >>> >> >> We have upgraded from an earlier kernel version (an Intel BSP on v4.1) >> which did not require VBT and so our BIOS isn't set up correctly. The >> BIOS doesn't set ASLS and fails to find ACPI OpRegion: >> >> [ 9.368433] [drm:intel_opregion_setup [i915]] graphic opregion physical addr: 0x0 >> [ 9.368490] [drm:intel_opregion_setup [i915]] ACPI OpRegion not supported! >> >> So now our port A is DP instead of eDP. I was hoping a return to "default" >> values would remedy this, but I think it's pretty clear now that we should >> focus on fixing VBT. > > In the long run you'll have better control of what your specific product > does by using a VBT. However, I think we'll probably have to take the > patch anyway. > Would you like me to resubmit with the suggested changes? >> I've found a default VBT in the BSP but not sure how to get it into BIOS. >> If you could point me in the right direction here that would be really >> useful! > > There are dangers with default VBTs too. They might contain incorrect > information about the specific board you have. You'll also have to set > up the opregion, not just VBT. > I believe OpRegion is being set up correctly with ACPI tables, but ASLS=0 (points to OpRegion) is quite suspicious. I need to do more digging around how our BIOS is set up. > I'm afraid I can't help you there. You already know where to look to see > how the kernel side expects things to work. > > For testing, the i915.vbt_firmware module parameter is helpful, so you > don't need to change your BIOS to change the VBT. > That's great thanks, I will work on VBT using this for now.