All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Add API for making parts of a MMIO page R/O and use it in XHCI console
@ 2024-05-21  2:54 Marek Marczykowski-Górecki
  2024-05-21  2:54 ` [PATCH v3 1/2] x86/mm: add API for marking only part of a MMIO page read only Marek Marczykowski-Górecki
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Marek Marczykowski-Górecki @ 2024-05-21  2:54 UTC (permalink / raw)
  To: xen-devel; +Cc: Marek Marczykowski-Górecki

On older systems, XHCI xcap had a layout that no other (interesting) registers
were placed on the same page as the debug capability, so Linux was fine with
making the whole page R/O. But at least on Tiger Lake and Alder Lake, Linux
needs to write to some other registers on the same page too.

Add a generic API for making just parts of an MMIO page R/O and use it to fix
USB3 console with share=yes or share=hwdom options. More details in commit
messages.

Technically it may still qualify for 4.19, since v1 was sent well before
last posting date. But I realize it's quite late and it isn't top
priority series, so if it won't hit 4.19, it's okay with me too.

Marek Marczykowski-Górecki (2):
  x86/mm: add API for marking only part of a MMIO page read only
  drivers/char: Use sub-page ro API to make just xhci dbc cap RO

 xen/arch/x86/hvm/emulate.c      |   2 +-
 xen/arch/x86/hvm/hvm.c          |   8 +-
 xen/arch/x86/include/asm/mm.h   |  18 ++-
 xen/arch/x86/mm.c               | 268 +++++++++++++++++++++++++++++++++-
 xen/arch/x86/pv/ro-page-fault.c |   1 +-
 xen/drivers/char/xhci-dbc.c     |  27 +--
 6 files changed, 309 insertions(+), 15 deletions(-)

base-commit: b0082b908391b29b7c4dd5e6c389ebd6481926f8
-- 
git-series 0.9.1


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-05-22 15:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-21  2:54 [PATCH v3 0/2] Add API for making parts of a MMIO page R/O and use it in XHCI console Marek Marczykowski-Górecki
2024-05-21  2:54 ` [PATCH v3 1/2] x86/mm: add API for marking only part of a MMIO page read only Marek Marczykowski-Górecki
2024-05-21 15:16   ` Jan Beulich
2024-05-21 15:33     ` Marek Marczykowski-Górecki
2024-05-22  5:55       ` Jan Beulich
2024-05-22  7:52   ` Jan Beulich
2024-05-22 10:36     ` Marek Marczykowski-Górecki
2024-05-22 12:50       ` Jan Beulich
2024-05-22 13:22     ` Marek Marczykowski-Górecki
2024-05-22 13:29       ` Jan Beulich
2024-05-22 15:22         ` Marek Marczykowski-Górecki
2024-05-21  2:54 ` [PATCH v3 2/2] drivers/char: Use sub-page ro API to make just xhci dbc cap RO Marek Marczykowski-Górecki
2024-05-22  8:05   ` Jan Beulich
2024-05-22 10:49     ` Marek Marczykowski-Górecki
2024-05-22  8:07 ` [PATCH v3 0/2] Add API for making parts of a MMIO page R/O and use it in XHCI console Jan Beulich

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.