Skip to contentSkip to conversation

Legacy PIC (x86) support (RTC) in dom0 with Linux 4.12 and newer is broken for some hardware.

DISCUSSION Jennifer Herbert 2 participants 3 messages Dec 4, 2018 – Dec 6, 2018

lore
Share & tools
lore
#0 lore raw

Since Linux 4.12, there has been a commit a1e23a42f1bdc00e32fc4869caef12e4e6272f26

"rtc: cmos: Do not assume irq 8 for rtc when there are no legacy irqs"

The commit effectively disabled requesting IRQ 8 for systems without PIC

controller present (As in the case when used at dom0 under Xen) and at

the same time where this IRQ is not explicitly described in ACPI tables.

I have found hardware without this IRQ in the ACPI tables, and indeed,

found the RTC to be broken in dom 0. Temporarily, I reverted this

commit, which fixed the problem, but I was wondering if anyone here

knew of a better solution?

Cheers,

-jenny

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#1 lore raw
CC Juergen Gross
Quoted 20 lines · Jennifer Herbert

Since Linux 4.12, there has been a commita1e23a42f1bdc00e32fc4869caef12e4e6272f26

“rtc: cmos: Do not assume irq 8 for rtc when there are no legacy irqs”

The commit effectively disabled requesting IRQ 8 for systems without PIC

controller present (As in the case when used at dom0 under Xen) and at

the same time where this IRQ is not explicitly described in ACPI tables.

I have found hardware without this IRQ in the ACPI tables, and indeed,

found the RTC to be broken in dom 0. Temporarily, I reverted this

commit, which fixed the problem, but I was wondering if anyone here

knew of a better solution?

Cheers,

Quoted 9 lines

-jenny

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
Quoted 21 lines · Jennifer Herbert
CC Juergen Gross
Quoted 18 lines · Jennifer Herbert

Since Linux 4.12, there has been a
commita1e23a42f1bdc00e32fc4869caef12e4e6272f26

“rtc: cmos: Do not assume irq 8 for rtc when there are no legacy irqs”

The commit effectively disabled requesting IRQ 8 for systems without PIC

controller present (As in the case when used at dom0 under Xen) and at

the same time where this IRQ is not explicitly described in ACPI tables.

I have found hardware without this IRQ in the ACPI tables, and indeed,

found the RTC to be broken in dom 0.  Temporarily, I reverted this

commit, which fixed the problem, but I was wondering if anyone here

knew of a better solution?

Usage of a Xen-specific struct legacy_pic?

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel