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 1565A2D876F for ; Wed, 22 Jul 2026 05:54: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=1784699677; cv=none; b=f+gidBthb0vfM4KQ8WTuq37dccuufJ2qJPRh8fE9zkfD2vn9uvw7c85lexAfustsDbfkdleQ3kPzi60UQslyabx8hJ/uuEND3hrSvG5V3+s6Bc4lKV9m2jdT+xVFg+Xa56ucWouwb9DWUzdyiLzbvNoQKhcL7EIgS6PoVMHBXwc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784699677; c=relaxed/simple; bh=coIzcvjb5ugtfK8437kbcjC7ap5uoz1cbPxQzWjRx4g=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=AByITczn/vpPSNJvY53xBz+ETkBJntSdr3lZMveOC8KJmDI7GWOmSg+jVzBi5FsS7qfKCgALiZ2yE2bmK0A2DTBjNKcPseG1vzwOZyw9zFhBn3kKvgasoKouDGVtiGYwPZ0TC3xKpUTfnQ20JKgbJgioFERE3GEYktRug5ZdHxU= 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=CDcw0KjE; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=KfYIdDq6; 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="CDcw0KjE"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="KfYIdDq6" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66M53iEu4168991 for ; Wed, 22 Jul 2026 05:54: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= vULQwCAmlohXfO2djgyMjy/psAkw3bTqxi1rFQrNtZE=; b=CDcw0KjESN4QgTAM iyKOHB7Yj4nWkKKS2108Zbt7nuWXFUj8yzRUWZ2EzPyElrmFpXy9B6IHYfn8t17y Yz0RpRe3Oj2o+8b8P8BObC+SOoIvboN0SH/7ekT4eGXV2wnHiAkq/4zsrVPwuJ6+ GXoPKAdTyzCx9gDLdOAtsTm5NT67ZVVcJCGBZsdcWY+i+sJhZokvEY1QxyAw5zgx m/a1B4lXgovOAyEQF2hBijBNlz8qzlcRRZ6o0UUvg98h8YZpF+cmmVr9AHuMfW83 Twhll7/sGGDwVSYOVfn8qk54jf1Y4lDrzHuQ3+FYmOde9dEetHlOnn1y63ABTlcV blyECQ== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fj6r3mhfd-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 22 Jul 2026 05:54:34 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-c9c26587e67so6329146a12.0 for ; Tue, 21 Jul 2026 22:54:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784699674; x=1785304474; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=vULQwCAmlohXfO2djgyMjy/psAkw3bTqxi1rFQrNtZE=; b=KfYIdDq651VUm6kDrwXyviWBmmWA0hHCGVEmgcAM5p/ZaMLN224pxsv7rT8ZTZb+m7 6g40/3nFn4VZQXYk/ssH7HcIpoPQ5nw5S3viIHXeZMypMRMgNwnWnF9mEbjyPmiLYH1i 4sPPOtUZTL+kDAGtG+9FN9xwTclinWthF6Y9I1FNwcJUrsItFzULuAurBBK2V5eCzk2V +h57HpxG992R3viDIVAz62AfRhbyc2/Ngq9LE7LSqJw0n4tu4EXk80wpqv6HMNsNfYmk /PZ0S2sUlqS1Bngt5sANEqFswC4fn9e4SPgcbEpm8HxEo1/Fy6ZkItH9vFjhDqS0gI52 eDjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784699674; x=1785304474; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=vULQwCAmlohXfO2djgyMjy/psAkw3bTqxi1rFQrNtZE=; b=nvTyNbA+drkJ5LwUp6rsaSQe3/o2E2KJ4goofpYE9C+MQQskl8I0QY05hntzx3dBuC rEX8Cpi+BhrK2Q7qBMfsW/gRPNHl8N/rDUoe/XwOKOekrYVKpDbxM/NJ5IsBjBxqibNY qZdWw9ya+dhNOHJJ0H4Ze/03hGOtNgO7CC4lUWrR22T0IbALpgTEciqdztMbBb0z9jPh VWM+mHMV8eqjRKiwY6YvcDnJrE5mqdTaVv1OvcEOzGCB4t2fNdufZCirpUB0D5trmVS6 TLcDjE78Ju4XVtewQwJ1V4pw6UsSDdcrJ6dRKHXHBZjn56tRXBoPGabUCmP5LlwUZUja vrQA== X-Forwarded-Encrypted: i=1; AHgh+Roh4MO8ohd6vddvIJofc3hVWvqluNLWd9rreEQARV7oU8WMTPD+bXOmyklG/crD4x5C4vv3gxGwMEHmTXhf@vger.kernel.org X-Gm-Message-State: AOJu0YwFR2eKPBdZjFUrSMNQG/KMhclt+fWqsTNu1dJIv1rNPvRVwpQO GBSeMMV8yOVP6g16l9FwX81q2kJ9J/GeJIGOI0XI4FZyntMm8E0vd/cYbcJ1ozyUdx3QM9pqrZv wHc5T4oJphDD3Tos0FLHfhl+/YZ2YXvhgtcM7cT5CsV8YQjwsUty1QIrJCbcnocEQHzKl X-Gm-Gg: AR+sD11KQ2k9qALkZyDRyewPe+JMOKIsucTwJRJjMvDUXSEILWoGC7lTga8PZmLxLE8 b2aQp6IzeXLua9qM2qGBQTtRUeE4lDvDMvHBPjzfE39EBckuOgpRnpequzrAcHXQASqoJcysDl2 NcgJrkqqqf3e1vU8d/bafN7ffn7yYAqc1+5Mpxd2QtVTmhjjxeMvs0NXS17dJpR+YDg5CXMtEOY sIUR3QQwifwho6a+4VO9hqyd+XtiBlqtibfpnG5rcp2gOmHuFJbSZhfC8UO+LZ4NjKrh2i5T1U8 J7GJ1AGC0AZK7J39S5F3syiGrZJYbeECkZYyeJwyvn5UlvvVqcQuL3blRvyHD48DYlhMy68HAbX hClugXezlO4QFR6Mvq7ocChEQX1/z5qy4CCQ= X-Received: by 2002:a05:6a21:1b81:b0:3a2:ed4a:5d7e with SMTP id adf61e73a8af0-3c429456cbcmr2634321637.22.1784699673321; Tue, 21 Jul 2026 22:54:33 -0700 (PDT) X-Received: by 2002:a05:6a21:1b81:b0:3a2:ed4a:5d7e with SMTP id adf61e73a8af0-3c429456cbcmr2634292637.22.1784699672896; Tue, 21 Jul 2026 22:54:32 -0700 (PDT) Received: from [192.168.0.172] ([49.205.252.252]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3147dc1b99esm5101865eec.3.2026.07.21.22.54.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jul 2026 22:54:32 -0700 (PDT) Message-ID: Date: Wed, 22 Jul 2026 11:24:25 +0530 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 04/18] media: iris: Filter UBWC raw formats based on hardware capabilities To: Bryan O'Donoghue , Dmitry Baryshkov Cc: Abhinav Kumar , Mauro Carvalho Chehab , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vishnu Reddy , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Dikshita Agarwal References: <20260709-iris-ar50lt-v7-0-76af9dd4d1f6@oss.qualcomm.com> <20260709-iris-ar50lt-v7-4-76af9dd4d1f6@oss.qualcomm.com> <5d213d08-8e00-4e7e-93ae-ba05f22f09e7@oss.qualcomm.com> <2323abe7-ecd3-4504-8790-ef1a2dacec8f@oss.qualcomm.com> Content-Language: en-US From: Vikash Garodia In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzIyMDA1MiBTYWx0ZWRfX7a2coSpiOmwD rIK4wqruFvjatt0eUsuiYA1BnoicmBDUOuuPP7RYl9sbebG22MpqSi8F2a8J0NfRT0Z1kpWgbNj G8J58/2Uv68deVdfEPC/cWuR6OkiQs5LYQBEZsLAmKC6amkzeby+zhg3IodfUOrz5ijKq7huY6b gBYBW2fbJ2mwxIwaXt+hI6DD2HvSNXf3mc190KzgYWDgkjGJk9ocE3n2BGfs3mlxU8U5NvSS5G4 136OTTFZKNGHoY07I/IHVaAClrjuoLmIFjxmJIAQdjvBB0Hl+bpFmAlqDJW/5v2T53jUU1QBqmZ fF/SOqDD2pUCeGXlj4w2kf/BKKXs8e1a1AetN5dB2I0NnOv6U3S2qfo1X9D1ld/f/vB/ygQxx8t 7BVXlbvDA9vH9iNxLIO96LMNrrhqexKPYuiEhxwGFX4RSfnrvh9ZdecNONWABFOvXen0BEiwGft cexDNnz2+3x2tw9CC5A== X-Proofpoint-ORIG-GUID: zNZJj85qTSuK2_LsHIqdCl2FQox8KCXt X-Proofpoint-GUID: zNZJj85qTSuK2_LsHIqdCl2FQox8KCXt X-Proofpoint-Spam-Info: AW1haW4tMjYwNzIyMDA1MiBTYWx0ZWRfXwNk7DT5Fg0i3 Krh0FcM6hLbnrufK91xrtyXpr8gdBHfZX/TbIqfcDlWuBTUQzx11IYvdCaD7ty82Z3Uy98iQrFk 1W22SZpJkzbBSW8bK2ANtTEv5ZyC0Ms= X-Authority-Analysis: v=2.4 cv=SIRykuvH c=1 sm=1 tr=0 ts=6a605b1a cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=7QKhCc/PCtuziN3cdRcg/A==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=YfwmlBJXWq4pewXu0PsA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=3WC7DwWrALyhR5TkjVHa:22 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-22_02,2026-07-21_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 spamscore=0 phishscore=0 clxscore=1015 suspectscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607220052 On 7/22/2026 3:46 AM, Bryan O'Donoghue wrote: > On 21/07/2026 17:23, Vikash Garodia wrote: >> >> On 7/21/2026 8:34 PM, Dmitry Baryshkov wrote: >>> On Tue, 21 Jul 2026 at 17:08, Vikash Garodia >>> wrote: >>>> >>>> >>>> On 7/9/2026 7:11 PM, Dmitry Baryshkov wrote: >>>>> From: Dikshita Agarwal >>>>> >>>>> The raw formats supported by Iris were previously advertised >>>>> unconditionally, assuming UBWC support on all platforms. However, some >>>>> platforms do not support UBWC which results in incorrect format >>>>> capability exposure. >>>>> >>>>> Use the UBWC configuration provided by the platform to dynamically >>>>> filter raw formats at runtime. If UBWC is not supported, UBWC-based >>>>> formats are omitted from the advertised capability list, while linear >>>>> formats remain available. >>>>> >>>>> Signed-off-by: Dikshita Agarwal >>>>> Signed-off-by: Dmitry Baryshkov >>>>> --- >>>>>     drivers/media/platform/qcom/iris/iris_vdec.c | 26 +++++++++++++ >>>>> +++++++++---- >>>>>     drivers/media/platform/qcom/iris/iris_venc.c | 25 +++++++++++++ >>>>> ++++++++---- >>>>>     2 files changed, 43 insertions(+), 8 deletions(-) >>>>> >>>>> diff --git a/drivers/media/platform/qcom/iris/iris_vdec.c b/ >>>>> drivers/media/platform/qcom/iris/iris_vdec.c >>>>> index 4c8bc7aac135..9fee5f28097d 100644 >>>>> --- a/drivers/media/platform/qcom/iris/iris_vdec.c >>>>> +++ b/drivers/media/platform/qcom/iris/iris_vdec.c >>>>> @@ -3,6 +3,7 @@ >>>>>      * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All >>>>> rights reserved. >>>>>      */ >>>>> >>>>> +#include >>>>>     #include >>>>>     #include >>>>> >>>>> @@ -69,8 +70,14 @@ static const u32 iris_vdec_formats_cap[] = { >>>>>         V4L2_PIX_FMT_QC10C, >>>>>     }; >>>>> >>>>> +static const u32 iris_vdec_formats_noubwc_cap[] = { >>>>> +     V4L2_PIX_FMT_NV12, >>>>> +     V4L2_PIX_FMT_P010, >>>>> +}; >>>>> + >>>>>     static bool check_format(struct iris_inst *inst, u32 pixfmt, >>>>> u32 type) >>>>>     { >>>>> +     const struct qcom_ubwc_cfg_data *ubwc = inst->core->ubwc_cfg; >>>>>         unsigned int size, i; >>>>>         const u32 *fmt; >>>>> >>>>> @@ -80,8 +87,13 @@ static bool check_format(struct iris_inst *inst, >>>>> u32 pixfmt, u32 type) >>>>>                 size = inst->core->iris_platform_data- >>>>> >inst_iris_fmts_size; >>>>>                 break; >>>>>         case V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE: >>>>> -             fmt = iris_vdec_formats_cap; >>>>> -             size = ARRAY_SIZE(iris_vdec_formats_cap); >>>>> +             if (ubwc->ubwc_enc_version) { >>>> >>>> Do you see a possibility that ubwc is enabled for a SOC while VPU >>>> hardware does not support UBWC. IP document for qcom,qcm2290 lists some >>>> UBWC configuration, while VPU does not support UBWC. Not sure at this >>>> point if other blocks indeed support UBWC for qcom,qcm2290. >>> >>> No, QCM2290 doesn't really support UBWC between the IP cores (as such >>> it has ubwc_enc_version = 0). >>> Currently the database defines a least common denominator for all IP >>> cores. If we ever get to a point where we want to define UBWC params >>> per the core, we will need to restructure the database. >>> >> >> Ack. >> >> > > Ack-by ? The ack here was to acknowledge the explanation provided towards a specific case. R-B tag provided earlier on this patch stands good. > > --- > bod