• Vasily Khoruzhick's avatar
    ARM: pxafb: rework pxafb overlay memory management · 1b98d7c4
    Vasily Khoruzhick authored
    PXAFB overlay memory management is something messy:
    - it allocates memory dynamically on open/release, and it results
      in memory allocation failure after ~1h of uptime (system does not have
      115k of physically contiguous memory)
    - in release callback it tries to free memory even if it was not
      allocated.
    
    Also driver touches FDADR1 on main plane reconfiguration, and it can cause
    problems if overlay1 is enabled.
    
    This patch attempts to fix those issues.
    
    Patch is based on Russell King's work.
    Signed-off-by: default avatarVasily Khoruzhick <anarsoul@gmail.com>
    Signed-off-by: default avatarEric Miao <eric.y.miao@gmail.com>
    1b98d7c4
pxafb.h 4.25 KB