]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bus: fsl-mc: add the dprc_get_mem() command to the whitelist
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 8 Apr 2025 10:58:12 +0000 (13:58 +0300)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 12 May 2025 23:34:57 +0000 (01:34 +0200)
Add a new MC command to the list of accepted firmware commands.
The DPRC_GET_MEM command can be used to gather information on the
internal memory characteristics.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/20250408105814.2837951-5-ioana.ciornei@nxp.com
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
drivers/bus/fsl-mc/fsl-mc-uapi.c

index a376ec66165348654b1c326f1940640893dbc14a..823969e4159cd4093d786cade0d0ddd322022855 100644 (file)
@@ -48,6 +48,7 @@ enum fsl_mc_cmd_index {
        DPRC_GET_POOL,
        DPRC_GET_POOL_COUNT,
        DPRC_GET_CONNECTION,
+       DPRC_GET_MEM,
        DPCI_GET_LINK_STATE,
        DPCI_GET_PEER_ATTR,
        DPAIOP_GET_SL_VERSION,
@@ -194,6 +195,12 @@ static struct fsl_mc_cmd_desc fsl_mc_accepted_cmds[] = {
                .token = true,
                .size = 32,
        },
+       [DPRC_GET_MEM] = {
+               .cmdid_value = 0x16D0,
+               .cmdid_mask = 0xFFF0,
+               .token = true,
+               .size = 12,
+       },
 
        [DPCI_GET_LINK_STATE] = {
                .cmdid_value = 0x0E10,