Skip to contentSkip to conversation

seek help for AER

Qemu-devel Cao jin 2 participants 3 messages Feb 21, 2017 – Feb 22, 2017

lore
Share & tools
lore

Cao jin

author
#0 lore raw

Hi,

First, sorry for such a long time delay on the AER job. I was on 12 days holiday, and start to work on the patch 2 weeks ago, because I use a newer version kernel(4.10 rc8) to start off the work, several tiny problems slow me.

Now I meet a confusing issue on aer_inject module. When I use aer_inject command before, it says:

Error: Failed to write, No such device

then in dmesg, it says:

    pcieport 0000:00:09.0: aer_inject: AER device not found

and then I add some debug line in find_aer_device_iter() to check device->bus-name, find that it is "pci", so that is why I can't inject, it should have been "pci_express". But everything is same as before except a newer host kernel.

I still don't have a clue on this problem for almost 2 days, could you help?

The topology is my host is:

+-09.0-[06]--+-00.0 Intel Corporation 82576 Gigabit Network Connection
| \-00.1 Intel Corporation 82576 Gigabit Network Connection
Signature · 2 lines
Sincerely,
Cao jin
#1 lore raw
Quoted 14 lines · On Tue, 21 Feb 2017 18:21:53 +0800 Cao jin <[email protected]> wrote:

Hi,

First, sorry for such a long time delay on the AER job. I was on 12 days holiday, and start to work on the patch 2 weeks ago, because I use a newer version kernel(4.10 rc8) to start off the work, several tiny problems slow me.

Now I meet a confusing issue on aer_inject module. When I use aer_inject command before, it says:

Error: Failed to write, No such device

then in dmesg, it says:

Quoted 8 lines
    pcieport 0000:00:09.0: aer_inject: AER device not found

and then I add some debug line in find_aer_device_iter() to check device->bus-name, find that it is "pci", so that is why I can't inject, it should have been "pci_express". But everything is same as before except a newer host kernel.

I still don't have a clue on this problem for almost 2 days, could you help?

If it only happens with a new host kernel, I would suggest finding a kernel where it works and bisecting between working and non-working kernels to find the commit that introduced the change. You may have found a regression in the kernel that should be reported upstream. Thanks,

Alex

author
#2 lore raw
Quoted 26 lines · Alex Williamson
Quoted 14 lines · On Tue, 21 Feb 2017 18:21:53 +0800 Cao jin <[email protected]> wrote:

Hi,

First, sorry for such a long time delay on the AER job. I was on 12 days holiday, and start to work on the patch 2 weeks ago, because I use a newer version kernel(4.10 rc8) to start off the work, several tiny problems slow me.

Now I meet a confusing issue on aer_inject module. When I use aer_inject command before, it says:

Error: Failed to write, No such device

then in dmesg, it says:

Quoted 8 lines
    pcieport 0000:00:09.0: aer_inject: AER device not found

and then I add some debug line in find_aer_device_iter() to check device->bus-name, find that it is "pci", so that is why I can't inject, it should have been "pci_express". But everything is same as before except a newer host kernel.

I still don't have a clue on this problem for almost 2 days, could you help?

Quoted 8 lines

If it only happens with a new host kernel, I would suggest finding a kernel where it works and bisecting between working and non-working kernels to find the commit that introduced the change. You may have found a regression in the kernel that should be reported upstream. Thanks,

Alex

Finally find the reason, I missed a kernel command line parameter pcie_ports=native. Sorry for the noise.

It seems when make install the kernel, it will blow away the content of old grub.cfg, so that I cannot check the parameters used in previous kernel.

Signature · 2 lines
Sincerely,
Cao jin