[PATCH 11/17] drm/msm: Add support for IFPC
Konrad Dybcio
konrad.dybcio at oss.qualcomm.com
Wed Jul 23 10:22:57 UTC 2025
On 7/20/25 2:16 PM, Akhil P Oommen wrote:
> Add a new quirk to denote IFPC (Inter-Frame Power Collapse) support
> for a gpu. Based on this flag send the feature ctrl hfi message to
> GMU to enable IFPC support.
>
> Signed-off-by: Akhil P Oommen <akhilpo at oss.qualcomm.com>
> ---
[...]
> +static int a6xx_hfi_enable_ifpc(struct a6xx_gmu *gmu)
> +{
> + if (gmu->idle_level != GMU_IDLE_STATE_IFPC)
> + return 0;
> +
> + return a6xx_hfi_feature_ctrl_msg(gmu, HFI_FEATURE_IFPC, 1, 0x1680);
> +}
If this function is not used anywhere else, you may want to inline it,
checking for the opposite condition
Konrad
More information about the dri-devel
mailing list