[Nouveau] [PATCH 3/3] nouveau/gsp: add some basic registry entries.

Timur Tabi timur at kernel.org
Tue Oct 31 15:52:38 UTC 2023


On Tue, Oct 31, 2023 at 12:20 AM Dave Airlie <airlied at gmail.com> wrote:
> +#define NV_GSP_REG_NUM_ENTRIES 2
> +
> +static const struct nv_gsp_registry_entries r535_registry_entries[NV_GSP_REG_NUM_ENTRIES] = {
> +       { "RMSecBusResetEnable", 1 },
> +       { "RMForcePcieConfigSave", 1 },
> +};

How about :

static const struct nv_gsp_registry_entries r535_registry_entries[] = {
       { "RMSecBusResetEnable", 1 },
       { "RMForcePcieConfigSave", 1 },
};

#define NV_GSP_REG_NUM_ENTRIES ARRAY_SIZE(r535_registry_entries)


More information about the dri-devel mailing list