drm/etnaviv: add the Allwinner T527 VIP9000 hardware database entry
Subsystems (2)
PATCH v2 1/1 drm/etnaviv: add the Allwinner T527 VIP9000 hardware database entry
Add a hardware database entry for the VIP9000 NPU found in the Allwinner T527, as used on the Orange Pi 4A.
It's coming from allwinner BSP driver in gc_feature_database.h with vip9000nano-si+ IDs.
---
v2:
- Fix minor_features6..11 masks: translate flags by name matching against Linux UAPI definitions (common.xml.h) rather than raw positional struct packing from the vendor gc_feature_database.h.
drivers/gpu/drm/etnaviv/etnaviv_hwdb.c | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)
drivers/gpu/drm/etnaviv/etnaviv_hwdb.c +32 -0
@@ -292,6 +292,38 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { .minor_features10 = 0x108048c0, .minor_features11 = 0x00000010, }, + { + .model = 0x9000, + .revision = 0x9003, + .product_id = 0x5090009, + .customer_id = 0x10000016, + .eco_id = 0x6000000, + .stream_count = 8, + .register_max = 64, + .thread_count = 256, + .shader_core_count = 1, + .nn_core_count = 6, + .vertex_cache_size = 16, + .vertex_output_buffer_size = 1024, + .pixel_pipes = 1, + .instruction_count = 512, + .num_constants = 320, + .buffer_size = 0, + .varyings_count = 16, + .features = 0xe0287cac, + .minor_features0 = 0xc1799eff, + .minor_features1 = 0xfefbfadb, + .minor_features2 = 0xeb9d6fbf, + .minor_features3 = 0xedfffced, + .minor_features4 = 0xd30dafc7, + .minor_features5 = 0x7b5ac333, + .minor_features6 = 0xfc8ee200, + .minor_features7 = 0x03fffa6f, + .minor_features8 = 0x00fe0ef0, + .minor_features9 = 0x0088003c, + .minor_features10 = 0x10c0c8c0, + .minor_features11 = 0x00000010, + }, };bool etnaviv_fill_identity_from_hwdb (struct etnaviv_gpu *gpu)
Signature · 1 line
2.43.0
Quoted 61 lines
Add a hardware database entry for the VIP9000 NPU found in the Allwinner T527, as used on the Orange Pi 4A.
It's coming from allwinner BSP driver in
gc_feature_database.hwith vip9000nano-si+ IDs.Signed-off-by Phong LE <[email protected]>---
v2:
- Fix minor_features6..11 masks: translate flags by name matching against Linux UAPI definitions (common.xml.h) rather than raw positional struct packing from the vendorgc_feature_database.h.drivers/gpu/drm/etnaviv/etnaviv_hwdb.c | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)drivers/gpu/drm/etnaviv/etnaviv_hwdb.c +32
-1@@ -292,6 +292,38 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { .minor_features10 = 0x108048c0, .minor_features11 = 0x00000010, }, + { + .model = 0x9000, + .revision = 0x9003, + .product_id = 0x5090009, + .customer_id = 0x10000016, + .eco_id = 0x6000000, + .stream_count = 8, + .register_max = 64, + .thread_count = 256, + .shader_core_count = 1, + .nn_core_count = 6, + .vertex_cache_size = 16, + .vertex_output_buffer_size = 1024, + .pixel_pipes = 1, + .instruction_count = 512, + .num_constants = 320, + .buffer_size = 0, + .varyings_count = 16, + .features = 0xe0287cac, + .minor_features0 = 0xc1799eff, + .minor_features1 = 0xfefbfadb, + .minor_features2 = 0xeb9d6fbf, + .minor_features3 = 0xedfffced, + .minor_features4 = 0xd30dafc7, + .minor_features5 = 0x7b5ac333, + .minor_features6 = 0xfc8ee200, + .minor_features7 = 0x03fffa6f, + .minor_features8 = 0x00fe0ef0, + .minor_features9 = 0x0088003c, + .minor_features10 = 0x10c0c8c0, + .minor_features11 = 0x00000010, + }, };bool etnaviv_fill_identity_from_hwdb (struct etnaviv_gpu *gpu) --
Quoted 2 lines
2.43.0
Signature · 5 lines
greets -- Christian Gmeiner, MSc https://christian-gmeiner.info/privacypolicy
Quoted 5 lines · Phong LE
Add a hardware database entry for the VIP9000 NPU found in the Allwinner T527, as used on the Orange Pi 4A.
It's coming from allwinner BSP driver in
gc_feature_database.hwith vip9000nano-si+ IDs.
I checked the minor_features values against the vip9000nano-si+
entry in the Orange Pi T527 BSP gc_feature_database.h. They match the existing 0x8000/0x8002 VIPNano-Si+ entry apart from:
- MULTICORE_SEMAPHORESTALL_V3 - not used at all in vendor kernel driver
- SH_END_OF_BB - used in vendor driver PPU flop reset code, etnaviv appears to have equivalent behaviour.
Quoted 60 lines
Add a hardware database entry for the VIP9000 NPU found in the Allwinner T527, as used on the Orange Pi 4A.
It's coming from allwinner BSP driver in
gc_feature_database.hwith vip9000nano-si+ IDs.Signed-off-by Phong LE <[email protected]>---
v2:
- Fix minor_features6..11 masks: translate flags by name matching against Linux UAPI definitions (common.xml.h) rather than raw positional struct packing from the vendorgc_feature_database.h.drivers/gpu/drm/etnaviv/etnaviv_hwdb.c | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)drivers/gpu/drm/etnaviv/etnaviv_hwdb.c +32
-1@@ -292,6 +292,38 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { .minor_features10 = 0x108048c0, .minor_features11 = 0x00000010, }, + { + .model = 0x9000, + .revision = 0x9003, + .product_id = 0x5090009, + .customer_id = 0x10000016, + .eco_id = 0x6000000, + .stream_count = 8, + .register_max = 64, + .thread_count = 256, + .shader_core_count = 1, + .nn_core_count = 6, + .vertex_cache_size = 16, + .vertex_output_buffer_size = 1024, + .pixel_pipes = 1, + .instruction_count = 512, + .num_constants = 320, + .buffer_size = 0, + .varyings_count = 16, + .features = 0xe0287cac, + .minor_features0 = 0xc1799eff, + .minor_features1 = 0xfefbfadb, + .minor_features2 = 0xeb9d6fbf, + .minor_features3 = 0xedfffced, + .minor_features4 = 0xd30dafc7, + .minor_features5 = 0x7b5ac333, + .minor_features6 = 0xfc8ee200, + .minor_features7 = 0x03fffa6f, + .minor_features8 = 0x00fe0ef0, + .minor_features9 = 0x0088003c, + .minor_features10 = 0x10c0c8c0, + .minor_features11 = 0x00000010, + }, };bool etnaviv_fill_identity_from_hwdb (struct etnaviv_gpu *gpu) --
Quoted 2 lines
2.43.0
Applied to drm-misc-next.
Signature · 5 lines
greets -- Christian Gmeiner, MSc https://christian-gmeiner.info/privacypolicy