Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2607389pxu; Mon, 14 Dec 2020 06:45:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzahHn2QTt3PKm5tLsegHwoOFwSvLeY4GBxfkP//five2R5BeLjnE7eB0KTgr08Uv4pXZfO X-Received: by 2002:aa7:c886:: with SMTP id p6mr25700457eds.352.1607957137190; Mon, 14 Dec 2020 06:45:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1607957137; cv=pass; d=google.com; s=arc-20160816; b=rC61ldYCkHb22Ukrxa0Ixo0xkUuvqeO3VN4aMN+h+6FT90BCccpwxKFbeKT4QoIf+D N7yt9POPXUfdiuB8r1wiswsf3wCnoUtX4YxTcBAkQt/HYNPNjhfbShBtXAj42GWxjnHG T+3kHS6Ch5kEomwZQqiIR39dx7ucBj/ss5rdWk/H9nLUyHycoBkFy0oU7LRh2jbeCdDL tYkggC7K4+mPa0Ts4ANiUIiLz1R3EXVISCGtdKzJ3F/QiCfo7KSCPI3TK4zRsI+OemHL X4JAtUEGEp5vk/MXODKh0oj1hr7NaLUFEW5UjQsycvcWh/adhT3YiZBOwoY9bszk7V1Q eXeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:envelope-to:dkim-signature; bh=d3ujDSO41om9HsHayhgErc8sUDKTHv3g/izaDpbkZqY=; b=TpNnPBl3h1azEhtIkLqPEBPH5Cnw4ykTCHAjwMyJIaga+BeqR5vmQqseajUmTRLHrb 0LNTPOfYq9Pml1/oWeSFexV8CRrfPd5o5wb4guBuFwRDHtRq7fQX+qddw6SEpy1Req5e CYJQP5VLFNnuaV8YgEkqbh2zQ8pHlWuD1G6ecyhBRUtv4fvv2ZpGFObFSOKBFjFFWY/C Pv2WC30M4YHcsw7ejwe/AMDMTqAEEKYcZrZEgPXcR/tAIcj436fMB2CikWPdG83JyZ4n TJb1EOSC/IRktaAkdiz0AWsAjBS5A0cfFO9x2owsK4uSmXHt4bkJKzVt6iQpg93Nx8bu od7w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=YzkZzkvv; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m6si7309385edr.532.2020.12.14.06.45.13; Mon, 14 Dec 2020 06:45:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=YzkZzkvv; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438762AbgLNLx0 (ORCPT + 99 others); Mon, 14 Dec 2020 06:53:26 -0500 Received: from mail-bn8nam11on2046.outbound.protection.outlook.com ([40.107.236.46]:16759 "EHLO NAM11-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2438295AbgLNLx0 (ORCPT ); Mon, 14 Dec 2020 06:53:26 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J+XnOoZkZKl/AD26avVmnpzn7g+kxSsed+wPh2VKJ5lByXmy8APNIKJsWS3uMoYP8IYPnAcQ3dSbNpYgfuC5HxQGxpWdJZQ8Sv0/4AglXO6OpGNrCybCXAtw3suIsGLP6iQHZIXZe3ZF/07jgHOowHq5+F6yzkvBsEMGUXzq8FnwD98dvC5nVKQ8+OplSWI5iTjqVEM2bzccNEfEvg9yb37PojqBSfGtpzWrQTabuU5dh4Rx3XnUJVSrHLi9UWZHmBaUaxiEucnuTvD4L8lM/P/8e98hAgCNT//Dc07WWfYAC7egTzQJu4301iXJiWhsyX8g7Goq/9eXBkqFJd2CiQ== 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:X-MS-Exchange-SenderADCheck; bh=d3ujDSO41om9HsHayhgErc8sUDKTHv3g/izaDpbkZqY=; b=Wa7s5jJQYk1S1/s8/jvi2iWJQGE9dr4kWEe08UnkDqx06k1vlFwlWkQUDGQ+3h0fJn3fqt0EifiHFzgnKri5D65m7qfFMqgILBRN8PAYye1XbjSe+D7DTJIaTySWHpH9yU3xCiNBCf/wEWh9ODmKsbwEkcbsxtrS6dJe/g9yuR6Bm2hAzDLiE+ZA/ocoazqGhu+cWjTmXrPqvkeTwpB5nxgnq1AWwk7R3IYoMBGJ3F65QKr0wgFGaxfEgnAvopUafdM/WNnZ/RrJ9BKcnPaNZgfb2KCjm7KMvxlGPmHg2Z/k9wFF4WGdnTRCPi0cKJz6Wv0iNFINsNKdCNZOjpIUdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d3ujDSO41om9HsHayhgErc8sUDKTHv3g/izaDpbkZqY=; b=YzkZzkvvOZh469eAYytTEFEamqnFvqQdLl1H5tH39qLA9+Cf70dJhrHlAuiQ/+wr4Xp3GwI/OVaVZtk6keep8za2XvTlp7IYxu3fIf+78w7Cd1ZtguzuL9jJEoo7qLhkfhgvhoNqNkf9bkM4Ct7PkZFKP/0WpPGbhnf2QdYHgfI= Received: from SA9PR13CA0013.namprd13.prod.outlook.com (2603:10b6:806:21::18) by PH0PR02MB7144.namprd02.prod.outlook.com (2603:10b6:510:9::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Mon, 14 Dec 2020 11:52:32 +0000 Received: from SN1NAM02FT044.eop-nam02.prod.protection.outlook.com (2603:10b6:806:21:cafe::71) by SA9PR13CA0013.outlook.office365.com (2603:10b6:806:21::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.12 via Frontend Transport; Mon, 14 Dec 2020 11:52:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT044.mail.protection.outlook.com (10.152.72.173) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3654.12 via Frontend Transport; Mon, 14 Dec 2020 11:52:31 +0000 Received: from xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Mon, 14 Dec 2020 03:52:31 -0800 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Mon, 14 Dec 2020 03:52:31 -0800 Envelope-to: ben.levinsky@xilinx.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, mathieu.poirier@linaro.org Received: from [172.30.17.109] (port=46352) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1komP1-0000g6-2H; Mon, 14 Dec 2020 03:52:31 -0800 Subject: Re: [PATCH v24 1/5] firmware: xilinx: Add ZynqMP firmware ioctl enums for RPU configuration. To: Ben Levinsky , CC: , , , References: <20201130155717.26008-1-ben.levinsky@xilinx.com> <20201130155717.26008-2-ben.levinsky@xilinx.com> From: Michal Simek Message-ID: Date: Mon, 14 Dec 2020 12:52:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <20201130155717.26008-2-ben.levinsky@xilinx.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8cc678e1-b396-47d0-1bb7-08d8a026bd6c X-MS-TrafficTypeDiagnostic: PH0PR02MB7144: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yoBC/9Ez6LlU+41vQ7gE++7zx83pe9ApK9bWPGyMa7tFgWordJrbkAsS8YR9bgj3oZNQletXCpZ6n3SG9Mu4Fjmp5SXMO1FYHPNJF5l2v3JcIr13/xlDbb+uz2X7us9xd9X9c0ZqVbeRES0Wx8DG3lt55eY0YBq4VammCsacvh+I6oJL0II+mLMGXmFvVIR02J9lzJy6qb/Uk2YWeqdG6iqcmM35uiQN0DspCfgmZ4ZYXhGJKyBJRibCUI1qv0a4C2pLm9ykU9Mz3MlO3TcQjhh0FctY4ZngL0qYblY5rY2MQ14Flw2r0KPPo1/oKAaNaXAqzSqCXt1E1xKnuKBTShyi+PuwyNcCj0IZE0ZM1k3UpjFpdD7RvMTcmVsDvuDyv9v5nTsvgmWdtbTag6Mj0sHo6izR2ykNxd6Zhb5eajB4cXLE69QcDyA/C9U5yXhoTvYSoc7MKQO6AWtnr8T71w== X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch02.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(4636009)(346002)(136003)(376002)(46966005)(31686004)(2616005)(31696002)(186003)(9786002)(26005)(7636003)(2906002)(110136005)(47076004)(36756003)(44832011)(6666004)(356005)(70206006)(8936002)(8676002)(83380400001)(54906003)(508600001)(426003)(82310400003)(4326008)(70586007)(336012)(5660300002)(36906005)(50156003)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2020 11:52:31.9301 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8cc678e1-b396-47d0-1bb7-08d8a026bd6c X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT044.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR02MB7144 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30. 11. 20 16:57, Ben Levinsky wrote: > Add ZynqMP firmware ioctl enums for RPU configuration and TCM Nodes for > later use via request_node and release_node > > Signed-off-by: Ben Levinsky > --- > include/linux/firmware/xlnx-zynqmp.h | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h > index 5968df82b991..0dd2d188f8aa 100644 > --- a/include/linux/firmware/xlnx-zynqmp.h > +++ b/include/linux/firmware/xlnx-zynqmp.h > @@ -104,6 +104,10 @@ enum pm_ret_status { > }; > > enum pm_ioctl_id { > + IOCTL_GET_RPU_OPER_MODE = 0, > + IOCTL_SET_RPU_OPER_MODE = 1, > + IOCTL_RPU_BOOT_ADDR_CONFIG = 2, > + IOCTL_TCM_COMB_CONFIG = 3, > IOCTL_SD_DLL_RESET = 6, > IOCTL_SET_SD_TAPDELAY, > IOCTL_SET_PLL_FRAC_MODE, > @@ -129,6 +133,21 @@ enum pm_query_id { > PM_QID_CLOCK_GET_MAX_DIVISOR, > }; > > +enum rpu_oper_mode { > + PM_RPU_MODE_LOCKSTEP = 0, > + PM_RPU_MODE_SPLIT = 1, > +}; > + > +enum rpu_boot_mem { > + PM_RPU_BOOTMEM_LOVEC = 0, > + PM_RPU_BOOTMEM_HIVEC = 1, > +}; > + > +enum rpu_tcm_comb { > + PM_RPU_TCM_SPLIT = 0, > + PM_RPU_TCM_COMB = 1, > +}; > + > enum zynqmp_pm_reset_action { > PM_RESET_ACTION_RELEASE, > PM_RESET_ACTION_ASSERT, > @@ -273,6 +292,10 @@ enum zynqmp_pm_request_ack { > }; > > enum pm_node_id { > + NODE_TCM_0_A = 0xf, > + NODE_TCM_0_B = 0x10, > + NODE_TCM_1_A = 0x11, > + NODE_TCM_1_B = 0x12, Please convert these hex to int to be aligned with the rest. > NODE_SD_0 = 39, > NODE_SD_1, > }; > When that fixed feel free to add. Acked-by: Michal Simek Thanks, Michal