Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp838399rdb; Thu, 18 Jan 2024 23:40:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/JXv675Ml+bdAKCOHBpmMdyLSl6IvaeOy9pR7LHxwBSkXUcoUXgkr/K3G/6mobUcuJ0OI X-Received: by 2002:a05:6102:22f9:b0:469:63f3:17d8 with SMTP id b25-20020a05610222f900b0046963f317d8mr1925072vsh.57.1705650050370; Thu, 18 Jan 2024 23:40:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705650050; cv=pass; d=google.com; s=arc-20160816; b=NlW1Ic2mfdgTxqPgmUHwJVXeaSMEFjwVzFpBl6SFt3klS1X1Ut9sCUMS8pzU5SvnGd AduNM8HEU7BExITKc/whf3wlxh2o+FRMUQrUmeW2x7kNAMScnzKHfRTrC4/JfTWd8xQv z2EZYxR5eWjKyHL1Wo6QHMfwWDcmfjI9/46TzYUCZW+5uaLlUXoqGxuF/WeZRstsP1O1 2JqBbN8uhgt5R947vAjhU079SAdbZzVwq/6oCMlo8xryqBEX/viTd5sAiA7owq6232cj 6ia1xic6zPgAF57y0BK4q4qWu3oFU/LUq36ce0hfvPN1qThmCGtIf1Hm43/bkJH5tvwn 3DdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Y/pCciHi5Q2QbdDlTTGF4sQWlv8rfTqfk0RnQ7BpddI=; fh=usfklZh3kaXONWU5UQ/eaL1JAXIjeOBT1cKQek53tXg=; b=yCo41cMNhwo1gGTYQULsLq4yIIsp6C4q6Wosg9wrl6+3dfZT8ydPBQ1bKxaAqI21N5 Ob29IE2qcK1HI6+33kyW2nhDMqHJvjkC+Aup0Obi9EQyPrCZP+ywyrpAQ8uPXB0Pvbut NdbO5loU/q9Np+5R5pO5j5+hzSSBpRCibgXnTua5/SxxU4tyqqFtxnkonPP1u4TlA+sC ILFyt9Px3mn39DFpOKdQgejc5DxlveZB0iw0pBorobtuLDeUNtBo0dgFB64qGBonBatm R3EjmS1hVNdrKneUamtS5nWr3augKPhjMaqba62USYBd7QO0xeMOiMA91pDdH0fuBZYA Ni3A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HTL18LzH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-30851-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30851-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a2-20020a05622a02c200b0042a23db2e58si1161022qtx.789.2024.01.18.23.40.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 23:40:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30851-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HTL18LzH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-30851-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30851-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1665F1C2268B for ; Fri, 19 Jan 2024 07:40:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53677D527; Fri, 19 Jan 2024 07:40:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HTL18LzH" 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 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-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 -- மணிவண்ணன் சதாசிவம்