Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1262525ybf; Fri, 28 Feb 2020 18:08:12 -0800 (PST) X-Google-Smtp-Source: APXvYqwsD8J0WHhujjx2pFf4odz7E0cx+FnUsYuayu5bDlXGkmwAzO7DXEDmWe/g+WxDI7maMLPg X-Received: by 2002:aca:fd16:: with SMTP id b22mr5090644oii.73.1582942092432; Fri, 28 Feb 2020 18:08:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1582942092; cv=pass; d=google.com; s=arc-20160816; b=PBJlolKnnlNeLlYfxCXyWW+ms4BIVUXZebNmEofQ1/1VgSY1gq1mVBUx/RJkjQ2pul VewtSTuVdmVXsubn9zWEpDCHDcihii/RzXNj5gMPd6LHqOiEhhOJXVM+JZsQKbCtBNAH GnQVuoIy/szxRQRU6nj+8WfLM2AXO3SRYDMSmJWQdUxJKxiyYuDHma5XleNrmnooQvFT 306GidE/l7OmiYxTVThsrqgFPkHtXJn6uBypYirFJ8Se58zChyL4asbPYFgSxwbKE9SU 35xZcTUH+9MgGhFXWObwHBzW4f4qakvyrVRD6Z+KZzFgxIId8DCKwxQeDdmHQX3z3McD vaJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=RHUEF6DlaDyZLujTZEmLjLnII30tgcc/7ijd3oVMX6g=; b=BktUU/eBJcntPgsZdGCqhKKy1uaDz8GQnzNtcr7WlPrZrUhT2bva/C80ajc+4FZHgT d0aAc0MdL8tXTPzZdtv1/i8UoFVgngeiCTnNRgjCCKD/YAMVVDlTdgb5hs6JI03s1nhg nJqYV8YshZvMMBPgjM1q0CrXDyey+M+RXD9SOktloHS5NxyZY3byTAqs+GFOrPsmEM0i vb65lQZ9LzNeIeXo8tqGXwGHzvm2ToZsxDqiDtreTAMZoVb2X7jSZ3gjPbQvSbrk6qhp TsbY8kxpyHsfF3Os7+og2AydWsr7CqNtY6QV16fCw8S2nKl3+HZToTRrNXHj4ZgfE/iX tOqw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=izMEbqLK; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b25si2601755otf.151.2020.02.28.18.07.43; Fri, 28 Feb 2020 18:08:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=izMEbqLK; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726695AbgB2CHj (ORCPT + 99 others); Fri, 28 Feb 2020 21:07:39 -0500 Received: from mail-eopbgr80085.outbound.protection.outlook.com ([40.107.8.85]:41029 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726603AbgB2CHj (ORCPT ); Fri, 28 Feb 2020 21:07:39 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ECCT5ZqcK96yWui2qybTloHH9Ngyzm77k3yKOYEooP2ZfVKq4KCnmy6z+GvCcd3PbslMmpD//Wp0B53wEicGxN19WwJpXdU/SKS5PNiJcmygJGBYv7ywSBn9G17yiQo95U6W4Sr1R//8qJ0/Kw9c/sdPitjNagH8+l84SlWEZtau0Rh31LkLIwTiCT+nn2PLqLu/Lv2Cdj8mLemYdeAI1dAbUeModXroQ2sZCNt5ZTFTPhe+6mUicPjluQsGMgOn4NVY2Kzmv+ooK1a7nFbSY14zfrR+uVxaCeeEsRcbgcmnF/wjWoIjKxolvXSxM5pGhl0KlsNwxTfLk2VperJ2BA== 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=RHUEF6DlaDyZLujTZEmLjLnII30tgcc/7ijd3oVMX6g=; b=kOP1vXpaDr/xIXqc0SoronDir1ik03vxBpu4jf91gkitmAdsFZSQzMlJNO4nJLw2tX/yS9PYTamRLFvJa/dUMQD9WxAG8268gmTH/48nG16up+V2zNVmNgtv/uADiUoxsPqrSPaOSp1ZYcApScCHBvwygmV+lIMm00ktHPh5QBGPMEtns1UFLBiSSRDE5xCIRS+Lqf8EFSPOaDTkkAZpDcRxbcaB8jaF0v7c8xf2STLLvZSijoIQ1cLMkyCSv4CCkSNIA8J8P6k5nqJeawK86g5rpOzNb5EEjmhYriRTeHt6ZWyAapeNCClUmCzD+HfcBv+1P2SdeflPp9ceOE8QkQ== 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=RHUEF6DlaDyZLujTZEmLjLnII30tgcc/7ijd3oVMX6g=; b=izMEbqLKCavqOQwMjVZ6EvO8rs8jeLCU39X/OHib9xzGOSKGCZaw4nU4FAwQD25AcaNgr9Rc9WA4rLlvkEEdzt18argl9EoMGBYg9veqaY+XfzhgF0qLoN4fAL6PVZTQhTuqtMhUbFQxpX0nK+gp7Xy5UToQxisFu8DhUDAuzsE= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB5793.eurprd04.prod.outlook.com (20.178.118.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.18; Sat, 29 Feb 2020 02:07:33 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::91e2:17:b3f4:d422]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::91e2:17:b3f4:d422%3]) with mapi id 15.20.2772.012; Sat, 29 Feb 2020 02:07:32 +0000 From: Peng Fan To: Sudeep Holla CC: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "robh@kernel.org" , "viresh.kumar@linaro.org" , "f.fainelli@gmail.com" , dl-linux-imx , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "andre.przywara@arm.com" Subject: RE: [PATCH V3 2/2] firmware: arm_scmi: add smc/hvc transport Thread-Topic: [PATCH V3 2/2] firmware: arm_scmi: add smc/hvc transport Thread-Index: AQHV7HUEw4K6S9kW+0Sj3fQlJbhvlqgwzHcAgACkEkA= Date: Sat, 29 Feb 2020 02:07:30 +0000 Message-ID: References: <1582701171-26842-1-git-send-email-peng.fan@nxp.com> <1582701171-26842-3-git-send-email-peng.fan@nxp.com> <20200228161820.GA17229@bogus> In-Reply-To: <20200228161820.GA17229@bogus> 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=peng.fan@nxp.com; x-originating-ip: [119.31.174.68] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 2e30f7a3-0330-43c9-9b92-08d7bcbc22d0 x-ms-traffictypediagnostic: AM0PR04MB5793:|AM0PR04MB5793: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 03283976A6 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(366004)(136003)(376002)(396003)(346002)(189003)(199004)(33656002)(4326008)(7416002)(26005)(9686003)(64756008)(66556008)(478600001)(66446008)(66946007)(66476007)(76116006)(6916009)(186003)(44832011)(86362001)(55016002)(81166006)(8936002)(316002)(8676002)(5660300002)(2906002)(81156014)(71200400001)(6506007)(54906003)(7696005)(4744005)(52536014);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5793;H:AM0PR04MB4481.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: xOTWPSpmPwBPBMBGhU4oWLScvAHXB0hzVTRRAST9949+acb1Gy8g2FG1uhFjP9/rSDBgSEuIhZgOqlxiU12V7ba8SGgEveJKVIWeHREmQXrXf6I0m7JWX0IPQCQzryNGSb3UNidizVmb31xxqFOpiWgZ03mWyzRpDt0b6kOIPCTKA41IExo4bsiN0xHS2omYY3O4p6ftrRWCh923E5f7be7WDKDTZaKzaD4Z3itn8osUqkjoUfGBVo+FMlZPiBy7ujxAEIQQzr12juIX/2Xq0rxMf3HSsyuRZho4hWQM0jDqwEm/iQzsl9DiYN05TOoRVXeikYNcLM6e2+M5/XlLXafipqhDK0+/K48WS2e7PX0gK/iVbQ0YuyQ7iG1OFgWhJNU4zHSShaDOoGxsRzwybdToNMZz0LWgr7WpaABu6jdL4C+e/wD9Y7XMhtGLyI9+ x-ms-exchange-antispam-messagedata: P5saxQxq4DX1T6TiMumqP7Y3PMqlTijYDo4Zv6gUv+Gfd0PhlXJwbIQO+3cNL04GU0MyogKzwXUjcgrKcEUkhMELdPYncCJsA6nXYVw9AGIDrfYlQZIoJimy/MITbc+IwsYil3rDWaNBFQoUKiVoYw== 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: 2e30f7a3-0330-43c9-9b92-08d7bcbc22d0 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Feb 2020 02:07:30.3274 (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: 2ux73LShVH912iE+eT2DtgvNrxiRB5LvIZMQqmxnJzjx03UIxjqJudpB0mgvipkwhh3/+e9C5lCktTQgcX0KSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5793 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sudeep, > Subject: Re: [PATCH V3 2/2] firmware: arm_scmi: add smc/hvc transport >=20 > On Wed, Feb 26, 2020 at 03:12:51PM +0800, peng.fan@nxp.com wrote: > > From: Peng Fan > > > > Take arm,smc-id as the 1st arg, and protocol id as the 2nd arg when > > issuing SMC/HVC. Since we need protocol id, so add this parameter >=20 > And why do we need protocol id here ? I couldn't find it out myself. > I would like to know why/what/how is it used in the firmware(smc/hvc > handler). I hope you are not mixing the need for multiple channel with > protocol id ? One can find out id from the command itself, no need to pas= s it > and hence asking here for more details. When each protocol needs its own shmem area, we need let firmware know which shmem area to parse the message from. Without protocol id, firmware not know which shmem area should use. Hope this is clear. Thanks, Peng. >=20 > -- > Regards, > Sudeep