Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3613524ybl; Sun, 12 Jan 2020 22:46:59 -0800 (PST) X-Google-Smtp-Source: APXvYqyF4IKyLdbCxF8YbMfAvflFiOcGLKtDTQvfGsVr1+x3DnOyqmq7irV291IgesfIoVeGtBwd X-Received: by 2002:a9d:6859:: with SMTP id c25mr11830365oto.205.1578898018978; Sun, 12 Jan 2020 22:46:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578898018; cv=pass; d=google.com; s=arc-20160816; b=QcEROwBY1oraXkbFrtpnoPs179DBZPqu8VLu1wfI+nHkftWVK4Ux7ONBklTZMIEVd0 MVe4AhU8yAY9dKBeTPP93Nhaj4okM+gE5sqXLhBqUIbCw7L1ovxDC9iaduHJ6aJpjsF+ W/jTvjxPwjjbII2Y8B5bmaIJU/JMHrKe14tvE6PTeyvxec3w8t1XlYFjvkN8fw/Lg6CZ ngQuMalCCMYpxFaX7q+r+wARiJxH4iG9E2E+DIwWoUMHVl0R2FRtxgaDZ7ew8DW3NRQh FLPuCM9U/Ql+wsAaEegPrSc7YEXO8y08MlpGjabd5OI1MPU9p74sbxSFkHLXXdxeNuMw BlEQ== 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=0AqYxbeUjev659w2GF9CDhC1hBk4wSIEV3nAm3LD1e8=; b=yCISwvX4MhzH5Bqt/0J0/KOfohTch8AH230JSpbjXJqw4Q25QmxD3pe1EL83a6rYyX SV6c4FI2uZQjBfSJGZNnDtX+u1NL9CztRnpSjwxS8QjzTXXcAaviolnmkRRgCMtPIeFt 9O+HV+7iyWM64t0WRatCeV2GowhnCDTz6YanmjO99vYKNj/oF5QctP9l5cIcyT+JIxJ4 3hdFtIi8qJ34+h2ml9ASH6Eq1eYjPaaoRAMr1EdgE7B5/fTx8/Gt1BO/qwtCI2Iv6Afc uMLgJAj6uowGVAn4KP4rUdMgpFWBXdM9FCqXNdrOahv+bHtKzZ17UAOf7E5P9H8vDNNi Yd8A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=nUG955hD; 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 z14si5207767oih.89.2020.01.12.22.46.46; Sun, 12 Jan 2020 22:46:58 -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=nUG955hD; 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 S1728668AbgAMGpj (ORCPT + 99 others); Mon, 13 Jan 2020 01:45:39 -0500 Received: from mail-eopbgr80043.outbound.protection.outlook.com ([40.107.8.43]:35715 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726399AbgAMGpi (ORCPT ); Mon, 13 Jan 2020 01:45:38 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RXT3NxssAkyOQauTEZknust8+ISQIoCkcTLTnPm5lgJI7TSWyvnlP+44TjGqAUZCUhQ3GSwMB3RZ6qjtbzdlH0QjOckXql6pARWJ/9T+vLJwVofLwpW5nLFyk2V2wwCfG99MtFdkjE5wPI7+UhWoDOBNHaYzfhWbLRhn38nsqfYNi8cP5lBrZMbpozke5Oar52k4EbAaZ+Du6wHJo4GDfB/lFr2jM+vXMMPHCe3aFzhXuwoSstFXeWWfL/WlOahUlVaCGkKmaaN+y66M3R2NDDpfgzxGFI2uAmIjeq5MBXJAPckAwKx/M+mmacrwc1VucqqQn74kxR7D3QJNFAIEUQ== 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=0AqYxbeUjev659w2GF9CDhC1hBk4wSIEV3nAm3LD1e8=; b=UjZy6Coo38kp+KywMFravV2eYxvm9AL6b5kjFjsaPaZuS3NCbFKCAmH8sdk3wQIamRxpV/M5rk8v4Q2r2foSLZC2IKsf1qegkZ7NiLaTbqkcZhDZQMgl8VFGlDM/6I1LNZ0oNbLV0K5fQkMYR4zN4tK4GrYoCstXJw3zV27wRukj6NZ5lETR4/tD+F+5eHsGjcl0Z/iB5MzhtEP/dZBdoIKjCkgOvVdOiFnCor1DiYxThVShQ4kpcmImuhR6Zu9PM2eRfj/BLhKEwhUpyiA0CRoDwP87DwzFdHjKseu4KwNHWS1K/hlj65D9mWjfpBG3F+FFtloLGIJmZl3eUgOvsQ== 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=0AqYxbeUjev659w2GF9CDhC1hBk4wSIEV3nAm3LD1e8=; b=nUG955hDbmcAWlTxnW92AI+CD7MXizVJdL5e8mzJavKiJrHrwmh03LiB+VaxvRU/XiudFK6WMcsE0i18e/fk9rySovwiT2OWtTY8uARXXC+BXEU/uRvzPblIDJS4jzkrctbplFxMYeH7RYI4rv471HnScqaEcrbpAWMmX49hGuI= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB4498.eurprd04.prod.outlook.com (52.135.148.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.9; Mon, 13 Jan 2020 06:45:35 +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.2623.015; Mon, 13 Jan 2020 06:45:35 +0000 From: Peng Fan To: Sudeep Holla , Viresh Kumar CC: Arnd Bergmann , Vincent Guittot , Jassi Brar , "linux-kernel@vger.kernel.org" , Linux ARM Subject: RE: [PATCH] firmware: arm_scmi: Make scmi core independent of transport type Thread-Topic: [PATCH] firmware: arm_scmi: Make scmi core independent of transport type Thread-Index: AQHVppfygI23RUpETUWFTxolQ+nTs6fiPXoAgAAVYACAAcKWgIAEV0ng Date: Mon, 13 Jan 2020 06:45:34 +0000 Message-ID: References: <5c545c2866ba075ddb44907940a1dae1d823b8a1.1575019719.git.viresh.kumar@linaro.org> <20200109093442.4jt44eu2zlmjaq3f@vireshk-i7> <20200110122725.GB45077@bogus> In-Reply-To: <20200110122725.GB45077@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.71] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: c2d4186f-beee-4089-8480-08d797f4313b x-ms-traffictypediagnostic: AM0PR04MB4498: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 028166BF91 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(366004)(136003)(346002)(376002)(396003)(199004)(189003)(8936002)(8676002)(86362001)(9686003)(26005)(186003)(55016002)(44832011)(81156014)(81166006)(5660300002)(53546011)(7696005)(6506007)(52536014)(4326008)(54906003)(71200400001)(66446008)(76116006)(33656002)(110136005)(316002)(2906002)(478600001)(66946007)(66476007)(66556008)(64756008);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4498;H:AM0PR04MB4481.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: gd2ItDIT2UUcY4WTxKUfUEWTTf8FiQhWhuD6levtnaizW9oPTAT9HAMpb50f7ESAhno5bsEpRTiQ/CdCmewnbWmaLBZ1ylOP0T5gLoCzhq+dTO0IDRIsqWk2GcwO8XtNck/CVkNzuQ0h+QhE9RYzpGA5dTsECgDtZFyX3c94mg7h2lqC/8x+78yqkLsbjZgH6PtWZjHHPcMRGJt+Cj+NexOjMZLiixAorqG1su3Nl2nke4ZJ5uephAkQ7FXFZwWx9jYRsZe0aZ+Ht9iAbuUqjVooYRujqgDiATd+WTpGifvGsU6Ku5ajv9CoX/H0ZZjFSXadYkddli/pEc7T4sU0kUBVeu3kt1fqQCiynCstO4XWnREF5V7J+khW9bPCa6M5kqCP2GX1cdoJtpHBsxLwpxvnxPgaTY+Njz27URhkkCnun1jaZMR0DnjOpZTeZGWx x-ms-exchange-transport-forked: True 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: c2d4186f-beee-4089-8480-08d797f4313b X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jan 2020 06:45:34.9193 (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: VDW2P+WcDxt0tuD/d82bvnw9DX8ZJHoHFIDO8rlCsjlFKK4/YzdbtUXB+w5ilGNrCFEepvnCWIK+6W/0lR0GZw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4498 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sudeep, > Subject: Re: [PATCH] firmware: arm_scmi: Make scmi core independent of > transport type >=20 > On Thu, Jan 09, 2020 at 03:04:42PM +0530, Viresh Kumar wrote: > > On 09-01-20, 09:18, Arnd Bergmann wrote: > > > On Fri, Nov 29, 2019 at 10:32 AM Viresh Kumar > wrote: > > > > > > > > The SCMI specification is fairly independent of the transport > > > > protocol, which can be a simple mailbox (already implemented) or > anything else. > > > > The current Linux implementation however is very much dependent of > > > > the mailbox transport layer. > > > > > > > > This patch makes the SCMI core code (driver.c) independent of the > > > > mailbox transport layer and moves all mailbox related code to a > > > > new > > > > file: mailbox.c. > > > > > > > > We can now implement more transport protocols to transport SCMI > > > > messages. > > > > > > > > The transport protocols just need to provide struct > > > > scmi_transport_ops, with its version of the callbacks to enable exc= hange > of SCMI messages. > > > > > > > > Signed-off-by: Viresh Kumar > > > > > > Conceptually I think this is fine, but as others have said, it would > > > be better to have another transport implementation posted along with > > > this to see if the interfaces actually work out. > > > > @Sudeep/Vincent: Do you think we can add another transport > > implementation something right away for it ? > > >=20 > Even if we don't add new transport right away, I would like to see if the > requirements are met. I will take a look at you v2 with that in mind anyw= ays. > We need not wait, we I want to see people think it meets their requiremen= t. I > will also add couple of guys working on virtio transport for SCMI when I > respond to your v2. Thanks for posting it. >=20 > > @Peng ? > > > Peng, Did you get a chance to try this with SMC ? If SCMI was the only > usecase, you can try this approach instead of mailbox, now that no one ha= s > any objects to this approach conceptually. Please use v2 as base and upda= te > us. I will try that, but might be a bit later. Thanks, Peng. >=20 > -- > Regards, > Sudeep