Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4022638pxb; Tue, 25 Jan 2022 01:37:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2jc2T5VFrTvItpghAmGhyk6fp69g7wZEX3uaW+2cLh1V8r25u08hNBtWuWmieeoV2f8h1 X-Received: by 2002:a05:6a00:1a0c:b0:4cb:231:1981 with SMTP id g12-20020a056a001a0c00b004cb02311981mr719159pfv.55.1643103429451; Tue, 25 Jan 2022 01:37:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643103429; cv=none; d=google.com; s=arc-20160816; b=ar5it0s+XwOnAD/DBWKjwaQH+FWfoPhdzk2XjjfNgyMSHcpZeOpFnWc2Sj/nW4ZDZI ziimdA5gZm0Js3bVBulyjbb87wW2zAVofFeFTm5bhgTgArVs8mqW6CaEJe5Jupx6f6eC lFEpTJIBqMPQ8BLpytDLNMpqBSIM7Y30XisdfuO8eFvA+enNqvnb6MopryXI8nw6KUFy HDstfFKOCoeWAzPOAx6qDbyV7HDwoqrqEhNCQUjFhATQLJgNXM/YukPXdZuPMRIAY5qv gMUW+D+2zpHxx00IR3mc+guSuyYoRsYo4fM88A6ak38EFAG40zlgaalXVPMRnG0dBYg3 I1DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to:dkim-signature; bh=Nk3ETragPCMygQ2zSQDlIy+Mji5WNLEjOGzYJYtPgR4=; b=k5ulk+J0wHJSNJaoJe/trJzBTCr4sUrNuH0KpSklE198d5aKSI3FLZQjRoulrFGUOF kkg/63TuXpA8dmzrGjT/gBU6OivuUwsb845ETZE0qBg4VII1UwjR0c4UfD8m7E+ULAlM kfG3zqh3g8p3lXOosV+svAX1FMC2lYqrJUMjPg/f0PoTRBNr022gJiy3Vsm5pKXWsOWi wuB5/gTKh5mOsj+OsFWkUNtrKw6RYKoaHlU+PtThprDRCZrEwUJcq37/bIz54+txXvNG P6KQg/d0v/Clw4NSrWKU6xQImT8lonXPc6Oq88R1Ql7BM/M+ogVRQ/urLoOzmc/RB3T1 8nJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="eRWsJJ/0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x186si3636152pgd.116.2022.01.25.01.36.57; Tue, 25 Jan 2022 01:37:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="eRWsJJ/0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1453639AbiAYIzX (ORCPT + 99 others); Tue, 25 Jan 2022 03:55:23 -0500 Received: from mga06.intel.com ([134.134.136.31]:11130 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1453029AbiAYIvn (ORCPT ); Tue, 25 Jan 2022 03:51:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643100701; x=1674636701; h=to:cc:references:from:subject:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=M2IjP5NhFFTYV177dnTaULkwxfpoBSIPm3gj+/hKLuw=; b=eRWsJJ/02jzu1BxDXqtOOMmCjUcyBaDOY1PWqMgVQjx++xqVG5o0T8cJ 7h5/V/8D04vUA9db0Womc8TXjpR/Q35JSL8goYI9OlUFpB5CMPMgphX4V 64DL/HJVxeuyDygH+z1EIFyuzQ4GkJfo9K4d1talueJzaMXOAGY93k0to 75hLSVH8bC1Fg1lN23JQlO/PaQDxGLT9JkJt1FlZTPbkbIg01SjUVxPpD 6Bks7adlUOFo5wymHoEAsvUQVxamhRa1V4JowgD9LxlzsdQPOY/JE56fG eTWvezL13nuQ83IjMpkQzPe9rQ34VE3MautxbUp/TAIa43cRJnMHzjHVJ Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10237"; a="306972288" X-IronPort-AV: E=Sophos;i="5.88,314,1635231600"; d="scan'208";a="306972288" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2022 00:49:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,314,1635231600"; d="scan'208";a="562969177" Received: from mattu-haswell.fi.intel.com (HELO [10.237.72.199]) ([10.237.72.199]) by orsmga001.jf.intel.com with ESMTP; 25 Jan 2022 00:49:30 -0800 To: Peter Zijlstra Cc: Greg KH , Dave Hansen , Lu Baolu , x86@kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Chunfeng Yun References: <972a0e28-ad63-9766-88da-02743f80181b@intel.com> From: Mathias Nyman Subject: Re: earlyprintk=xdbc seems broken Message-ID: <6e2700c4-07dd-76ac-cd8f-d9e5b9b24e74@linux.intel.com> Date: Tue, 25 Jan 2022 10:51:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24.1.2022 18.46, Peter Zijlstra wrote: > On Mon, Jan 24, 2022 at 05:39:08PM +0100, Peter Zijlstra wrote: >> On Mon, Jan 24, 2022 at 04:55:22PM +0200, Mathias Nyman wrote: >>> >>>> [ 0.000000] xhci_dbc:early_xdbc_parse_parameter: dbgp_num: 0 >>>> [ 4.984106] xhci_dbc:xdbc_start: waiting for connection timed out, DCPORTSC:0xa0 >>>> [ 9.946159] xhci_dbc:xdbc_start: waiting for connection timed out, DCPORTSC:0xa0 >>>> [ 9.946163] xhci_dbc:early_xdbc_setup_hardware: failed to setup the connection to host >>>> >>>> [ 12.818364] xhci_hcd 0000:00:0d.0: xHCI Host Controller >>>> [ 12.818373] xhci_hcd 0000:00:0d.0: new USB bus registered, assigned bus number 1 >>>> [ 12.820360] xhci_hcd 0000:00:0d.0: xHCI Host Controller >>>> [ 12.820363] xhci_hcd 0000:00:0d.0: new USB bus registered, assigned bus number 2 >>>> [ 12.821036] xhci_hcd 0000:00:14.0: xHCI Host Controller >>>> [ 12.821040] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 3 >>>> [ 12.823451] xhci_hcd 0000:00:14.0: xHCI Host Controller >>>> [ 12.823453] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 4 >>>> [ 17.115089] usb usb4-port4: Cannot enable. Maybe the USB cable is bad? >>>> [ 17.115163] usb usb4-port4: config error >>> >>> Ok, I see it now. >>> Your setup has two xhci controllers, earlypringk=dbc enables dbc on the first xhci >>> it finds, which would be at 0000:00:0d.0. >>> Your cable is connected to the second xhci host at 0000:00:14.0 >>> >>> does using "earlyprintk=xdbc1" work? >> >> Very quick testing says it don't work.. but I'll try again later, need >> to go cook dinner now. > > FYI, I'm thinking early_xdbc_parse_parameter should've now given > dpgp_num: 1 ? > Yes, it should. Looks like there's a parsing issue. "earlyprintk=xdbc1,keep" fails on our Tigerlake as well. Without the "keep" option it works for me: [ 0.000000] Command line: console=ttyS0,115200n8 buildroot_hostname=tgl04 earlyprintk=xdbc1 dmi_entry_point=0x74374000 [ 0.000000] xhci_dbc:early_xdbc_parse_parameter: dbgp_num: 1 -Mathias