From nobody Mon Feb 9 13:24:34 2026 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB3B6202C3A for ; Tue, 4 Mar 2025 13:07:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093636; cv=none; b=kjoeN4OCzWCi8BmmrQ6AwuINLSRVAqGemm7ZcsiR+4gNosjcky1xo3X6zUft6lmgd0/zHoyFOMFeNplunMs25clv/y+cYURFxYzLxTQ1X48l7CiISfwhYBcQGI31JxkkDJHcxem+zjCoRKBTCnk5Ppfe10WltmBxxoqatexpNJ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093636; c=relaxed/simple; bh=zp7dfq9ZHu42Fop+Hzp7Ynopwb9wccKSyGLv3/T6KYc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YmqHuXbfH/4/HR8XyDQzAfm6B8f+8aNVN2D3jS7sAgVYvxKIGb9w8sbTMDI71b6I0kdt6a7zDPnGRqlFxMnBBWM6DO7wZKgpyVUvyGHS6IV2UyfKcNWYIeiHgoXBklup99PZ3FXyrmpuhqS/3X0Aq7g2/5LwNqMJaHKi5KT0iZI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=kcz72HOA; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kcz72HOA" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-43995b907cfso35987025e9.3 for ; Tue, 04 Mar 2025 05:07:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741093631; x=1741698431; 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=T0qKgshl2F0rJcY3RgeB9zYkoCzuHBzqb6ry7L6OfzQ=; b=kcz72HOAtWYz3QzNm8dbICF5Wm4deg46csGs3Af1Duj6G2puOgyHodGALb4sYtWgov SwDC9XfZ63zRnPfzeaGa39NTULiIhFfQZ2MPCWaaEsWZ8mtjZcmfBLEaDGURLSLZ5DqD h0CKxvJ/mlYqCYNMh9mkEwjnmOrfYILOFvnuV7W99Rk7Xy5jnrliwZwEN5hhJogSnVNi U37Uzpw0BddOFydNov/0kRkOB0rOmnDEdXRnWcAg6ZPNAC+/4QhQADMCDIQMRoVmnw3U /tP0O+6M+dCURtFMYtYs5reBBgGHKwoomWa8rK9AU2XDiKTNWjo9Y/0Vfb2P87WS7Ipo MXHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741093631; x=1741698431; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T0qKgshl2F0rJcY3RgeB9zYkoCzuHBzqb6ry7L6OfzQ=; b=gRgTbGMPZTyzNY+qCfD9QeWReCWHcQ5WR/qa6yCPRHXM22krWnunnb/+wS5JLuQVVa 67zX60HOviMynpHhYRopX0VFkMgICItropXu9sXqj09a3dTY/Dt+LLx1fGoPFr2xKjN0 YQ+SxnezDU7MeOhXWV1a/vd17mwSGSq12FFM7hcAkNMZzDw9+DIQaOC+/evuW/heAlh5 Mg9hNxUKr5ohLkqDbkGBBdGDw2PmKZLjrO1r5ruCLfQPBKP3lw/XA2n7MK9XQX9ze5Ix vAK7uJOlUq96NRgm3dCrwz9BJcdefOADh6pWqt0DFZcnFIf37heUHaHTkyl9RW5GjjDw TyRg== X-Forwarded-Encrypted: i=1; AJvYcCUdq81RLIUBPAVRAtzaeokebXAznh3SJYX/Gt1clV6ngr3La52U25c7T9gRtyKsxgqwn5dcc1u47szKp7E=@vger.kernel.org X-Gm-Message-State: AOJu0YxMFk7yIvXVKSnTjNZTdInuX4lpwwu/dC3/0hlGs+27fGaSmjd8 qxfWZuNWC54IVQv2KsEx+8rCvUe8FCOGzIgI+dsDQCM1/DNZS6XH/ohCWC7o9rg= X-Gm-Gg: ASbGncvFRkSRy7dDCZuGn3jZhVi00WD9JEDUB7jtQlsWijeNiecOlWbAXRpGvswjuW2 2LC+gCM1SBF0nwhVYDJMGVf18mhTMQEg2F5KdoYkYmG1v7nfmSTpBIyOQ1vpluL9lLDmhZmRXyr VD5IAQvWuKwCSIpu3spmpH58BWge8FIQt8RWQFKhyveDeaLE6aJXLiIWiNJWRgiSzsLhuoS9QeH s6U2JfBBvOLZ3ovGMh/U8Cb2EspWs28Q5Dj/+ARyAvOYa3dfmGoaMzXVeZeiwzg+/J8B0YMzdFa iA6ZqgzBmK+q6y9zbEl+T0B9HyrAzXBoeLJdD2IwkzNh43cIe2zufwb84B6BWCjlg2zsTOzcDWe xgL+6Kg== X-Google-Smtp-Source: AGHT+IGt41Z+aO1r0FZqK5TAia+vDzJ+cmrhxgfP8isz0xSsSE8fCGSnzIfP3HUl2KwIfn42/exnSw== X-Received: by 2002:a5d:59ae:0:b0:391:1652:f0c5 with SMTP id ffacd0b85a97d-3911652f24fmr2043369f8f.37.1741093631080; Tue, 04 Mar 2025 05:07:11 -0800 (PST) Received: from [127.0.1.1] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390e47b6cd8sm17401715f8f.44.2025.03.04.05.07.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Mar 2025 05:07:10 -0800 (PST) From: Bryan O'Donoghue Date: Tue, 04 Mar 2025 13:07:07 +0000 Subject: [PATCH 1/8] media: dt-bindings: Document SC8280XP/SM8350 Venus 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: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-1-279c7ea55493@linaro.org> References: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> In-Reply-To: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> To: Stanimir Varbanov , Vikash Garodia , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Bjorn Andersson Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Johan Hovold X-Mailer: b4 0.15-dev-33ea6 From: Konrad Dybcio Both of these SoCs implement an IRIS2 block, with SC8280XP being able to clock it a bit higher. Document it. Signed-off-by: Konrad Dybcio Link: https://lore.kernel.org/r/20230731-topic-8280_venus-v1-1-8c8bbe1983a5= @linaro.org Signed-off-by: Johan Hovold [ bod: dropped dts video-encoder/video-decoder ] Signed-off-by: Bryan O'Donoghue --- .../bindings/media/qcom,sm8350-venus.yaml | 119 +++++++++++++++++= ++++ 1 file changed, 119 insertions(+) diff --git a/Documentation/devicetree/bindings/media/qcom,sm8350-venus.yaml= b/Documentation/devicetree/bindings/media/qcom,sm8350-venus.yaml new file mode 100644 index 0000000000000..352ad85ae50cd --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,sm8350-venus.yaml @@ -0,0 +1,119 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/qcom,sm8350-venus.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM8350 Venus video encode and decode accelerators + +maintainers: + - Konrad Dybcio + +description: | + The Venus Iris2 IP is a video encode and decode accelerator present + on Qualcomm platforms + +allOf: + - $ref: qcom,venus-common.yaml# + +properties: + compatible: + enum: + - qcom,sc8280xp-venus + - qcom,sm8350-venus + + clocks: + maxItems: 3 + + clock-names: + items: + - const: iface + - const: core + - const: vcodec0_core + + resets: + maxItems: 1 + + reset-names: + items: + - const: core + + power-domains: + maxItems: 3 + + power-domain-names: + items: + - const: venus + - const: vcodec0 + - const: mx + + interconnects: + maxItems: 3 + + interconnect-names: + items: + - const: cpu-cfg + - const: video-mem + - const: video-llcc + + operating-points-v2: true + opp-table: + type: object + + iommus: + maxItems: 1 + +required: + - compatible + - power-domain-names + - iommus + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + #include + #include + + venus: video-codec@aa00000 { + compatible =3D "qcom,sm8350-venus"; + reg =3D <0x0aa00000 0x100000>; + interrupts =3D ; + + clocks =3D <&gcc GCC_VIDEO_AXI0_CLK>, + <&videocc VIDEO_CC_MVS0C_CLK>, + <&videocc VIDEO_CC_MVS0_CLK>; + clock-names =3D "iface", + "core", + "vcodec0_core"; + + resets =3D <&gcc GCC_VIDEO_AXI0_CLK_ARES>; + reset-names =3D "core"; + + power-domains =3D <&videocc MVS0C_GDSC>, + <&videocc MVS0_GDSC>, + <&rpmhpd SM8350_MX>; + power-domain-names =3D "venus", + "vcodec0", + "mx"; + + interconnects =3D <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_= ONLY + &config_noc SLAVE_VENUS_CFG QCOM_ICC_TAG_ACTIVE_O= NLY>, + <&mmss_noc MASTER_VIDEO_P0 QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, + <&mmss_noc MASTER_VIDEO_P0 QCOM_ICC_TAG_ALWAYS + &gem_noc SLAVE_LLCC QCOM_ICC_TAG_ALWAYS>; + interconnect-names =3D "cpu-cfg", + "video-mem", + "video-llcc"; + + operating-points-v2 =3D <&venus_opp_table>; + iommus =3D <&apps_smmu 0x2100 0x400>; + memory-region =3D <&pil_video_mem>; + + status =3D "disabled"; + }; --=20 2.47.2 From nobody Mon Feb 9 13:24:34 2026 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C158204595 for ; Tue, 4 Mar 2025 13:07:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093636; cv=none; b=gEo7JdOfd0PuRz62abWka32zKC/mQUMhfvvZ7XZjS+r5f9cK0a1RJK2YIf5/X8sYdJgAB9cjSraSYd/lk7HvQqgGTvol/+fV9LTXB5CXMA37bRGKcDwvXnzHPk5QvHQ6aX9vt9/c8p7ZLoEHGtBXRCq+6Xzx1aFkx8g8W5un6NE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093636; c=relaxed/simple; bh=p6tzcyV2ztMb72HG02Epla8JNG+sbRzfglIoOgRfNwY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Upw96q38tYURJRu3+2ObKpJNUu7rZuoe1LQ04PipNb5tHtiUY5/9yhOEdZSURM5xIg1wgiD/aLwpDK2J22nMtc+aF7Jhp4HLfqaZpaQL08YXZdqXiihdcS4B6eajUH5V7tSC4f7UWgkSLVTyGvL5sApEb9GpBo0SZ6EdjdbbwKE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=nkMwFDLG; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nkMwFDLG" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-390dd3403fdso4779890f8f.0 for ; Tue, 04 Mar 2025 05:07:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741093632; x=1741698432; 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=fc2UFOQyH0/Jqy9uNhciWp/BhWlHs4mucXqaZLSwSf8=; b=nkMwFDLGaPHCB5at7uJPeHsUP8pwpzLi97cqZV5krLgWbqXvC93L5eaW5BJ5kKxZkk jti261WR+Vro2Ln1EUutzd3hM/OZ9uiM3Zi6rN/qffqXjEu6gr7DCYCEjg9Kjkm1yyR8 M6enXZzW8fA6o+f+xmgXMu1g+s/0TpylibQhAagZGLwGIQEEwCqNPGt9yT6hlUdBd9sc bWDPECWykPopWieVh90cRRn2pLEdReOIEilbtj03fkSCu3IB2CJvXSGQI+ZeA4L324yb xFQCadgqPVNZrSkPAluvVsv/IddiQeZxftf//VfBf1kY9XYnYmXrksQ388OVza8LFQWv ZbVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741093632; x=1741698432; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fc2UFOQyH0/Jqy9uNhciWp/BhWlHs4mucXqaZLSwSf8=; b=X6y1DOwJnTgaoZPI+d4t+3K/kM4ljXVhdg9QlBRyAUtGqhM/c2+TS7hvTV4Pd79pdq eQjHYLowZweld9wWVTDr5zNCqOXHWGbeE88G2p8vS3+ikYjUEDfkR667FGsPq7JLn5zD VX2TkBgeiL/PKU5ilWeeFL65uYwBOr3cJ0erNbtYIBELuTsX8vOB7ue5nX3z/umfW4+b JO6zodvmLUB6ekEs/shQKDs1P87ct6I5E3WA7hOBJCTifGMSkSGIeFaiO3MZoPyqKYW9 POq+JK2lpmn1AanSYoShxMF+B3q5H6QKmI/GlK/GjDdZGITnbGMwkHrSfcNM0bGc7STo FDzw== X-Forwarded-Encrypted: i=1; AJvYcCW1ExjIMENiGB7Tu7u97V6yI56zcWZRg5GeNBQgk/CCblknQc93tt4zistMfK8gbIzl6XzPmsJjdrjpS2w=@vger.kernel.org X-Gm-Message-State: AOJu0Yxr/Phc8SeNBiXIbHLEpKLD/nuFdCnmsEBd6n2eNgb5cMLVDniw MIaiQeSt+epgp5epTcWAt9Zc9Q0+c0BpWuDcj3PHIhq0L46DmwoHFI5EHGwGEy4= X-Gm-Gg: ASbGnct1omchoR3Sq+Xlbc37auKxJkOMbIioBD0dfp/m+zRwKlcCGcgV9q6mKfF7C1M HJBG/q83cUhOvnhV+gW/f1OO7lzZAWhiHXJk6ydA46/Lys0OufXe6A23Jzp/DH/aphuKR5WMcWh 1XU6s6NQdPO64t47EVOSxA0f7CyEDVXsExAlJdg9QPSPkZTRqe6/GP1iWzs7KwWVwQny0NCZQMt U0gU0i70vyAM6AqX48ndMTBRYcZoTmpJuHc3///2Dskx8rtwUvk9bAJs5PfFVy/eAzZ3j+ARj/L ndq/kOo+zI54jpL+M+lWQapnxfS8UN7YjWZDIyzywoVA2DJNU3/dFc9gu/O2qH+EpBOUHcd1L/z FYmbb0w== X-Google-Smtp-Source: AGHT+IFlVQpbJbhy5jiyL8Usdv0nuA/4jjTLzZGkc9256Np8g3V59AFfddEVwJtu35RRPr2UhvWQvA== X-Received: by 2002:a5d:64a6:0:b0:390:e535:8758 with SMTP id ffacd0b85a97d-390ec7ca0e7mr13859515f8f.9.1741093632440; Tue, 04 Mar 2025 05:07:12 -0800 (PST) Received: from [127.0.1.1] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390e47b6cd8sm17401715f8f.44.2025.03.04.05.07.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Mar 2025 05:07:12 -0800 (PST) From: Bryan O'Donoghue Date: Tue, 04 Mar 2025 13:07:08 +0000 Subject: [PATCH 2/8] media: venus: core: Remove trailing commas from of match entries 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: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-2-279c7ea55493@linaro.org> References: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> In-Reply-To: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> To: Stanimir Varbanov , Vikash Garodia , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Bjorn Andersson Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Johan Hovold , Konrad Dybcio X-Mailer: b4 0.15-dev-33ea6 From: Konrad Dybcio Even though it has zero effect on functionality, remove them for coherency with other drivers. Signed-off-by: Konrad Dybcio Reviewed-by: Bryan O'Donoghue Link: https://lore.kernel.org/r/20230731-topic-8280_venus-v1-2-8c8bbe1983a5= @linaro.org Signed-off-by: Johan Hovold Signed-off-by: Bryan O'Donoghue --- drivers/media/platform/qcom/venus/core.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platf= orm/qcom/venus/core.c index 77d48578ecd28..61fb59788a810 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -1058,15 +1058,15 @@ static const struct venus_resources sc7280_res =3D { }; =20 static const struct of_device_id venus_dt_match[] =3D { - { .compatible =3D "qcom,msm8916-venus", .data =3D &msm8916_res, }, - { .compatible =3D "qcom,msm8996-venus", .data =3D &msm8996_res, }, - { .compatible =3D "qcom,msm8998-venus", .data =3D &msm8998_res, }, - { .compatible =3D "qcom,sdm660-venus", .data =3D &sdm660_res, }, - { .compatible =3D "qcom,sdm845-venus", .data =3D &sdm845_res, }, - { .compatible =3D "qcom,sdm845-venus-v2", .data =3D &sdm845_res_v2, }, - { .compatible =3D "qcom,sc7180-venus", .data =3D &sc7180_res, }, - { .compatible =3D "qcom,sc7280-venus", .data =3D &sc7280_res, }, - { .compatible =3D "qcom,sm8250-venus", .data =3D &sm8250_res, }, + { .compatible =3D "qcom,msm8916-venus", .data =3D &msm8916_res }, + { .compatible =3D "qcom,msm8996-venus", .data =3D &msm8996_res }, + { .compatible =3D "qcom,msm8998-venus", .data =3D &msm8998_res }, + { .compatible =3D "qcom,sdm660-venus", .data =3D &sdm660_res }, + { .compatible =3D "qcom,sdm845-venus", .data =3D &sdm845_res }, + { .compatible =3D "qcom,sdm845-venus-v2", .data =3D &sdm845_res_v2 }, + { .compatible =3D "qcom,sc7180-venus", .data =3D &sc7180_res }, + { .compatible =3D "qcom,sc7280-venus", .data =3D &sc7280_res }, + { .compatible =3D "qcom,sm8250-venus", .data =3D &sm8250_res }, { } }; MODULE_DEVICE_TABLE(of, venus_dt_match); --=20 2.47.2 From nobody Mon Feb 9 13:24:34 2026 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50691204694 for ; Tue, 4 Mar 2025 13:07:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093638; cv=none; b=f26oSRKrGSH9ASfgKKpJdqGVXQLSsmG7wmlGJFU0sRqI6WCAjWgc7ftNKm2vnd0GexOG5529TqqPkPi4b59mYxy7Gta84XWYfpHNbcar6OCM86L90B3vMiyfhIpd1ncEJJXpcmabnNchY3xAzgAdim0W4AxSMlmmdAbwNzIBnIk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093638; c=relaxed/simple; bh=FaXxWBTtA0V9vWn2OFkttUFzPuAdqQgSnU2vFsSbkqI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EdaqchPl5YCt/ZTh7gGyaVSPwt+RNth1lhCQcBhGTwajbAWZCTPBmez30iBwFh8lhqMoUWS4UKFnIE6rltcp5lmX4V8NwyEOT+m4mUDNOMUvXu58fW6KfIbsR/RixRpqQ6mvomEz6DCzz2Ord9RneaetOpRLzZ5HnL+IMUg3FwA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=P2U96kjI; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="P2U96kjI" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-390f69f8083so2898779f8f.0 for ; Tue, 04 Mar 2025 05:07:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741093634; x=1741698434; 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=U6HSOnQBr0FDVpREIMoFhmB69JXqeBMODdqv9u5g3C4=; b=P2U96kjImqkUyovt+nf7z/PdDXHS4hm/QKlqa2kM691zNt/05WLjSvlTI/h3uZIfHi UQErMq7C3EhO7fEJwHfNV1h42wTwUL9/nsSH6OKVTTdJu/lZIBtSXgmpnXQJaUtNSWF4 47FBRKvGCqdrqL8kD3iAYlfsggwYvw26tcwdogR/RDCMkK2wMvlDw/B8ADyuLvm3QfGc zq6aTEG13xKwfcF1Pcq1gPGlvn8FPLNyWHNnVEkvGp47Z30dcoVLLzitj4D+DKUE/ceJ 2PumeYTkppHEZWcF+xwieOXkKAuGgoX1gobfjQ9APrphRlSv9iV7Znwj0omtxKYa+ZZr kH1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741093634; x=1741698434; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=U6HSOnQBr0FDVpREIMoFhmB69JXqeBMODdqv9u5g3C4=; b=Q9rCUf4sUAEPK15fcgAIq5CvYUF9/lY82HAsWg0M2MyfePZA+k0KNUNKiQoz27MSqR hSQjbJUthdCTk952UuRizdAZV8OrXaF19tWhpDmBq51HhGIBPo7j//TRCfZuoK8gCGRM 8ELJYqfareZ1enr0hyPPL8bgVpGGQD/02gSGLgqQ1reWnkxnBU1qpLsQ87nVt0PpqBOP RDX+9pFzZU7EHwdzCzxcfK7o3v+Rt65gu9n5e/eDwO7mUiq5O0VEcPxKl3oinhX71hu6 2AscqdKExsVT3yuulrXrBp3xZzlf1UBLeqYwLz/eHDEDQ3AazyQEtZ8fuRJdbxut22CC 8r+w== X-Forwarded-Encrypted: i=1; AJvYcCWEwfpQUH5OASA7hL8Tj5UI0mDUGHH0G51B06W7OqYUwm5qsn3j6+NQ88ypfC81E1vl4IEpnKphVmD3MWc=@vger.kernel.org X-Gm-Message-State: AOJu0YwpxNIH27Qbq//nPXCJF8q+q21rFvabY/GVuOUhh4Y2zfjevR8W VTm66Gaacn7nWg0ev2DDLOyCmidUeLPPHVFxu8Pq7hgoD/EsRpG9MJ4eCd2gBco= X-Gm-Gg: ASbGnctsJGiBfXewC/ovmBitAWjp+fS8yaojqXRxWHonzGpJN2l/YmF5g4OwEl4phQL aWlCnRXUu1UTTOKjSV3z9Wyj+F8LThGkG1fVtSmuruALPZPcdZaZ/J2UmoEkqHALmlDZnsTRw9e HbtjVbxvfeHa6nJezyP8Uto2ebjDvYj3rABwaEvBah0W4WRvtzOO7/Br2wuEFr0WfuZM6f93/SR CHxjpL/czABknkYS7WUmjHOZCMQPKpADO/MhuX05qXBGuOhg5rtkSpxizSp5kgBzEJZNHegQ5n2 K98hlbBFvpXdiV9OPmGglaGjWVRV8KVEglfMWB8bIoCIGVX3oYpL5dkGx0oTffskjgKlfkb3Lg9 2xDZUrQ== X-Google-Smtp-Source: AGHT+IFd1jiwpx5EeofZBxtQSONJsTOBslCT9aMW9/Tof0U0ChG1L8NGbIX2J18ydo0KXKMo/1Upcg== X-Received: by 2002:a05:6000:2a02:b0:390:f412:dd41 with SMTP id ffacd0b85a97d-390f412e13bmr9259864f8f.53.1741093633694; Tue, 04 Mar 2025 05:07:13 -0800 (PST) Received: from [127.0.1.1] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390e47b6cd8sm17401715f8f.44.2025.03.04.05.07.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Mar 2025 05:07:13 -0800 (PST) From: Bryan O'Donoghue Date: Tue, 04 Mar 2025 13:07:09 +0000 Subject: [PATCH 3/8] media: venus: hfi_venus: Support only updating certain bits with presets 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: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-3-279c7ea55493@linaro.org> References: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> In-Reply-To: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> To: Stanimir Varbanov , Vikash Garodia , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Bjorn Andersson Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Johan Hovold , Konrad Dybcio X-Mailer: b4 0.15-dev-33ea6 From: Konrad Dybcio On some platforms (like SM8350) we're expected to only touch certain bits (such as 0 and 4 corresponding to mask 0x11). Add support for doing so. Signed-off-by: Konrad Dybcio Reviewed-by: Bryan O'Donoghue Link: https://lore.kernel.org/r/20230731-topic-8280_venus-v1-3-8c8bbe1983a5= @linaro.org Signed-off-by: Johan Hovold Signed-off-by: Bryan O'Donoghue --- drivers/media/platform/qcom/venus/core.h | 1 + drivers/media/platform/qcom/venus/hfi_venus.c | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/qcom/venus/core.h b/drivers/media/platf= orm/qcom/venus/core.h index abeeafa866971..b595f72b3afc4 100644 --- a/drivers/media/platform/qcom/venus/core.h +++ b/drivers/media/platform/qcom/venus/core.h @@ -38,6 +38,7 @@ struct freq_tbl { struct reg_val { u32 reg; u32 value; + u32 mask; }; =20 struct bw_tbl { diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c b/drivers/media/= platform/qcom/venus/hfi_venus.c index a9167867063c4..ef2ea4727758f 100644 --- a/drivers/media/platform/qcom/venus/hfi_venus.c +++ b/drivers/media/platform/qcom/venus/hfi_venus.c @@ -359,10 +359,19 @@ static void venus_set_registers(struct venus_hfi_devi= ce *hdev) const struct venus_resources *res =3D hdev->core->res; const struct reg_val *tbl =3D res->reg_tbl; unsigned int count =3D res->reg_tbl_size; - unsigned int i; + unsigned int i, val; + + for (i =3D 0; i < count; i++) { + val =3D tbl[i].value; =20 - for (i =3D 0; i < count; i++) - writel(tbl[i].value, hdev->core->base + tbl[i].reg); + /* In some cases, we only want to update certain bits */ + if (tbl[i].mask) { + val =3D readl(hdev->core->base + tbl[i].reg); + val =3D (val & ~tbl[i].mask) | (tbl[i].value & tbl[i].mask); + } + + writel(val, hdev->core->base + tbl[i].reg); + } } =20 static void venus_soft_int(struct venus_hfi_device *hdev) --=20 2.47.2 From nobody Mon Feb 9 13:24:34 2026 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B76C7204593 for ; Tue, 4 Mar 2025 13:07:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093638; cv=none; b=YKz9yuXmu10F2fadn7+7DO2rhGa+tpgd8VNkl+TJD9HZ9AouopMrIKEeUp6MQftAvEtjgwE7EGq5wxqHAlIOxlY3Qe78J4kAxL8Pbp8YeqQA/xoHrgDnErNxzrg+xG1WuW2PgL+YgHrIh/mWB41tq+VTLguVtMvqn6DcbzOa53E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093638; c=relaxed/simple; bh=/NrrKu4n1tF2HpwX/3ZU9A1mDCbhjYaDgP2YCETu4tE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KH0lNeF1LAf1TLYs64reAOPSv03o46RSh11dN0TljMSKgV714rvBLnnrh7Q071w3nU6PIvSmTIyk7Ec92zga7SZxaPB93KTfBGWy+3gctlg1oyB2zZT9V3eIhVkkbMkJyuu5ozPL3Anib9X6IR6zoSmqmKXhGYKUFNYGALtG6Xw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=n0EkaPTY; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="n0EkaPTY" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-390dd3403fdso4779927f8f.0 for ; Tue, 04 Mar 2025 05:07:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741093635; x=1741698435; 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=nReu5+cl9WzV6+48QR0ZYCEfLXug0GahkekE8tX+Eds=; b=n0EkaPTY/NmMTg4W9rJqtaQjn7nNvzM8XLDUsc1A9s0jv0cJw17FBiprcv7e+NWmVe RSQbrsjt/K857XHe/c1Rqabbp5pSo/OzRvR1X75plUxl6tvJXG+2C9JDoGtGxXChrsTQ SYy0zvpbls5WBkycMwkA8pMFcvWEXSpxsf1Hx8cT5fNSfB3BfPcuih19qTTQP/jdHXda u02aKlTE9sBMQ3wzf9un12P2/D/zQrzePpEXl5Uslzw10cbfm6mJMm9qRhhhE8CO6ANo MLnup02BarWRUJb4+VNpnZKdrLdlIwF1149HPgGSpwe3JFjoG7VeB4wARot7JhYNil3J tbjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741093635; x=1741698435; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nReu5+cl9WzV6+48QR0ZYCEfLXug0GahkekE8tX+Eds=; b=NyiHo0WJ18GiJlLR3VgVpcwctGR9PBnyuWFyKAOf3y2m6f6E44w3QwV++0I6N9hYLu bRqo0WYZsvjtRF+9/+/MtAvHx7pziBK3GMQVgtb06PVx58fykTUPwNsKS9SD51U36LVy veUNew31onjnGVGjOslpSbQkH6Ell1HpDX9SVMAL8hEDaLIVjYnlBYhECNUHgBadmBbn fjmjdHhgvo5+XD69riikBaemLOJPgYwK01NMSCuzrF3yFTf6uKEDJpG4Ru1JP2K2OEI+ Zj7m1Rf6fQ/oZiQ/WCl3/sXKqqNRV33jEIkqyHeu+Asve35/T+Djx/bQjEGEAdeIdMBB wUag== X-Forwarded-Encrypted: i=1; AJvYcCXeDMmkMz5CoAD5ereO7de/iLH9IRmucvM8kCsKLkHwcZTRurXnh+FxIrQAneqcvyAi4xVKXUH0GdEAeEE=@vger.kernel.org X-Gm-Message-State: AOJu0YxTbexl8lgRyYk6a+Hie39buELmL+R0xvMT81rjrqx1j054fSjP LwRVHsh/DHD228X+/JML2sc9ILVRQXJe7C8SwO6EVZ8C6DBRiBDWJ3XyCiCogyE= X-Gm-Gg: ASbGncu2Idwfi2tW8FoNalMiRKJSLcU09sSO5ZJbrqjmjgJOkm0sC3emgTMoJ3Yvw49 9Cw54SfvXlpzmjfcQyho9KV54BlbaXS4NwMN51qg8SqmLKpnqnnkiMI6yvshUYDKFiKqqNCmL+X dBd9+TmAAPQaWC3lv1HA72U7zese6rxC3QX1fSSeBu4+9x5g2MeT7LhTtQfcBU9lETYz6Nj2xLl Lee1Yu7oGItXcaqWwscTAZhKkYY6+L2ukwf/DhOUeio3zKHAshav7kfC6h6mtq2ae1V2F/r5DnM +RdmmHuamdS/I+aeR/6bZ3r8gM4MuPnLS1SxUwO1jbizP47v738W8TDy6LthRXEeJaG01K37F+8 ViRIL1g== X-Google-Smtp-Source: AGHT+IFFQwNalVDcJ6wvBNHtHEZZ1GuZCNcAdrK9S2+uRO3n9xEvwwqdDOGiOLjqar6ic5Tu3r7jAA== X-Received: by 2002:a5d:64e2:0:b0:38d:d371:e04d with SMTP id ffacd0b85a97d-390eca5b1abmr13994541f8f.34.1741093634919; Tue, 04 Mar 2025 05:07:14 -0800 (PST) Received: from [127.0.1.1] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390e47b6cd8sm17401715f8f.44.2025.03.04.05.07.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Mar 2025 05:07:14 -0800 (PST) From: Bryan O'Donoghue Date: Tue, 04 Mar 2025 13:07:10 +0000 Subject: [PATCH 4/8] media: platform: venus: Add optional LLCC path 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: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-4-279c7ea55493@linaro.org> References: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> In-Reply-To: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> To: Stanimir Varbanov , Vikash Garodia , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Bjorn Andersson Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Johan Hovold , Konrad Dybcio X-Mailer: b4 0.15-dev-33ea6 From: Konrad Dybcio Some newer SoCs (such as SM8350) have a third interconnect path. Add it and make it optional. Signed-off-by: Konrad Dybcio Link: https://lore.kernel.org/r/20230731-topic-8280_venus-v1-4-8c8bbe1983a5= @linaro.org Signed-off-by: Johan Hovold Signed-off-by: Bryan O'Donoghue --- drivers/media/platform/qcom/venus/core.c | 19 +++++++++++++++++++ drivers/media/platform/qcom/venus/core.h | 3 +++ drivers/media/platform/qcom/venus/pm_helpers.c | 3 +++ 3 files changed, 25 insertions(+) diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platf= orm/qcom/venus/core.c index 61fb59788a810..93e5b9e1f70cc 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -393,6 +393,15 @@ static int venus_probe(struct platform_device *pdev) if (IS_ERR(core->cpucfg_path)) return PTR_ERR(core->cpucfg_path); =20 + core->llcc_path =3D devm_of_icc_get(dev, "video-llcc"); + if (IS_ERR(core->llcc_path)) { + /* LLCC path is optional */ + if (PTR_ERR(core->llcc_path) =3D=3D -ENODATA) + core->llcc_path =3D NULL; + else + return PTR_ERR(core->llcc_path); + } + core->irq =3D platform_get_irq(pdev, 0); if (core->irq < 0) return core->irq; @@ -581,12 +590,18 @@ static __maybe_unused int venus_runtime_suspend(struc= t device *dev) if (ret) goto err_cpucfg_path; =20 + ret =3D icc_set_bw(core->llcc_path, 0, 0); + if (ret) + goto err_llcc_path; + ret =3D icc_set_bw(core->video_path, 0, 0); if (ret) goto err_video_path; =20 return ret; =20 +err_llcc_path: + icc_set_bw(core->video_path, kbps_to_icc(20000), 0); err_video_path: icc_set_bw(core->cpucfg_path, kbps_to_icc(1000), 0); err_cpucfg_path: @@ -626,6 +641,10 @@ static __maybe_unused int venus_runtime_resume(struct = device *dev) if (ret) return ret; =20 + ret =3D icc_set_bw(core->llcc_path, kbps_to_icc(20000), 0); + if (ret) + return ret; + ret =3D icc_set_bw(core->cpucfg_path, kbps_to_icc(1000), 0); if (ret) return ret; diff --git a/drivers/media/platform/qcom/venus/core.h b/drivers/media/platf= orm/qcom/venus/core.h index b595f72b3afc4..0cb17b7db0963 100644 --- a/drivers/media/platform/qcom/venus/core.h +++ b/drivers/media/platform/qcom/venus/core.h @@ -65,6 +65,7 @@ struct venus_resources { unsigned int bw_tbl_enc_size; const struct bw_tbl *bw_tbl_dec; unsigned int bw_tbl_dec_size; + bool has_llcc_path; const struct reg_val *reg_tbl; unsigned int reg_tbl_size; const struct hfi_ubwc_config *ubwc_conf; @@ -136,6 +137,7 @@ struct venus_format { * @vcodec1_clks: an array of vcodec1 struct clk pointers * @video_path: an interconnect handle to video to/from memory path * @cpucfg_path: an interconnect handle to cpu configuration path + * @llcc_path: an interconnect handle to video to/from llcc path * @pmdomains: a pointer to a list of pmdomains * @opp_pmdomain: an OPP power-domain * @resets: an array of reset signals @@ -189,6 +191,7 @@ struct venus_core { struct clk *vcodec1_clks[VIDC_VCODEC_CLKS_NUM_MAX]; struct icc_path *video_path; struct icc_path *cpucfg_path; + struct icc_path *llcc_path; struct dev_pm_domain_list *pmdomains; struct dev_pm_domain_list *opp_pmdomain; struct reset_control *resets[VIDC_RESETS_NUM_MAX]; diff --git a/drivers/media/platform/qcom/venus/pm_helpers.c b/drivers/media= /platform/qcom/venus/pm_helpers.c index 33a5a659c0ada..3afda28cdfed2 100644 --- a/drivers/media/platform/qcom/venus/pm_helpers.c +++ b/drivers/media/platform/qcom/venus/pm_helpers.c @@ -237,6 +237,9 @@ static int load_scale_bw(struct venus_core *core) dev_dbg(core->dev, VDBGL "total: avg_bw: %u, peak_bw: %u\n", total_avg, total_peak); =20 + if (core->res->has_llcc_path) + icc_set_bw(core->llcc_path, total_avg, total_peak); + return icc_set_bw(core->video_path, total_avg, total_peak); } =20 --=20 2.47.2 From nobody Mon Feb 9 13:24:34 2026 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA2EC2046BD for ; Tue, 4 Mar 2025 13:07:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093639; cv=none; b=iLrA/ZbAwUezg4AZwP5PeJDLMKMeLpv/BT7CA0viowsyslLlE6Hjfnp7OHYrpcW6xIn92iQiqbNyJv//tBW3sy6xdXQNZn7FeCyP3Ln8CUf/EvA3dR/39dSvc9Dhn8uSRVQwE6F1WaGQUiUJpS/oODuzlSZiGk+Mo64+b4qO2HA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093639; c=relaxed/simple; bh=eVAsey3JxdTzcp2dytGoCKkDVWArrUAtGBxSzsk01Zc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JwDt4ZwAukKtjcybUfI8xdNy1t7XJdMMPbFPVZOjJAFZLnv+Yi2Kzm9Ry5y8LydYgzRVjnhH0dWAWvbFHSrUb/EfnwS16vHW7c1WmNHccOAUzJMxnYDmqSKC118OAz91iur6Xdo1J8uUVegChDOfH7S648X8w07YCCd7IDvPb5Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=NLIMuJvg; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NLIMuJvg" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-390f69e71c8so2336431f8f.0 for ; Tue, 04 Mar 2025 05:07:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741093636; x=1741698436; 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=cuQPD4WHO0oVNRv+mxZovyBbMl3mHwOGIxiQAqnpkUE=; b=NLIMuJvgH+cc55I8VqOQYO6oHtM8h5SDDLFlxoZOFgmYOBBKC79kivJqLebm5TH2jY tPju7WC3wlIuNFhE0cAp75EtmRNBiqXNXBhrgg/XdhdzxAPuSZHcgv6EgBbAzR2KiALp OCqX64qZ2wSOwFtdqYXzwIGPZUBIKYvyDnKUv9l1r+xA4ZdTc9X4SYyRmjMezSNBNB4b bmOTk3UO4bX0+Z5f4ukZaCuA2cF/iFr24+p2+9neZimHvWjV7+sY/US+bh0JnhL650jD lQmYfWJajC2CJ+NpWaYi82EAmasWeKM5eZAsEQgrdyI5Hkyopnm9uzS+gY8LJoNxi6MO O5qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741093636; x=1741698436; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cuQPD4WHO0oVNRv+mxZovyBbMl3mHwOGIxiQAqnpkUE=; b=uodHgn9uHL7KmhFywUS4wpzlnvePxmo09l53mimShnsb5jjdzh1AgJBJ5vKLgEOQUd 55mJHDOaaSrIhFU4PSoCg5uTAwKiEzB2YrgTnAOeLxXWW7lKXvxwD5aZDAQK1+I7VYn1 d82+qPOnhnSgH49xR8HyTUFGx9vPrjG16/LVH3tI/Ias2n/s0sfDkrK94JePj/C+6lbM z7T8O0Qpwq/Pq2JG+qJZzjk2T7SZZa6RsG7Ky0y23aeNKjogwjSvNjmgyVXSKBFl7F0J L4Jc2FaoGUwRgCtzwX2+o1Oc3eG/Skaue7ItnydFDnZia/HePGaq2buqHipEWebTWFfv 8vBg== X-Forwarded-Encrypted: i=1; AJvYcCVXGpOk0KQyMlB3SOZUxh+ZEI9lNWBDWZ/7SZkqi/KcTBEaUUigvtKnyswVzyURSd6/diDwp2ksiatyVB0=@vger.kernel.org X-Gm-Message-State: AOJu0Yytv9QFuEI7UI4lqF5fICLbx8r0h6jc8hw31poRNLXFCABI/cdu n4KUEYbbuyMwSxTVvi53m3oBOOqR1t5ttvtA19sBg3mia2kllkeMlcvzd1dVc1I= X-Gm-Gg: ASbGncuza1EO9fj1SW+c7H9dJmOjZugs9zAslcN4v6v9lRfJxKkP/cqdyXo8RfAAxQn H2onBFpNRT2QW7xH5KBYNqjlPyLjz74rYxU0sm4O7OPqbwHP6ibAx0IcfRTcL6T2B8mO2TvdY1H 1tUxMwoVlqmmXlHvECcpVCsj3IY9HFQ88WEU8RZKfpGbuFzqpa7Z1DIkSmBnXJf3a+ImSYU9x2s wW0pgeuS/GhE+2YKgYur+rU0GQDQmzNvbQFtXcTKtcIDqgDKWQQx+Inzb+2g6HmRp1LfPFAE/Ze +hvy+Ml4paPU/qILuit2LtPIH16LVrWG791kJI+I3vetGCXu8jUOiOcRgWYrwgKPTh7Lk+VDJrQ a2JNYgw== X-Google-Smtp-Source: AGHT+IFHR8q/L6pe4BnBXKTY1Ga7eFmSDtcmLdUHWlgfJfHC/2yz9FYNMzKiIzY6WUs6i/rWq/DfjA== X-Received: by 2002:a05:6000:2a81:b0:38f:2c10:da1e with SMTP id ffacd0b85a97d-3911561959fmr1840760f8f.27.1741093636048; Tue, 04 Mar 2025 05:07:16 -0800 (PST) Received: from [127.0.1.1] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390e47b6cd8sm17401715f8f.44.2025.03.04.05.07.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Mar 2025 05:07:15 -0800 (PST) From: Bryan O'Donoghue Date: Tue, 04 Mar 2025 13:07:11 +0000 Subject: [PATCH 5/8] media: venus: core: Add SM8350 resource struct 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: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-5-279c7ea55493@linaro.org> References: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> In-Reply-To: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> To: Stanimir Varbanov , Vikash Garodia , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Bjorn Andersson Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Johan Hovold , Konrad Dybcio X-Mailer: b4 0.15-dev-33ea6 From: Konrad Dybcio Add SM8350 configuration data and related compatible. Signed-off-by: Konrad Dybcio Link: https://lore.kernel.org/r/20230731-topic-8280_venus-v1-5-8c8bbe1983a5= @linaro.org [ johan: rebase on 6.9-rc1; convert vcodec_pmdomains ] Signed-off-by: Johan Hovold [ bod: added static video encoder/decoder desciptors ] Signed-off-by: Bryan O'Donoghue --- drivers/media/platform/qcom/venus/core.c | 41 ++++++++++++++++++++++++++++= ++++ 1 file changed, 41 insertions(+) diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platf= orm/qcom/venus/core.c index 93e5b9e1f70cc..dbce635f9fa45 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -1012,6 +1012,46 @@ static const struct venus_resources sm8250_res =3D { .enc_nodename =3D "video-encoder", }; =20 +static const struct reg_val sm8350_reg_preset[] =3D { + { 0xb0088, 0, 0x11 }, +}; + +static const struct venus_resources sm8350_res =3D { + .freq_tbl =3D sm8250_freq_table, + .freq_tbl_size =3D ARRAY_SIZE(sm8250_freq_table), + .reg_tbl =3D sm8350_reg_preset, + .reg_tbl_size =3D ARRAY_SIZE(sm8350_reg_preset), + .bw_tbl_enc =3D sm8250_bw_table_enc, + .bw_tbl_enc_size =3D ARRAY_SIZE(sm8250_bw_table_enc), + .bw_tbl_dec =3D sm8250_bw_table_dec, + .bw_tbl_dec_size =3D ARRAY_SIZE(sm8250_bw_table_dec), + .clks =3D { "core", "iface" }, + .clks_num =3D 2, + .resets =3D { "core" }, + .resets_num =3D 1, + .vcodec0_clks =3D { "vcodec0_core" }, + .vcodec_clks_num =3D 1, + .vcodec_pmdomains =3D (const char *[]) { "venus", "vcodec0" }, + .vcodec_pmdomains_num =3D 2, + .opp_pmdomain =3D (const char *[]) { "mx", NULL }, + .vcodec_num =3D 1, + .max_load =3D 7833600, /* 7680x4320@60fps */ + .hfi_version =3D HFI_VERSION_6XX, + .vpu_version =3D VPU_VERSION_IRIS2, + .num_vpp_pipes =3D 4, + .vmem_id =3D VIDC_RESOURCE_NONE, + .vmem_size =3D 0, + .vmem_addr =3D 0, + .dma_mask =3D GENMASK(31, 29) - 1, + .cp_start =3D 0, + .cp_size =3D 0x25800000, + .cp_nonpixel_start =3D 0x1000000, + .cp_nonpixel_size =3D 0x24800000, + .fwname =3D "qcom/vpu-2.0/venus.mbn", + .dec_nodename =3D "video-decoder", + .enc_nodename =3D "video-encoder", +}; + static const struct freq_tbl sc7280_freq_table[] =3D { { 0, 460000000 }, { 0, 424000000 }, @@ -1086,6 +1126,7 @@ static const struct of_device_id venus_dt_match[] =3D= { { .compatible =3D "qcom,sc7180-venus", .data =3D &sc7180_res }, { .compatible =3D "qcom,sc7280-venus", .data =3D &sc7280_res }, { .compatible =3D "qcom,sm8250-venus", .data =3D &sm8250_res }, + { .compatible =3D "qcom,sm8350-venus", .data =3D &sm8350_res }, { } }; MODULE_DEVICE_TABLE(of, venus_dt_match); --=20 2.47.2 From nobody Mon Feb 9 13:24:34 2026 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE959204C0A for ; Tue, 4 Mar 2025 13:07:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093641; cv=none; b=lHeDB/Ghd2gfqKqVhF1rL/GGnRUrdmMjEcR+Wga5i/rOSc2bGBJwInvjMfx74ddKNSvI5LGJg0KSLBREgNeRMnFtxsbqaZbcEHElHZHFT0K3sNnvmBTI+TT7og70pNJ1nEOKf4vPIPDn0+BgcZD+UTF6lxt9d6CDHXvxVNEnao4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093641; c=relaxed/simple; bh=IoiH9OQAEf3mXrHzsj+NdNwY3Jf5RojQPu8snsaCHFQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Trk9ZKaEcbJKxUrsB7Hnc22ATu4LDFdLSFwZfqp7Sg7uERCO4BrTlo6kVGank1M7fHq+zmTSbVdFw1e6vBQggqzWz/guSXjcrj6OZPw9frW46vVEZfIkTTTA8TlHb1wp6m1CW+fbEBPT5d1HIB8/+KZUg2Zb+TsQKdcW/D1Tx1Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=jyiqlwbK; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jyiqlwbK" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-43bcc02ca41so5960005e9.0 for ; Tue, 04 Mar 2025 05:07:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741093637; x=1741698437; 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=HN7nnD+hMqlXpSytJ9E50dtqwKHUCkr4EcUs1bwqocs=; b=jyiqlwbK8CPoT5ncAKwY9Dhh7NiDkdry1wVeJdvLYfzJlkw0BUEKuraPckLfQLZsH7 L+XAiWFBhp2gI1Yw7WdckT+Qc4w6MrgmSaH36f3urPgTtAQXsQT+i8AL0OvbEtW/Nj34 G2Dx49YrNWALV8dbKlXgjcW8UpyARMXEs0JgLMB4gw6rwzIYZULvwNrOOEnQvlnwPwaT T1kVdc6SHlMC11HF25Et021TVBHf3kpICaxaGj5AZ08jqNJhYnwfjQQyHwY49DfHrvdl 0LNxWkU+C42AOiO+QeTMsSu9k668m9JTztzvg6HEBBuqtP4NbJxAyFjmTa3+g59x0h63 08xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741093637; x=1741698437; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HN7nnD+hMqlXpSytJ9E50dtqwKHUCkr4EcUs1bwqocs=; b=Nrh+dZjnyx1r80RmSo3VuEybGRyQolI5axnsgO5aGtq9mY7ikJ4Ekf1RBTAIqRL00u 6iqGCiPTQKLXrsqhmUK4/LB98LFrZc/8MdK8OfVgWSY86qhlA/1tHoNxrlk6rjyTslju apJGYzdgyZRowrlPwU6JFJf9z9cCXFEUSoGyInyKAFM5DcT2KMPL9/bIepiQeYu6N2b2 y8Ss7TsR40PeN9vR6WmWl2p7i1ohUl1/cWBkTeJOBQUSd5eYd7NBpVz4GzYmjYv7oQu/ oZFVgRlP2mKcGNmrqwYKyIoCN/A1kTaNV2TD3DjpJdk79jhGlEbEbE6jeIsAhVDbmR3V 0PWQ== X-Forwarded-Encrypted: i=1; AJvYcCXsY298DAT+diSIi3nu5fBNLlw021U8Ij2xMLXzPlcTvwmw3mHFq3G7VYfUIS4VFRoGB1vhHyjgyjJmaTA=@vger.kernel.org X-Gm-Message-State: AOJu0YyHAR3OImlh4Bfr870FDIdK3ARzOE6coCxuwoS590L0xVMpba7E teuuVHImavaMH3a6GsHRsEp9nued5Gw+I13AGyjLQOxBmc1caVYZ/Qw4rDL9XCQ= X-Gm-Gg: ASbGncvZtonIfOqHK05GOgdyI5d1J+aJ/F/9/sxiWP003U3RyTzkQvFKXTaw37INnGv b/Gw4drRzIqsK9VtNYzI6JHUlo6wwFG3TIHWNpUYjUZ9Mxhk7mUROEU4C6S2CiqZypEVdx0WaGj GUGKMD2XFWlJv1htMzJ0A/GbDQaX5q2SyEZVX4ExctwYhWOw3ftTYliehB7wsZ+9z5/8VqxYyvA Uubdzy9I/LPsJl7vK2SrZvb+uSHmPjSR4P9FddEd9o2FWqodiDpRoeEjrDwCbOckIZlhTVPCfaO X/qY/OKvs+EYJIbqARNozOyodnmIM53Qs0V4ixDI5uKTpzvjPI8fRrsk27ISPEX0dGAXQN5toMC fEx+LkQ== X-Google-Smtp-Source: AGHT+IE3DuQ06O0EnwZraoN4Izgb+nThp2nxKKlJ9gEJ3NSSMpW+apKTyi1H7hUDREkQwtXTLJ8z3A== X-Received: by 2002:a5d:47c9:0:b0:391:1473:336a with SMTP id ffacd0b85a97d-391147333f7mr3080494f8f.36.1741093637175; Tue, 04 Mar 2025 05:07:17 -0800 (PST) Received: from [127.0.1.1] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390e47b6cd8sm17401715f8f.44.2025.03.04.05.07.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Mar 2025 05:07:16 -0800 (PST) From: Bryan O'Donoghue Date: Tue, 04 Mar 2025 13:07:12 +0000 Subject: [PATCH 6/8] media: venus: core: Add SC8280XP resource struct 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: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-6-279c7ea55493@linaro.org> References: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> In-Reply-To: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> To: Stanimir Varbanov , Vikash Garodia , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Bjorn Andersson Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Johan Hovold , Konrad Dybcio X-Mailer: b4 0.15-dev-33ea6 From: Konrad Dybcio Add SC8280XP configuration data and related compatible. Signed-off-by: Konrad Dybcio Reviewed-by: Bryan O'Donoghue Link: https://lore.kernel.org/r/20230731-topic-8280_venus-v1-6-8c8bbe1983a5= @linaro.org [ johan: rebase on 6.9-rc1; convert vcodec_pmdomains ] Signed-off-by: Johan Hovold [ bod: added static video encoder/decoder desciptors ] Signed-off-by: Bryan O'Donoghue --- drivers/media/platform/qcom/venus/core.c | 47 ++++++++++++++++++++++++++++= ++++ 1 file changed, 47 insertions(+) diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platf= orm/qcom/venus/core.c index dbce635f9fa45..3d23a5919462d 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -1116,6 +1116,52 @@ static const struct venus_resources sc7280_res =3D { .enc_nodename =3D "video-encoder", }; =20 +static const struct freq_tbl sc8280xp_freq_table[] =3D { + { 0, 239999999 }, + { 0, 338000000 }, + { 0, 366000000 }, + { 0, 444000000 }, + { 0, 533000000 }, + { 0, 560000000 }, +}; + +static const struct venus_resources sc8280xp_res =3D { + .freq_tbl =3D sc8280xp_freq_table, + .freq_tbl_size =3D ARRAY_SIZE(sc8280xp_freq_table), + .reg_tbl =3D sm8350_reg_preset, + .reg_tbl_size =3D ARRAY_SIZE(sm8350_reg_preset), + .bw_tbl_enc =3D sm8250_bw_table_enc, + .bw_tbl_enc_size =3D ARRAY_SIZE(sm8250_bw_table_enc), + .bw_tbl_dec =3D sm8250_bw_table_dec, + .bw_tbl_dec_size =3D ARRAY_SIZE(sm8250_bw_table_dec), + .clks =3D { "core", "iface" }, + .clks_num =3D 2, + .resets =3D { "core" }, + .resets_num =3D 1, + .vcodec0_clks =3D { "vcodec0_core" }, + .vcodec_clks_num =3D 1, + .vcodec_pmdomains =3D (const char *[]) { "venus", "vcodec0" }, + .vcodec_pmdomains_num =3D 2, + .opp_pmdomain =3D (const char *[]) { "mx", NULL }, + .vcodec_num =3D 1, + .max_load =3D 7833600, /* 7680x4320@60fps */ + .hfi_version =3D HFI_VERSION_6XX, + .vpu_version =3D VPU_VERSION_IRIS2, + .num_vpp_pipes =3D 4, + .vmem_id =3D VIDC_RESOURCE_NONE, + .vmem_size =3D 0, + .vmem_addr =3D 0, + .dma_mask =3D GENMASK(31, 29) - 1, + .cp_start =3D 0, + .cp_size =3D 0x25800000, + .cp_nonpixel_start =3D 0x1000000, + .cp_nonpixel_size =3D 0x24800000, + .fwname =3D "qcom/vpu-2.0/venus.mbn", + .dec_nodename =3D "video-decoder", + .enc_nodename =3D "video-encoder", +}; + + static const struct of_device_id venus_dt_match[] =3D { { .compatible =3D "qcom,msm8916-venus", .data =3D &msm8916_res }, { .compatible =3D "qcom,msm8996-venus", .data =3D &msm8996_res }, @@ -1125,6 +1171,7 @@ static const struct of_device_id venus_dt_match[] =3D= { { .compatible =3D "qcom,sdm845-venus-v2", .data =3D &sdm845_res_v2 }, { .compatible =3D "qcom,sc7180-venus", .data =3D &sc7180_res }, { .compatible =3D "qcom,sc7280-venus", .data =3D &sc7280_res }, + { .compatible =3D "qcom,sc8280xp-venus", .data =3D &sc8280xp_res }, { .compatible =3D "qcom,sm8250-venus", .data =3D &sm8250_res }, { .compatible =3D "qcom,sm8350-venus", .data =3D &sm8350_res }, { } --=20 2.47.2 From nobody Mon Feb 9 13:24:34 2026 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E257204F7D for ; Tue, 4 Mar 2025 13:07:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093642; cv=none; b=YTk8Hd9OC2FFVHdLdbi61gKQ4VWEA8/qJWvGZM02juv99PELm9yv8h8l+QWokuyfFEmrSO0mTo9XxVswl1CKhExizZA2JeJAcdL2CxrU+YtNUHaahxFxTzxhA39PZ8/6BFJgdW0TdSjdo0WZzyUazVZW03pcfzdELsQvur2TakQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093642; c=relaxed/simple; bh=TO/kj9+lLvHOlw6v676cGN2X1xrQoQT6nqKUEG+rBfQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=l54M6qJbrOBuT/8PpNe9UPNE4MeiG7bmSuuCaCiWAdo97opf76XBkpbOYrLja8SDO3JdhN/qubhXXOzv9oGTC/0bkeKhk8xOAwsJuXIO7L66e6R9tUpSO00HI/GHupOvyCODIzWDEGMI3EZ3mnd06ZhLqmrsiKb6d6yrq2awXfM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=cgSO9gDL; arc=none smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cgSO9gDL" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-390ddf037ffso2995779f8f.2 for ; Tue, 04 Mar 2025 05:07:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741093638; x=1741698438; 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=Nln3oiv+wCOohYzCVrwCh2whMM1hc+Xd6ZxmtYAIQvg=; b=cgSO9gDL58k48jBjDE95W+iYW0KzS5IzZeNEu8aL+9n2oco07ik71yP7/qggFASjl5 ANJAsKmzBFeMLuqPFu2NBBB3Xsi9v3h3VV99/miXN2AFR4Vkyo+A+8CcI1rTEzIBgZO7 ApqNmSwu/JQ3pmLT+Df2IYxuy64L9NfUveC7Eij+qK2zP5Zyvo3AYd/CEPc4Q0zkefjW mQaoQYuGMJqzLEytMjdD/Tpc9gM/kAqx8bJRpHrKrgTwtI3293DNyh7M7YWVLNi1sjkJ C1hrU9QhF48EK8BP2cch5mE53Fmrx3IrcQxguMx7O8h7RZjNNVjTtkBX8CfARRRuxS66 cKLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741093638; x=1741698438; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Nln3oiv+wCOohYzCVrwCh2whMM1hc+Xd6ZxmtYAIQvg=; b=eRMpaaBYTO8uQE7ZtzND4eRy1Nx9gQ1rI4ng+x6u87xM9Ghu6nlziB6fV3waslmVfU X8atgHoYANKT2f6DK0bejt7eYw5nrZOosB+84n46eczEI0IBzOVlofxUUg8tjKxH3JFY X6+1N5xTztnFPOxS3UgDJL+cPz92EGLiYZI4UR1ahKEQPPTcMVH00FhIghJLIE9mVVQ3 9SBkKBs1So2/7onsJ0Zs5z8gdXw2rVenntl2twXic5kUNohA0DOJ9wS4C/cW6yuC3aZU v60Na0yE3Q41+VoWvwEurPiqMLlmXtGQK6hsCu+lPpWvMF2BPBfasfsvj/wVMGHK3WEA I7Pw== X-Forwarded-Encrypted: i=1; AJvYcCWya4EbqTzpmxLKjMWJ3mZajOYVYKw9eNQ98bTKyFwQusmhBtvf2Te3HCFkplCPII6UL1IWRl3ocrq17As=@vger.kernel.org X-Gm-Message-State: AOJu0Yxi5NM2xg4WGKtY9eIZj8ha4kjQ5lsAAziQYvj0pAuADwrcIYor YIJa6vtqbrYm+mxOTiffdnjsf0pY1hZIeaHGCzfR/Q3cLeqrWN8crJ7UYbWe7ClRkS4L4lCRy1n e X-Gm-Gg: ASbGnct+J7psC82zzvF8j3c3kLj7yG/zhX9DucEroxdKB3TQ49Aa73BhvCj8KsyDYA/ JkFlB1FZFzBv+8H3haZHoFrYrFJ4oQ4OyKOi/IYAN+s9JsCXsoiTZ2RgVvqLl/LZZw78Ss/GW2q nxHeALhcfadJsZbvA62Q4pesNH85QHGwbxAHF39bxaxMoaWoZu081ngk56dXQ9/PMIY2y1qSB3P ujG6dLbPW7h2KnzBRtmrgCOf2EfOQw8cLM6DwtCuPmEZMYLqyz+3pnucObBGhYcKqk16izJYhni eI33N3ohFpJOBxSTnhnej8V2bnisrvHMY2mwOZfGg2khF+IOvBmEWSmRMGQ/NUM1qYZGbmZAyfz nxZY/IQ== X-Google-Smtp-Source: AGHT+IGpTFcm31h9EpuPbAm3YUIJaoJyD95IH89so3fYUNBg2B1J+FhEDae5gGh7l1PFPh0SPC0Ycg== X-Received: by 2002:a5d:6da3:0:b0:390:e85b:a8ee with SMTP id ffacd0b85a97d-390ec7c6a2fmr13832592f8f.1.1741093638590; Tue, 04 Mar 2025 05:07:18 -0800 (PST) Received: from [127.0.1.1] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390e47b6cd8sm17401715f8f.44.2025.03.04.05.07.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Mar 2025 05:07:18 -0800 (PST) From: Bryan O'Donoghue Date: Tue, 04 Mar 2025 13:07:13 +0000 Subject: [PATCH 7/8] arm64: dts: qcom: sc8280xp: Add Venus 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: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-7-279c7ea55493@linaro.org> References: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> In-Reply-To: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> To: Stanimir Varbanov , Vikash Garodia , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Bjorn Andersson Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Johan Hovold , Konrad Dybcio X-Mailer: b4 0.15-dev-33ea6 From: Konrad Dybcio Add the required nodes to enable Venus on sc8280xp. Signed-off-by: Konrad Dybcio [ johan: use sm8350 videocc defines ] Signed-off-by: Johan Hovold [ bod: dropped video encoder/decoder declarations ] [ bod: added interconnect tags ] Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 82 ++++++++++++++++++++++++++++++= ++++ 1 file changed, 82 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/q= com/sc8280xp.dtsi index 01501acb1790a..fe8aa24d5d51e 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -10,6 +10,8 @@ #include #include #include +#include +#include #include #include #include @@ -690,6 +692,11 @@ reserved-region@85b00000 { no-map; }; =20 + pil_video_mem: pil_video_region@86700000 { + reg =3D <0 0x86700000 0 0x500000>; + no-map; + }; + pil_adsp_mem: adsp-region@86c00000 { reg =3D <0 0x86c00000 0 0x2000000>; no-map; @@ -3699,6 +3706,81 @@ usb_1_dwc3_ss: endpoint { }; }; =20 + venus: video-codec@aa00000 { + compatible =3D "qcom,sm8350-venus"; + reg =3D <0 0x0aa00000 0 0x100000>; + interrupts =3D ; + + clocks =3D <&gcc GCC_VIDEO_AXI0_CLK>, + <&videocc VIDEO_CC_MVS0C_CLK>, + <&videocc VIDEO_CC_MVS0_CLK>; + clock-names =3D "iface", + "core", + "vcodec0_core"; + power-domains =3D <&videocc MVS0C_GDSC>, + <&videocc MVS0_GDSC>, + <&rpmhpd SC8280XP_MX>; + power-domain-names =3D "venus", + "vcodec0", + "mx"; + + resets =3D <&gcc GCC_VIDEO_AXI0_CLK_ARES>; + reset-names =3D "core"; + + interconnects =3D <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY + &config_noc SLAVE_VENUS_CFG QCOM_ICC_TAG_ACTIVE_ONLY>, + <&mmss_noc MASTER_VIDEO_P0 QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, + <&mmss_noc MASTER_VIDEO_P0 QCOM_ICC_TAG_ALWAYS + &gem_noc SLAVE_LLCC QCOM_ICC_TAG_ALWAYS>; + interconnect-names =3D "cpu-cfg", + "video-mem", + "video-llcc"; + + operating-points-v2 =3D <&venus_opp_table>; + iommus =3D <&apps_smmu 0x2e00 0x400>; + memory-region =3D <&pil_video_mem>; + + status =3D "disabled"; + + venus_opp_table: opp-table { + compatible =3D "operating-points-v2"; + + opp-720000000 { + opp-hz =3D /bits/ 64 <720000000>; + required-opps =3D <&rpmhpd_opp_low_svs>; + }; + + opp-1014000000 { + opp-hz =3D /bits/ 64 <1014000000>; + required-opps =3D <&rpmhpd_opp_svs>; + }; + + opp-1098000000 { + opp-hz =3D /bits/ 64 <1098000000>; + required-opps =3D <&rpmhpd_opp_svs_l1>; + }; + + opp-1332000000 { + opp-hz =3D /bits/ 64 <1332000000>; + required-opps =3D <&rpmhpd_opp_nom>; + }; + }; + }; + + videocc: clock-controller@abf0000 { + compatible =3D "qcom,sc8280xp-videocc"; + reg =3D <0 0x0abf0000 0 0x10000>; + clocks =3D <&rpmhcc RPMH_CXO_CLK>, + <&rpmhcc RPMH_CXO_CLK_A>, + <&sleep_clk>; + power-domains =3D <&rpmhpd SC8280XP_MMCX>; + required-opps =3D <&rpmhpd_opp_low_svs>; + #clock-cells =3D <1>; + #reset-cells =3D <1>; + #power-domain-cells =3D <1>; + }; + cci0: cci@ac4a000 { compatible =3D "qcom,sc8280xp-cci", "qcom,msm8996-cci"; reg =3D <0 0x0ac4a000 0 0x1000>; --=20 2.47.2 From nobody Mon Feb 9 13:24:34 2026 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8142E20551A for ; Tue, 4 Mar 2025 13:07:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093643; cv=none; b=on8ZdC13GMAV6qqmVdA1HxeABNtb/g1d3f8eTB7VUTQMmzfMuF/rJJUDndtyza0I9UwLq9+BTQCIko9h1X6IjOpr2wAJ/Nmw7F4eB+et3KkFQwX+3ysiahVU/BCkJbBtU/CN68ODU3e2QmNeA8O8X6B2tjdykzquwLNCzF/4iRk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093643; c=relaxed/simple; bh=hbTVezICqr8e2a2ELXb8vmVSM+zmKLpGBJ8kAi4wDWg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cyxvKBfejC5zzFG2KwvPTc0gK6aKgmMV9ZLBTYfT7hsr/++SqE0EZ5CB7DBrFA3F89rVqtSDMTOqvDaSUlK6VChTUDnnSurP5v0sZopZD7AhWbOuvnQrUXNlPMmHKZb0chdGJ1f4HUeUokdp4gKJAdgLOkpfjuGG7VjdduPsdj0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tZTujuxP; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tZTujuxP" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4393dc02b78so36194345e9.3 for ; Tue, 04 Mar 2025 05:07:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741093640; x=1741698440; 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=0sMLvCT1fnTWe+fQQZYyr06r8CMaLxKRmrVcKoI1NIQ=; b=tZTujuxPDg2GNgl1jcs1IhE7wLC4TNKfyI0C5rE9aBY7nF7r23ql5s22CPO2b1GTIY 1SpJ3jEtI7kG842OfqgYsFZoX6+4hErHw28dw75EtCTH7FfrjPsmqhoU6MsixhW9gcX9 zhA3bcUHoV1p3EAEaLMMD+V77FHr4k/nTHd4f7CYyLNPoYDWajUQ0JAbjsggkExNVIIF tCnO+x+wRgrZOt3QptBx2igALb3RY7wk7LYCTeP9kQle831yO18y7P75VJwP7trH6vZR 14mqh8e6Jl+b/mH6SItHvuPLT/d9H0Gok+Q7/lozlQGno8IupClXclvlvbRSoNj5k7Q0 wobw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741093640; x=1741698440; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0sMLvCT1fnTWe+fQQZYyr06r8CMaLxKRmrVcKoI1NIQ=; b=aZRkiQVd3N7yHUcvwMglePCYxEZFKMBo0kWvz5SD6WJLBmySoqIEk9AtOXpbbydwfs N6IO0l1EuCtSKZiiDHl/0tQ9jecH1E3CPczDn3Fx+SPXOa5X6GUqg5ADVgkgOEyByPtC j3rXZzHOWt1h7Gi8wa3olyfJuO0PTPSEO8RSOOij6haAzNQrL+UYjD4FbDIFcju9wSVB QM80DZQGuoyh6LQXmPuCUvv8RSaAbxaL6J4/R5ZGkiLafgYlTpRnXKn4NrudLs6EYEch EDu7X01U4WTRc98A3VP2cCqXXUWGICVd+pfI50l/jEWPxJSDfQe8O3Ydjz6jJorNqJYa SNNw== X-Forwarded-Encrypted: i=1; AJvYcCV3l3GFIw8j8zyoahn4RnK0af1zqHm+85MlbS2ZgIupu90i6/lFScQHIJDQIpLd6Elk5AABseGSas3wdu0=@vger.kernel.org X-Gm-Message-State: AOJu0YzN2U/OTMQPnVFhpQjZ1IxRTQAEarXXshU8pvKLFxFyZvnn6u6W d2l+HecZrbgrqClCKcTsODpg+n+XYv/z1r7qtURLa8QCyBzaTMlqwdxb6+JtK3k= X-Gm-Gg: ASbGncsHvRRcy3h520RpUAnvZWXMoASGFauEPhlEP8m1oaOIcOlevLRibm/kg4x3psB hjr+avURFW3EBpMofqCS5XCQClB6ny/3AiG0ibwwFdFAaG++Iiaub2/zcxYzEefsMQH/FKZp98O ve6ZZK/ySk9dLTlOeQ7Lj8nmVEIDpG+gq70KupUccKYb7aTmOsTnLf2gr8LGRPNZ0z/oCFqDAb6 zxC9pMFPEm2uJWjluHptZqN1tRnvU24uNbKEcaOYWoaFelbze8hXPamhSNqduH/G59JFfxOuy6y vK9ups1xaXOTEwqet3Cx3R92IUUSXDanyM8mDjeAk9/+YtIK2mlICkwWnshNX559rlXJbXzsWnR EocExNA== X-Google-Smtp-Source: AGHT+IG7Hqk+59fncwqRhoiQZI0qgVNSHDtmwiVCCcb9ZVYfhmFpPhJTWaXXdGtM/0s4DaDuW44HFQ== X-Received: by 2002:a05:6000:1789:b0:391:ab2:9e80 with SMTP id ffacd0b85a97d-3910ab2a206mr6605504f8f.24.1741093639862; Tue, 04 Mar 2025 05:07:19 -0800 (PST) Received: from [127.0.1.1] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390e47b6cd8sm17401715f8f.44.2025.03.04.05.07.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Mar 2025 05:07:19 -0800 (PST) From: Bryan O'Donoghue Date: Tue, 04 Mar 2025 13:07:14 +0000 Subject: [PATCH 8/8] arm64: dts: qcom: sc8280xp-x13s: Enable Venus 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: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-8-279c7ea55493@linaro.org> References: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> In-Reply-To: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> To: Stanimir Varbanov , Vikash Garodia , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Bjorn Andersson Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Johan Hovold , Konrad Dybcio X-Mailer: b4 0.15-dev-33ea6 From: Konrad Dybcio Enable Venus and point the driver to the correct firmware file. Signed-off-by: Konrad Dybcio Signed-off-by: Johan Hovold Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/a= rch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index f3190f408f4b2..d4c53845eebb7 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -1477,6 +1477,11 @@ &vamacro { status =3D "okay"; }; =20 +&venus { + firmware-name =3D "qcom/sc8280xp/LENOVO/21BX/qcvss8280.mbn"; + status =3D "okay"; +}; + &wsamacro { status =3D "okay"; }; --=20 2.47.2