Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1409322ybt; Thu, 9 Jul 2020 06:29:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4MZL4onQgPvG97f4QohX/AhB3318pv90OGIchs7OjntEE3Wj2LOYdbcox5XBVQx5istr0 X-Received: by 2002:a17:906:3842:: with SMTP id w2mr9514322ejc.273.1594301341995; Thu, 09 Jul 2020 06:29:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594301341; cv=none; d=google.com; s=arc-20160816; b=c4ksvLdNEFtVp2ixHGigaMS/0dzGFf5b1QkF9Y5jKgKxU6okjib/ZPX81v+I6krmPz zEi/QjCMamTnpaYIVh4zAa/BCyPUiXGnwqQK+g1NlIduj9gWvq33cP6ogsuPX0Oouwxu umPCQD6pMMGPHRBOkjH1bG3MDpzYTCvH2OK9EioWarzuijjDX7YpDhYwVbty2QV9KnyJ JAM8H436VihbCq8WGwsj9cLwVL2xVEJgnDrNIxIxoV+DA+Ylh32mOfDVYAPvoeklpC9V whDDty+8L4hGVj9jL40Jc+nC4YQib7ZA1DngAW8DubA5l1xGyXY5J2m3ZmKU3mutGfVu EsWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:references:cc:to:subject:ironport-sdr:message-id:ironport-sdr; bh=s7pM9Jub4ZYl7RHlSuQzfT3B7GeCoo3ydiAtCpWf2dg=; b=IRxNZOh00xyeJdyDd27ym5OD+Y8p2N2SydMT5/SpkhonLJM2OXN5w1HZAX+ljYlpes +4sviV/pB59gIQ3Ba0XfqDNSnisBD1hd2GGbqgqRagdYxLs8FHJoSNSKnDAlo/VZW7Zu s2V4mNrFXZdFdaCzed9zNnjXgGJj0cphDLEDEcR+GL/HhQBGdeEdeY9Hs/nz6iXCbZ3O LGlfF82f1FoK+DfIn2swjs/hCNlBfTxHiTGBgm3jxrGprgOFH/zacnM1X9/0AaZsiyu2 tb/Eb72a0MeP1QEhd+5bMALMYmY+lMSJa37FNtUrMNKmIcJ0RdVq21yEu7Yy/WdPLQ+e R3FQ== ARC-Authentication-Results: i=1; mx.google.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cn25si1968464edb.68.2020.07.09.06.28.38; Thu, 09 Jul 2020 06:29:01 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727849AbgGIN2Q (ORCPT + 99 others); Thu, 9 Jul 2020 09:28:16 -0400 Received: from mga11.intel.com ([192.55.52.93]:64525 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726444AbgGIN2P (ORCPT ); Thu, 9 Jul 2020 09:28:15 -0400 IronPort-SDR: k9RpCPMVYpOyPf5yfgokqH/ZHqXV9LTovVgr17raHSiZP4mD+VGsJVGvlATqbnf35G8aEEriCw Ek15ZpJqNCfg== X-IronPort-AV: E=McAfee;i="6000,8403,9676"; a="146077737" X-IronPort-AV: E=Sophos;i="5.75,331,1589266800"; d="scan'208";a="146077737" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2020 06:28:15 -0700 Message-Id: <537a4c$cobr4j@orsmga004-auth.jf.intel.com> IronPort-SDR: lbGftqsvxRyXOACOGBHSm1In1Skp/KaIfrSFiKY6OurNhCBCCg5UvS81aWet1lIxbq8nWff6dl iJLteg35tBRA== X-IronPort-AV: E=Sophos;i="5.75,331,1589266800"; d="scan'208";a="428207258" Received: from paulmurp-mobl.ger.corp.intel.com (HELO [192.168.153.164]) ([10.213.225.132]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2020 06:28:12 -0700 Subject: Re: [PATCH 2/7] mailbox: keembay-scmi-mailbox: Add support for Keem Bay mailbox To: Daniele Alessandrelli , Sudeep Holla Cc: linux-arm-kernel@lists.infradead.org, Rob Herring , Jassi Brar , Arnd Bergmann , Olof Johansson , Paul Murphy , Catalin Marinas , Will Deacon , Dinh Nguyen , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20200616155613.121242-1-daniele.alessandrelli@linux.intel.com> <20200616155613.121242-3-daniele.alessandrelli@linux.intel.com> <20200708203428.GB31671@bogus> <491f994c6f87a542e49fe37c8a75ab46f1b3712b.camel@linux.intel.com> From: Paul Murphy Date: Thu, 9 Jul 2020 14:28:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <491f994c6f87a542e49fe37c8a75ab46f1b3712b.camel@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/9/20 13:23, Daniele Alessandrelli wrote: > Hi Sudeep, > > Thanks for your review. > > On Wed, 2020-07-08 at 21:34 +0100, Sudeep Holla wrote: >> On Tue, Jun 16, 2020 at 04:56:08PM +0100, Daniele Alessandrelli >> wrote: >>> From: Paul Murphy >>> >>> Keem Bay SoC has a ARM trusted firmware-based secure monitor which >>> acts >>> as the SCP for the purposes of power management over SCMI. >>> >>> This driver implements the transport layer for SCMI to function. >>> >> Please use the smc transport support in >> driver/firmware/arm_scmi/smc.c >> for this. You don't need mailbox support for SMC/HVC. Basically you >> don't need this driver at all and you have everything you need to >> support >> what you want. >> >> Let me know if you face issues. >> > Sorry, we didn't know about the SMC transport support for SCMI. Looks > like it was added only recently, while our driver was already developed > and waiting to be upstreamed. > > I agree that we can drop this driver and switch to the SMC transport as > you suggested, but I think we'll have to modify our bootloader SiP > service slightly. Paul, can you elaborate? > Just one question. In our patch, we pass the shared memory address as the second argument of the SiP service, as it means we don't have to hardcode that in our firmware. Sudeep, do you know if it was intentional in smc_send_message() to leave that out? If we leave it out, we are requiring the secure monitor to hardcode the shared memory address. Regards, Paul