Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2963801lqo; Tue, 21 May 2024 02:38:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVfCIMdrAWVwfbAP2V79upcF3/eyJRUibXRWK5StMuX4xexHd5aLqSLwE1Amho3vdmQsnbeKsf8o5GuJz5/kb0O97/EJVN6RSyQcH3BcQ== X-Google-Smtp-Source: AGHT+IFF4tG0yAHQwdpdTE3Zl8zk7bCI+ThxdcG+esKwRD47g7GjuAHQzclhNmUm94xqLemLEhxq X-Received: by 2002:a05:6830:f8d:b0:6f0:97a4:3e9d with SMTP id 46e09a7af769-6f0e92d3454mr40317088a34.38.1716284323505; Tue, 21 May 2024 02:38:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716284323; cv=pass; d=google.com; s=arc-20160816; b=rVOCajbocUKVQALE0gK4Vhyq6dtkLgOZweEFicVvsd95m8ZV+EPMEepkvHJd+adYpo CQXIOwK2cdVGTnonjQQ70yasNeg99F6pD4kDdnlyZLreIyHKWceZdrAx63CwcpvoeLyU ZOmIk6SM1UgmK/4OiYsxW7xPr6WqdVTCl4MyXPCIGjWeq8KBrOPrwF1MHaKuIeAFaumi 5OMmcvtnhqblljyuiXkdgjNTYwh79vfnyEjzcJQhpOY9Py1KvPUzWX+aP97RBP134G76 2jdADPtSwjvpt5K4o+7/ilt/d050H3e2l5F12ehquzw67P7lKepLnziZwQGLbzhSP2q2 8itA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tqziEBg4GuOFWcfcDhuvR05VpkvMgcT7QKY8wq9dynI=; fh=7GjERJb7Tbr8E14TFkJK2v5tjHB3FedK8GtK2BIjiNw=; b=EoQ6Ul6wGgvTLjCL53/beYSW1ou64YdTsjx8PB/VPKKX2TvtLU8BBkFGEtAFXZe7qN XAqFK7SdDXm+w8kBqj/oq9hID8CmlaLZFLawZ0ZqXQRcnNSClJZTbNCLXgLlFriF/ni3 IqB23dGhOtdWHQUj0YAKKhYT/jeh5WAzJrHJ4jvRC3ggGpENySmfigHFnN/6xWgfe8Eo b6z9mzG71zTqX344cxW4XmPvfEbesbfE29n7SFyr9lBxe0xieqoJQZ6ae3R9VVDsCgpd 43cXmv+UssobOD70ayoX6NAfs+90Cl8/gY0G2TW8EkMJl4e+dLw4EXlZFeLxX8ZTqECI X+Gw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HUV6ff5Y; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-184718-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-634103f7353si3484090a12.350.2024.05.21.02.38.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 02:38:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184718-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HUV6ff5Y; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-184718-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184718-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D8EFF281739 for ; Tue, 21 May 2024 09:38:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 159E3612EB; Tue, 21 May 2024 09:38:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HUV6ff5Y" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DA4F60EC4; Tue, 21 May 2024 09:38:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716284315; cv=none; b=r5I+S9qISSbd54xRsA1BLbx8Pi0Omuzwn5vVV8j4abqkbgaoarmrxz2+vnXnT/bdmkc3e3aTfBrc7pfPosiqrlH7nR5cLn6nCIsKCHcN0SSGMXiv+Lb+SjjTeRorUKOUhpjy/4p3xMKn2I9QT93COkqj+mbfw8kjdF23oKWudQc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716284315; c=relaxed/simple; bh=HYX86FHAkEjyQacZji9kwYtlxqabkEfQ+IIHQtpgWCo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D/S5197MygnwVmeWZBIFwJ5ZVQiW3TSaLJ5ioGHvU/XyxgvpvrdxfQZ4unVPjzz+BQat2SgmF5/N5QdLhAhSsGeYiZyBRwpiGFt7DNR4/9esmmSyf7rl4xCkP53F00zL+fY7j0cob/s5DespBpUXxl2Rj2HObrb5f8X/h1y4sYA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HUV6ff5Y; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 336C0C2BD11; Tue, 21 May 2024 09:38:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716284314; bh=HYX86FHAkEjyQacZji9kwYtlxqabkEfQ+IIHQtpgWCo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HUV6ff5YIIDq1YRYRhrxLThMxVmFeWrvQYNB0+t9gHKGkclZkGu1NkAr+wdI4X7J4 146NGDkZEEl5br9+H4R5wpyrOTF5vCnIxLo+iLpuXPnkyaM037rnR3Tf3KKLL7fCwF Zy/KuxIWXNL1mBcfiWG6ff/k+eZT11dDfbOohqP8= Date: Tue, 21 May 2024 11:38:31 +0200 From: Greg Kroah-Hartman To: AKASH KUMAR Cc: Felipe Balbi , Pratham Pratap , Jack Pham , kernel@quicinc.com, Wesley Cheng , Vijayavardhan Vennapusa , Krishna Kurapati , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] USB: pci-quirks: Skip usb_early_handoff for Renesas PCI USB Message-ID: <2024052102-glorified-strung-80a4@gregkh> References: <20240521074635.17938-1-quic_akakum@quicinc.com> <2024052134-roundness-foyer-7bfa@gregkh> <1ceae2a4-0715-4cea-9351-fd98a0017b85@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1ceae2a4-0715-4cea-9351-fd98a0017b85@quicinc.com> On Tue, May 21, 2024 at 02:55:13PM +0530, AKASH KUMAR wrote: > Hi Greg, > > On 5/21/2024 1:35 PM, Greg Kroah-Hartman wrote: > > On Tue, May 21, 2024 at 01:16:35PM +0530, Akash Kumar wrote: > > > Skip usb_early_handoff for the Renesas PCI USB controller due to > > > the firmware not being loaded beforehand, which impacts the bootup > > > time. > > > > > > Signed-off-by: Akash Kumar > > What commit id does this fix? Should it go to stable kernels? > > yes it can go to stable kernels, issue is seen on every target with usb > > over pcie support. > > > --- > > > drivers/usb/host/pci-quirks.c | 5 +++++ > > > 1 file changed, 5 insertions(+) > > > > > > diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c > > > index 0b949acfa258..a0770ecc0861 100644 > > > --- a/drivers/usb/host/pci-quirks.c > > > +++ b/drivers/usb/host/pci-quirks.c > > > @@ -1264,6 +1264,11 @@ static void quirk_usb_early_handoff(struct pci_dev *pdev) > > > } > > > } > > > + /* Skip handoff for Renesas PCI USB controller on QCOM SOC */ > > > + if ((pdev->vendor == PCI_VENDOR_ID_RENESAS) && > > > + (pcie_find_root_port(pdev)->vendor == PCI_VENDOR_ID_QCOM)) > > Why are all Renesas PCI devices on a QCOM host to be marked this way? > > That's a very big hammer for potentially lots of devices. Have you > > tested them all? > > firmware loading is being done in HLOS, not UEFI, if firmware loading is > done in UEFI, then calling early_handoff() API makes sense, else it is > checking for controller ready without firmware loaded which is impacting > boot up time by 5 sec roughly. We are seeing problem in all targets having > usb over pcie support. But the bootloader has nothing to do with the device type of the devices here, right? Why not properly trigger this off of the needed firmware location instead of here? What happens when you have a system using UEFI that matches these two devices and the change causes them to break? In other words, test the proper thing, and only for the specific devices you need to have the change for, don't be overly broad like you are doing here, as you might break other systems that you do not have in front of you at the moment. thanks, greg k-h