From mboxrd@z Thu Jan 1 00:00:00 1970 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 BB4AD218ACA for ; Thu, 19 Jun 2025 14:20:21 +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=1750342823; cv=none; b=uAfvJlKKSS4rvTOTkUeoDPtXP+ZVaD/r4CCVr6tH8T4xTiXQEcTIcsSM+T99SG1LnW0qvNTCdYgLhCS6VIr2iD54ysZqGeRkX5TLPZSw0XkrzkP25k8OQ6JqXuDlzz4HVfPtzRMw0/+U1j3lqXae6nTNfB/BCj60Yy6c6VwqBTo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750342823; c=relaxed/simple; bh=FlMMithB26EQ1ESHF1QhUmLgz+gJzZRPLQUpid6FMac=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=kjAK+VujE04dwGh3T6TBtwvUlBXHOpW36ZESLRah3mv2ds0wWNwcFs7iMnERXDUX3CNuIO8TP8mvdfCtvHRH+yBPCJQ45VuZtnVKY3DRHcNfnr5MCpRn5Dve3XDVcYfeiEEJR4qdl54t7BE0Uwz5XZVOUMt0qqnQxevsG4iA5Ig= 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=CDYmHxVG; 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="CDYmHxVG" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55J6aMpj019473 for ; Thu, 19 Jun 2025 14:20:20 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= 3qODGqf9VJdSUiKvIQsg8Q9NQxhvtEVcDlmVqRiAwAs=; b=CDYmHxVGcb/LeutO zeczfjlS323GwLE8rWDj71hkBBefek7dP1iNG3guUA6IcFlDxFclpK1ciZ/JCQkY TWoiqSD8caZ2T5hheWs8TjTl3CBMNv1FIHoymKgMUUR+itmKpao0h9iTEdFL6Yf6 u4JbKJeteXMirTyWC69efckUuCoIeUx8kMHZbMK+Y859b54mPlvUE3tVDPPBE/C+ n90lzfWEsssZwYzXJIF6COVBDN1Wx8sDQSETCqQSEN9ASSMADHxl3PgSsIXrO3rE pHhwjZk5gyUebIr5Lp6v0vkv5F6HyXv2vavBMEGWJ91St7/EuuzbLAVEr+0KeL90 +nRnJg== Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4791h9g6q8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 19 Jun 2025 14:20:20 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-7c5cd0f8961so183561885a.1 for ; Thu, 19 Jun 2025 07:20:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750342816; x=1750947616; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3qODGqf9VJdSUiKvIQsg8Q9NQxhvtEVcDlmVqRiAwAs=; b=qbVbpkGpq9t7hFLno8oisAoeK9e/RcsNRllLOFzOsMKzCuvgzm52TQeiJBx6CJTfpN WdSVyrufKNwhvCR2Nn/+auu0aDN9WZHlMfAYvay3+y795ycB0vaeEq4K5/PQHOX5PQBM NHQbW6HX9Jom7660wx9abKwNoCO6n/yu5Gj73H+gJfPbM9gUs2419A0Ty9C+y4LBx/v1 0oT4/pSEjuToWcSOsoeCPBfYap0tDha8D9jOHAdXBpVcfjM/IEhZqgT4ctnvjBaB/6P7 Q7t+0+Qmc7xQVV4Ah3CRKAp4TcSiBV/yTL7wMch5BOnyqvWuydD9d8c1patpsJIRp7a2 UAgw== X-Forwarded-Encrypted: i=1; AJvYcCXR+bVcGe8OC89sO0mFTRWPwDpGOc+lV1VNq+mhclbSPji9MhUuJwDZB+JKMvdsN0q+sTg41Wct1x9l9Q==@vger.kernel.org X-Gm-Message-State: AOJu0Yxjjv0aLIOtF+oaXA118DxBQrKjsX37+v2sdQGPsA1LAq7Sjcts oQq4qT03AtZ1lEqNP0K1itkKegEVEnqJKGJmwhoXqTbJvlN1jlCBn61nqOnhzB+CvELjHzOpCbD 4tM3bopGvNgh8JNQuimNhEV4WrahHVj+ZawV3goYHU+Glux5PmPJTPB6maU27vwSJNA== X-Gm-Gg: ASbGncsCbhNu0Wmt9FkK8PEaLYPKsRzbjwy2M+xm2vA55zOZ+c/vs+pBqXCLlgS0qi3 r40LegqJJgvdmadQlb2GTRsxL573aanfyKyjrOuWCxP7A5rkBYYf1v/091OaKVQGfSea6oAb6o6 Yi30cr+4KoUjJ8bt+W2cRp1bmupy8vm++JxjLChULkRAD2UUlmWnrDkn5zIUqsMbozxJQud5D2e DV+xg7D4WTPgYNYz/DsJlHMQ4eZeEVp8lJEx1ftuit1+LNah9VeG3JNYG5jeHdY0ddveUsuaIvA K5MkUM1yy00/5c1eQBf5v5uBb9S/6JwNU28vGYXswPgzA3KQZhSny/LFQIMLmF5BDrdaQzan48M y X-Received: by 2002:a05:620a:1a0c:b0:7d3:b8d7:a9a3 with SMTP id af79cd13be357-7d3c6cd8471mr2728881885a.29.1750342816260; Thu, 19 Jun 2025 07:20:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPJPPRNcZ8kHYxDa/J9cN97e03uBxW3LMwXBfnhk+BWCGhmRVlJ8NeVO7dEVheSMxMl0fG0w== X-Received: by 2002:a05:620a:1a0c:b0:7d3:b8d7:a9a3 with SMTP id af79cd13be357-7d3c6cd8471mr2728876285a.29.1750342815665; Thu, 19 Jun 2025 07:20:15 -0700 (PDT) Received: from trex.. (132.red-79-144-190.dynamicip.rima-tde.net. [79.144.190.132]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a58963561csm7254312f8f.47.2025.06.19.07.20.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jun 2025 07:20:15 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez@oss.qualcomm.com, quic_vgarodia@quicinc.com, quic_dikshita@quicinc.com, bryan.odonoghue@linaro.org, mchehab@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konradybcio@kernel.org, stanimir.k.varbanov@gmail.com Cc: linux-arm-msm@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 0/7] media: venus: Add QCM2290 support with AR50_LITE core Date: Thu, 19 Jun 2025 16:20:05 +0200 Message-Id: <20250619142012.1768981-1-jorge.ramirez@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250613140402.3619465-1-jorge.ramirez@oss.qualcomm.com> References: <20250613140402.3619465-1-jorge.ramirez@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: _lNtwY1wVb8wZR0yj61LuJF1DhnKf9e8 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNjE5MDExOSBTYWx0ZWRfX1IVePyGEm6ZV PvFZlKFVXQApOCX/sRCtX5hoXUrlu0lKi9o6KHHEEAsYMTOHLWbzrcXVwdm8ZzlsFyg7EoM75SE ublf+oFs5ObO8M7lzzLE29s1ZAdj3KKVSfuNsqGUPN/CjY6Kg59r3FBm1TPi81iV4qIsOiXpQmp AbpQ96debGuIggB1nIVw+GoO3pWNubUU1qXhvdmbSt3nfG286GnRalxCzHAJjtFPeEd0SGlcQPb MMw5iacxmINj1JG03VZ4XkzbMttheSZeww1t839GbsuisrmjwTXTBpgqxuzL212vfO4XWDTx4Y1 lqFVzKlkEdmykdVF5wUJkl8x6TJz7e3tYT/fW3ZJOlv6m/wcEDkcYy/Cybea1NvB4orlfMMjuw1 5zQT+zkwxV3e/6rJNmcsT9gOMugo27D+SLbaxlyRSrMp1VL9/bOStOmxnVrVwkz0HZenXDhA X-Authority-Analysis: v=2.4 cv=UL/dHDfy c=1 sm=1 tr=0 ts=68541ca4 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=wjE3nLva0YkvARyJ+Gfmxg==:17 a=IkcTkHD0fZMA:10 a=6IFa9wvqVegA:10 a=vaIsIKZIAAAA:8 a=YmGZQoAjZiUEEbKiF_4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 a=rh-XPM1-DYv4t-UOgbwD:22 X-Proofpoint-GUID: _lNtwY1wVb8wZR0yj61LuJF1DhnKf9e8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-19_05,2025-06-18_03,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 clxscore=1015 suspectscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 phishscore=0 mlxlogscore=999 malwarescore=0 impostorscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2506190119 Changes since v1: - Add IS_HFI macro usage - Move schema patch to top - Fix commit messages This patch series adds support for the Venus video decoder/encoder block present on the Qualcomm QCM2290. The QCM2290 integrates an AR50_LITE core, a low-power implementation of Venus supporting H.264, HEVC (H.265), and VP9 decoding. The series includes: • DT binding schema for qcom,qcm2290-venus • SoC integration via qcm2290.dtsi • Resource table definitions and frequency scaling • Platform capability registration for the AR50_LITE core Decoding was verified on the QCOM RB1 platform using GStreamer with V4L2-based decode plugins. The following pipelines were used for playback 1280x720 and 1920x1080 H.264, HVEC and VP9 videos from https://www.elecard.com/videos. [H.264] gst-launch-1.0 filesrc location=videos/xxxxx.mp4 \ ! qtdemux name=demux demux.video_0 ! queue ! h264parse ! v4l2h264dec \ ! videoconvert ! autovideosink [H.265] gst-launch-1.0 filesrc location=videos/xxxxx.mp4 \ ! qtdemux name=demux demux.video_0 ! queue ! h265parse ! v4l2h265dec \ ! videoconvert ! autovideosink [VP9] gst-launch-1.0 filesrc location=videos/xxxxx.webm \ ! matroskademus ! queue ! v4l2vp8dec \ ! videoconvert ! autovideosink --- Jorge Ramirez-Ortiz (7): dt-bindings: media: venus: Add qcm2290 dt schema media: venus: helpers: add IS_VPU() and IS_HFI() macros media: venus: use IS_HFI() macro for multi-version check media: venus: vdec: AR50_LITE video core support media: venus: hfi_plat_v6_lite: Populate decode capabilities media: venus: core: Add qcm2290 DT compatible and resource data arm64: dts: qcom: qcm2290: Add venus video node .../bindings/media/qcom,qcm2290-venus.yaml | 117 ++++++++++++++ arch/arm64/boot/dts/qcom/qcm2290.dtsi | 45 ++++++ drivers/media/platform/qcom/venus/Makefile | 2 +- drivers/media/platform/qcom/venus/core.c | 51 +++++- drivers/media/platform/qcom/venus/core.h | 28 +++- drivers/media/platform/qcom/venus/firmware.c | 8 +- drivers/media/platform/qcom/venus/helpers.c | 81 ++++++++++ drivers/media/platform/qcom/venus/helpers.h | 2 + .../media/platform/qcom/venus/hfi_helper.h | 10 +- .../media/platform/qcom/venus/hfi_platform.c | 2 + .../media/platform/qcom/venus/hfi_platform.h | 1 + .../qcom/venus/hfi_platform_v6_lite.c | 148 ++++++++++++++++++ drivers/media/platform/qcom/venus/hfi_venus.c | 19 ++- .../media/platform/qcom/venus/pm_helpers.c | 1 + drivers/media/platform/qcom/venus/vdec.c | 17 +- 15 files changed, 504 insertions(+), 28 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/qcom,qcm2290-venus.yaml create mode 100644 drivers/media/platform/qcom/venus/hfi_platform_v6_lite.c -- 2.34.1