[AMD Official Use Only - General] BTW, what is the encoding (units) of the 8-bit "scrub rate"? (the ACPI spec does not seem to define that detail) Thanks, Leo. -----Original Message----- From: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> Sent: Friday, February 23, 2024 11:26 AM To: Borislav Petkov <bp@xxxxxxxxx> Cc: shiju.jose@xxxxxxxxxx; linux-cxl@xxxxxxxxxxxxxxx; linux-acpi@xxxxxxxxxxxxxxx; linux-mm@xxxxxxxxx; dan.j.williams@xxxxxxxxx; dave@xxxxxxxxxxxx; dave.jiang@xxxxxxxxx; alison.schofield@xxxxxxxxx; vishal.l.verma@xxxxxxxxx; ira.weiny@xxxxxxxxx; linux-edac@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; david@xxxxxxxxxx; Sridharan, Vilas <Vilas.Sridharan@xxxxxxx>; Duran, Leo <leo.duran@xxxxxxx>; Ghannam, Yazen <Yazen.Ghannam@xxxxxxx>; rientjes@xxxxxxxxxx; jiaqiyan@xxxxxxxxxx; tony.luck@xxxxxxxxx; Grimm, Jon <Jon.Grimm@xxxxxxx>; dave.hansen@xxxxxxxxxxxxxxx; rafael@xxxxxxxxxx; lenb@xxxxxxxxxx; naoya.horiguchi@xxxxxxx; james.morse@xxxxxxx; jthoughton@xxxxxxxxxx; somasundaram.a@xxxxxxx; erdemaktas@xxxxxxxxxx; pgonda@xxxxxxxxxx; duenwen@xxxxxxxxxx; mike.malvestuto@xxxxxxxxx; gthelen@xxxxxxxxxx; wschwartz@xxxxxxxxxxxxxxxxxxx; dferguson@xxxxxxxxxxxxxxxxxxx; tanxiaofei@xxxxxxxxxx; prime.zeng@xxxxxxxxxxxxx; kangkang.shen@xxxxxxxxxxxxx; wanghuiqiang@xxxxxxxxxx; linuxarm@xxxxxxxxxx Subject: Re: [RFC PATCH v7 00/12] memory: scrub: introduce subsystem + CXL/ACPI-RAS2 drivers On Fri, 23 Feb 2024 16:42:51 +0100 Borislav Petkov <bp@xxxxxxxxx> wrote: > On Fri, Feb 23, 2024 at 10:37:11PM +0800, shiju.jose@xxxxxxxxxx wrote: > > CXL patrol scrub and DDR5 ECS and ACPI RAS2 HW based memory patrol > > scrub features are added as use cases for the scrub subsystem to > > expose the scrub controls to the user. > > WTH is a RAS2 driver and where is the RAS1 driver? > Odd ACPI naming. RASF (which is very limited) was replaced by RAS2. Both are ACPI tables that describe the Platform Communication Channels (mailbox) + provide a definition of the protocol that is sent over it in order to control memory scrub. RAS2 has some other uses this driver isn't touching on. So in short, it's an ACPI spec defined interface for controlling Memory Scrub engines. https://uefi.org/specs/ACPI/6.5/05_ACPI_Software_Programming_Model.html#acpi-ras2-feature-table-ras2 Jonathan