File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1809,9 +1809,14 @@ struct vc4_hvs *__vc4_hvs_alloc(struct vc4_dev *vc4,
1809
1809
return ERR_PTR (- ENODEV );
1810
1810
}
1811
1811
1812
- drm_mm_init (& hvs -> dlist_mm , dlist_start , dlist_size );
1813
-
1814
- hvs -> dlist_mem_size = dlist_size ;
1812
+ /* Set up the HVS display list memory manager. We never
1813
+ * overwrite the setup from the bootloader (just 128b out of
1814
+ * our 16K), since we don't want to scramble the screen when
1815
+ * transitioning from the firmware's boot setup to runtime.
1816
+ */
1817
+ drm_mm_init (& hvs -> dlist_mm ,
1818
+ HVS_BOOTLOADER_DLIST_END ,
1819
+ (SCALER_DLIST_SIZE >> 2 ) - HVS_BOOTLOADER_DLIST_END );
1815
1820
1816
1821
/* Set up the HVS LBM memory manager. We could have some more
1817
1822
* complicated data structure that allowed reuse of LBM areas
You can’t perform that action at this time.
0 commit comments