From: Puranjay Mohan <puranjay12@gmail.com>
To: bhelgaas@google.com, linux-pci@vger.kernel.org
Cc: Puranjay Mohan <puranjay12@gmail.com>
Subject: [PATCH 0/2] PCI: Update BAR #/window messages
Date: Sat, 6 Nov 2021 16:56:04 +0530 [thread overview]
Message-ID: <20211106112606.192563-1-puranjay12@gmail.com> (raw)
The log messages in the PCI subsystem print the register offsets of the
BARs that can't be easily understood. At some places it prints the BAR
numbers. These should all be more meaningful, e.g., "BAR 0", "I/O window"
,"Prefetchable MMIO window", etc.
The first patch in this series adds a helper function that returns the
name of the PCI resource when called with index of the resource.
The second patch uses this function and updates the messages in one of
the places.
Many more messages have to be updated to make this a uniform process, I
will be sending subsequent patches that do the same.
Puranjay Mohan (2):
PCI: Update BAR # and window messages
PCI: Use resource names in PCI log messages
drivers/pci/pci.c | 47 +++++++++++++++++++++++++++++++++++++++++++++
drivers/pci/pci.h | 2 ++
drivers/pci/probe.c | 20 ++++++++++---------
3 files changed, 60 insertions(+), 9 deletions(-)
--
2.30.1
next reply other threads:[~2021-11-06 11:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-06 11:26 Puranjay Mohan [this message]
2021-11-06 11:26 ` [PATCH 1/2] PCI: Update BAR # and window messages Puranjay Mohan
2021-11-06 11:58 ` Lukas Wunner
2021-11-19 21:43 ` Bjorn Helgaas
2021-11-24 4:28 ` Lukas Wunner
2021-11-06 11:26 ` [PATCH 2/2] PCI: Use resource names in PCI log messages Puranjay Mohan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211106112606.192563-1-puranjay12@gmail.com \
--to=puranjay12@gmail.com \
--cc=bhelgaas@google.com \
--cc=linux-pci@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox