• Peter Ujfalusi's avatar
    drm/omap: Filter displays mode based on bandwidth limit · a7631c4b
    Peter Ujfalusi authored
    If we have memory bandwidth limit configured, reject the modes which would
    require more bandwidth than the limit if it is used with one full
    resolution plane (most common use case).
    
    This filtering is not providing full protection as it is possible that
    application would pick smaller crtc resolution with high resolution planes
    and down scaling, or can enable more smaller planes where the sum of their
    bandwidth need would be higher than the limit.
    
    This patch only allows us to filter out modes which would need more
    bandwidth if they were used with one full screen plane.
    Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
    Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
    a7631c4b
omap_drv.c 18.2 KB