Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1159954pxb; Wed, 6 Apr 2022 10:07:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6CkWY2rassUyWYCAxDRysFbx5vB6KbLz8v327VztsazpruNXVXiw3GmZzuK2H7UNDZp// X-Received: by 2002:a17:90a:d3d3:b0:1bf:2e8d:3175 with SMTP id d19-20020a17090ad3d300b001bf2e8d3175mr11266402pjw.2.1649264846490; Wed, 06 Apr 2022 10:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649264846; cv=none; d=google.com; s=arc-20160816; b=apF4uHbzLjIzdCTS7Q1PZMd/WGNdZt1VYerI9fqr+xnSIsabRQHzouzFumcw3yP4yK dOaz+sAQe2sCikkdLTr4M/WfUKGjW90L/hMwqNaprEThrSJtwpj4KNgoB5XwGJTq9ZmS IwLOWQnXwFiCq4r11YUtNRQNdyzF9XSAApimW0T2eLPs0lOVpImf4w/v5KxT3ArukMTb zVqneP4s2OqSxCMH0HQv/32+E0MsikgTWHKjhYFMzRlCa4K+waIt4KQMLU6hR8Fa++a1 tfNPWvi5x++WaoowB5BL3QD1enQvzNOcT8IKp8TOuCZt/5VmrHrK3w0tBAfTbvHu/9DT 32vA== 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=lzzx+yOS1K9gDNX4F5/capZC6yFcQKydJ06m2Zyjxtg=; b=Q8BLcrkgiUMuyuc8YG3tWJZkINAccf2xyHY5I/yQTyCz8jfxIrolJIvK6Op34RR4bw zReCSvrAvuVOK0ZR/0EOed1eFy/DKxEpV7pdhuInG6bh2HizgN4cCstOM6Dnked2sXDq kmwHl1xDS6ti5uVeDHGI20VBRd0C5ro5DB8iSzP9FVnNIyX+1wIhD+l47y/mZ+4mXrGj BleP7QXP0qCv24ielYWOwepuuy6q8r4GdrU5zdFvTtvC0CbHvKVjzhc7ptuPMaubYy0X qgw3B/m/0ZnJKkOQT/l4xLhe+ImwZfh2ouENCvszuwcq3tu7QRTCCWE1ffddUgbO88yM mx8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VysKwanJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s12-20020a056a00178c00b004fa744877dasi18403880pfg.39.2022.04.06.10.07.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 10:07:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VysKwanJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 1C32320A977; Wed, 6 Apr 2022 09:51:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238199AbiDFQxH (ORCPT + 99 others); Wed, 6 Apr 2022 12:53:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238323AbiDFQwr (ORCPT ); Wed, 6 Apr 2022 12:52:47 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D517C11FE07 for ; Wed, 6 Apr 2022 07:56:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649257017; x=1680793017; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=F/U+cj87UvGy5lLxu2syFQGQxJxfbuLpFf8x7D/NyD4=; b=VysKwanJ++NfYcHoIcpt6ZK34rFJEferTR2GzGrAdqCCtOL4KlqM5a/7 ACzBF1i2PTIOfc034jrtLF6glUgW4EfS5nkH5bYN/bjEGfk+Ll3K6bCyq KvS08MdW6Y07yvVKJBOQea0svTqqxDJA4MFS0kH9T0Z3wiKrQPxDMdlnp kMxkfESx8De47UnT55y9FfZraAwL0HQ5QRNdhUuJusu/MVVOhJXg55Fku 8GjPY2JEUehBZyqBDWG+ywNlUYSJ2PcSAw+dLSUotBAKey6F7gUVkoSmv SBYQIG+yGU1IQqP6BhuqJUTTu1owPkp2VGNk5fZY5CuziCzYVi3xh652Z w==; X-IronPort-AV: E=McAfee;i="6200,9189,10309"; a="243209608" X-IronPort-AV: E=Sophos;i="5.90,240,1643702400"; d="scan'208";a="243209608" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 07:56:54 -0700 X-IronPort-AV: E=Sophos;i="5.90,240,1643702400"; d="scan'208";a="588410796" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.162]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 07:56:52 -0700 Received: by lahna (sSMTP sendmail emulation); Wed, 06 Apr 2022 17:56:50 +0300 Date: Wed, 6 Apr 2022 17:56:50 +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 Wed, Apr 06, 2022 at 10:51:41AM +0800, Brad Campbell wrote: > Both included in-line. > > This is cold boot with the chain plugged in. I've re-added the dbg to > print the link number, and I've included your path discovery debugs. > Boot with chain plugged in, wait for it to settle, unplug and replug. > First head in the chain fails with : > > [ 65.778129] [drm:radeon_dp_link_train [radeon]] *ERROR* displayport link status failed > [ 65.778158] [drm:radeon_dp_link_train [radeon]] *ERROR* clock recovery failed Thanks for the logs! The DP tunnels look pretty much the same except that the Apple EFI CM seems to assign 7 buffers for the AUX RX path first hop whereas we always use 1 buffer. Not sure if that really makes a difference and we could try to use the same number but first, I realized that the PCI resource allocation seems not to work properly. Can you disable PCIe tunneling (if you use Ubuntu/Fedora or similar there is the "Thunderbolt -> Direct Access" switch that you can turn off) and try again? Please also take 'sudo lspci -vv' for the resulting topology. I suspect this might also affect the other issues (the timeouts) you are seeing. Note this makes the peripherals connected to the monitors unusable too.