All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Xu <peterx@redhat.com>
To: Igor Mammedov <imammedo@redhat.com>
Cc: qemu-devel@nongnu.org, kraxel@redhat.com, mst@redhat.com,
	anisinha@redhat.com, elena.ufimtseva@oracle.com,
	jag.raman@oracle.com, pbonzini@redhat.com, david@redhat.com,
	philmd@linaro.org
Subject: Re: [PATCH 1/3] memory: reintroduce BQL-free fine-grained PIO/MMIO
Date: Mon, 23 Jun 2025 09:36:05 -0400	[thread overview]
Message-ID: <aFlYRWc7rRwBGM8S@x1.local> (raw)
In-Reply-To: <20250623145146.4462bf59@fedora>

On Mon, Jun 23, 2025 at 02:51:46PM +0200, Igor Mammedov wrote:
> On Fri, 20 Jun 2025 12:53:06 -0400
> Peter Xu <peterx@redhat.com> wrote:
> 
> > On Fri, Jun 20, 2025 at 05:14:16PM +0200, Igor Mammedov wrote:
> > > This patch brings back Jan's idea [1] of BQL-free IO access,
> > > with a twist that whitelist read access only.
> > > 
> > > (as BQL-free write access in [1] used to cause issues [2]
> > > and still does (Windows crash) if write path is not lock protected)  
> > 
> > Can we add some explanation on why it would fail on lockless writes?
> > 
> > I saw that acpi_pm_tmr_write() is no-op, so I don't yet understand what
> > raced, and also why guest writes to it at all..
> 
> root cause wasn't diagnosed back then, and I haven't able to
> reproduce that as well. So I erred on side of caution and
> implemented RO only.

Ah OK, I think I got that feeling it can be reproduced as above mentioned
"still does (Windows crash) if write ...".

> 
> Theoretically write should be fine too, but I don't have
> an idea how to test that.

Then the question is how do we justify it will work this time..

If nobody can reproduce it anymore, there's indeed one way to go if we
strongly want to have the optimization, which is to apply it again and wait
for the reproducer to pop up once more.  Just like to double check is this
the case, and we have no way to reproduce?

I also wonder whether it's still a bit late because such experiment might
be better done at the start of release cycle.  Now we have roughly 3 weeks
to soft-freeze (July 15).  I had a look, last time it was pretty late when
reverting the change:

975eb6a547 (tag: v2.6.0-rc4) Update version for v2.6.0-rc4 release
1beb99f787 Revert "acpi: mark PMTIMER as unlocked"

So there's also the question of whether we should land this for this
release or next when open.

Gerd mentioned this in the relevant bz:

        Note: root cause for the initrd issue noted in comment 5 is seabios
        running into problems with ehci -> io errors -> corrupted initrd.
        Sometimes it doesn't boot at all, probably in case the io errors
        happen to hit the kernel not the initrd.

This seems to be the last piece of information we have had that is closest
to the root cause.  I sincerely wished there's still some way to move
forward, as it looks really close, but it might be that it was just too
late for 2.6 so we didn't got time to keep looking back then.

Thanks,

-- 
Peter Xu



  reply	other threads:[~2025-06-23 13:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-20 15:14 [PATCH 0/3] Reinvent BQL-free PIO/MMIO Igor Mammedov
2025-06-20 15:14 ` [PATCH 1/3] memory: reintroduce BQL-free fine-grained PIO/MMIO Igor Mammedov
2025-06-20 16:53   ` Peter Xu
2025-06-23 12:51     ` Igor Mammedov
2025-06-23 13:36       ` Peter Xu [this message]
2025-06-24  7:07         ` Gerd Hoffmann
2025-06-24 10:45           ` Igor Mammedov
2025-06-27 12:02             ` Igor Mammedov
2025-06-30 10:02               ` Gerd Hoffmann
2025-07-01 14:33                 ` Igor Mammedov
2025-06-24 10:57         ` Igor Mammedov
2025-06-20 15:14 ` [PATCH 2/3] acpi: mark PMTIMER as unlocked Igor Mammedov
2025-06-20 15:14 ` [PATCH 3/3] mark HPET " Igor Mammedov
2025-06-20 17:01   ` Peter Maydell
2025-06-24 10:39     ` Igor Mammedov

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=aFlYRWc7rRwBGM8S@x1.local \
    --to=peterx@redhat.com \
    --cc=anisinha@redhat.com \
    --cc=david@redhat.com \
    --cc=elena.ufimtseva@oracle.com \
    --cc=imammedo@redhat.com \
    --cc=jag.raman@oracle.com \
    --cc=kraxel@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@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.