From patchwork Tue Sep 7 09:49:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 508135 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44D56C433F5 for ; Tue, 7 Sep 2021 09:52:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2DB336105A for ; Tue, 7 Sep 2021 09:52:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244885AbhIGJxW (ORCPT ); Tue, 7 Sep 2021 05:53:22 -0400 Received: from mail-vi1eur05on2066.outbound.protection.outlook.com ([40.107.21.66]:32225 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S243810AbhIGJw7 (ORCPT ); Tue, 7 Sep 2021 05:52:59 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lrls+0lWTGrAZ0at7wRRDnJNNU69/ArWY8vfWLkTJ2ZK3H2qFByr9RyWNN+y0lu5Q0iHF3TD2xJ1lwTGHkZdlrjq1uvjJce9z+JfZ7ruYkDov8WixjU/aw5PDmvKw5kf8jZPgrPQdwO8y2mnkj+UA8h4YjfN/INxJWmlr6Fi5cYMsUfdA94N6H4QwfaaM7iQPtPaRdms4Zp2IHImClilQhb1UvYfgv8OGBPO4yntkJP0Ia9vRBc7EqwaQXZSTiWj78796AXbSOQ964Wjd9IHWkx337CW5HCCYZPpbKrew8qiSl17x92u0wa8q6Iu2HuazlKMnTOwU75gdAigXyScgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=CphCoXulIFGtU2AEB4KsSkyW/W7RFji+tc3255MclSo=; b=Ful9+OHG9KSA5XUdvA/PrwWgKSr4Duh+7qYdSbphio7nedS06rAJd9TAxAgHh9l5c9Dx/bkUHLlRvcbiH7d9eaKcUARFqPx9oisBOJJgDIT0Q6dGNKFv7FJXQVsmf7ZeG2WtCywdsHsfvaSKNio3nD/yznGCZvj3hnYvIaXprbzfchX4YDdBLVBR49KkP4XiO56BDcpqSVGnLxcStXyqE74LhNmoPjXloFJHxovltFZ6NftlY9wIsatkle2cQIXt9eBEhh6mgp90VLg5qM4raSLEHi1qb0yFNd5kXPSxq1ueqG5iGafarrt0BBucqHvAGwW+PpoK5aXcZoa8OxN02A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CphCoXulIFGtU2AEB4KsSkyW/W7RFji+tc3255MclSo=; b=P9Vm5qnOVBldROWdX02PX08G0TqXKlMmz8lk0dYrBlziP0XLXQzIzbo7+Pi1W7hmFI28weJDtkajMGbGlSpDLLamUz+2Qtbe6Pj2i6lPvbJUxPL0ni8fN4g/ZQ6+bQpxit+s5TTHvOpgV1EG14onEGefDdJ+7FtQ9xMlHfS+EIk= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by AM5PR0402MB2772.eurprd04.prod.outlook.com (2603:10a6:203:99::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.21; Tue, 7 Sep 2021 09:50:47 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::998c:7f25:6d75:d5f4]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::998c:7f25:6d75:d5f4%7]) with mapi id 15.20.4478.025; Tue, 7 Sep 2021 09:50:47 +0000 From: Ming Qian To: mchehab@kernel.org, shawnguo@kernel.org, robh+dt@kernel.org, s.hauer@pengutronix.de Cc: hverkuil-cisco@xs4all.nl, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, aisheng.dong@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v8 14/15] firmware: imx: scu-pd: imx8q: add vpu mu resources Date: Tue, 7 Sep 2021 17:49:21 +0800 Message-Id: <1218d5aae916a78f824de89330e4b012deac5156.1631002447.git.ming.qian@nxp.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: X-ClientProxiedBy: SG2PR02CA0097.apcprd02.prod.outlook.com (2603:1096:4:92::13) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from lsv11149.swis.cn-sha01.nxp.com (119.31.174.70) by SG2PR02CA0097.apcprd02.prod.outlook.com (2603:1096:4:92::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.19 via Frontend Transport; Tue, 7 Sep 2021 09:50:43 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fcd48198-963e-4de8-7649-08d971e4f7aa X-MS-TrafficTypeDiagnostic: AM5PR0402MB2772: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1201; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9yxI4Szaa+Nhb+MljjqQripf6vx54oQn7P2mXC+KYC1brshwXdIy7k15U7KDKZ+p17Nbj5kCGzLXB8zBsdtJiTjEiQ0FwZX7Ix0POHlp9anXHIwDsYUVmtvOTu2wy4JS8IjT6k38Ej8KDlupuH6+laJPjQCCoLN9fyjS0MFeET00V8xVYs7nxi+q4Yhao9m0aV4Us5CZHq1KZHJd92W9CVngmRVFsrcbYDowA/CKiaGB11/fDeye8lquFZuNodkzu3NjpskzlpqGVW4iR1fXN52JeaYYbBWfCI8OaJB8rxAodHkmax602Dv5nsKJkMTpdgpf5ZIeq4iJX6Ben5zuja+YJQF2r+rdDamb1+2Vn/UVTLvZ/20mfW1cRMLuq6LDxu9vOgRr+UJsUo0hAL9jtWPzRPX7pS/dbmZgccSLgCstL06LQY1mQqdS7lfY08wqGdQ+7fSZbPLMmrdp18mw+yuxhkpPjIcuahlmJL1Jlj3QTxoh9g86z3loRaB3ZY35RZ+7BWuv/hJoqqHLMsTOmGEIX58H19v0Tjhd46n/CFD3hNpLdQbQyZ7fsGyd8PobxvvTslpY3jj2Z8dqlkHkXz+X7xMC2GyWRDK1pbWbGaLglMKkwdseZLUowKbDhJ7g2XzQKN6rhTg2yHOjSm/sGlYBaZpxKdmfdm2gnymwEBwu1NwnvEEMkqjtzwD3ajCQMBDdswzpbqb4RSrVvdfZmqiQhdLJcqdSDhj7YcdqmmM= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB6341.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(39860400002)(346002)(396003)(376002)(7696005)(52116002)(6666004)(66476007)(66556008)(44832011)(2616005)(86362001)(8676002)(66946007)(4744005)(956004)(26005)(38350700002)(38100700002)(6486002)(4326008)(8936002)(186003)(36756003)(316002)(478600001)(7416002)(2906002)(5660300002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +bdBOAi0ggcedu37/Gup0uKDoLp27L2PfIrEcoNzbCVyxJwYygjIou5Eoivh4kpSb+4uwSg6NXnk5JJuG4UhocROeViFGE0N6K3Iz2Ukya6q/VjzxI8Y3Jb1xJ6FRumlJip6dwDG8zJmT4SRVfM1R5q4ORryEDc8gNOLYfPjHmA/CnrNkrSteX4rdK+BijXFJGlKaVcMPF0bzPc4ntsocmcD6A3WZ7JVtbtC/GeDHA3RcmDPaz9oqJNdSMztfsMiU0fkBsqbrNo3SlLOXc8QGt/5Cq8/QtZZlypq3eThEt8OlnJ4LrOX6iYgQSE2IgXV0AoKJ8SmIt6vH8UC5b7aSeluJNpXM1Pu48n6egn4J76zHbXSq0e7LNC9wG3WNbPGX9uZBjOtmV5K/DgVSUDZ2a4NH7L3fX9tqdSTl4buaocluTSJulqH1g4ylnrqY8SYYPNxYxUekFjvrSt8NExCxFQn+RAAskERMpEuMnbALG0YfMM/SrTW2psx2c52yNkKwzK4W1HtBIZaygCxyEeZlbNzZLhTUX1sZ0Uv2VjNpYC4OO0Whr/dwi89anqqJQxRlrG4e2Mdf/Cke7Y/QUFtc/Vr+2F+nxPCp4B0/gqV4oHFBLc4uU7hNJsz91qWo6a25JWczVOCHm7NpxFEBamcR692I2HFMPrpOVGxLfrGYB1M0PH1N5Y1lXGFyQY86k1IKHRWH12KD89+nbtgAbvSCfhkb3daL7+UC7D+elMsQylCzXQea68aQjvhbSscpNbpjzKzCZnDe3mzWGWX1InCuoTsKJRlaOS0or1PygtIWGTRZpCXS9DrL5G9Xm+HDFrQfCGXFSWjNeaYiGglTCWxvE/Xd3Q7P+80Ey7bwzhZB1O61eeXVotN5+xA2Co0BHugDZeGObB43Gcv2a6xwLUneQT662pRfNTzVSOD5X2MAdfIZ1Z1r+fFD6d40kgKog0RY4NsilBLWaxEXmNJ4z9LWoSsI+vqW1TQ63w92huDk3nqUHIpkxaKZiXHX+CvlGzWPp4Ya9ww/Sk0Xbcla9W0ngpZAxr2uSDo1VOBWPC0gwU9lvnDVmSc+SklA6ddQ5aWJXZlrK7XGsHTm/uOLDhuJldoKFU6rMWh7ATGWvhZD84KTgxthZ+YiPW2qnPnNgiQgC9eu0NxnVgVWCkFzrrsRWa6Y+2W4ExpDhUYSi4GQ+bmGIoDVXcQKpo1Ar+s8FXq9j8Eo+oUv54lQOyPKxAWXzkwDG18VKJcxMhMDxI+amGtSNIQwDUmH0iuxHSP4M5IgFBbSTkaJnLNxjuaNT5RLvpc1q5GMC5AiSOwYpcQc/Kz/vxFus78Sc/7EvNzrHgS X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fcd48198-963e-4de8-7649-08d971e4f7aa X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2021 09:50:47.4380 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: GBXq5+53uceC9v7y6Cs1dwS9+WCYnlOrCeDb3ij46omdRtYNxb2e8zLh0/G0I09mw6V/14rbCXZuoowO7ExZ2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0402MB2772 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org the vpu core depends on the mu resources. if they're missed, the vpu can't work. Signed-off-by: Ming Qian Signed-off-by: Shijie Qin Signed-off-by: Zhou Peng --- drivers/firmware/imx/scu-pd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/firmware/imx/scu-pd.c b/drivers/firmware/imx/scu-pd.c index ff6569c4a53b..af3d057e6421 100644 --- a/drivers/firmware/imx/scu-pd.c +++ b/drivers/firmware/imx/scu-pd.c @@ -155,6 +155,10 @@ static const struct imx_sc_pd_range imx8qxp_scu_pd_ranges[] = { { "vpu-pid", IMX_SC_R_VPU_PID0, 8, true, 0 }, { "vpu-dec0", IMX_SC_R_VPU_DEC_0, 1, false, 0 }, { "vpu-enc0", IMX_SC_R_VPU_ENC_0, 1, false, 0 }, + { "vpu-enc1", IMX_SC_R_VPU_ENC_1, 1, false, 0 }, + { "vpu-mu0", IMX_SC_R_VPU_MU_0, 1, false, 0 }, + { "vpu-mu1", IMX_SC_R_VPU_MU_1, 1, false, 0 }, + { "vpu-mu2", IMX_SC_R_VPU_MU_2, 1, false, 0 }, /* GPU SS */ { "gpu0-pid", IMX_SC_R_GPU_0_PID0, 4, true, 0 },