pan/kmod: Add l2 features to pan_kmod_dev_props

This commit is contained in:
Christoph Pillmayer 2026-04-16 12:46:53 +02:00
parent dd7671fedd
commit b6a8d664f7
3 changed files with 6 additions and 0 deletions

View file

@ -199,6 +199,9 @@ struct pan_kmod_dev_props {
/* Texture feature bits. */
uint32_t texture_features[4];
/* L2 feature bits. */
uint32_t l2_features;
/* Maximum number of threads per core. */
uint32_t max_threads_per_core;

View file

@ -167,6 +167,8 @@ panfrost_dev_query_props(struct panfrost_kmod_dev *panfrost_dev)
panfrost_query_raw(fd, DRM_PANFROST_PARAM_MEM_FEATURES, true, 0);
props->mmu_features =
panfrost_query_raw(fd, DRM_PANFROST_PARAM_MMU_FEATURES, true, 0);
props->l2_features =
panfrost_query_raw(fd, DRM_PANFROST_PARAM_L2_FEATURES, true, 0);
for (unsigned i = 0; i < ARRAY_SIZE(props->texture_features); i++) {
props->texture_features[i] = panfrost_query_raw(

View file

@ -201,6 +201,7 @@ panthor_dev_query_props(struct panthor_kmod_dev *panthor_dev)
.tiler_features = panthor_dev->props.gpu.tiler_features,
.mem_features = panthor_dev->props.gpu.mem_features,
.mmu_features = panthor_dev->props.gpu.mmu_features,
.l2_features = panthor_dev->props.gpu.l2_features,
/* This register does not exist because AFBC is no longer optional. */
.afbc_features = 0,