Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758152AbZDXEdv (ORCPT ); Fri, 24 Apr 2009 00:33:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757494AbZDXEdI (ORCPT ); Fri, 24 Apr 2009 00:33:08 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:37158 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757497AbZDXEdG (ORCPT ); Fri, 24 Apr 2009 00:33:06 -0400 Message-ID: <49F140F7.4030705@jp.fujitsu.com> Date: Fri, 24 Apr 2009 13:32:55 +0900 From: Kenji Kaneshige User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Huang Ying CC: Jesse Barnes , Andi Kleen , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH 3/4] PCI: PCIE AER: PCIE AER software error injection References: <1240541127.6842.681.camel@yhuang-dev.sh.intel.com> In-Reply-To: <1240541127.6842.681.camel@yhuang-dev.sh.intel.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2362 Lines: 73 Huang Ying wrote: > Debugging PCIE AER code can be very difficult because it is hard to > trigger various real hardware errors. This patch provide a software > based error injection tool, which can fake various PCIE errors with a > user space helper tool named "aer-inject". Which can be gotten from: > > http://www.kernel.org/pub/linux/kernel/people/yhuang/ > > The patch fakes AER error by faking some PCIE AER related registers > and an AER interrupt for specified the PCIE device. > > Signed-off-by: Huang Ying > > --- > drivers/pci/pcie/aer/Kconfig | 2 > drivers/pci/pcie/aer/Kconfig.debug | 18 + > drivers/pci/pcie/aer/Makefile | 1 > drivers/pci/pcie/aer/aer_inject.c | 472 +++++++++++++++++++++++++++++++++++++ > 4 files changed, 493 insertions(+) > > --- /dev/null > +++ b/drivers/pci/pcie/aer/aer_inject.c > @@ -0,0 +1,472 @@ > +/* > + * PCIE AER software error injection support. > + * > + * Debuging PCIE AER code is quite difficult because it is hard to > + * trigger various real hardware errors. Software based error > + * injection can fake almost all kinds of errors with the help of a > + * user space helper tool aer-inject, which can be gotten from: > + * http://www.kernel.org/pub/utils/pcie/aer-inject Shouldn't it be http://www.kernel.org/pub/linux/kernel/people/yhuang/ ? (snip.) > --- /dev/null > +++ b/drivers/pci/pcie/aer/Kconfig.debug > @@ -0,0 +1,18 @@ > +# > +# PCI Express Root Port Device AER Debug Configuration > +# > + > +config PCIEAER_INJECT > + tristate "PCIE AER error injector support" > + depends on PCIEAER > + default n > + help > + This enables PCI Express Root Port Advanced Error Reporting > + (AER) software error injector. > + > + Debuging PCIE AER code is quite difficult because it is hard > + to trigger various real hardware errors. Software based > + error injection can fake almost all kinds of errors with the > + help of a user space helper tool aer-inject, which can be > + gotten from: > + http://www.kernel.org/pub/utils/pcie/aer-inject > Ditto. Thanks, Kenji Kaneshige -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/