Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3986846ybl; Tue, 21 Jan 2020 10:40:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwEvQmQVvXqayZvenKHaVhVlCDvaElurOxXFL9OsJtY2lg6466bMrRKqx6E3KmHyCJdgnLc X-Received: by 2002:a9d:754a:: with SMTP id b10mr4691699otl.273.1579632037463; Tue, 21 Jan 2020 10:40:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579632037; cv=none; d=google.com; s=arc-20160816; b=gJ6P/985ikZ4OPPRcqFDwPNMOxepOWuWExPOnkjQOsELF4AUjNOUDrHlNVRgxDXp8o ybnkfpyM+n5PnTVuwZuuryDXZb4F6ThBzw0bc1hEXgaSAgCeLBKwXBOwv3+ABbnXqgV7 SwfqYCxrT9Gj4vEWLNfWskEhR5Mw0vBFc82qAeGsBcJBSjNY3wfs5v7IO/3g1dgRApUB n1jdD9SKFLgqSBmZhJ+cf4TPNq1sSOYpT3/GVjCUrt/7nk8Hum1fHHXDjx2jKXTyhCwi skYinUSY6U+2VylxJdXAAqQXwJ/Y5+xj1cY6v0Gl2sFH4pYXAybsUgeftFZJqGlRGDPZ BTZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=2qpzy2oggfuRe6JuJ7/nLYePrGL3OdKafkO3ppD7lqA=; b=W6zIdrGC7N50YVM/+XvV3dGvSnwdEqvXjtbsz2m0bur/jr/9XFlZTaUNFjqh0kiY1Y uBFVvFykTsN25o/F+cuvAucH/wkrbeMK52meTzJ4X41iZ/bNOnZO7RqCWgYyKVWa/Sx6 xwMiUtamovWaZ2mjzTPNyr7kZcsGu/8ZLMYJ06FpRqPxR7NZpFPSfOZrlQWIwP2eJAjh 5FsxwQtXI5DB2oAO5ekmZca3Bdq1PipOn7gKAPHE53VWDqWsshwyWnWZQVnL0AkTdjSJ Yt4sIMZFvtrfJY8CBe+BE3vKLLB3e/oed3DnmQg9NCr9VpGAy+JOTu/c5tL07HBNlTQG G+0Q== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m25si23363298otn.208.2020.01.21.10.40.24; Tue, 21 Jan 2020 10:40:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729210AbgAUSiZ (ORCPT + 99 others); Tue, 21 Jan 2020 13:38:25 -0500 Received: from foss.arm.com ([217.140.110.172]:47354 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729081AbgAUSiZ (ORCPT ); Tue, 21 Jan 2020 13:38:25 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2BD521FB; Tue, 21 Jan 2020 10:38:25 -0800 (PST) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EB3F93F6C4; Tue, 21 Jan 2020 10:38:23 -0800 (PST) Date: Tue, 21 Jan 2020 18:38:18 +0000 From: Sudeep Holla To: Arnd Bergmann Cc: Viresh Kumar , Jassi Brar , cristian.marussi@arm.com, Peng Fan , peter.hilber@opensynergy.com, "linux-kernel@vger.kernel.org" , Linux ARM , Sudeep Holla Subject: Re: [PATCH V3] firmware: arm_scmi: Make scmi core independent of the transport type Message-ID: <20200121183818.GA11522@bogus> References: <4b74f1b6c1f9653241a1b5754525e230b3d76a3f.1579595093.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 21, 2020 at 04:11:11PM +0100, Arnd Bergmann wrote: > On Tue, Jan 21, 2020 at 9:27 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 on 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 exchange of SCMI messages. > > > > Signed-off-by: Viresh Kumar > > --- > > @Sudeep: Can you please help me getting this tested? > > Sure(I may need to rebase on top of -next to test on top of what's queued for v5.6) > > V2->V3: > > - Added more ops to the structure to read/write/memcpy data > > - Payload is moved to mailbox.c and is handled in transport specific way > > now. This resulted in lots of changes. > > This addresses the comments I had about the implementation. > Thanks for review and all the suggestions Arnd. > It's still hard for me to judge whether this is a good abstraction as > long as there is only one backend in the framework, but I see nothing > immediately wrong with it either. > Peter and Peng(both in cc) is trying out virtio and smc/hvc based transport respectively. Hopefully they will raise concerns(if any) with the abstraction. -- Regards, Sudeep