Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4755985imm; Wed, 30 May 2018 11:20:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIXSUon9QjoYX0B7seGpYcjHfp8oOlsKtukKcSfF9tzFhfBBx1a8TSOORbSj0KJD7ftKuH2 X-Received: by 2002:a65:6645:: with SMTP id z5-v6mr3043324pgv.43.1527704418621; Wed, 30 May 2018 11:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527704418; cv=none; d=google.com; s=arc-20160816; b=Ippl4Xn+b51jA3b88nIlwMCs4hkd3/oNzd4LfUqNg2ELf25tDpUkeOTd54bt3I9qCb t3P8/jYCeMQH+pJu1UZ5qnaIYVkl1mxi+R3JvKTqxGWtZcm15yPGHrVtXcoJLSeexN3K etPNTc2bAeF4RIr+GIxtpECinYBma/y2+TC1Pey2wkY3810tGBsg1gK/QGuZETD6xQMy 3bf310I6XAdBf1ow8LSQ63m/xnwg8Cb7nEOYELofptLsYwjUBWnIT5DZ9VsfA/5DzLkn WgOpTsOGBdGOz2igSLByrNP2Nrw+2F8s5ASS0QSDYe+jowv/A6RooNKLhgGMkOxvCSDj Ekbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=8AeJdgUbR2YrabEfnj4JQSCM5+b4t7HYldVn0Ci9tSU=; b=AihLy/KFcqwwWGF3HudR2XTYQVdurFGcCA34X/EkooPlFbqqlme0w3HzpxhxTDxilk vjPW6n1Jw/MOAaLLktC49NM0qpUNW2LlDtN5kxy75lr408auhO6Q7NDmkKOl+2IsT5hU yR3xwhzz/65YeNY/cb4ZTlcp5jcw1HUvgPRiPBha9B9trYK112A9Zkn/zxBfxGcwbGes no1X/usS6Lo1XjAaSz1yb6QRYTAbQqP95Q71pjr0ukJ4n7sYF17rIp8pogstAExEtXOf vCjQ5d1aPKInRBTR5G+iKOIEaUhr7M27RiiTlfk85P++9MURqrK92tJPSjxdTfoJn6F/ rS6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=W4xChn4s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a35-v6si35777499pli.85.2018.05.30.11.20.04; Wed, 30 May 2018 11:20:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=W4xChn4s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932095AbeE3STY (ORCPT + 99 others); Wed, 30 May 2018 14:19:24 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:33632 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753893AbeE3STM (ORCPT ); Wed, 30 May 2018 14:19:12 -0400 Received: by mail-ot0-f193.google.com with SMTP id h6-v6so3179164otj.0 for ; Wed, 30 May 2018 11:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8AeJdgUbR2YrabEfnj4JQSCM5+b4t7HYldVn0Ci9tSU=; b=W4xChn4s8JwHgwkn60Kd4Z6RgCLRiDwjuLFW63DL14F69LWNs3w4ua3/5FhKYMKLv5 /oQJ49/hbxQxa/UsmBeUck2dnmFRxndA3C/Q1OI3I2LZkdeaZcIUFg9jId190n4PZgpF txfBAeifXYnLERioMR8sfTEJ9760VNY5OL4vSPLT2vZNX3Ko/rMtex2CRrz0f5SLo2Sb vGIe2UeZrGVkRShJPDt9fYHmpk2hhd0OhCw9gBPcN3cO2xGGb+O6AV/dfiAzqkTIylJa Bcq1d/Pht7F7QyU1Eeq/BtO0CXCzvq3abySUfCqzeC9WPxXnKCAmQvTP/MnsDN1GclRO gFuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8AeJdgUbR2YrabEfnj4JQSCM5+b4t7HYldVn0Ci9tSU=; b=XvCrqiybiFPh+sTMhm/aVU7X7J9GcTGnHwle2qStOPJFmr6tZ9MEmzDnbU1WmR23Wu J2OUoTZnv+bo7jT/6cv7B/OmfVel7xni7E6YvsWOtPgfCv4Pnh898wA+avWqDS3aoXV4 y8CmjIpwLArXcolrtK+W3bvx6dFpCQ/B347Sqt+l9HG6O7O6FJO75r0VcS9MyhfL9fyC ffYLVZcuBLwRQxhUNhcqiMMVch1Ac5CjET3VLmN+f66YHkqpWPe9aS1KaOnLf0F6c46U HR710dMVowbLeeIAxf12xLpdICwlXt4jk0SG+5piq1ZuACayKEWMYD0eieLUkG4myWDI hZtg== X-Gm-Message-State: ALKqPwecKc0a3Q8HK/OFovQH9NZOWO6gRsC5hxXmtZmGkD2nyWIzOymq c2fg/8IKMZlM8nmVYsNM30jgOSZJlWUx2jG4zgiQ9Q== X-Received: by 2002:a9d:2909:: with SMTP id d9-v6mr2293440otb.229.1527704351837; Wed, 30 May 2018 11:19:11 -0700 (PDT) MIME-Version: 1.0 References: <152770259826.80701.7360032106128917833.stgit@bhelgaas-glaptop.roam.corp.google.com> <152770286159.80701.8079550179741454699.stgit@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <152770286159.80701.8079550179741454699.stgit@bhelgaas-glaptop.roam.corp.google.com> From: Rajat Jain Date: Wed, 30 May 2018 11:18:35 -0700 Message-ID: Subject: Re: [PATCH v1 2/2] PCI/AER: Stop printing vendor/device ID To: Bjorn Helgaas Cc: linux-pci , Oza Pawandeep , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 30, 2018 at 10:54 AM Bjorn Helgaas wrote: > From: Bjorn Helgaas > The Vendor and Device ID of the root port that raised an AER interrupt is > irrelevant and already available via normal enumeration dmesg logging or > lspci. Er, what is getting printed is not the vendor/device id of the root port but that of the AER source device (the one that root port got an ERR_* message from). In case of fatal AERs, the end point device may become inaccessible so lspci will not be available, and enumeration logs (from boot) may have gotten rolled over. So I think it is still better to print this information here. Just my opinion :-) Thanks, Rajat > Remove the Vendor and Device ID from AER logging. > Signed-off-by: Bjorn Helgaas > --- > drivers/pci/pcie/aer/aerdrv_errprint.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > diff --git a/drivers/pci/pcie/aer/aerdrv_errprint.c b/drivers/pci/pcie/aer/aerdrv_errprint.c > index d7fde8368d81..16116844531c 100644 > --- a/drivers/pci/pcie/aer/aerdrv_errprint.c > +++ b/drivers/pci/pcie/aer/aerdrv_errprint.c > @@ -175,9 +175,8 @@ void aer_print_error(struct pci_dev *dev, struct aer_err_info *info) > aer_error_severity_string[info->severity], > aer_error_layer[layer], aer_agent_string[agent]); > - pci_err(dev, " device [%04x:%04x] error status/mask=%08x/%08x\n", > - dev->vendor, dev->device, > - info->status, info->mask); > + pci_err(dev, " error status/mask=%08x/%08x\n", info->status, > + info->mask); > __aer_print_error(dev, info);