Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3479225pxb; Mon, 4 Apr 2022 18:17:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywFzYYOGcT5TlllFyM4p3mVj+jEZ5u6kwiSVWBwiqqKHA+KS7lzAdxaZwfRaXjBHWWrtmK X-Received: by 2002:a05:6a00:1791:b0:4fb:2796:83a1 with SMTP id s17-20020a056a00179100b004fb279683a1mr1063393pfg.36.1649121438552; Mon, 04 Apr 2022 18:17:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649121438; cv=none; d=google.com; s=arc-20160816; b=j3J+waXMfalvazh6yva8JTA8d2+nXV7oDqiG72yjMt93oKAg+DtfqPmS3TznqiEZ0P hRNU/awerh3cIngFD25xiyuhlsOeQ94NGCgjZTZafgDxZAs8ubGOE3MTAGqxIvmnX6Qu XPVupOEUf1rwodiLjcIuY36OmFpmkCDZpq/uP2e3oA9Xb2eQFYoLZGqTGj1N8J2jJfAn XmFQVzT3F58ardWPTcSojP/r0Ug+CDixWONXglZp6HpAl9FhUDR78kdzISQDSXz7xZtr bJWWwze3P8L1UiyiStumQgn/tVahZsyEVp08TJ6UyLCLBhWAdiIYhLUqP1Ed9WXUUhU7 vGzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=02x2WNbNnup4dPy2njExQNR8DoOBcbdfh2z6GznEwgE=; b=yWdBR8tfZK+ElvRuvBDrwrMQKlqDjGqD/HpW/q7vk07gOjDh6wKMF4ZpPaX6AyBd/l Ez+5uRFEb1lk6uI+efCt0E4hCaVkfn/qqgGtbD4ego0a3MF74F3OT3/eNXK4euK41oWx IgBsHz1uIRgvstJd2fLdIal8rlulFN8GbJ9sutqwFVW4DEKVQ9qRGU9mH54T8WHAdSQB EBl94BVvoy3NcR8jsCYvCk/abXo88wqGqaAiWXqSip5NlWp2Nau21CzncPSZDSOSKpch O6T6e6n16uXLoFC3SQkiRDvPeMjK9UJeHkh5UzI1mmRSHC88wd5q5pFFa3Lplrud0ra6 nHOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AP+GzIUq; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v32-20020a634660000000b003990090019esi7225694pgk.691.2022.04.04.18.17.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:17:18 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AP+GzIUq; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 27D211BE138; Mon, 4 Apr 2022 17:20:14 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348102AbiDDM5N (ORCPT + 99 others); Mon, 4 Apr 2022 08:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343812AbiDDM5M (ORCPT ); Mon, 4 Apr 2022 08:57:12 -0400 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BB9732042 for ; Mon, 4 Apr 2022 05:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649076916; x=1680612916; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=/CjYIlBlDeK556thkrgohCOdY6pviJ/7+5vySTyCVZg=; b=AP+GzIUqnci8IYk0Di0JYHAS6Obyyo/+a9YPSEInuboleXmHHkCKVDHA UIMXbJxqP6u/eAa5LlqP6Ti3A6mGLy7AH5rHCCW99IOsou/sx/6kaplGb fjRmkChiwnFDeq7sIG3ST9R15nYIqF8Ifv4FWfjSXEiRgdfl+WlYC9GuW 4XWvnGNUy/g1FOIvYC4GV5U3QlktTuMVSG5wWagJGZnrppmQOTGKKLQMX Miznvg74Ut59zij3hsFMuhCJU/d0tDBzwqtBASFaMLKnWMyqIqdGBR5zC CF4rNuSeQiQF9y6PmWM2A1ly9/hbW1uXJ9OrXxWZF8DFuf4WaHaNETRwX Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10306"; a="321201856" X-IronPort-AV: E=Sophos;i="5.90,234,1643702400"; d="scan'208";a="321201856" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2022 05:55:16 -0700 X-IronPort-AV: E=Sophos;i="5.90,234,1643702400"; d="scan'208";a="721635917" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.162]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2022 05:55:14 -0700 Received: by lahna (sSMTP sendmail emulation); Mon, 04 Apr 2022 15:53:03 +0300 Date: Mon, 4 Apr 2022 15:53:03 +0300 From: Mika Westerberg To: Brad Campbell Cc: linux-kernel@vger.kernel.org Subject: Re: Apple Thunderbolt Display chaining Message-ID: References: <5dcee6f7-cc8c-e3ce-920c-4ad3f5d77e14@fnarfbargle.com> <7ea44c20-6c65-224f-af7b-aa1bd310d038@fnarfbargle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Apr 04, 2022 at 07:38:06PM +0800, Brad Campbell wrote: > > Hm, you mean you don't see the timeout errors and stuff with the first > > patch applied? > > I see the config timeout errors and the controller locking up after a > couple of unplugs, but when it does configure the DP channels, they > both come up every time. > > So, with the original patch when thunderbolt discovery works, displays > both work. With the latest patch, whether or not the hotplug works, > the radeon driver fails to bring up the parent head. > > Both suffer from the controller config timeout reads on unplug causing > it to become unresponsive after a couple of re-plug cycles (3 if I'm > lucky). I suspect the same issue is even with the first patch but it just manifests differently. I think the timeouts are the key here and we need to figure out why they happen. > > I think I will make this current one a proper patch and submit upstream > > later this week (will CC you too). For the iMac issue we may need to > > debug it further. Not sure if you answered this one already but on iMac > > on macOS does it work always when you plug in the whole chain? > > > Yes, MacOS works fine in any order on any port. > > There is a difference in the way something is set up between what the > EFI does and what Linux does. Agree. > If I wait for the Chime, then a bit longer and plug the chain in > (before the bootloader starts), Linux sets up both heads and hotplug / > replug works. > > If I cold boot with the chain plugged in, the EFI sets up one head and > Linux configures the other. Replug fails with the clock-recovery error > in that case. > > The difference seems to be when EFI sets up, on re-plug it sets up the > child display first (303 vs 3) and that causes the issue. Repeated > tests can get difficult as often on the second or third plug (or > unplug) the controller locks up and no longer responds to events. > > I'll try and get a couple of clear dmesg with your last debug patch > because it appear the chain is being discovered in a different order > depending on whether or not the EFI set it up. That would be helpful. > I received my brand new Titan Ridge board today (Gigabyte B550 > Vision-d-p) and with a modified Thunderbolt rom and the last patch it > detects and runs both Thunderbolt displays from a cold boot. Hotplug > fails, and there are other issues related to warm boot, but they'll > all have to wait until I get a serial console up. Hehe, OK. > Appreciate the persistence with this. My pleasure ;-)