platform/x86/amd: pmc: Add num_samples message id support to STB
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Mon, 6 Feb 2023 15:08:52 +0000 (20:38 +0530)
committerHans de Goede <hdegoede@redhat.com>
Fri, 10 Feb 2023 16:16:42 +0000 (17:16 +0100)
commit1ecfd30960d4377c2d85181608936dedd35bb171
treefef10a2f948279d7544af580438d8bef5403b3bf
parent4ca26e565e1c91bb45221e15b98e4582f33375c0
platform/x86/amd: pmc: Add num_samples message id support to STB

Recent PMFWs have the support for S2D_NUM_SAMPLES message ID that
can tell the current number of samples present within the STB DRAM.

num_samples returned would let the driver know the start of the read
from the last push location. This way, the driver would emit the
top most region of the STB DRAM.

Co-developed-by: Sanket Goswami <Sanket.Goswami@amd.com>
Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Link: https://lore.kernel.org/r/20230206150855.1938810-2-Shyam-sundar.S-k@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/amd/pmc.c