File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ static int v3d_platform_drm_probe(struct platform_device *pdev)
265
265
struct v3d_dev * v3d ;
266
266
int ret ;
267
267
u32 mmu_debug ;
268
- u32 ident1 ;
268
+ u32 ident1 , ident3 ;
269
269
u64 mask ;
270
270
271
271
v3d = devm_drm_dev_alloc (dev , & v3d_drm_driver , struct v3d_dev , drm );
@@ -298,6 +298,9 @@ static int v3d_platform_drm_probe(struct platform_device *pdev)
298
298
v3d -> cores = V3D_GET_FIELD (ident1 , V3D_HUB_IDENT1_NCORES );
299
299
WARN_ON (v3d -> cores > 1 ); /* multicore not yet implemented */
300
300
301
+ ident3 = V3D_READ (V3D_HUB_IDENT3 );
302
+ v3d -> rev = V3D_GET_FIELD (ident3 , V3D_HUB_IDENT3_IPREV );
303
+
301
304
if (v3d -> ver >= 71 )
302
305
v3d -> max_counters = V3D_V71_NUM_PERFCOUNTERS ;
303
306
else if (v3d -> ver >= 42 )
Original file line number Diff line number Diff line change @@ -98,10 +98,12 @@ struct v3d_perfmon {
98
98
struct v3d_dev {
99
99
struct drm_device drm ;
100
100
101
- /* Short representation (e.g. 33, 41) of the V3D tech version
102
- * and revision.
103
- */
101
+ /* Short representation (e.g. 33, 41) of the V3D tech version */
104
102
int ver ;
103
+
104
+ /* Short representation (e.g. 5, 6) of the V3D tech revision */
105
+ int rev ;
106
+
105
107
bool single_irq_line ;
106
108
107
109
/* Different revisions of V3D have different total number of performance
You can’t perform that action at this time.
0 commit comments