Skip to contentSkip to conversation

Revert "acpi: mark PMTIMER as unlocked"

PATCH Applied Gerd Hoffmann 3 participants 4 messages Apr 15, 2016 – May 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "acpi: mark PMTIMER as unlocked"

This reverts commit 7070e085d490c396f9237c8f10bf8b6e69cd0066.

Commit message claims locking is not needed, but that appears to not be true, seabios ehci driver runs into timekeeping problems with this, see

	https://bugzilla.redhat.com/show_bug.cgi?id=1322713
---
 hw/acpi/core.c | 1 -
 1 file changed, 1 deletion(-)
hw/acpi/core.c +0 -1
index 7925a1a..6a2f452 100644
@@ -536,7 +536,6 @@ void acpi_pm_tmr_init(ACPIREGS *ar, acpi_update_sci_fn update_sci,
     ar->tmr.timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, acpi_pm_tmr_timer, ar);
     memory_region_init_io(&ar->tmr.io, memory_region_owner(parent),
                           &acpi_pm_tmr_ops, ar, "acpi-tmr", 4);
-    memory_region_clear_global_locking(&ar->tmr.io);
     memory_region_add_subregion(parent, 8, &ar->tmr.io);
 }
 
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 6 lines · Gerd Hoffmann

This reverts commit 7070e085d490c396f9237c8f10bf8b6e69cd0066.

Commit message claims locking is not needed, but that appears to not be true, seabios ehci driver runs into timekeeping problems with this, see

	https://bugzilla.redhat.com/show_bug.cgi?id=1322713

I need to look into it further, because for example the same problem would happen if you moved the PMTIMER to the hypervisor (Xen does this).
But for now this is the right fix, I agree.

Paolo

#2 lore raw
Quoted 4 lines · Paolo Bonzini
Quoted 2 lines · Gerd Hoffmann

This reverts commit 7070e085d490c396f9237c8f10bf8b6e69cd0066.

Quoted 8 lines
Quoted 4 lines

Commit message claims locking is not needed, but that appears to not be true, seabios ehci driver runs into timekeeping problems with this, see

	https://bugzilla.redhat.com/show_bug.cgi?id=1322713

I need to look into it further, because for example the same problem would happen if you moved the PMTIMER to the hypervisor (Xen does this).
But for now this is the right fix, I agree.

Peter, can you pick up this one for 2.6?

thanks,
Gerd

#3 lore raw
Quoted 10 lines · Gerd Hoffmann
Quoted 9 lines · Paolo Bonzini
Quoted 6 lines · Gerd Hoffmann

This reverts commit 7070e085d490c396f9237c8f10bf8b6e69cd0066.

Commit message claims locking is not needed, but that appears to not be true, seabios ehci driver runs into timekeeping problems with this, see

    https://bugzilla.redhat.com/show_bug.cgi?id=1322713
Quoted 5 lines
Quoted 3 lines

I need to look into it further, because for example the same problem would happen if you moved the PMTIMER to the hypervisor (Xen does this).
But for now this is the right fix, I agree.

Peter, can you pick up this one for 2.6?

Applied to master, thanks.

-- PMM