Re: [PATCH kernel 9/9] pci: Allow encrypted MMIO mapping via sysfs

From: Alexey Kardashevskiy

Date: Mon Mar 02 2026 - 04:01:04 EST




On 2/3/26 19:20, Aneesh Kumar K.V wrote:
Alexey Kardashevskiy <aik@xxxxxxx> writes:

Add another resource#d_enc to allow mapping MMIO as
an encrypted/private region.

Unlike resourceN_wc, the node is added always as ability to
map MMIO as private depends on negotiation with the TSM which
happens quite late.

Why is this needed? Is this for a specific tool?


It is not _needed_ but (as the cover letter says) since one of my test devices does not use private MMIO for the main function, here it is to allow https://github.com/billfarrow/pcimem.git to map MMIO as private and do simple reads/writes. Useful for validation, can stop in gdb and inspect tables and whatever. Thanks,



-aneesh

--
Alexey