Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp32523lqt; Wed, 5 Jun 2024 16:12:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMuDooguX2LyNUsHIcNKK4Lei3lx7iqKegwaMvNMa5SC0s+F1OqxRIGGYXXPakWwzSTYwGMqnbMCa1EA2Pnuc/pvYVfTUJ9EVESgpsig== X-Google-Smtp-Source: AGHT+IG8N6+F7MBaZgV3ItDQbBQ9HF6GpryAlMJrK57utFR0wY0sqjr8+N3+LfOZK3+Y2jfJ+Dus X-Received: by 2002:a50:d78e:0:b0:578:5f9d:9ab7 with SMTP id 4fb4d7f45d1cf-57aa55c62e8mr675920a12.17.1717629132737; Wed, 05 Jun 2024 16:12:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717629132; cv=pass; d=google.com; s=arc-20160816; b=XyLIHtid0f48PisOGLQvx5qV4Gb2NX8Qa7oPAwi7zw+n21XPmVyN7pae2zmkSOLDGI yGqAKSvrWSk49O2cx0IdW+xOPOSAEkIqe1UVHESnldXC6GYYRaGm4VtHRb8UZumzpH5F DAQqnky3xtIbpNp2/ibG1jpFpbQ8pf1TUsF1Kk+0VqGJ47pqlNFFMvJf5r6UPumjaHC1 /qD0VxtW9PYQnmZLTJE8VNXJX0KTDbSrKEfpN0ZQMz8PFEFG7ePr9N3ml1TuK2+Y8pkp GvlWkk87kXK0lss6gFX/lxH4aO9Cvlsw8rckYeQBPMc866LcnEwgf4V59YJRc/Xz2Lo+ uUoQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=TjDX2hX7Uso3teou4bJNTRXKSoRMvYQRMdknmfn7m5M=; fh=vAwC7WTHKDKeF6fYV2hrhCij6/a+RBzvzr8gr6lyekQ=; b=QT5VfmAXwy0oXmWbT8cZsd6fywUsIGd/jsH9fMxxgQUotVEzYqygmh7GS9zXhFh9jt AnS1CzhAjKLXGay3Y3IKrjZT97IOWhUf+Ju2FHDeepr6dKG92XF1dKYEgJJ8JnH3p/oq DTvsKj6W+UQAnUODVHoZKizxxjBBQiRe7rUAML4lakSf/ls9m//FIb+AzEI/vQbVZlNu /KmZ1FEthf8B62gfYRHgkziNs8aSqR4FUi1Ql4pRImiSqIl4wWSjjFv2ulh+ioOQCmwf DjBV/M0uEod5k+8CZvxJ4LSpKdCpRELPXb7uazcovvGT14L0n6KLZ5/eSk1+6j8Zj4ow HrTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nrPfNOta; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-203388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203388-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae479ac8si37830a12.686.2024.06.05.16.12.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 16:12:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nrPfNOta; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-203388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203388-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 72E941F24ED6 for ; Wed, 5 Jun 2024 23:12:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E80F161B53; Wed, 5 Jun 2024 23:12:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nrPfNOta" Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (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 1D597136E1F; Wed, 5 Jun 2024 23:12:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717629126; cv=none; b=WmUeS32QqIvPJLSPsgXNTPtEEb0xpf/bRd+0g4ab1+XEzTIbOLLCBJnYi1s6Yb7E4MvL3UIuFtcTNFcn/k1nnp0bCa7qgPYDoVBIyu+9PDpjAvt5S83dm4qUd5U6+Sdz+zbakYgYVFBjXDCY2s/nwsVUgwvv/vj/LLCI+sbOn0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717629126; c=relaxed/simple; bh=5EjGg/juo1GvXCCHmg1qyVmZN2+jZIww5rTD/8bLWiE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=A8CeHaQ+ubgnwm1IunIlMsDFGo2RkGu1QL0pCVJfBG5StOMlSL07P2bTq+lKBGQ4u1pyvZE30HBIqo7tKhtzjt+qr/CsTH82iJUi2iCz1DAVtcucq2H3ojNWkCrTobXixOv1IntbaDiYOPpV4ejtlIdFwoI8WTcM8fBclimGNK0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nrPfNOta; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-70249faa853so261357b3a.3; Wed, 05 Jun 2024 16:12:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717629124; x=1718233924; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TjDX2hX7Uso3teou4bJNTRXKSoRMvYQRMdknmfn7m5M=; b=nrPfNOtaByZcmZJeuQFLAXjrd6Pj4aROUGC0Wg5U5Ask0dRaboIsqBKBjyyz6oPaDB cUQMQy+u7sE7FIXbJjVnHuiDIk+20AotJjoPRrRdDNBcSmNBhvQhhQrL1R2wFD5B4YkO EgML+8dqNcyV2coNDCh89sf2K48MZBvVl3ph9/G0Ay+vJ1oUuB5kfpyO4rpMtpny9VFi WjhXNvmdPnpMaq/n+AeM/GmzbfsK4yRmnuLSTtBbf7v9vqmNlhGFcH0bXdY+0razpHwO TjratD18gGOucDC5sNQZj5jOBQm5tD//4skWVD/Y/qpaiETmUTtkEDiv2yaeukYR+TPt Nv3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717629124; x=1718233924; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TjDX2hX7Uso3teou4bJNTRXKSoRMvYQRMdknmfn7m5M=; b=b+v0d1n3o9KVKJqYk754AHfK5ec6oOMYynpc+TA2Pxmv0KpnqResDVNvertFj2fVKo d1r0VjHxjUUKXWn58o2n4MSbFL77GztS4geOfnFE45V97QAMQDANOh39VyMTOg4x38hq f9fbMX78t6cTcQVjBmy0d5nxiKaSqGoWoN7O0c6Qi8g8VIrEu8rS5S248hfYxVpVw4tO KfCMoPPFm125CSDacNma7eNoYXcV2YrfmKlhewLnIauwrRj/eMRsS6Knl0mc/KSbcMLX aszLOAp0kNdMLj5F4nCMRo7YiHs5mHhMrl7cgLupeLhhDv8XU+JgHDsCQzj0lBKEeDyH U6CA== X-Forwarded-Encrypted: i=1; AJvYcCVgIDuSfmQncNwRpG19NHFWTdaQTfWyckzWawomyNLWBTbz5/eMRmHEX/qo6d4Z17Lb2ZWqVaJivSKpITa162WxJhD3ysMFcAeV4x09jcserguTyaT2tt+THYuHSwxiU3zn8iaYtyMB X-Gm-Message-State: AOJu0YxjUXjgw0SSCBhdh+5Y0LF/LXjIhfqyJbq3GKQD391YeTcv0F44 Dy4AYs5y/UzUdiAGkwlAY3LifGm9LINh5sD1lwZ0Ztw4dTSdpXvZ X-Received: by 2002:a05:6a00:1caa:b0:6e6:946b:a983 with SMTP id d2e1a72fcca58-703e594a710mr4048104b3a.10.1717629124206; Wed, 05 Jun 2024 16:12:04 -0700 (PDT) Received: from dev0.. ([49.43.162.143]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-703fd50fd7fsm31068b3a.197.2024.06.05.16.12.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 16:12:03 -0700 (PDT) From: Abhinav Jain To: helgaas@kernel.org Cc: bhelgaas@google.com, jain.abhinav177@gmail.com, javier.carrasco.cruz@gmail.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, mahesh@linux.ibm.com, oohall@gmail.com, skhan@linuxfoundation.org Subject: Re: [PATCH v2] PCI/AER: Print error message as per the TODO Date: Wed, 5 Jun 2024 23:11:56 +0000 Message-Id: <20240605231156.22934-1-jain.abhinav177@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240605215848.GA782210@bhelgaas> References: <20240605215848.GA782210@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Wed, 5 Jun 2024 16:58:48 -0500, Bjorn Helgaas wrote: > - It doesn't apply to -rc1 (the TODO message is missing). In PCI, > we normally apply patches on topic branches based on -rc1. Thank you for the detailed feedback. I was looking at mainline only. > - The subject should be more specific so it makes sense all by > itself, e.g., "Log note if we find too many devices with errors" > - Add period at end of sentence in commit log. > - Move historical notes (v1 URL, changes since v1) below the "---" > line so they don't get included in the commit log. I have included these changes to the v3. Please find it here: https://lore.kernel.org/all/20240605230954.22911-1-jain.abhinav177@gmail.com/ > - __func__ is not relevant here -- that's generally a debugging > thing. We can find the function by searching for the message > text. In cases like this, I'd rather have something that helps > identify a *device* that's related to the message, e.g., the > pci_dev in this case. So I'd suggest pci_err(dev, "...") here. > - I'd keep pci_err() instead of switching to pr_notice(). If we get > this message, we should re-think the way we collect this > information, so I want to hear about it. I understand, this helped me get a clear picture of what needs to be done. I have accordingly added two pci_err for the same. Please review.