Re: [PATCH v6 11/14] media: iris: Add support to select core for dual core platforms
From: Dmitry Baryshkov
Date: Sun May 17 2026 - 14:15:27 EST
On Fri, May 15, 2026 at 04:51:26PM +0530, Vishnu Reddy wrote:
> On platforms with two video codec cores, select the hardware core for
> a new session based on the current Macroblocks Per Frame (MBPF) and
> Macroblocks Per Second (MBPS) load on each core. The selected core is
> communicated to the firmware via the HFI_PROP_CORE_ID property at
> stream-on time.
>
> Since both cores share the same clock source, the required clock
> frequency is the maximum of the aggregated frequencies across both
> cores.
>
> The total session count limit is scaled by the number of cores, since
> each core independently supports sessions up to its own limit.
>
> Signed-off-by: Vishnu Reddy <busanna.reddy@xxxxxxxxxxxxxxxx>
> ---
> drivers/media/platform/qcom/iris/iris_common.c | 10 ++++
> drivers/media/platform/qcom/iris/iris_common.h | 1 +
> drivers/media/platform/qcom/iris/iris_core.h | 5 ++
> drivers/media/platform/qcom/iris/iris_hfi_common.h | 1 +
> .../platform/qcom/iris/iris_hfi_gen2_command.c | 19 +++++++
> .../platform/qcom/iris/iris_hfi_gen2_defines.h | 1 +
> drivers/media/platform/qcom/iris/iris_instance.h | 2 +
> .../platform/qcom/iris/iris_platform_common.h | 1 +
> drivers/media/platform/qcom/iris/iris_power.c | 20 +++++--
> drivers/media/platform/qcom/iris/iris_utils.c | 58 +++++++++++++-------
> drivers/media/platform/qcom/iris/iris_utils.h | 3 +-
> drivers/media/platform/qcom/iris/iris_vb2.c | 4 ++
> drivers/media/platform/qcom/iris/iris_vidc.c | 7 ++-
> drivers/media/platform/qcom/iris/iris_vpu3x.c | 63 ++++++++++++++++++++++
> drivers/media/platform/qcom/iris/iris_vpu_common.h | 2 +
> 15 files changed, 173 insertions(+), 24 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
--
With best wishes
Dmitry