Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1995186ybe; Tue, 3 Sep 2019 06:35:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5+D+o/te17bFvPlNeiGotvj8I45+RNseiK2rxeq0hu5g7PbrCiEPt868UTq5ckziGZ6MF X-Received: by 2002:a63:7a06:: with SMTP id v6mr30826457pgc.115.1567517758742; Tue, 03 Sep 2019 06:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567517758; cv=none; d=google.com; s=arc-20160816; b=NadKthKLuMpS1FLk12a9tPM7PHO/FVG5x2koIw3g8n9onju1ztz7CPITxapFynwCFU e2bdOnpU8fVadaOJrL4wu9gJ6mpgTV2tkpGW4F90ksSgDVIn3AJ8f+OWPwsrJLkA02lt V/wsUnbCc8GiqDE7r5RYRXOKL0GD/tAkF8Rf3uVKVLpz9PgZ2WHQWAMmIzL6Q48jGgxk prxicOYaO8ol7Ron5r/bHenGAKGJoDHzu1VtbLNcJntfNsGHJ0oBAKTUT0HDFefg8lJK yfIiZ9oYXPxqJ4CuPtlISOWYI5WH2FBlDpczXbETYhF8fBMXpzenY6txlGwetUOLP8ph 9sIg== 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=Smi/eMgvGFPV59K79GAIYfqKtTQqHYcJdTqpEPN8Tv0=; b=SNxgd1ubhvlBNfsIjiAxx2/ZcXggMoUeteHahBO5JNVRKWXVyviVRHw5InbePsgl9P 2LLQphc5g2IC8cS8hwAvVBuhcCejwYzwvzm+FC25dnUbab0Qo84c7tAwWTW/i2kB1TI2 dnT14ei5nF6w7up5nzFzzZ6bnxWwoHDduexja/ZwrlEMIZksanpcwaWwFeD6fDtuoznc 44wHH3tDddNmbY9HI1NK4QlNE1ADL2Dcm++Ey865b5HAfIBY+W5nQOoPn95+/ocZdvMB MpZzyn8LbyjlvHW+qap/eUYwfG/5PdQz76hm/3tf7WiN+RgIwiMtUHXomPTTOV25OJTk Bg3g== 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 y9si17179200pfm.25.2019.09.03.06.35.42; Tue, 03 Sep 2019 06:35:58 -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 S1728994AbfICNdX (ORCPT + 99 others); Tue, 3 Sep 2019 09:33:23 -0400 Received: from mga12.intel.com ([192.55.52.136]:41965 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725782AbfICNdX (ORCPT ); Tue, 3 Sep 2019 09:33:23 -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 fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Sep 2019 06:33:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,463,1559545200"; d="scan'208";a="198770919" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga001.fm.intel.com with SMTP; 03 Sep 2019 06:33:20 -0700 Received: by lahna (sSMTP sendmail emulation); Tue, 03 Sep 2019 16:33:19 +0300 Date: Tue, 3 Sep 2019 16:33:19 +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: <20190903133319.GG2691@lahna.fi.intel.com> References: <20190828073302.GO3177@lahna.fi.intel.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30fe86c0-e4f9-e852-a4d8-7b8263b373ef@fnarfbargle.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 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. > I forgot to mention I did try the chained monitors over the weekend, but > that resulted in some carnage (corrupted displays and some form of hard lock > when starting X). I've not had a chance to get netconsole configured up to > catch any wreckage when it explodes as it didn't leave anything on disk. > > I will do that in the next couple of days just for completeness. Yeah, it would be interesting to see where it blows up. From graphics perspective the two cases should not make any difference.