Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp585599ybe; Fri, 13 Sep 2019 02:54:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3yih0Ey2Ipv5feJstGOKTFLinqsEPejzXFsWw4+z/iUe6qoB+EpXsMBfXlTt0zBLBvOqN X-Received: by 2002:a17:906:a84d:: with SMTP id dx13mr2184648ejb.230.1568368472451; Fri, 13 Sep 2019 02:54:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568368472; cv=none; d=google.com; s=arc-20160816; b=LIwwUPEcuPbRq/D4PmzJEePVk8Pw3sou48DKIROnKC7dhjXX0VgmuWwUabnr8Rgrkx 2fDgKdUZHaFxZ+IsJgO55rPeJVgHJ14D0ZIjXU6hDtFqDoQBYTuEKsB7Is5Nb6NPp7hJ KyRizO5WU2uIoYCtZcdCrX2xMfUEdsIMiSFfJ967Zyz8cC3R7ilFh6L+X0/PX6BFhyM+ FXgRENZxtTkHoHOIgjaPeuV/86nE+vaQQkUzPaX+ybJ+LaE/IZAiFe8wL1J01XnVXqbV 89UTwbRtVrXlZdHkvvexxZKeR6oIRrUSn0cQPiji/SvEwRQ6fmWU2bbumuMDamt4g2Mk 8Q5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ioUCWuVT83EvB+AkpSWZW5jUoCbXsq4xCzjy6NOULzY=; b=RrmbALvp8OWrZ8ex9DvY+ClSeS8RqAtmxtFSfbnYGf6O4ZJiMdYe3cSlp+4Pd8cjk/ r8ObMIkQxzk/ReV4Swbs7Vr/SB5CaDid66l70QXq7X7Y1ldNRydkBShCX+QuNDT/NBbb ljjL6Ft4v033pRV12aIxryIEQhssLbLP2sZFj/OY9hlfxmJGPlSYJpWFpgdPUzOLFEnT OUp+0ANCLMmpPZW04esp76HR0lNil/qiz7Yg163qlcWj3NL9JcmoVYSoGHx1Gw/yy5eI oWoHyyj4r0t8R5YsMJNn13To9+aEyx58g1CzE+BqM1LenRoHJngVZI1cXUmtcDS7W/Og RYIg== 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 n22si10217173edq.33.2019.09.13.02.54.09; Fri, 13 Sep 2019 02:54:32 -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; 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 S2387525AbfIMIYT (ORCPT + 99 others); Fri, 13 Sep 2019 04:24:19 -0400 Received: from mga17.intel.com ([192.55.52.151]:59214 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387424AbfIMIYT (ORCPT ); Fri, 13 Sep 2019 04:24:19 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Sep 2019 01:24:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,500,1559545200"; d="scan'208";a="200921135" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga001.fm.intel.com with SMTP; 13 Sep 2019 01:24:16 -0700 Received: by lahna (sSMTP sendmail emulation); Fri, 13 Sep 2019 11:24:15 +0300 Date: Fri, 13 Sep 2019 11:24:15 +0300 From: Mika Westerberg To: Brad Campbell Cc: linux-kernel@vger.kernel.org, michael.jamet@intel.com, YehezkelShB@gmail.com Subject: Re: Thunderbolt DP oddity on v5.2.9 on iMac 12,2 Message-ID: <20190913082415.GA28281@lahna.fi.intel.com> References: <7c9474d2-d948-4d1d-6f7b-94335b8b1f15@fnarfbargle.com> <20190828102342.GT3177@lahna.fi.intel.com> <20190828131943.GZ3177@lahna.fi.intel.com> <20190903101325.GC2691@lahna.fi.intel.com> <71e34f9e-8e0d-f5f2-bc55-006aeb8a383b@fnarfbargle.com> <20190903115527.GE2691@lahna.fi.intel.com> <30fe86c0-e4f9-e852-a4d8-7b8263b373ef@fnarfbargle.com> <20190903133319.GG2691@lahna.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190903133319.GG2691@lahna.fi.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Brad, On Tue, Sep 03, 2019 at 04:33:23PM +0300, Mika Westerberg wrote: > On Tue, Sep 03, 2019 at 08:54:02PM +0800, Brad Campbell wrote: > > On 3/9/19 7:55 pm, Mika Westerberg wrote: > > > On Tue, Sep 03, 2019 at 07:11:32PM +0800, Brad Campbell wrote: > > > > > > I think the problem is that for some reason, probably because this is > > > first generation hardware with all the bugs included, you cannot read > > > the second dword from DP adapter path config space (you can write it > > > though). > > > > > > I've updated the patch so that it reads only the first dword when it > > > discovers paths and also when it disables them. Can you try it out and > > > see if it makes a difference? This should also get rid of the warnings > > > you get. > > > > > > > It would seem so. Now I get 3 heads on a cold or warm boot and no warnings > > in the log, so it looks like that did the job. I've attached the dmesg from > > the last cold boot for reference. > > Great, thanks for checking. I will create a proper patch and submit > upstream hopefully later this week or early next. Unfortunately I did not have time to create a proper patch yet. I've been busy with other things currently. Since merge window opens next week this would have to wait until it closes anyway. I'm trying to get this as part of a patch series I plan to submit after v5.4-rc1 is released.