From: "Youquan,Song" <youquan.song@linux.intel.com>
To: Andrew Patterson <andrew.patterson@hp.com>
Cc: "Youquan,Song" <youquan.song@linux.intel.com>,
jbarnes@virtuousgeek.org, andi@firstfloor.org,
ying.huang@intel.com, kent.liu@intel.com, youquan.song@intel.com,
linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org
Subject: Re: [PATCH]PCIe AER: reject aer inject if hardware mask error reporting
Date: Thu, 17 Dec 2009 08:34:55 -0500 [thread overview]
Message-ID: <20091217133455.GD11466@youquan-linux.bj.intel.com> (raw)
In-Reply-To: <1260836954.19155.84.camel@bluto.andrew>
Hi Andrew,
I have udpate and sent the patch according to your comments.
> > dev = pci_get_bus_and_slot(einj->bus, devfn);
>
> This does not apply. Please respin against latest linux-2.6 or pci-2.6.
Yes, it is true that it is udapted at 32 final. Thanks.
> >
> > + pci_read_config_dword(dev, pos_cap_err + PCI_ERR_COR_MASK, &mask);
> > + if (einj->cor_status && !(einj->cor_status & ~mask)) {
> > + ret = -EINVAL;
> > + printk(KERN_WARNING "The correctable error is masked by device\n");
>
> You can inject multiple correctable errors with the aer-inject user-land
> tool, so perhaps this should be re-worded as:
>
> "The correctable error(s) are masked by the device\n"
Yes. it is update.
> You can also simultaneously inject correctable and uncorrectable errors,
> so I don't particularly like returning errors here. Perhaps you should
> just print the warning message out and just not inject the masked
> errors.
I do not agree with you at this point. If the hardware is not support
some error reporting, it need direct report this information to user
who use aer_inject userspace tool. He need change the his inject
configuration file, rather than kernel report him successful inject
AER but no any useful information at console or dmesg output.
Anyway, In my mind, it should not be very important issue to stop this patch
go to mainline.
Thanks.
-Youquan
prev parent reply other threads:[~2009-12-17 5:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-11 23:48 [PATCH]PCIe AER: reject aer inject if hardware mask error reporting Youquan,Song
2009-12-15 0:29 ` Andrew Patterson
2009-12-17 13:22 ` [Resend PATCH]PCIe " Youquan,Song
2009-12-17 8:43 ` Andi Kleen
2010-01-04 23:53 ` Jesse Barnes
2009-12-17 13:34 ` Youquan,Song [this message]
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=20091217133455.GD11466@youquan-linux.bj.intel.com \
--to=youquan.song@linux.intel.com \
--cc=andi@firstfloor.org \
--cc=andrew.patterson@hp.com \
--cc=jbarnes@virtuousgeek.org \
--cc=kent.liu@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=ying.huang@intel.com \
--cc=youquan.song@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox