UPSTREAM: coresight: trbe: Make sure we have enough space
The TRBE driver makes sure that there is enough space for a meaningful run, otherwise pads the given space and restarts the offset calculation once. But there is no guarantee that we may find space or hit "no space". Make sure that we repeat the step until, either : - We have the minimum space OR - There is NO space at all. Cc: Anshuman Khandual <anshuman.khandual@arm.com> Cc: Mathieu Poirier <mathieu.poirier@linaro.org> Cc: Mike Leach <mike.leach@linaro.org> Cc: Leo Yan <leo.yan@linaro.org> Reviewed-by:Anshuman Khandual <anshuman.khandual@arm.com> Signed-off-by:
Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://lore.kernel.org/r/20211019163153.3692640-13-suzuki.poulose@arm.com Signed-off-by:
Mathieu Poirier <mathieu.poirier@linaro.org> (cherry picked from commit adf35d05) Signed-off-by:
Qais Yousef <qais.yousef@arm.com> Change-Id: I6d18039e90aaba17fc0071806795288a02318144
Loading
Please register or sign in to comment