From mboxrd@z Thu Jan 1 00:00:00 1970 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=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 7FA0AC2BA83 for ; Fri, 14 Feb 2020 16:35:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 405EB246A4 for ; Fri, 14 Feb 2020 16:35:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="NCcxuzNL" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406610AbgBNQfQ (ORCPT ); Fri, 14 Feb 2020 11:35:16 -0500 Received: from mail-db8eur05on2058.outbound.protection.outlook.com ([40.107.20.58]:36173 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2405869AbgBNQfP (ORCPT ); Fri, 14 Feb 2020 11:35:15 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PqNugZmi2Q2vZfb1QtvNc35/bs+BYqlobyBaz/fTTcQWN5jJzpRJzoYry8SE1UUYrW4HH6SnKGGmedX00DkbNJx39R+L0bAmL1L0GUzGK7qCxh8IJyCKOCyCQd2lSwid0VhaOz0jyeezy0tHKGPow+9np3YnJwQK6J1gmaDcmLe4DQY7bdPFOA7PrTEpVZAUfXZ4KzZdlzeWZ83POvePD/tpD7JLCW4khc7DWqwxI/Ddu3cD5a0x3gyfXeiEOX5y2DTLxwx9jU//sEvGAWM5Ne4dxYdPcq1RfFBL6C30dpzAQYyEB6iGk69mzi1dvh9J+jTw7jeu7DLaCJScMod8Sw== 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=b2kN3QfQUhxZgkhGzcKsQOEtUmZa44QdzyLpV9NnSac=; b=TFrwp/D5tNaOJcy9861Vp7Xkg5KhrbLYsrz1VXJX3GVhHJA3YMzYHToBMCqmwkdhZalSDFrLTfrhhgG2vATBU2DMRViIZ56W+nndYHbb88Dq9e6LOeP+Wg26CbTImqFQcik1Cs8NtAYnXWPjgMnWZyasaf4Fnmnb+hmQhUm3JI+0stThJET/NR9kkP7V7a60WJc+/7LP+E+sVJtj3/qCZ8l3xXxAe0KlYstistqgsI/MmqTdUk+2bvMKrcDrBPaRzkF/xc44ItPJ2YfTktFf+TzRQYv58W23JvEqmkRz46X3bGSKQeGOTdI1axP2HyMtH2sbKpgAeLANuCuZ1Foyuw== 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=b2kN3QfQUhxZgkhGzcKsQOEtUmZa44QdzyLpV9NnSac=; b=NCcxuzNLAexlyVcQfbTVIky+E2SKeIB0vx4yXjgQW3Ga6xroEIig5WcjNNlWZuCHaI7fhtllaua7PUucEXdkZzzUZ3DFKp8t11Wf4pHu3Epbh0tdYMB5d/ydZvRjseEe/bWwrMk1uSk49JZpWSBOvY1AhsMf4Uj75+25juPcVhA= Received: from VI1PR0401MB2496.eurprd04.prod.outlook.com (10.168.65.10) by VI1PR0401MB2639.eurprd04.prod.outlook.com (10.168.66.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.25; Fri, 14 Feb 2020 16:35:10 +0000 Received: from VI1PR0401MB2496.eurprd04.prod.outlook.com ([fe80::196a:28a9:bb9:2fae]) by VI1PR0401MB2496.eurprd04.prod.outlook.com ([fe80::196a:28a9:bb9:2fae%9]) with mapi id 15.20.2729.025; Fri, 14 Feb 2020 16:35:10 +0000 From: Pankaj Bansal To: Lorenzo Pieralisi CC: Marc Zyngier , Ard Biesheuvel , Makarand Pawagi , Calvin Johnson , "stuyoder@gmail.com" , "nleeder@codeaurora.org" , Ioana Ciornei , Cristi Sovaiala , Hanjun Guo , Will Deacon , "jon@solid-run.com" , Russell King , ACPI Devel Maling List , Len Brown , Jason Cooper , Andy Wang , Varun Sethi , Thomas Gleixner , linux-arm-kernel , Laurentiu Tudor , Paul Yang , "netdev@vger.kernel.org" , "Rafael J. Wysocki" , Linux Kernel Mailing List , Shameerali Kolothum Thodi , Sudeep Holla , Robin Murphy Subject: RE: [EXT] Re: [PATCH] bus: fsl-mc: Add ACPI support for fsl-mc Thread-Topic: [EXT] Re: [PATCH] bus: fsl-mc: Add ACPI support for fsl-mc Thread-Index: AQHV1bJZgaFB40NXxUCtFFLRVXyi06f/610AgAStpQCAAAiuAIAAD1yAgBYviuCAABITAIAAAFRwgAAG0ICAAAEwoA== Date: Fri, 14 Feb 2020 16:35:10 +0000 Message-ID: References: <1580198925-50411-1-git-send-email-makarand.pawagi@nxp.com> <20200128110916.GA491@e121166-lin.cambridge.arm.com> <12531d6c569c7e14dffe8e288d9f4a0b@kernel.org> <7349fa0e6d62a3e0d0e540f2e17646e0@kernel.org> <20200214161957.GA27513@e121166-lin.cambridge.arm.com> In-Reply-To: <20200214161957.GA27513@e121166-lin.cambridge.arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=pankaj.bansal@nxp.com; x-originating-ip: [49.36.135.121] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 6e1797b2-6528-425f-24c8-08d7b16bdbdf x-ms-traffictypediagnostic: VI1PR0401MB2639:|VI1PR0401MB2639: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 03137AC81E x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(366004)(396003)(39860400002)(376002)(346002)(136003)(189003)(199004)(44832011)(316002)(55016002)(66446008)(86362001)(5660300002)(53546011)(6916009)(66476007)(26005)(6506007)(76116006)(66946007)(478600001)(54906003)(966005)(66556008)(64756008)(7696005)(8936002)(33656002)(7416002)(52536014)(81156014)(186003)(8676002)(2906002)(4326008)(71200400001)(9686003)(81166006);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0401MB2639;H:VI1PR0401MB2496.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zQbBSiKy6Z+RKJBoqQZL2+9qhliT9jAjsjfnBl7Cn9vEFpFYhy4EbLoTBAVF3gZa9CFjVz97bxSjEUyfyNmbHVIOvH3jnuQN5+yyRopSVZ8VTREBEQIhBgcUMrvCtLDa42qI1dJW6PjxSnZuqxmG0vesX5YGDim2tXSUqfE0esH+Zpwl0Cj6CaVZH9Vsfx/Vo6jGVydfhQR8HBkHJhtBrp4hxuVciEDrW314SbxpF0isrOAx8gLQAGOFXMwcNW6bwysVaWwh8Jwvv+uqt9HuZEPjYojRgQpGiF0PWOBDw4GKtmGifBY8/rUIqxYIv1J4g3s1QqBw1WF7YBoAHrqArYuYiCZ5Zsv8eGVvZUPKPj0FkQkcJZ+DGl3Rwn8WFSDQwAuTPz8wfjhf8hGPDywxc0sY9bDzqJzVlk3EgkGQX5NrL8tD12NnKJf4qd2DGsj6M+VfOWpFyayn/eOVcV8wiNMjHXLW+U53AyXBuBeGrYPxVOmL1znZ6oRKw9ro7QIGgAXLFlpWQsdpsWOD47aqzw== x-ms-exchange-antispam-messagedata: xFEKZHxu/6MtRhbutzPDO74S5Zc6ENV9FRZFLFUqsnl2w7vpmKE0yRcPSQ++oNZAX7Ei9CpxkIQ6ZWAGj1HPBdUo2rAqHsKxidsZ/vJB0ovDaAfBJX6zb1kGG0O9GuagAejyy41p8bKqMnFSx35S6g== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e1797b2-6528-425f-24c8-08d7b16bdbdf X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Feb 2020 16:35:10.2016 (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: OyzKbye/g6GQkpQJHYBuyYlY9SrxaicFEmKN138J2q73l0XpC8RMUFk3XbJ0rM0aIAmlhDoaMyxH9udusjpjng== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2639 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org > -----Original Message----- > From: Lorenzo Pieralisi > Sent: Friday, February 14, 2020 9:50 PM > To: Pankaj Bansal > Cc: Marc Zyngier ; Ard Biesheuvel > ; Makarand Pawagi ; > Calvin Johnson ; stuyoder@gmail.com; > nleeder@codeaurora.org; Ioana Ciornei ; Cristi > Sovaiala ; Hanjun Guo ; > Will Deacon ; jon@solid-run.com; Russell King > ; ACPI Devel Maling List ; > Len Brown ; Jason Cooper ; Andy > Wang ; Varun Sethi ; Thomas > Gleixner ; linux-arm-kernel kernel@lists.infradead.org>; Laurentiu Tudor ; P= aul > Yang ; netdev@vger.kernel.org; Rafael J. Wysocki > ; Linux Kernel Mailing List ; > Shameerali Kolothum Thodi ; > Sudeep Holla ; Robin Murphy > > Subject: Re: [EXT] Re: [PATCH] bus: fsl-mc: Add ACPI support for fsl-mc >=20 > On Fri, Feb 14, 2020 at 03:58:14PM +0000, Pankaj Bansal wrote: >=20 > [...] >=20 > > > Why should the device know about its own ID? That's a bus/interconnec= t > thing. > > > And nothing should be passed *to* IORT. IORT is the source. > > > > IORT is translation between Input IDs <-> Output IDs. The Input ID is s= till > expected to be passed to parse IORT table. >=20 > Named components use an array of single mappings (as in entries with sing= le > mapping flag set) - Input ID is irrelevant. >=20 > Not sure what your named component is though and what you want to do with > it, the fact that IORT allows mapping for named components do not necessa= rily > mean that it can describe what your system really is, on that you need to > elaborate for us to be able to help. Details about MC bus can be read from here: https://elixir.bootlin.com/linux/latest/source/Documentation/networking/dev= ice_drivers/freescale/dpaa2/overview.rst#L324 As stated above, in Linux MC is a bus (just like PCI bus, AMBA bus etc) There can be multiple devices attached to this bus. Moreover, we can dynami= cally create/destroy these devices. Now, we want to represent this BUS (not individual devices connected to bus= ) in IORT table. The only possible way right now we see is that we describe it as Named comp= onents having a pool of ID mappings. As and when devices are created and attached to bus, we sift through this p= ool to correctly determine the output ID for the device. Now the input ID that we provide, can come from device itself. Then we can use the Platform MSI framework for MC bus devices. >=20 > Lorenzo