From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36E59C2D6 for ; Fri, 19 Jan 2024 07:40:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705650041; cv=none; b=O+pxcS9H007GDAU8D/M/NcIQhKhAx+8DKlWzpLRB2izt2xbQL7smEii5s8evZsF4bOgiga789WjIcluC6ZuvkiSm0XruDzMt+Vs0NLOwgQ6+uFV0dJCyuSmQJDEiMW2h27n7ldFbbjJxHyTH2Enpd8R144PUfvUk9kO+e2YJaw4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705650041; c=relaxed/simple; bh=doJXC6Va4CIGwN0Iih+lnDY4rEtE9LT5x0R3GE7ft3Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zft49CBA05mvH1FnbjKXSLMqIzWmImQXi4aeHE/LIvy51olcTljOs6d8QRlcrZ35tiILrBWATRZ+nCsZQONNwmActczMAdAHuMYqyU7NXfjW48fdER3hLmDIzuepsz53oRo0OdTjMbSS933Z6LdRSvefcug+sixhhx/9eqRUFBo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=HTL18LzH; arc=none smtp.client-ip=209.85.128.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HTL18LzH" Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-5ebca94cf74so4915117b3.0 for ; Thu, 18 Jan 2024 23:40:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705650039; x=1706254839; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=Y/pCciHi5Q2QbdDlTTGF4sQWlv8rfTqfk0RnQ7BpddI=; b=HTL18LzHcTuZEbp5aft3GZIOckw+LNLs5gM4ora3uwPplOORc7F2a5wKF3LnJegAo2 6bLkydg0XTZEd6WtLuxrWPx+DFU0RgH68/jVPoM/2C5FyKwLXAaeNbzbh23rPYT9aIPp XgtooxoXWJDPfvuTx5qfS3X7QsPsX5Ucv42DB/DRLbEy6EHuK2iSbZEgoG088OIDJtoF uX8+ACF23oS0n16BtjB+jaIxVh/BFl3gCKKRDpYcswOpcEaVSru/wzl9OMShOJjI66wS E/sBdO/Pv3WjgBeD2u6AIchyZQL/kFA20x+LAIBnCXuWbQd1aZ6CaFnciFqIhDLSAoQI uuEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705650039; x=1706254839; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Y/pCciHi5Q2QbdDlTTGF4sQWlv8rfTqfk0RnQ7BpddI=; b=wEo49+KyBykFuhRdM4oCQHzO0/yDep6hHBm1qkUfomtDCv2DKnI5UBRistYbDm/d7l 9PEirg7QoDOIYx+2j1zRAXuZfei4jUh0tDLWRsZs8rUt72rC0N6+dgzq7g8JlNlqaISW xjOjQLZe1vq5z4IPXBScUaMYaGSmXxDVXsWTY3ag344e8RHus4FopVTe0wrpSyARunh5 dBaYKYiZUBWtJxzYB5i0i6so+61Ou/t8m+ziF5T0jMZOua+Z66AMaFDT3Qo1ky51x/Ds KrCf1suldwXlG4djs2056h7c4tQXRpsvI3IF0dsE2oRBFrhJrJBlCVCCFUQvMGFpoP1Y dbAQ== X-Gm-Message-State: AOJu0YwE5Q7A+9EysyZGfW0TadTYd/HHP8VUD48/hs/q0SBdhWB1nsNT aKJGjKfT9InoSyofnAt+OyADC5T5mY3Qa6QNDvosi/CG5c82++h8OcDd+g3rIA== X-Google-Smtp-Source: AGHT+IFif71Ycltu5NAwE+xEaIuhXpxYXlFAE9CPDleciOcCYkZ8dIHhV7jbWLz1sVNxISitJziMVw== X-Received: by 2002:a81:9c46:0:b0:5d7:1940:7d8f with SMTP id n6-20020a819c46000000b005d719407d8fmr1746824ywa.102.1705650039184; Thu, 18 Jan 2024 23:40:39 -0800 (PST) Received: from thinkpad ([117.248.2.56]) by smtp.gmail.com with ESMTPSA id bq26-20020a05622a1c1a00b0042a1e10d46asm1009984qtb.25.2024.01.18.23.40.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 23:40:38 -0800 (PST) Date: Fri, 19 Jan 2024 13:10:30 +0530 From: Manivannan Sadhasivam To: Ajay Agarwal Cc: Johan Hovold , Lorenzo Pieralisi , Jingoo Han , Gustavo Pimentel , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Sajid Dalvi Subject: Re: [PATCH] Revert "PCI: dwc: Wait for link up only if link is started" Message-ID: <20240119074030.GB2866@thinkpad> References: <20230706082610.26584-1-johan+linaro@kernel.org> <20230706125811.GD4808@thinkpad> <20230711073719.GA36617@thinkpad> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Jan 12, 2024 at 03:30:15PM +0530, Ajay Agarwal wrote: [...] > > No, IMO the offending commit was wrong in serving its purpose so a revert makes > > sense. Because, if the intention was to reduce the boot delay then it did not > > fix that because dw_pcie_wait_for_link() is still called from intel-gw's > > host_init() callback. You just skipped another instance which is there in > > dw_pcie_host_init(). > > > > So to fix this issue properly intel-gw needs to do 2 things: > > > > 1. Move the ltssm_enable to start_link() callback and get rid of > > dw_pcie_wait_for_link() from its host_init() callback. If there is any special > > reason to not do this way, please explain. > > > > 2. Enable async probe so that other drivers can continue probing while this > > driver waits for the link to be up. This will almost make the delay negligible. > > > > The above 2 should be done in separate patches. > > > > - Mani > > > Mani, the intention is not to fix the intel-gw driver in any manner. It > calls dw_pcie_wait_for_link explicitly in the probe path and checks for > the error as well. So it has to live with the delay and the probe > failure if the link does not come up. > > My intention is just to get rid of the 1 sec delay for the drivers that > do not define the start_link callback, and hence do not expect that the > link will come up during probe anyway. > Ok, this clarifies, thanks. - Mani -- மணிவண்ணன் சதாசிவம்