Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7547663rwn; Tue, 13 Sep 2022 23:52:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR5IUJk91HfbWuYguV/+vQberVBzXctQvq8KNKB9rYZs0gCopMjTo4oinmsAswLSHu7Krz7O X-Received: by 2002:a17:907:6094:b0:73d:9c6b:35f5 with SMTP id ht20-20020a170907609400b0073d9c6b35f5mr23694089ejc.140.1663138375631; Tue, 13 Sep 2022 23:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663138375; cv=none; d=google.com; s=arc-20160816; b=kdn/Tr2f7OkFBhE5v0jrtwKwOth4ww+vXenPLm9mD/9KbXptNGIqbFJxwLJvaKbeQ6 FXo0xzicPAJ+Nlz4QLE+y0jyI4nwH+3ywptSJOJJmxEPEQcEr7FjsT5ngtq89j/dJULx xHLooKuamq3a6ap/AqYmjcKe1dmxLlbD7qSRIT5lGoc9aJhjJ8gyr13a4a7BB2iGk5Bm oTH34XzM42y5GprP0bqweirrS0Ps7mlr2i3O8WbOpQVX4LiRfNCLvf9HnPAWSj6d/U// MobHQh0tqlXq5iARKJBkGM5iI7vDXlJ+iR7ZTJHrfuv06/Dkaogxq+PhAfyX4gwBXK0Y isqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=nOBwV7zD7+DTTpu2RK0hUunUjebAM5dH9U/z6ps0Qmg=; b=ovx00X/zPYxVcxpwh6RSpLQo/jKHmQmdjb4vniGBtvuyXhd2vpluJM+WAOcuMuYXoj YIwsvyu+ydQwCmoyvrynssdlke8iEj7hTPvxP/5Q6ukFbXw+WBC34Ci9GVQIh0yselzQ SgkUWLIhbJieMRIQscmOGlLGXAu0UPSglnGhP7+9PceWs8zY4MXxYBTBCHKG9SPiNWgS khgErcU9gk8oVvzBm2fO4V5/eOfEmxlo4qHgq7TmLRvujqirxCsTkRBriSJzNBGSOx4s Tgm8q1sj6bEt/sLt3iSWzb8iSHCyPEDZxOo1bxoQwXu8cYJQFFeIssFXs+DXxPMlO6Gx xCyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YbpxUjlQ; 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 y22-20020a056402359600b00445f3dd3861si11137929edc.313.2022.09.13.23.52.29; Tue, 13 Sep 2022 23:52:55 -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=YbpxUjlQ; 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 S229639AbiINGNr (ORCPT + 99 others); Wed, 14 Sep 2022 02:13:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230111AbiINGNM (ORCPT ); Wed, 14 Sep 2022 02:13:12 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 710797198F for ; Tue, 13 Sep 2022 23:12:58 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id go6so9316195pjb.2 for ; Tue, 13 Sep 2022 23:12:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date; bh=nOBwV7zD7+DTTpu2RK0hUunUjebAM5dH9U/z6ps0Qmg=; b=YbpxUjlQOGGXqj2Xh2EVFLGC/I8prjgaJZkYUd0xwMKcjkguC4b1JtZNGIAawgMaAc srtLXKEJ0V2nj7DGlfF/I9k36k3nCDoaZb11y+BX0t8809jCz+RsqE8l3xvyDL/uxp58 YsMwUdz3AT4XgJ+B7w3GCmqhvKnR61cZfsSWwBvBCuAi11MkUQ67sD7ETsUs1XxlCafR JKqnMwPVW76MGgoyE4sYizePXDpKYYFSDpCykAC4GXRQyVUuvl12cx9j6nKmVHfo13HD oHpdLKAe/dhihEqkGYt3jhVfl5EKCstqZCEd9MqTYL6VKNqfBmJmlxR1wGk82TeksBK5 8mDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date; bh=nOBwV7zD7+DTTpu2RK0hUunUjebAM5dH9U/z6ps0Qmg=; b=bYmJicNGhN0W2NzDVNkwVxAZmeGSID4qBOBwmdrBvQSVPHcsU2cV6JSyk3lt0vn6HC F5hp1lW596knW99E2I5DY/PPiRKsB1ujfdE7SUk0Z2RBRJsFC7blBEMSS7uGclAI5GGy Vh4Tj2xULuj1E4FCm+MKahZkCV2zv6KDylDqpUXc/PEl0F0Mg5ap6M8zFXHRkPjrb424 g+PGo7U7LCk3iKgFhsLFUc96jL1bZP0VzcaykU4/+YMDw/uZvBk12EVQwekf1Ed7fM4+ Bw+wLKU0/Mm9HRiJru61KKVN2MGORPxyOvX86mnruLP+4VSWy/4NRNMBtepWK0Ets4Rj omcg== X-Gm-Message-State: ACgBeo3+oJFjxRtQfvPxc2k0OTUj0eLK9P7ddreE3i2DWvwyVh5T6ROJ PorNkgYCMEgZWgP4LZWOpx+M X-Received: by 2002:a17:903:41c6:b0:178:348e:f760 with SMTP id u6-20020a17090341c600b00178348ef760mr12675069ple.123.1663135977914; Tue, 13 Sep 2022 23:12:57 -0700 (PDT) Received: from workstation ([117.202.184.122]) by smtp.gmail.com with ESMTPSA id h6-20020a170902f54600b0016c4546fbf9sm9676237plf.128.2022.09.13.23.12.53 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Sep 2022 23:12:57 -0700 (PDT) Date: Wed, 14 Sep 2022 11:42:51 +0530 From: Manivannan Sadhasivam To: Jon Hunter Cc: Vidya Sagar , jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, lpieralisi@kernel.org, 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 Subject: Re: [PATCH V1] PCI: dwc: Use dev_info for PCIe link down event logging Message-ID: <20220914061251.GC16459@workstation> References: <20220913101237.4337-1-vidyas@nvidia.com> <20220913165159.GH25849@workstation> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) 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,T_SCC_BODY_TEXT_LINE 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 Tue, Sep 13, 2022 at 06:00:30PM +0100, Jon Hunter wrote: > > On 13/09/2022 17:51, Manivannan Sadhasivam wrote: > > On Tue, Sep 13, 2022 at 03:42:37PM +0530, 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. > > > > > > > But the link up not happening is an actual error and -ETIMEDOUT is being > > returned. So I don't think the log severity should be changed. > > Yes it is an error in the sense it is a timeout, but reporting an error > because nothing is attached to a PCI slot seems a bit noisy. Please note > that a similar change was made by the following commit and it also seems > appropriate here ... > I got the concern. But the problem here is, we cannot distinguish if the error is due to slot empty or an actual issues with link/phy. Also it should be noted that if the slot is empty, the dwc core anyway waits for the link to be up. IMO this is a boot time overhead that could be avoided if the specific instance could be disabled in platform data like devicetree. > commit 4b16a8227907118e011fb396022da671a52b2272 > Author: Manikanta Maddireddy > Date: Tue Jun 18 23:32:06 2019 +0530 > > PCI: tegra: Change link retry log level to debug > > > BTW, we check for error messages in the dmesg output and this is a new error > seen as of Linux v6.0 and so this was flagged in a test. We can ignore the > error, but in this case it seem more appropriate to make this a info or > debug level print. > On some of the Qcom based platforms, we avoid this situation by disabling the specific PCIe node in devicetree for which we know that there would be no devices connected. This not only avoids the error message in log but also removes the time spent waiting for link to be up. Thanks, Mani > Jon > > -- > nvpublic