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 25057481679 for ; Tue, 7 Jul 2026 22:29:37 +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=1783463378; cv=none; b=iPyICW0XZl8uLMutXYNrb3avue8J22e5Y8EL32VxtDBLzK+HYIfIA9ZfcmpdSR2LsaPiyaorGae82ufgUvK20lU6vqlB5qS+GJXIVYk9N0QleuZngOyjUQEu4GLjcb+Xast4JwB2cBzsRmiZxZy+yOioGfBW89fWb614vlJQaiI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783463378; c=relaxed/simple; bh=H5gjTCkahlz2x03Clh/PysKqV1bvgbU9MHDzqSGjKm0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UvuqrH1fqtECYYkudaI+dREaJ+mbmooN9b37FL/EzQc6hP9GrCpV94JVTOlPeRzLV2wQC2w9NBbPTvXitWszi8ZS30RnBrE22KqsTiu2HKaAFdb0u926/JJpZB+PkW8EHdLRy2ElJ16KsSed5H11oATKQybuXFX+r26qvGSKZeo= 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=dn4R1xCv; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=CwrmC3JL; 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="dn4R1xCv"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="CwrmC3JL" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 667LbAG4749630 for ; Tue, 7 Jul 2026 22:29:36 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= 7GXhlm42Lq8jhZpNQbWDnVnjUliqMt9PAaqnfp5/6jw=; b=dn4R1xCvA86S0kYd QO89iHTF4RJezjl2syqIVAQQE2v1TbURqV2znsXzNfjWsOsGCUb3VJNqpJraSXnA 6j/YGS30trLlzXNivERmon6zE02aHyOsAyh+WhWTO4wW+4b55bXqbjQ4Og+BL0qe ApR4vTXo3Catp+EbMRwTVvnPDjQ3GFgaDxQ672a+FcdjZS2XalCS1sDv8h4nGV4E qCOz9E1y5l4oTFaj78MlBuT3TlIZasN6+OmPXcOoJgOtKReQVBbXTo4b8KT2hanU iTIVe+8OSVqKh58JMynH5I+b9herV3+x6Kxlg6q+YmAZZ26G29aiMR1g8YCT5mvc 0p4auA== Received: from mail-ua1-f69.google.com (mail-ua1-f69.google.com [209.85.222.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f99hgr6tw-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 07 Jul 2026 22:29:35 +0000 (GMT) Received: by mail-ua1-f69.google.com with SMTP id a1e0cc1a2514c-96925fc24a6so100526241.3 for ; Tue, 07 Jul 2026 15:29:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783463375; x=1784068175; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=7GXhlm42Lq8jhZpNQbWDnVnjUliqMt9PAaqnfp5/6jw=; b=CwrmC3JL9yEH2NhIKOw6fMfLxgGe+d5hADApA3dAYnrSS3ZX+8fvE8+QLpuFj0SDPI HZtWttoYgZnm1xhObQ0Fdy96TlrmK/Of90+rMztW9GvVaeoElQF3UyWktwAarLCAXqCX XvbuvpSq7a8A4UREeHHUToZAkiadF0uYNgyJW6ytTNXxMjz/TpNa52Bz4/LBOGYzPyBz /eV4V9Mj2Btf87hUWEyoGkisElJznfu1bXioGcWwQeQkgBCXnE9w304zpI3wy6X7p7Fs XjDO24cBhnkFFg9CBTIohiJi4LePTxM/0zqdXPqgEDPkKtkFku0CZpZtG7dv1VaYpOlC 8yGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783463375; x=1784068175; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=7GXhlm42Lq8jhZpNQbWDnVnjUliqMt9PAaqnfp5/6jw=; b=j1kbR/MrvffzKrZEF2h6Dd5kWSHhuXs4542kirOgB/AJBgw3J0vg6RNsfoXriVDAGr SQbqCyVAWeUpZQAIk3sPuJEvswy7e1yWjlsYhubkwmEUkzQLqLpAIwY7Yogp233L3B6+ GpSMUI/Ro7TuLJ+czddSLvm8Xo+Y9eOt35ePOBIzKwzM/Jeqoc9OCpxI9pet/laG5HAF Dfmr3JiFfcm/CEcnzdcroIVszRnRU49PuCAf31yJkIsOasJ4DdOQERA2Ua7la+RWCuj2 QLT/cESXnRdU4ASJIJ3oSWAIYLSY6nBIuXZioLgw7xxenIgl3d95yPtNX1yiqSAjhpm0 2kNQ== X-Forwarded-Encrypted: i=1; AHgh+RqWtwiL/I+tOiiJuixF9OCN3JljkEk4xthfpoOySp7N9SXrim4wRan7xedQZLkZq7owDg7lOEQ3DQp0ZMy4@vger.kernel.org X-Gm-Message-State: AOJu0Yzf9t2O/WWjQdoZtVf1qQx7yqPrSKe+wtvmeYTPwJrEKNcIWuyL ZwB7CHHQsNAf6mIX1I54BKrdtDlX9oWN3/73P56AnkYF3hYx1N4peHQRbiRod6eR371wgrYnYXh PSJgtdPuRNDTu+5aN2DR1XumO43RxUAn8hbS8780G6jgEkD6+wYuN6GvuX8zBQn/wg6q6 X-Gm-Gg: AfdE7ckAguIe5OtOUK/Qlg4jw/oOvs9ZwZe3HHsTmtcq6roxMJCxYcpgApoWVwVJvNN sEFYO6jY9nPaKWLH1xyd5ezk+GI79eFU7G3dNBC0rA4Dc8ehQZuN1ck1+FeABD0Pr0gkl2N05Gx liwf643YQncioFGbGBEvFG9krMHpTW+U1JXANG1kXbPJ0d7t8S4s7qvjRkxR6GLu/hEPfQYdV/x aGqvOAjOWObgmO871X3IiGSmXGpsaJNRPl4XOKysQ0Z8CXHWoKtIfM/Z9TeXyHrA6xrODO8vXcZ XMWAldxcNTbj3DwBVAG7WIcqY9iAPqK4iav6aqVpQS5SJiUPgCGP8CgLjrEZObrp7Yv7CMZ+GjZ v5qb/nJSAHjZ5GW3Gh8awXHrFns+txRHQE6K5lPBaRczU+WAfSbQd4iKvRWTNlSc4ijKVfSVc5A WC7COhkJjFvzc52b4u/KS1K4Ss X-Received: by 2002:a05:6102:c47:b0:739:4fa1:50aa with SMTP id ada2fe7eead31-744b7d87ab2mr4381294137.14.1783463375428; Tue, 07 Jul 2026 15:29:35 -0700 (PDT) X-Received: by 2002:a05:6102:c47:b0:739:4fa1:50aa with SMTP id ada2fe7eead31-744b7d87ab2mr4381283137.14.1783463375013; Tue, 07 Jul 2026 15:29:35 -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-39c7312bc25sm1897231fa.40.2026.07.07.15.29.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2026 15:29:32 -0700 (PDT) From: Dmitry Baryshkov Date: Wed, 08 Jul 2026 01:28:50 +0300 Subject: [PATCH v6 07/18] media: iris: add vpu op hook to disable ARP buffer Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260708-iris-ar50lt-v6-7-374f0a46c23b@oss.qualcomm.com> References: <20260708-iris-ar50lt-v6-0-374f0a46c23b@oss.qualcomm.com> In-Reply-To: <20260708-iris-ar50lt-v6-0-374f0a46c23b@oss.qualcomm.com> To: Vikash Garodia , Abhinav Kumar , Bryan O'Donoghue , Mauro Carvalho Chehab , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vishnu Reddy Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Dikshita Agarwal X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3064; i=dmitry.baryshkov@oss.qualcomm.com; h=from:subject:message-id; bh=1XoxNMQkIKQIwreQUtjXXBpaKx8sVaEKHYTsCNEF0Ak=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBqTX2ptdCVTmfF9vVeMsk4iC14OmMlo3P6jA7dO hHKOHCUV4GJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCak19qQAKCRCLPIo+Aiko 1UK1B/9Ev7P1cZmEMcpmcBFdZgBZUroJg+m4v8Lb99EkrTDQPusbbbSxQqnj+Tavd+SYTTDOmnY dOxAC340ndJmIKwwyJn1eUFqU4tjG00zml/CTFWiQQbG9nNvuciUqKFoKvfUZwKlcgOtxp2FHaF TgxxFeeZGDN2hc+PFyNDzqKxmE8BsDVnpGY4tkzRBhDjQxlymkGYgQqzUTDOUKIc0OhyEFHL1UN DBnzgDLJJ1h6ceR6qoPkAG1rD7Nu8D2BjtawDy/9pKtv3L+rmpD34FZL6IP1jcPy0cF7TwzC1lL B/mxXkJgrBWIgJrLJdofTp/VNlzGa+sb452tnG5ulP04uwkg X-Developer-Key: i=dmitry.baryshkov@oss.qualcomm.com; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-Proofpoint-GUID: 0oK-WcIXqm9c9uJiQ0YsPJuhFReAm3Gc X-Authority-Analysis: v=2.4 cv=CviPtH4D c=1 sm=1 tr=0 ts=6a4d7dd0 cx=c_pps a=UbhLPJ621ZpgOD2l3yZY1w==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=vdBeo_PM3xCM7oyOFJQA:9 a=QEXdDO2ut3YA:10 a=TOPH6uDL9cOC6tEoww4z:22 X-Proofpoint-ORIG-GUID: 0oK-WcIXqm9c9uJiQ0YsPJuhFReAm3Gc X-Proofpoint-Spam-Info: AW1haW4tMjYwNzA3MDIyMSBTYWx0ZWRfX6sEgEAxRVEBN MGQ8jVA5mkbMLiJ8DFIkmsCbbse763cZ3to194ZDBmyQu67ZVrnpt8XqR7rURC7eXksKdvjItXb tyzchnO2xhuvlMDEpPB5/6fcSZcGUZ4= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzA3MDIyMSBTYWx0ZWRfXyZfgc8FsVAaD qThprzYQhxhDFonYfi71NnbPgqTBJK1v67xaS4h8+Vp7Jy9ppTwbiKa2Hu2J/lwZ8pdKnilSVXE lilWQzUWAAGAc6rheed7V2qpcprCAGPsDcAYi8S0/wDwrp8vVP+7ESVzljLtMuBQZckfNvlSdBP zveTvqwfuNyr/2MDABgqDpMv9lbbt5ftOVdxyb+c2TV/ICzLb24p+7WZEKWI37bZxnhoUlHLhY3 wyXEW02LSt52SjCnR7Ny+kteVm64aZQ2JnwEWvhFjBaI2aWw3hF3tOzHTimrAUrUi8lifnNqCOe lQ8TK5EsEVbZwkGoxNcloBf5lKw9P8NFSCPEvwbpS2VXFpInxxTaV7QceMlajRnJLXN6WjkDWsT jGXV+mdbdxHLaJMIdoYIDq0jPk1K8IRmiY2qB1YzNquAqrx+Cu3Qyrrh9yvjjcxnM/hGkhoqoHl iMB1mAcmXwSaaNG7Dlg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-07_05,2026-07-06_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 phishscore=0 spamscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607070221 From: Dikshita Agarwal On AR50LT platforms AbsolutelyPerfectRouting (ARP) needs to be disabled so firmware can configure the ARP internal buffer as non-secure for encoder usage. In preparation of adding support for AR50LT platforms, add an optional disable_arp callback to the VPU ops and invoke it from core init and resume paths. No functional change for existing platforms. Reviewed-by: Dmitry Baryshkov Signed-off-by: Dikshita Agarwal Reviewed-by: Vishnu Reddy Reviewed-by: Vikash Garodia Signed-off-by: Dmitry Baryshkov --- drivers/media/platform/qcom/iris/iris_core.c | 4 ++++ drivers/media/platform/qcom/iris/iris_hfi_common.c | 4 ++++ drivers/media/platform/qcom/iris/iris_vpu_common.h | 1 + 3 files changed, 9 insertions(+) diff --git a/drivers/media/platform/qcom/iris/iris_core.c b/drivers/media/platform/qcom/iris/iris_core.c index 52bf56e517f9..bd22076f3557 100644 --- a/drivers/media/platform/qcom/iris/iris_core.c +++ b/drivers/media/platform/qcom/iris/iris_core.c @@ -45,6 +45,7 @@ static int iris_wait_for_system_response(struct iris_core *core) int iris_core_init(struct iris_core *core) { + const struct vpu_ops *vpu_ops = core->iris_platform_data->vpu_ops; int ret; mutex_lock(&core->lock); @@ -78,6 +79,9 @@ int iris_core_init(struct iris_core *core) if (ret) goto error_unload_fw; + if (vpu_ops->disable_arp) + vpu_ops->disable_arp(core); + core->iris_firmware_data->init_hfi_ops(core); ret = iris_hfi_core_init(core); diff --git a/drivers/media/platform/qcom/iris/iris_hfi_common.c b/drivers/media/platform/qcom/iris/iris_hfi_common.c index 8769ec61f117..8f04f3793d9a 100644 --- a/drivers/media/platform/qcom/iris/iris_hfi_common.c +++ b/drivers/media/platform/qcom/iris/iris_hfi_common.c @@ -144,6 +144,7 @@ int iris_hfi_pm_suspend(struct iris_core *core) int iris_hfi_pm_resume(struct iris_core *core) { + const struct vpu_ops *vpu_ops = core->iris_platform_data->vpu_ops; const struct iris_hfi_sys_ops *ops = core->hfi_sys_ops; int ret; @@ -163,6 +164,9 @@ int iris_hfi_pm_resume(struct iris_core *core) if (ret) goto err_suspend_hw; + if (vpu_ops->disable_arp) + vpu_ops->disable_arp(core); + ret = ops->sys_interframe_powercollapse(core); if (ret) goto err_suspend_hw; diff --git a/drivers/media/platform/qcom/iris/iris_vpu_common.h b/drivers/media/platform/qcom/iris/iris_vpu_common.h index 9151545065cd..71d96921ed37 100644 --- a/drivers/media/platform/qcom/iris/iris_vpu_common.h +++ b/drivers/media/platform/qcom/iris/iris_vpu_common.h @@ -24,6 +24,7 @@ struct vpu_ops { int (*set_hwmode)(struct iris_core *core); void (*set_preset_registers)(struct iris_core *core); void (*interrupt_init)(struct iris_core *core); + void (*disable_arp)(struct iris_core *core); }; int iris_vpu_boot_firmware(struct iris_core *core); -- 2.47.3