Skip to content
  • Eric Anholt's avatar
    drm/vc4: Enable runtime PM. · 001bdb55
    Eric Anholt authored
    
    
    This may actually get us a feature that the closed driver didn't have:
    turning off the GPU in between rendering jobs, while the V3D device is
    still opened by the client.
    
    There may be some tuning to be applied here to use autosuspend so that
    we don't bounce the device's power so much, but in steady-state
    GPU-bound rendering we keep the power on (since we keep multiple jobs
    outstanding) and even if we power cycle on every job we can still
    manage at least 680 fps.
    
    More importantly, though, runtime PM will allow us to power off the
    device to do a GPU reset.
    
    v2: Switch #ifdef to CONFIG_PM not CONFIG_PM_SLEEP (caught by kbuild
        test robot)
    
    Signed-off-by: default avatarEric Anholt <eric@anholt.net>
    001bdb55