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=-5.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 E463AC433DF for ; Fri, 17 Jul 2020 14:01:53 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B0236207EA for ; Fri, 17 Jul 2020 14:01:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="q4kTY1sZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B0236207EA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cD2GN01PnXpWMhW2MAcLWa38eU4dq6ThWEFLgpAVEW4=; b=q4kTY1sZugnoMCJbFepQNzHuZ vBmKgu9QWlaJvnx/Z4cmWnCVShuClOeWKmD0zH8sT64/LqgM8Do7j1zGR6uZ+gAY6a9LKL2LLn/x1 kGxYSWFGkk5MCmufK4rSmTPlZUfE5v7LYEwIYKZxvN9qXYt5yC1VB9b0DksQCCZsb//e+/FJN1yKe 4+gdeJIWxif6ynZfbq7WnNpdyeX9Qx6xR7RtNcFMh/B3v2LaIB8DPJ6Ua/OigfDqZO0PIRWs0IAsc jGZxkcZPL8rg8ZAC3MO1ihH0e9HgQiIbze74OtMVTRo0xH4Ul6OQoTei3TK1qEi7yNPVXPx7KdYL5 63X9a6mJg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwQud-0006AB-U0; Fri, 17 Jul 2020 14:00:31 +0000 Received: from mga01.intel.com ([192.55.52.88]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwQuV-00065L-5h for linux-arm-kernel@lists.infradead.org; Fri, 17 Jul 2020 14:00:27 +0000 IronPort-SDR: v8H7Si9qSdqxo5SXcpVNAUeXT9gBklFRGHmDzqssBKuIxFKN2z6/eDjNm2m9+SUbBtm3HgUZdy sMawAgCB+adA== X-IronPort-AV: E=McAfee;i="6000,8403,9684"; a="167721394" X-IronPort-AV: E=Sophos;i="5.75,362,1589266800"; d="scan'208";a="167721394" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2020 07:00:21 -0700 IronPort-SDR: i/FAwqn6mQcDVNwTNQo1ZPyUsFNo8bNK44NhJq0QPcmArDfLo44GHNN1eyDzDF3mOD1+xMqsbt WU1VhRCMoepQ== X-IronPort-AV: E=Sophos;i="5.75,362,1589266800"; d="scan'208";a="430846386" Received: from paulmurp-mobl.ger.corp.intel.com (HELO [192.168.153.165]) ([10.213.219.68]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2020 07:00:18 -0700 Subject: Re: [PATCH] firmware: arm_scmi: Pass shmem address to SMCCC call To: Florian Fainelli , Daniele Alessandrelli , Sudeep Holla , linux-arm-kernel@lists.infradead.org References: <20200715165518.57558-1-daniele.alessandrelli@linux.intel.com> <5f74221b-aec7-7715-19d1-5cbb406f1bdc@gmail.com> From: Paul Murphy Message-ID: <1117fc3b-3c35-c66c-bf73-cb879a08bde5@linux.intel.com> Date: Fri, 17 Jul 2020 15:00:16 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200717_100023_550791_B6D23F75 X-CRM114-Status: GOOD ( 15.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , "Paul J. Murphy" , linux-kernel@vger.kernel.org, Daniele Alessandrelli Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Florian On 7/16/20 20:57, Florian Fainelli wrote: >>> >>> Given that the kernel must somehow reserve this memory as a shared >>> memory area for obvious reasons, and the trusted firmware must also >>> ensure it treats this memory region with specific permissions in its >>> translation regime, does it really make sense to give that much >>> flexibility? >> >> Well, the trusted firmware might reserve a bigger region to be used for >> other service as well. In other words, the MMU of TF-A is not necessary >> specifically set up for this region, but, possibly, for a bigger >> general shared region. > > But presumably the Linux shared memory area should be mapped in a > slightly different way than > Sorry - could you clarify what you mean by that? Just checking if we are doing everything correctly. I didn't understand that there is a connection between the TF-A MMU tables for this region and the normal world MMU tables? For example: TF-A may map physical address range: 0x0 -> 0x400_000 as 'normal' memory for various purposes. Linux SCMI driver could map physical address range, eg: 0x300_000 -> 0x301_000 as IO memory for mailbox purpose only. Is there any issue here? Regards, Paul _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel