All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com>
Cc: "Francisco Eduardo Iglesias" <figlesia@xilinx.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Eduardo Habkost" <ehabkost@redhat.com>,
	"Vikram Garhwal" <fnuv@xilinx.com>,
	"Markus Armbruster" <armbru@redhat.com>,
	qemu-devel@nongnu.org, "Sai Pavan Boddu" <saipava@xilinx.com>,
	"Edgar Iglesias" <edgari@xilinx.com>,
	"Alistair Francis" <alistair.francis@wdc.com>,
	"'Marc-André Lureau'" <marcandre.lureau@redhat.com>,
	"Ying Fang" <fangying1@huawei.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Paul Zimmerman" <pauldzim@gmail.com>,
	"'Philippe Mathieu-Daudé'" <philmd@redhat.com>
Subject: Re: [PATCH v8 3/7] usb/hcd-xhci: Split pci wrapper for xhci base model
Date: Wed, 23 Sep 2020 12:14:28 +0200	[thread overview]
Message-ID: <20200923101428.zilaxig5yi5u45rn@sirius.home.kraxel.org> (raw)
In-Reply-To: <1600780837-8231-4-git-send-email-sai.pavan.boddu@xilinx.com>

  Hi,

> This patch sets the base to use xhci as sysbus model, for which pci
> specific hooks are moved to hcd-xhci-pci.c. As a part of this requirment
> msi/msix interrupts handling is moved under XHCIPCIState. Made required
> changes for qemu-xhci-nec.

Progress.  vmstate loads fine ;)

Does not work though.  usb-tablet stops working after migration :(

> @@ -3561,11 +3458,7 @@ static int usb_xhci_post_load(void *opaque, int version_id)
>      }
>  
>      for (intr = 0; intr < xhci->numintrs; intr++) {
> -        if (xhci->intr[intr].msix_used) {
> -            msix_vector_use(pci_dev, intr);
> -        } else {
> -            msix_vector_unuse(pci_dev, intr);
> -        }
> +        xhci_intr_update(xhci, intr);
>      }
>  
>      return 0;

I suspect this is the problem.  I guess we should add
usb_xhci_post_load_pci + usb_xhci_post_load_sysbus and move irq handling
to these functions.

take care,
  Gerd



  reply	other threads:[~2020-09-23 10:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-22 13:20 [PATCH v8 0/7] Make hcd-xhci independent of pci hooks Sai Pavan Boddu
2020-09-22 13:20 ` [PATCH v8 1/7] usb/hcd-xhci: Make dma read/writes hooks pci free Sai Pavan Boddu
2020-09-22 13:20 ` [PATCH v8 2/7] usb/hcd-xhci: Move qemu-xhci device to hcd-xhci-pci.c Sai Pavan Boddu
2020-09-22 13:20 ` [PATCH v8 3/7] usb/hcd-xhci: Split pci wrapper for xhci base model Sai Pavan Boddu
2020-09-23 10:14   ` Gerd Hoffmann [this message]
2020-09-23 17:45     ` Sai Pavan Boddu
2020-09-24  5:16       ` Gerd Hoffmann
2020-09-24 14:09         ` Sai Pavan Boddu
2020-09-22 13:20 ` [PATCH v8 4/7] usb: hcd-xhci-sysbus: Attach xhci to sysbus device Sai Pavan Boddu
2020-09-22 13:20 ` [PATCH v8 5/7] misc: Add versal-usb2-ctrl-regs module Sai Pavan Boddu
2020-09-22 13:20 ` [PATCH v8 6/7] usb: Add DWC3 model Sai Pavan Boddu
2020-09-22 13:20 ` [PATCH v8 7/7] Versal: Connect DWC3 controller with virt-versal Sai Pavan Boddu

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=20200923101428.zilaxig5yi5u45rn@sirius.home.kraxel.org \
    --to=kraxel@redhat.com \
    --cc=alistair.francis@wdc.com \
    --cc=armbru@redhat.com \
    --cc=edgari@xilinx.com \
    --cc=ehabkost@redhat.com \
    --cc=fangying1@huawei.com \
    --cc=figlesia@xilinx.com \
    --cc=fnuv@xilinx.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=pauldzim@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=sai.pavan.boddu@xilinx.com \
    --cc=saipava@xilinx.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 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.