From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752164AbbIZJix (ORCPT ); Sat, 26 Sep 2015 05:38:53 -0400 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:48711 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751561AbbIZJiv (ORCPT ); Sat, 26 Sep 2015 05:38:51 -0400 Date: Sat, 26 Sep 2015 10:38:35 +0100 From: Russell King - ARM Linux To: Yingjoe Chen Cc: Matthias Brugger , devicetree@vger.kernel.org, Arnd Bergmann , Stephen Boyd , linux-kernel@vger.kernel.org, Rob Herring , linux-mediatek@lists.infradead.org, Sascha Hauer , Olof Johansson , srv_heupstream@mediatek.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 3/5] ARM: mediatek: add smp bringup code Message-ID: <20150926093835.GA20255@n2100.arm.linux.org.uk> References: <1443109140-5406-1-git-send-email-yingjoe.chen@mediatek.com> <1443109140-5406-4-git-send-email-yingjoe.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1443109140-5406-4-git-send-email-yingjoe.chen@mediatek.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 24, 2015 at 11:38:58PM +0800, Yingjoe Chen wrote: > +struct mtk_smp_boot_info { > + unsigned long smp_base; ... > +static const struct mtk_smp_boot_info mtk_mt8135_tz_boot = { > + 0x80002000, 0x3fc, ... > +static const struct mtk_smp_boot_info mtk_mt6589_boot = { > + 0x10002000, 0x34, ... > + if (trustzone) { > + /* smp_base(trustzone-bootinfo) is reserved by device tree */ > + mtk_smp_base = phys_to_virt(mtk_smp_info->smp_base); I can't say whether this is correct or not, as we've got rid of most of the information that would allow me to make that decision. The address passed to phys_to_virt() _must_ be one which is mapped by the kernel as lowmem. I've no idea if the above would fall into that category though. -- FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.