qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Cédric Le Goater" <clg@redhat.com>
To: Matthew Rosato <mjrosato@linux.ibm.com>, qemu-s390x@nongnu.org
Cc: farman@linux.ibm.com, thuth@redhat.com, frankja@linux.ibm.com,
	pasic@linux.ibm.com, borntraeger@linux.ibm.com,
	richard.henderson@linaro.org, david@redhat.com,
	iii@linux.ibm.com, qemu-devel@nongnu.org, qemu-stable@nongnu.org
Subject: Re: [PATCH v2 0/3] s390x/pci: fix ISM reset
Date: Thu, 18 Jan 2024 20:43:11 +0100	[thread overview]
Message-ID: <8090142d-0a05-4940-86f1-e7ee1af6845d@redhat.com> (raw)
In-Reply-To: <20240118185151.265329-1-mjrosato@linux.ibm.com>

On 1/18/24 19:51, Matthew Rosato wrote:
> Commit ef1535901a0 (re-)introduced an issue where passthrough ISM devices
> on s390x would enter an error state after reboot.  This was previously fixed
> by 03451953c79e, using device reset callbacks, however the change in
> ef1535901a0 effectively triggers a cold reset of the pci bus before the
> device reset callbacks are triggered.
> 
> To resolve this, this series proposes to remove the use of the reset callback
> for ISM cleanup and instead trigger ISM reset from subsystem_reset before
> triggering bus resets.  This has to happen before the bus resets because the
> reset of s390-pcihost will trigger reset of the PCI bus followed by the
> s390-pci bus, and the former will trigger vfio-pci reset / the aperture-wide
> unmap that ISM gets upset about.
>   
>    /s390-pcihost (s390-pcihost)
>      /pci.0 (PCI)
>      /s390-pcibus.0 (s390-pcibus)
>      
> While fixing this, it was also noted that kernel warnings could be seen that
> indicate a guest ISC reference count error.  That's because in some reset
> cases we were not bothering to disable AIF, but would again re-enable it after
> the reset (causing the reference count to grow erroneously).  This was a base
> issue that went unnoticed because the kernel previously did not detect and
> issue a warning for this scenario.
> 
> 
> Changes for v2:
> - Fold a typo fix from patch 2 into patch 1 where it belongs
> - Add block comment re: timing of ISM reset
> - Add review tags


Reviewed-by: Cédric Le Goater <clg@redhat.com>

Thanks,

C.





  parent reply	other threads:[~2024-01-18 19:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-18 18:51 [PATCH v2 0/3] s390x/pci: fix ISM reset Matthew Rosato
2024-01-18 18:51 ` [PATCH v2 1/3] s390x/pci: avoid double enable/disable of aif Matthew Rosato
2024-01-18 18:51 ` [PATCH v2 2/3] s390x/pci: refresh fh before disabling aif Matthew Rosato
2024-01-18 18:51 ` [PATCH v2 3/3] s390x/pci: drive ISM reset from subsystem reset Matthew Rosato
2024-01-18 19:25   ` Eric Farman
2024-01-19 21:07   ` Halil Pasic
2024-01-22 15:06     ` Matthew Rosato
2024-01-23 11:48       ` Halil Pasic
2024-01-18 19:43 ` Cédric Le Goater [this message]
2024-01-22 10:18 ` [PATCH v2 0/3] s390x/pci: fix ISM reset Michael Tokarev
2024-01-22 10:31   ` Michael Tokarev
2024-01-22 10:49     ` Thomas Huth
2024-01-22 15:06       ` Matthew Rosato

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=8090142d-0a05-4940-86f1-e7ee1af6845d@redhat.com \
    --to=clg@redhat.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=david@redhat.com \
    --cc=farman@linux.ibm.com \
    --cc=frankja@linux.ibm.com \
    --cc=iii@linux.ibm.com \
    --cc=mjrosato@linux.ibm.com \
    --cc=pasic@linux.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=qemu-stable@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=thuth@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).