All of lore.kernel.org
 help / color / mirror / Atom feed
From: Igor Mammedov <imammedo@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Peter Xu <peterx@redhat.com>,
	qemu-devel@nongnu.org, 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: Fri, 27 Jun 2025 14:02:59 +0200	[thread overview]
Message-ID: <20250627140259.3f88db17@fedora> (raw)
In-Reply-To: <20250624124527.656d567c@fedora>

On Tue, 24 Jun 2025 12:45:27 +0200
Igor Mammedov <imammedo@redhat.com> wrote:

> On Tue, 24 Jun 2025 09:07:11 +0200
> Gerd Hoffmann <kraxel@redhat.com> wrote:
> 
> >   Hi,
> >   
> > > 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.    
> > 
> > seabios used to prefer pmtimer back then for timekeeping then because it
> > has a fixed frequency.  Doing tsc calibration can easily be /way/ off in
> > a virtual machine on a loaded host.
> > 
> > Meanwhile seabios got support for reading the tsc frequency via cpuid
> > (if invtsc is available) or via kvmclock.  If that works seabios will
> > prefer the tsc for timekeeping.
> > 
> > So, when trying to reproduce the failure for analysis you have to either
> > use an old seabios version, or turn off kvmclock + invtsc support,
> > otherwise seabios will not use the pmtimer in the first place.  
> 
> thanks for the hint (I've been trying to reproduce with current seabios),
> I'll try to reproduce with the old seabios.

not exactly the same config but close 

qemu at offending commit 1beb99f787ba11 + exactly the same SeaBIOS
with guest GA RHEL7.3 (3.10.0-514.el7.x86_64) and making sure
seabios used pmtimer.

Running RHBZ 1322713 reproducer over several days in loop,
haven't been able to reproduce the issue.

Differences are: RHEL9 host and for guest a bit newer kernel.
the reproducer used a bit older (intermediate) one that is nowhere
to be found anymore.

As you've said in comment
https://bugzilla.redhat.com/show_bug.cgi?id=1322713#c6
it's strange that patch causes issues at all, especially with
'-smp 1' as in reproducer.

Also repeated with -smp x>1, it still worked fine.

Perhaps issue was elsewhere after all.

> 
> > 
> > You should have this line in the firmware log:
> > 
> >     Using pmtimer, ioport 0x608
> > 
> > HTH & take care,
> >   Gerd
> >   
> 



  reply	other threads:[~2025-06-27 12:04 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
2025-06-24  7:07         ` Gerd Hoffmann
2025-06-24 10:45           ` Igor Mammedov
2025-06-27 12:02             ` Igor Mammedov [this message]
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=20250627140259.3f88db17@fedora \
    --to=imammedo@redhat.com \
    --cc=anisinha@redhat.com \
    --cc=david@redhat.com \
    --cc=elena.ufimtseva@oracle.com \
    --cc=jag.raman@oracle.com \
    --cc=kraxel@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peterx@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.