On Wed, Feb 23, 2022 at 11:49:46AM -0800, Jose Souza wrote:
Add check for zero usable stolen memory before calling drm_mm_init
to support configurations where stolen memory exists but is fully
reserved.

Also skip memory test in cases that usable stolen is smaller than
page size(amount mapped and used to test memory).

v2:
- skiping test if available memory is smaller than page size (Lucas)

Cc: Ville Syrjälä <[email protected]>
Cc: Daniele Ceraolo Spurio <[email protected]>
Cc: Lucas De Marchi <[email protected]>
Signed-off-by: José Roberto de Souza <[email protected]>
Signed-off-by: Steve Carbonari <[email protected]>


Reviewed-by: Lucas De Marchi <[email protected]>

thanks
Lucas De Marchi

Reply via email to