Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp645279rwi; Wed, 26 Oct 2022 05:38:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7nrmiCSm9YZW1h4KNsZX6/qWEtYVYQ1zPOWd+JpkOy7di2fBFnJqhc61bWS4RyAWuN3FP7 X-Received: by 2002:a05:6402:11d4:b0:45d:8733:7cc2 with SMTP id j20-20020a05640211d400b0045d87337cc2mr39925489edw.409.1666787926623; Wed, 26 Oct 2022 05:38:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666787926; cv=none; d=google.com; s=arc-20160816; b=j3xeEQ6w0mWhOmiZ8l09yitpg/+WocEZrtWSuhrjs/Lwp8Pqr4WcdB5enywZRlxoBP CIxkAn0GnoSkpI0EIQNPBDgrvsC5QQcXoW6n8OvpjPSeE/b9vr5s1X0eH71E5XSWXI+t mQTcQp4nWcjk0VTWN8tKnlix6+fKr8jckdHEjcx9M9Js2+pwyajjWsj5nhFHqtMjOjmP IV0qrtjLPA2lIpYyKZh1VUffeddhhEbu6kca0evS7dhvqgdXy0GPoPQDg9gyEuhRIH/0 WWR/HY8bXYEP6dlMeHxz03ITNHmDTuvZKYAsH9/h+pD7hXFcK7V8az3XxHvlTKKo2VQA bt2w== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ps7iy8KxAnoHoBwbE0HLfuuJMg36xe/G2nqlo7b4RkQ=; b=aIPcpiIFA0BWh4Ch5yL7dnztKjjNyiPYXd0Q97qzocqWXPLAi7ymCdJaqmYQoF75uu S0fqy7YS2CNQ9UvL4p50WjusYe/WVMErKrglgmX3hFCVxXf21PsSqKxW+ACJ2ZYHGhEF ZKGbWal6zyL1eRbaE4tVcYbmfN33suq1yJBxfngZcXdel9MWGQiyV2S0iScdAo+VFbab Pb2yl1cVlHQoW05kbD7P4AAunmXS4j8kTCiX9ZcX6chRpggW2ahrRLFeTOjXcCI8f8zb c1EJ9JxncoZThBdcPveSj37UbFzglJf5E9CikzXcEm3lb/J+vDJ6n8Sl0TdY3lsBB3Q6 KhHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MkhUuZ4R; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v25-20020aa7d819000000b00460ff7dc801si4284699edq.445.2022.10.26.05.38.21; Wed, 26 Oct 2022 05:38:46 -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=@kernel.org header.s=k20201202 header.b=MkhUuZ4R; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233524AbiJZMdo (ORCPT + 99 others); Wed, 26 Oct 2022 08:33:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233150AbiJZMdm (ORCPT ); Wed, 26 Oct 2022 08:33:42 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9514073936; Wed, 26 Oct 2022 05:33:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 56B00B8212F; Wed, 26 Oct 2022 12:33:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76D92C433C1; Wed, 26 Oct 2022 12:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666787619; bh=1oQIC/cEy+BOnB6qVZCAUuyMhZUjMaoO2CL7d79n42k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MkhUuZ4R24oHo5gcthD/4oPGb+VW8T8sm1LSjL0hHEzT9Bb/3OGFs7KrTYXf/o44O WQnOxrRYa9CK5XmryT2epofDD3UX1XH5KcB8wyoWNN7HmP2wtvbjoPXrAE7K8dHAVp IXEqBid+aksXgIJfJ7rUnq6QUw5JhIpuKj446uAPtnL1mktK9UognPJDBe9T7rkJ/A ysQaowqW9Xh5YaqXgYdF3p7Dtm2AByLJaOhH5CtpmOyVeDW/mSoX0nmoPyE3isAGSp dzEBGKMNiS0nNhIyLCw1uSSn36DodrC06ESR0XHRbydkqNFRsXLRRX6xqQFDUo4DwP JcQolSq6ACWOQ== Date: Wed, 26 Oct 2022 14:33:31 +0200 From: Lorenzo Pieralisi To: Jon Hunter Cc: Bjorn Helgaas , 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: References: <20221018164329.GA3808783@bhelgaas> <8670e757-7275-57eb-3f5c-0a21ba354e37@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8670e757-7275-57eb-3f5c-0a21ba354e37@nvidia.com> X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Wed, Oct 26, 2022 at 12:39:13PM +0100, 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. I understood. We are at v6.1-rc2, this patch is not a fix, we will handle it for the v6.2 merge window. Thanks, Lorenzo