Re: [PATCH] powerpc/eeh: Fix kernel crash when passing through VF

2014-09-16 Thread Gavin Shan
On Tue, Sep 16, 2014 at 02:02:18PM +0800, Wei Yang wrote: >On Tue, Sep 16, 2014 at 02:03:56PM +1000, Michael Ellerman wrote: >>On Mon, 2014-09-15 at 16:08 +0800, Wei Yang wrote: >>> This patch introduces a marco to convert eeh_dev to eeh_pe. By doing so, it >>> will prevent converting with NULL poi

Re: [PATCH] powerpc/eeh: Fix kernel crash when passing through VF

2014-09-15 Thread Wei Yang
On Tue, Sep 16, 2014 at 02:03:56PM +1000, Michael Ellerman wrote: >On Mon, 2014-09-15 at 16:08 +0800, Wei Yang wrote: >> This patch introduces a marco to convert eeh_dev to eeh_pe. By doing so, it >> will prevent converting with NULL pointer. >> >> Signed-off-by: Wei Yang >> Acked-by: Gavin Shan

Re: [PATCH] powerpc/eeh: Fix kernel crash when passing through VF

2014-09-15 Thread Michael Ellerman
On Mon, 2014-09-15 at 16:08 +0800, Wei Yang wrote: > This patch introduces a marco to convert eeh_dev to eeh_pe. By doing so, it > will prevent converting with NULL pointer. > > Signed-off-by: Wei Yang > Acked-by: Gavin Shan > > V2 -> V3: >1. rebased on 3.17-rc4 >2. introduce a marco >

[PATCH] powerpc/eeh: Fix kernel crash when passing through VF

2014-09-15 Thread Wei Yang
When doing vfio passthrough a VF, the kernel will crash with following message: [ 442.656459] Unable to handle kernel paging request for data at address 0x0060 [ 442.656593] Faulting instruction address: 0xc0038b88 [ 442.656706] Oops: Kernel access of bad area, sig: 11 [#1] [ 442.