From nobody Mon Feb 9 02:51:05 2026 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 02D6E350A17 for ; Tue, 13 Jan 2026 16:57:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768323456; cv=none; b=iZqkBy/hInAE3N7UtserUNlfEH9plfvsCyFG3DhW8RAvGlQIsLPNpzfDw1LQfuI0tn0SwrPNjfmSlAEa7DO/XwhmeVcP60upQrTE41dUlW3A52xNVjPiePIkal/dBQNOR6IbNLpl7x2jfleQX59Fksf/BNd2OdCH4YOij50Xwhk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768323456; c=relaxed/simple; bh=HMdQGGXMoxAFlMMe/K2Cq5GmygslrlUf47OHT0fh34c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YpZHKaB5EwJ1vkjyqApEA2fr23jfGuKcaHtkRQMkaWQ6EgTNJ3NbqLJsSIbnoqfv0Fn0obbPSKSJNFLfM1oqPA++BIKGMIAxtza9UsOOJfDYZPVm9yG3iN336TwdFSALtqjmvUfL6R/naWmmA6ZPUIp6kQcOpcwoOTPXDz/ajzw= 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=madejXzh; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=knXGQ+FZ; arc=none smtp.client-ip=205.220.168.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="madejXzh"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="knXGQ+FZ" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 60DFsMBV3727091 for ; Tue, 13 Jan 2026 16:57:34 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= hAD3t824tdcwEOLVZWqxMKdxBRPHELtlY/iZHePT5Uk=; b=madejXzh4uc1tB4k 3DyD5z8f6SMhnGpiKPkDIOK4EpEWUYevdm9MjY2TkB1Nul8CyIXONtZzE7fIfaOs O4ZrErUNXCUuE2gOKfE+krCjaCfkN/16qkIrpOb86nB2YYvnhqExOuy2SwAlU9u5 jLiQPSbpdmctYEgAwc/FQ6R8JQUsMIaCx/Tcj7L1SxUWMOjPimYKfnt7TDSx3TXR oeJSxcVp3HXxq0X4I7XWxNU/SAD2p6h5jHIXCPG0TURfwhUfMaExyHaMJNNwYPwa 3ZkhPdsjRvIBi3LErColwNUXqyYaa/59BHEjoKYO6dHcSmVxHdO1A0mR8NRL1rXd geAAMg== Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4bnjnu1pg3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 13 Jan 2026 16:57:34 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-8b2f0be2cf0so2453346585a.0 for ; Tue, 13 Jan 2026 08:57:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1768323453; x=1768928253; 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=hAD3t824tdcwEOLVZWqxMKdxBRPHELtlY/iZHePT5Uk=; b=knXGQ+FZXm/EAm7Q6/DpPIhoXcfBsv4/pT4E7iuy62I+FVAh2lwnFZG+TF6VHNawiU uFB/cpX5oLBtrVOmvpnBjVz6q+yutQcFKk6ZijqG8wQrZ1aMm1Lr9RGHiix9jNIiP/1S i5RmwOtu2pz/zaPb9X+lhwEPQETs7obOaOppc1MXiEjPxelZyeGZM/V0Y0gjRaJUIYtt ICjiIHvSoolmXn6kGm/2MIMHiTf+jfl4fJfl203TSsegZFKKDVHYBhcaG6GrXIIqNgKk F0jUEdE1lRY74e6ApA984FbhICkSJAS4+JzxKwY7YrW5F61YlYAiivn2lKj2njSgkpBI 0JZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768323453; x=1768928253; 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=hAD3t824tdcwEOLVZWqxMKdxBRPHELtlY/iZHePT5Uk=; b=pduBjGH4o3YaERyc+nR+JZ0WWesLf7XPpuTHr4LNceUnpkg6FCcW/iPhHAFumzlp12 6te5W1/PCwGDJM26npfwKu0Hm7R/Vv0hbBLL9RPoFT5ANLbFQe65Jg+4eHASfh0tJdfl DtKUoSXIXuQkuk17i432keJILBKTGf4CE17da2pGmy7MXhHxD5U4tssHK+aiuP7eQh0w +wlL5+/F3/2oKnj5AJ2D8xP5WnGriZwBS+0c6GTKQ3IM/GT2pP+6S0pOv89SYOtsxfDj gHoXj4FE0gGoEWZ6JRNzNsMZ0Q7eR4iBeffnW3UNnRuaUZFNGMZ9A0UTM9+9asoh3NPM +Vow== X-Forwarded-Encrypted: i=1; AJvYcCUN2KjdplAdGkT9axDRDhaPD8JlytcjrVjX4QqGe5b3VBR7AVQYEqlUlrHKPg6Gjqn35uVUSrhVIBu27tw=@vger.kernel.org X-Gm-Message-State: AOJu0YyRjWQpef8044eXYXpY4ei9N2Ot+vdWiZrXskUH0u8OpXIy4NKk Icr4vxV6FVkwjYeuJHj3h7SQt8QM6QmVQFvP1wyL19U99bWAJ7/hhsNt6NBlcP9i1N6wWMBsDbp jPIltUwPn4I02UjaHtdezjjuWBFSfjcdyTrhbs9p8GRccS8DQb3B4SNCUgltzcROmYTQ= X-Gm-Gg: AY/fxX6kKwubygX3T1aUz5b1/ny6K9smZFZFp7hh0xWbxysvIt3mteL/0w+L4NkgY2p iiOO7IEpO4xpsHwnw7nycGkSpuzi2lVHXG2VGyJvc588uvEF22oJZiPfQB/YNYhUy+k7e+ZUfqM PTQBK/gWVSc/EiNaNsH5LgnFDV4uKkA/1P/HHdamUUWljKhdXk3yEwS+MnvYulQwhzbG06Z1yLP MgrtQmo3apxeqhzOkn/NP3I6gJMuxuxTVYxIfB223UpwMbL+dPJGfOw+vRkwhPMQeBgDC/31TPg XAM79+1xDEZiVVgdn2wXaBNObulVMJ3QJOI+DHL+O5rrKMHUXytOHmQQpGP9AbqHv0XjuOyKFq8 yhVUirmvmnnrIwwv4xwHx99qlRr5+tuVTq/iu6vtGHgD9UeqDPtwxlPrbqyKa4J0+RLttZ4m5nG mVCRg7IKwM/8bjORTvV0jNWMU= X-Received: by 2002:a05:620a:2954:b0:8c3:55bf:735b with SMTP id af79cd13be357-8c38941de7cmr3129017285a.81.1768323452976; Tue, 13 Jan 2026 08:57:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzABrhjIiz68f42H+KyJlrj7ATlYywKpQYCMtXQALfTAzDdPFy4bgFmJXrf3a4G5QttWZWIw== X-Received: by 2002:a05:620a:2954:b0:8c3:55bf:735b with SMTP id af79cd13be357-8c38941de7cmr3129011985a.81.1768323452433; Tue, 13 Jan 2026 08:57:32 -0800 (PST) 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 2adb3069b0e04-59b72af5ed2sm4788677e87.58.2026.01.13.08.57.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jan 2026 08:57:31 -0800 (PST) From: Dmitry Baryshkov Date: Tue, 13 Jan 2026 18:57:19 +0200 Subject: [PATCH v2 04/11] media: iris: don't specify min_acc_length in the source 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: <20260113-iris-ubwc-v2-4-4346a6ef07a9@oss.qualcomm.com> References: <20260113-iris-ubwc-v2-0-4346a6ef07a9@oss.qualcomm.com> In-Reply-To: <20260113-iris-ubwc-v2-0-4346a6ef07a9@oss.qualcomm.com> To: Bjorn Andersson , Konrad Dybcio , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Akhil P Oommen , Vikash Garodia , Dikshita Agarwal , Bryan O'Donoghue , Mauro Carvalho Chehab Cc: Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-media@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2913; i=dmitry.baryshkov@oss.qualcomm.com; h=from:subject:message-id; bh=HMdQGGXMoxAFlMMe/K2Cq5GmygslrlUf47OHT0fh34c=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBpZnlz4MHU02rMucG+cyZiLqJlRZWRz6g5HU4W+ KfbfV1BiDSJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCaWZ5cwAKCRCLPIo+Aiko 1fIXCACTE42T0FJo5xNb39ByhGFcdrV8xverwN05Qjuhb2jVPNg9926oLQ/wvG8U3GZcIcenLo3 UAwLo27BulYDZ1b4e/7plg3EYDmEsrFti8FsPMMGPPnEBkBr06ll7RxNWoJNrcLNov1QGf39Js2 KuUbntx21eZkLoI7aHUxIa5JwVEh7MHulA0QRMomUhZGi42jEZ8/Pje5rDNhiH1r7aL1yRX9isT 61+939iKmPzrXBjBWB6aP8zrmLKW3+BvwG50e09+ZxGdDi6rGCUg6Xou59rdu5u9sKqV8R7D3y3 lUj0dl/keUVzGO/KdJ0UBenoLtJWeg7Pwy1xLRjfjZJd3ep1 X-Developer-Key: i=dmitry.baryshkov@oss.qualcomm.com; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-Proofpoint-ORIG-GUID: iuZhVkpfue6R8RmNRfhV2LzqqlCJhliQ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTEzMDE0MCBTYWx0ZWRfX2zk+ovRiMBMJ gsr448sl+dRLZKSrkg3wmyFfWgm8CMnaSumsuvO3TL/Hr0rQOj9CjJEsuv8YvkIeFrXKsONihgE f4EnKxqNFVI+n/rWfUrC9OCRW1/UbcZalCCjCuY1S5dqmz/5zhA0L4EqIXuhz1PbAANwHtwGqX4 HgcENfU+IXziEmGPia746k8G0iMrqizIk2fcOJRMKrXi+2xnWvzdT7Rq4fJLs9G1WiLHjmAKrRL LkPWYx6BUNh02tPFPA4feKNpGBTGy2xVZok7HykoCSNpyjtg01JHNSwtjsaFWIgp1Im2tmTBOS4 +fWwKfHxGSysLHLTZ/YBsDxznaOcPvEWVM9GERDofSepc1V5Zqqx9Ny7zYJC+pc7Jom664lfXtE FRusc1H4I0VxUcMpoTp5s75Ea40kz64OC4+4Xih3VZaKSxxrM7mTNUwKo97N8niXGt3dsFkgvAJ Da8Hl2PazwjpCGb4ouQ== X-Authority-Analysis: v=2.4 cv=RMu+3oi+ c=1 sm=1 tr=0 ts=6966797e cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=KKAkSRfTAAAA:8 a=EUspDBNiAAAA:8 a=tw3gK4E_mqRpSwCFd0wA:9 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-GUID: iuZhVkpfue6R8RmNRfhV2LzqqlCJhliQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2026-01-13_04,2026-01-09_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 impostorscore=0 suspectscore=0 phishscore=0 spamscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2512120000 definitions=main-2601130140 The min_acc length can be calculated from the platform UBWC configuration. Use the freshly introduced helper and calculate min_acc length based on the platform UBWC configuration instead of specifying it directly in the source. Reviewed-by: Bryan O'Donoghue Signed-off-by: Dmitry Baryshkov Reviewed-by: Dikshita Agarwal Reviewed-by: Konrad Dybcio --- drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c | 5 ++++- drivers/media/platform/qcom/iris/iris_platform_common.h | 1 - drivers/media/platform/qcom/iris/iris_platform_gen2.c | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c b/driv= ers/media/platform/qcom/iris/iris_hfi_gen2_packet.c index d77fa29f44fc..878e61aa77c3 100644 --- a/drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c +++ b/drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c @@ -3,6 +3,8 @@ * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights res= erved. */ =20 +#include + #include "iris_hfi_common.h" #include "iris_hfi_gen2.h" #include "iris_hfi_gen2_packet.h" @@ -120,6 +122,7 @@ static void iris_hfi_gen2_create_packet(struct iris_hfi= _header *hdr, u32 pkt_typ =20 void iris_hfi_gen2_packet_sys_init(struct iris_core *core, struct iris_hfi= _header *hdr) { + const struct qcom_ubwc_cfg_data *ubwc =3D core->ubwc_cfg; u32 payload =3D 0; =20 iris_hfi_gen2_create_header(hdr, 0, core->header_id++); @@ -146,7 +149,7 @@ void iris_hfi_gen2_packet_sys_init(struct iris_core *co= re, struct iris_hfi_heade &payload, sizeof(u32)); =20 - payload =3D core->iris_platform_data->ubwc_config->mal_length; + payload =3D qcom_ubwc_min_acc_length_64b(ubwc) ? 64 : 32; iris_hfi_gen2_create_packet(hdr, HFI_PROP_UBWC_MAL_LENGTH, HFI_HOST_FLAGS_NONE, diff --git a/drivers/media/platform/qcom/iris/iris_platform_common.h b/driv= ers/media/platform/qcom/iris/iris_platform_common.h index 8d8cdb56a3c7..3c5f3f68b722 100644 --- a/drivers/media/platform/qcom/iris/iris_platform_common.h +++ b/drivers/media/platform/qcom/iris/iris_platform_common.h @@ -73,7 +73,6 @@ struct tz_cp_config { =20 struct ubwc_config_data { u32 max_channels; - u32 mal_length; u32 highest_bank_bit; u32 bank_swzl_level; u32 bank_swz2_level; diff --git a/drivers/media/platform/qcom/iris/iris_platform_gen2.c b/driver= s/media/platform/qcom/iris/iris_platform_gen2.c index c1989240c248..c70cfc2fc553 100644 --- a/drivers/media/platform/qcom/iris/iris_platform_gen2.c +++ b/drivers/media/platform/qcom/iris/iris_platform_gen2.c @@ -633,7 +633,6 @@ static const struct platform_clk_data sm8550_clk_table[= ] =3D { =20 static struct ubwc_config_data ubwc_config_sm8550 =3D { .max_channels =3D 8, - .mal_length =3D 32, .highest_bank_bit =3D 16, .bank_swzl_level =3D 0, .bank_swz2_level =3D 1, --=20 2.47.3