All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mayuresh Chitale <mchitale@ventanamicro.com>
To: qemu-riscv@nongnu.org, qemu-devel@nongnu.org
Subject: Qemu PCIe aer error injection
Date: Fri, 27 Aug 2021 16:08:00 +0530	[thread overview]
Message-ID: <CAN37VV745newYKiUe=XWghtgr1ktbdx+7n7NrDuXoxa+jiTnvg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1043 bytes --]

Hi,

I am working to add the PCIe root complex event collector support to Qemu.
I want to test the AER error injection by using the QMP shell. However I am
unable to use the pcie_aer_inject_error command on the QMP shell. I see
this error: "id or pci device path is invalid or device not found ".

I tried using the pcie device id in the bdf format but apparently that is
not the correct syntax. Help message shows that a qdev device id is
required but I am not sure how to find the qdev device id of a pcie device.

Also, while debugging, I see that qdev_find_recursive function which
compares the input device id with that of the devices on the bus fails. This
is because the dev->id against which the input device string is compared is
always null and it finally causes pci_qdev_find_device to fail.

I am using a Risc V Virt machine with the generic pcie host controller gpex
and two e1000e devices attached to the host bridge as root complex
integrated endpoints.

Any thoughts or comments would be really appreciated.

Thanks,
Mayuresh.

[-- Attachment #2: Type: text/html, Size: 1892 bytes --]

                 reply	other threads:[~2021-08-27 10:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAN37VV745newYKiUe=XWghtgr1ktbdx+7n7NrDuXoxa+jiTnvg@mail.gmail.com' \
    --to=mchitale@ventanamicro.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    /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.