From nobody Thu Apr 2 15:36:28 2026 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCF0F1465B4 for ; Sun, 29 Mar 2026 00:33:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774744413; cv=none; b=t6bbchGFARMvQfjB+jReXIxH/Ga7ydfEAbgtjrJpJoUG9ciLnu++IzR+Mojfxq1ocn8ymABW/gHskFsgeniOJNJXi4G5n004Wl0ZuNBwL8bnnpGvGy0y3qh4FghSzCUWs2zPuzJFT5HnPncvxxSWiN/HOeDnTSGRB66yj3DFwyI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774744413; c=relaxed/simple; bh=xFJdeT3yOlq/oRgFq0BzLBs7EsRlJjjKB4aOCgE5Kn8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=d5s2T/ioXGDlWSKGeDa0BFcMmnJtkprn0C4AWoBNkpGEfK0rtjxoo7PuPgPRA34FYizRbNJgbwPOenVKqQPdmXfg+GaMVvO4bPGEwyMyqAo4GEoGwkJ9HaTi5Ur6Og51HuYkckHgNAuzk2fD1fQOuAqu7e2jpIlcViOhUv3uG/o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=emX9csn1; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=WNAcVLEn; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="emX9csn1"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="WNAcVLEn" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62S2BhAK2478027 for ; Sun, 29 Mar 2026 00:33:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= kiX3oiS3V2FER92MkVmW6VCS+AmFEidamWAh+fCmPtk=; b=emX9csn15O9f3oDC E/xucefxBmwrHfMUpWP7uV+IN1TMfDK34NDnWXRzYS6EH6Z6FnKvRggqdUHdZ34V Y5HOjkvpSw5AKTbUsu/YOuOg8lHlJTMx/V5HN/joiagmhzYegjQh5qJMLBodvh6I 8pCN3hLRgO+Ow3bg8He+50qCAk51SBzWT604CkVpanaB5cnVfvOnheX9ygInVAW6 bP/zTHtQAT9Fmy1EtxRYV3wLA3zSt7fgSi7ou/8DfVW16TkGDnT8M/ChoTxne7cL P2CueVbMTgkxJ2Hem70dszLlJ3PhHPC2INHtbr9S/sgywM/aA1czSrPO26DKUwVi L3X1hQ== Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4d66049vwg-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 29 Mar 2026 00:33:30 +0000 (GMT) Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-509219f94b0so54074331cf.3 for ; Sat, 28 Mar 2026 17:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1774744410; x=1775349210; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=kiX3oiS3V2FER92MkVmW6VCS+AmFEidamWAh+fCmPtk=; b=WNAcVLEnTzbX/DnH1842K89ffeh9QqzDH48Q4DIBu4KhXdlcBXYlTGAEapdJGiQrVG q1ObC8Z4B/sw9hObq8HkokqextkIOrepk8Fv01AKreff5yCQvfvUmf38N6Q8bbnbI5UL rb7Sa7oDV5heqL7+X5aDHOjE6sVAxrs8UqrWRC1iRJTMhhBGABajG79Fxm6j5OFUem2q DJmx973cgIBWpn+fdUOg4nxzwMLVEd7nCsxAuhohF3Mp1pAKeR7pe+oJpjCQvAYTloam Pz/cwBxP4nih+VjObsWL5aS6cLB7JHDp7IsbQv9WI9Gy9AtErMOtREyHfNz1lTdB5TWe p8aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774744410; x=1775349210; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=kiX3oiS3V2FER92MkVmW6VCS+AmFEidamWAh+fCmPtk=; b=LY0Mt8L4C+SLiKU0tc9TTsxmoVrfOhtvfzkm6TUaltNOh8oQpKJXcFigK49E2p3MO6 lsMb9aiwWMi4wvn469gPqDVoiIM+TSA5Vqk1FQOsSr+fZz3mEApzhQ5igMXPB4Ev6DnB GzRPpXOrPxNGrWcC2OxWKV9+CGXu/e4xISG+DWMNPDelOBRXSz/dEH+VIEhxSiRnzyiI M923OgJK9MkPpQ5MHlKva2i5i54cpOyAi/hs31I23aFoh5lYLgwtNomP1IpO+E3bORuG j4VPoxrb0wfHmMah52p4qbch+w3pfELfzi+ByOZIcd4+3Eh5RK1O/bixE2AeJtYyVdmB eoew== X-Forwarded-Encrypted: i=1; AJvYcCXjX9Zh6d3Ft1FrKWef5dH7s85wiJWyZdIo6AI5aY/Hst/V8++bm7E33VfesakV4vTdijvzzYYKIp4wX2s=@vger.kernel.org X-Gm-Message-State: AOJu0YzHmigmPhziQCl7Gs02E9RPb1qS9LReweX3TBGoTqtcnV0T0QyA +X09B6X8FJ4TbkVskzURbcozpJT0jRV9rdGP9xGQhZ/E2FzKOZK5iQwYGBn7cWdnTH7krjOrODF QCvlDiHT1cW/RQzyboCDzK64K8c1iREsPVjUwULKvNhl8pHJ83oc8NM9etIGqzr5Czwg= X-Gm-Gg: ATEYQzyxyzBWVa2ImjKca8g6JEVaRcxz78ZKpr43K/HsH/nEzLBjN2yOuCYJIlvy1ff rmbn555qVX6f3xJxWPgk5KnGe4jA0pmhxklP7W9SUANKiNAIpqmKpjFmgf3oJoWCOWrWPlDFAhe jgob6v/NVnODrvHOppidaHBCY0Bpful/V/Ya8lWv4sxkHrtHZFfcSAAkiATLN8MW+J33fKTYgW/ WscmyqCQJ7fn7suPbJEd02RwBcwU1ysQw7B9ymNz965Jb0hhDx/xJsAeecmFKlmUtjzPc3EnpE5 UJ4unH7xBBa3P7jQDVknMDCZMh5D7Wdxs6JlmHaY/atS+N76Lyg/LotLxkGYxA0yZ/+MGtmf9FF DsUuNmY7LLJSNiFoEUOQNDgJPc20/VQtY7Ay9ha8vAVsHn+nkbkp986nj7fpIVKvYQMugiHc3Wc CRGJR7a5PkZyWVJ4PKdGQAkZgS7VI12eB2X6s= X-Received: by 2002:a05:622a:118a:b0:50b:4226:9240 with SMTP id d75a77b69052e-50ba38bc18cmr105035801cf.41.1774744410314; Sat, 28 Mar 2026 17:33:30 -0700 (PDT) X-Received: by 2002:a05:622a:118a:b0:50b:4226:9240 with SMTP id d75a77b69052e-50ba38bc18cmr105035581cf.41.1774744409805; Sat, 28 Mar 2026 17:33:29 -0700 (PDT) Received: from umbar.lan (2001-14ba-a073-af00-264b-feff-fe8b-be8a.rev.dnainternet.fi. [2001:14ba:a073:af00:264b:feff:fe8b:be8a]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-38c83892035sm7024731fa.22.2026.03.28.17.33.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Mar 2026 17:33:27 -0700 (PDT) From: Dmitry Baryshkov Date: Sun, 29 Mar 2026 02:33:04 +0200 Subject: [PATCH v11 03/11] media: qcom: iris: don't use function indirection in gen2-specific code Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260329-iris-platform-data-v11-3-eea672b03a95@oss.qualcomm.com> References: <20260329-iris-platform-data-v11-0-eea672b03a95@oss.qualcomm.com> In-Reply-To: <20260329-iris-platform-data-v11-0-eea672b03a95@oss.qualcomm.com> To: Vikash Garodia , Dikshita Agarwal , Abhinav Kumar , Bryan O'Donoghue , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.15.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2232; i=dmitry.baryshkov@oss.qualcomm.com; h=from:subject:message-id; bh=xFJdeT3yOlq/oRgFq0BzLBs7EsRlJjjKB4aOCgE5Kn8=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBpyHNInGI/3Yc1tRS837i1viN2+9lYRCUWtaBP9 Q5R4IozO9GJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCachzSAAKCRCLPIo+Aiko 1TCSB/9GxZF7wdcTgjKxVAYo7SH4+lFuAUjpuzE1XfFe8eb00/oXcvUr9YVpKk6vKC2rmr5O/fL UUlSQ0KJEKlRSrExwgyxgqkDdEEEL59ehIio6nrTbleinfW5YPEOWfl3gzey7SbxwXnDSABXWUC jEwgqNx/Z8XIYgpUes59NRJPS2CSRWu8kDIKmScvCPaBU1TVAKO4W2jQQmCHAUeKMDbTLcdtQ3Z Ywh5P1op48z7TZlETXXYLx6WOsspc67MCPN2iXh+j4YZJxYbDfcoQ9imOaeYCtILglZ9VWq/rt5 sVFxi5MzG+TceXcEOYLwAuYhT8ATh0yclLeRSuZF/kA5+N98 X-Developer-Key: i=dmitry.baryshkov@oss.qualcomm.com; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-Proofpoint-GUID: 3W4tr7hd_5k7HCuidAfbq7fFfCXBLDCV X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzI5MDAwMiBTYWx0ZWRfX1fvegUYGdBHs tAUdT67IlDFSW0Vnhzwk+oVwLIrZsjg8UTu5yM+To0JdNUFaUhFh5e9ixj7RsSh6HYwemC0Mbh1 d8PyMixOKqDnFVumGr6OOOpXRwoR/gpcV+cT1/u6dLZXE0WoZ823QXJGzrG0RbFWYinZVD4hNS8 l+9vWyjYnGxUMTpfBr4iT5J1bLHAUVz5cuSTE7R1xE56MfGDaalyyQn3c+MJGW5/gmUzGk+kyrW qgnCv2oZReIv+OyfNLyQWgsU9gq7DutRNVdkf8uFlJ14pxqCx+iu7mtGs9vDMSia3jVkfxMSLp2 sBszSNIamwGXO8i0TQwTSXYmdiNCnleg6ZoOKrXvn9h6E13w6VO3x/WlDH3RmmjV2Ql/QacIfGz HPjzJx+EIi4wiiZX/hRob0r6irmskVhPTYtUW290Kwm7FE1Pr9vSF1dXZZ7QZurxxy2n5Vk3PuJ 9lOfJzwj79w0K6NPHoQ== X-Proofpoint-ORIG-GUID: 3W4tr7hd_5k7HCuidAfbq7fFfCXBLDCV X-Authority-Analysis: v=2.4 cv=G/4R0tk5 c=1 sm=1 tr=0 ts=69c8735a cx=c_pps a=mPf7EqFMSY9/WdsSgAYMbA==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=yEfzmaBkz_6XQGMMuZMA:9 a=QEXdDO2ut3YA:10 a=dawVfQjAaf238kedN5IG:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-28_03,2026-03-28_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 clxscore=1015 bulkscore=0 adultscore=0 spamscore=0 malwarescore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603290002 To note that iris_set_num_comv() is gen2-internal, rename it to iris_hfi_gen2_set_num_comv() and then stop using hfi_ops indirection to set session property (like other functions in this file do). Reviewed-by: Dikshita Agarwal Reviewed-by: Konrad Dybcio Reviewed-by: Vikash Garodia Signed-off-by: Dmitry Baryshkov --- drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c | 16 ++++++++----= ---- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c b/dri= vers/media/platform/qcom/iris/iris_hfi_gen2_command.c index 30bfd90d423b..e4f25b7f5d04 100644 --- a/drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c +++ b/drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c @@ -1205,7 +1205,7 @@ static u32 iris_hfi_gen2_buf_type_from_driver(u32 dom= ain, enum iris_buffer_type } } =20 -static int iris_set_num_comv(struct iris_inst *inst) +static int iris_hfi_gen2_set_num_comv(struct iris_inst *inst) { struct platform_inst_caps *caps; struct iris_core *core =3D inst->core; @@ -1220,12 +1220,12 @@ static int iris_set_num_comv(struct iris_inst *inst) num_comv =3D (inst->codec =3D=3D V4L2_PIX_FMT_AV1) ? NUM_COMV_AV1 : caps->num_comv; =20 - return core->hfi_ops->session_set_property(inst, - HFI_PROP_COMV_BUFFER_COUNT, - HFI_HOST_FLAGS_NONE, - HFI_PORT_BITSTREAM, - HFI_PAYLOAD_U32, - &num_comv, sizeof(u32)); + return iris_hfi_gen2_session_set_property(inst, + HFI_PROP_COMV_BUFFER_COUNT, + HFI_HOST_FLAGS_NONE, + HFI_PORT_BITSTREAM, + HFI_PAYLOAD_U32, + &num_comv, sizeof(u32)); } =20 static void iris_hfi_gen2_get_buffer(u32 domain, struct iris_buffer *buffe= r, @@ -1257,7 +1257,7 @@ static int iris_hfi_gen2_session_queue_buffer(struct = iris_inst *inst, struct iri =20 iris_hfi_gen2_get_buffer(inst->domain, buffer, &hfi_buffer); if (buffer->type =3D=3D BUF_COMV) { - ret =3D iris_set_num_comv(inst); + ret =3D iris_hfi_gen2_set_num_comv(inst); if (ret) return ret; } --=20 2.47.3