Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp529655rwi; Thu, 27 Oct 2022 04:41:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM44WHfvaAs+5QVzkV6yMpOs/zOWFfCwxgPYJ2S1JvIoC6QXUgNhbqO0I2Xf2C7f9DH3yjYU X-Received: by 2002:a05:6402:5507:b0:452:183f:16d1 with SMTP id fi7-20020a056402550700b00452183f16d1mr46150945edb.96.1666870873198; Thu, 27 Oct 2022 04:41:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666870873; cv=none; d=google.com; s=arc-20160816; b=RtjHn6XafILVX+ho+jlD9DYIu1hZlMMxB6SpaSHWxTzjO1uqiRi76qyMVHHi76+6ZF Hr5kVCSzL2DFF04dB6i9NSxxhhx7EWMguXqOnvLEZpsSjB+u8KBdulePRBBOv/Jn8bO1 A9BJjUxSCU98BjgyiGVyXROLNuJtLSJLsoJeRcXln7JRXbtI6TwH3BA+Z2uDEuiYPdwl 4xcI+xDb7YDcAryWEEaA/AujiXWUwqwLdmI38VJmNQ7BhPAtAUeVgbd73YnfdT7xMS58 /5OPGEugpQ4kukSomc6t6YsXy0dAg26z9oIvSV5WudXp0GqgA8BsqcyMVyyWnWpK+o7X MRlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XEwRhdQJcdc4xZoLtd367feLEMlETLt1yb2FFn/p5XA=; b=F2yCNbBvk7lWmiLUe2lv5lUuP/mdfZs3q88IDVVi2xE6NrznsrgQSSX8Q5Pt1Mgyrx Uj2u7wJ3Z3sI53KaNqJj2IrgSA9jU+/FPJ7+g/5R30bsNBEhpA0WPrtgr6SkwkkDbuuq SWzWdo+xJUEBUQprmquATVY1PLM36aNrV3vvGfwnkpXBlHeXEj1AOQxfEnBrTUlB/w8x j/zWkU0TZY8KDGPgG6hpdLNzjj8i5gIArYO3Zf7OcnLRrIeeu/21h4I9m1G9eP1rPXZl I1Cqzdd5HPerlp7MTLtcc1gRHoHLebJXgxbFwtz7ks3InGZkkoxtM+v8gdVsfJDVaVn1 S3Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="YP/O5W/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x99-20020a50baec000000b0045ddb2076casi1227946ede.177.2022.10.27.04.40.45; Thu, 27 Oct 2022 04:41:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="YP/O5W/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234137AbiJ0LFy (ORCPT + 99 others); Thu, 27 Oct 2022 07:05:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233971AbiJ0LFu (ORCPT ); Thu, 27 Oct 2022 07:05:50 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D503DD886 for ; Thu, 27 Oct 2022 04:05:49 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id v4-20020a17090a088400b00212cb0ed97eso1105316pjc.5 for ; Thu, 27 Oct 2022 04:05:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=XEwRhdQJcdc4xZoLtd367feLEMlETLt1yb2FFn/p5XA=; b=YP/O5W/XhBIROQVWOlPHb/VksUkA9NLH4PIHnj1VW/THheH22UE4AFCOq/aM/RsZpt ldzum9OUFrBGbRAwl8jeCOaw7knYL7AEWs158PnAf27trfSec3WI/JeZrGmc887v/WwV KqhdVy8rlClRc0To4fOfeHMCofppIYlmVTD4qlE4CwNF0S3ptrOOci9HQPZCwLC1vCw4 V4qRpKaCW5O8VTsk+/6xfFbd6/1VRGRbE59vjLMnUg65qC7FPrjI3m5VVtiAR47i6CvJ 8nog5gjiQbUslWsZZOsmBDeSG5KDPjbIG2lVeJbSBQjkvcqtJC8UYkUuh2R1c2Eeydzn GQQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=XEwRhdQJcdc4xZoLtd367feLEMlETLt1yb2FFn/p5XA=; b=GOIVQrfgofx6RjMb68H0q2LCklk3eUqjj1gxGpG6SSgwSGklBNiMTPNoCuHQAlCyqt jTzKHngn4wJk7v6HXUnFMUoDycIo4hOcFAmZX0OYD6o1BEjRJa2QyvgYX922Y/j7DRRt pvD8AaxzdgrZxuh2/qrZl3lM4XxKBJNOlGevnv1l/iT/rlu1rfsthi50xbz5npbjAIa1 sBgtnz7LN+Y50hEwqpz1HROLbzSKqPXT00jvovkeAolK5DjCzmZqbxCQAEp/NEpCbMG5 ik4VNFKDSpe9SAASUtHF1P8lv5t2LA9MM8f/djEWwxQSSHvjtuvpmyS7jzn4oPXK5hHX pIGQ== X-Gm-Message-State: ACrzQf2+l/4RGn8/WfaAYA5QFBB1BaIwB/jPT15trRyEC2+HIuWCm9WY sivBz4r7VzfPWkU75RU4+wL9 X-Received: by 2002:a17:902:ebc4:b0:186:b32c:4ce5 with SMTP id p4-20020a170902ebc400b00186b32c4ce5mr17564012plg.74.1666868748462; Thu, 27 Oct 2022 04:05:48 -0700 (PDT) Received: from thinkpad ([117.202.186.162]) by smtp.gmail.com with ESMTPSA id iz15-20020a170902ef8f00b00186a1b243basm916705plb.226.2022.10.27.04.05.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 04:05:47 -0700 (PDT) Date: Thu, 27 Oct 2022 16:35:40 +0530 From: Manivannan Sadhasivam To: Ben Dooks Cc: Jon Hunter , Bjorn Helgaas , lpieralisi@kernel.org, Vidya Sagar , jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, robh@kernel.org, kw@linux.com, bhelgaas@google.com, treding@nvidia.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, kthota@nvidia.com, mmaddireddy@nvidia.com, sagar.tv@gmail.com, "linux-tegra@vger.kernel.org" Subject: Re: [PATCH V1] PCI: dwc: Use dev_info for PCIe link down event logging Message-ID: <20221027110540.GB76627@thinkpad> References: <20221018164329.GA3808783@bhelgaas> <8670e757-7275-57eb-3f5c-0a21ba354e37@nvidia.com> <6bba0876-3002-0614-5aeb-c4cf901938ca@codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6bba0876-3002-0614-5aeb-c4cf901938ca@codethink.co.uk> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Thu, Oct 27, 2022 at 10:55:34AM +0100, Ben Dooks wrote: > On 26/10/2022 12:39, Jon Hunter wrote: > > Hi Lorenzo, > > > > On 18/10/2022 17:43, Bjorn Helgaas wrote: > > > On Tue, Oct 18, 2022 at 07:21:54AM +0100, Jon Hunter wrote: > > > > Hi Bjorn, > > > > > > > > On 13/09/2022 11:12, Vidya Sagar wrote: > > > > > Some of the platforms (like Tegra194 and Tegra234) have open slots and > > > > > not having an endpoint connected to the slot is not an error. > > > > > So, changing the macro from dev_err to dev_info to log the event. > > > > > > > > > > Signed-off-by: Vidya Sagar > > > > > --- > > > > >    drivers/pci/controller/dwc/pcie-designware.c | 2 +- > > > > >    1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > > > diff --git a/drivers/pci/controller/dwc/pcie-designware.c > > > > > b/drivers/pci/controller/dwc/pcie-designware.c > > > > > index 650a7f22f9d0..25154555aa7a 100644 > > > > > --- a/drivers/pci/controller/dwc/pcie-designware.c > > > > > +++ b/drivers/pci/controller/dwc/pcie-designware.c > > > > > @@ -456,7 +456,7 @@ int dw_pcie_wait_for_link(struct dw_pcie *pci) > > > > >        } > > > > >        if (retries >= LINK_WAIT_MAX_RETRIES) { > > > > > -        dev_err(pci->dev, "Phy link never came up\n"); > > > > > +        dev_info(pci->dev, "Phy link never came up\n"); > > > > >            return -ETIMEDOUT; > > > > >        } > > > > > > > > > > > > Are you OK to take this change? > > > > > > When this came up, Lorenzo was in the middle of a big move and I was > > > covering for him while he was unavailable.  But he's back, and I'm > > > sure he will resolve this soon. > > > > > > Personally I'm OK either way. > > > > > > Bjorn > > > > > > Can we come to a conclusion on this? > > > > We have tests that fail when errors/warning messages are reported. We > > can choose to ignore these errors, but given that this is not an error > > in this case, we were thinking it is better to make it informational. > > Is there any hardware presence detect available to just avoid even > trying to bring a link up on an disconnected port? > PRSNT pin is not available on all form factors sadly. Thanks, Mani > > -- > Ben Dooks http://www.codethink.co.uk/ > Senior Engineer Codethink - Providing Genius > > https://www.codethink.co.uk/privacy.html > -- மணிவண்ணன் சதாசிவம்