From: Gavin Shan <gwshan@linux.vnet.ibm.com>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: Gavin Shan <gwshan@linux.vnet.ibm.com>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
Richard Yang <weiyang@linux.vnet.ibm.com>
Subject: Re: [PATCH] PCI: Make reset warning messages different
Date: Thu, 16 Oct 2014 11:19:21 +1100 [thread overview]
Message-ID: <20141016001920.GA18777@shangw> (raw)
In-Reply-To: <CAErSpo5iWEiM_0WeLJHfhus_LXo5ByUbDktWzBO1tVqwkko7Sg@mail.gmail.com>
On Wed, Oct 15, 2014 at 05:48:35PM -0600, Bjorn Helgaas wrote:
>On Wed, Oct 15, 2014 at 5:41 PM, Gavin Shan <gwshan@linux.vnet.ibm.com> wrote:
>> We have same warning message for FLR and AF FLR and users can't
>> know which type of resets the PCI device is taking when there are
>> pending transactions. The patch makes them different for FLR and
>> AF FLR cases.
>>
>> Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
>> ---
>> drivers/pci/pci.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
>> index 625a4ac..2d708cd 100644
>> --- a/drivers/pci/pci.c
>> +++ b/drivers/pci/pci.c
>> @@ -3144,7 +3144,7 @@ static int pcie_flr(struct pci_dev *dev, int probe)
>> return 0;
>>
>> if (!pci_wait_for_pending_transaction(dev))
>> - dev_err(&dev->dev, "transaction is not cleared; proceeding with reset anyway\n");
>> + dev_err(&dev->dev, "Force FLR with pending transaction\n");
>>
>> pcie_capability_set_word(dev, PCI_EXP_DEVCTL, PCI_EXP_DEVCTL_BCR_FLR);
>>
>> @@ -3178,7 +3178,7 @@ static int pci_af_flr(struct pci_dev *dev, int probe)
>> PCI_AF_STATUS_TP << 8))
>> goto clear;
>>
>> - dev_err(&dev->dev, "transaction is not cleared; proceeding with reset anyway\n");
>> + dev_err(&dev->dev, "Force AF FLR with pending transaction\n");
>
>Making the text different is fine, but I don't think "FLR" and "AF
>FLR" are meaningful except to extremely technical people. So I think
>"reset" needs to stay spelled out in the message.
>
Agree, it's worthy to keep "reset". How about something like this:
"Force function level reset with pending transaction" - FLR
"Force AF function level reset with pending transaction" - AF FLR
If above messages look good to you, I'll send out another revision.
Thanks,
Gavin
>> clear:
>> pci_write_config_byte(dev, pos + PCI_AF_CTRL, PCI_AF_CTRL_FLR);
>> --
>> 1.8.3.2
>>
>
next prev parent reply other threads:[~2014-10-16 0:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-15 23:41 [PATCH] PCI: Make reset warning messages different Gavin Shan
2014-10-15 23:48 ` Bjorn Helgaas
2014-10-16 0:19 ` Gavin Shan [this message]
2014-10-16 3:43 ` Bjorn Helgaas
2014-10-16 4:59 ` Gavin Shan
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=20141016001920.GA18777@shangw \
--to=gwshan@linux.vnet.ibm.com \
--cc=bhelgaas@google.com \
--cc=linux-pci@vger.kernel.org \
--cc=weiyang@linux.vnet.ibm.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.