Received: by 10.223.164.202 with SMTP id h10csp46875wrb; Mon, 13 Nov 2017 13:16:47 -0800 (PST) X-Google-Smtp-Source: AGs4zMZhEYXMfMXWVDrkuQdJ7LHgwQ6Cvsl6lNzsAuXarp9d3d+uU8ZH5cx+eNwpPbWVsbTeLKCb X-Received: by 10.98.160.193 with SMTP id p62mr11372495pfl.138.1510607807776; Mon, 13 Nov 2017 13:16:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510607807; cv=none; d=google.com; s=arc-20160816; b=irEkuj6FROKRV/Teaebiyq1f54T0DgrWkkIWRgAocZmGw65rOCkUrvOGqET4p0XXXR 5dfbsisDQJZeiR4EH+V9ptjuDdA0jRGXOlHeGgtXtEPa1lpWpyzoB0XKHmO+keWCfSCs X4VrdzBClzu0b34RyelaB7kQ0aoVvvFLN07Vr8ntXxFzW3UZ2JXRqU69RTElagmcUSsT iBnQa4TxTGsLBDrZFl+1EyTa9mmHXY3KY0YAyCBC5UkAfYtbO0ElEKqs7wRjcBDZnm6v IqM+QChzhdCGAJAiUpIFK0fbU9PsMGnythvyOa8bpiykBac+W3fJpVKOiU5LlQRz555e lizA== 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:arc-authentication-results; bh=sR2z4q0rMAO36986FK54h5p8L2AtQFL2fL1OguChaZc=; b=sJOIIRbqMPUprUv5elx1oBJKhwgp9cH/n0Co8DiYp6AEl1CHypKFtdDdeQ0TOqWPyK FFvdQQgOGT7KR42CGua3yfe9MxDoevAUSKrscxvWRSoVZAMRnGX4lpWpaB6aPm9EeHPy hNAxyW7/nyiseo6iQhAjqhvHSrytHjJlv9XKDMsriA2q/vWRx1bviVlCzIHKfFrf93b3 I9/phSOL9dTvaTsj8RzJQ9Y/oVAI1LThKKIH9e1KhFrynW8eKeybv9wFLLT9EtSCFNGX J3u2PhS57sILlHqcQdTfbcSrm7OXOKmzwsZYjVtg0LPu7V0jqyH72yMWVuPLfeWkm/NI 1eyg== 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 g1si15475441pln.619.2017.11.13.13.16.35; Mon, 13 Nov 2017 13:16:47 -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 S1755843AbdKMVPj (ORCPT + 87 others); Mon, 13 Nov 2017 16:15:39 -0500 Received: from muru.com ([72.249.23.125]:48408 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755829AbdKMVPf (ORCPT ); Mon, 13 Nov 2017 16:15:35 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id B83648068; Mon, 13 Nov 2017 21:17:21 +0000 (UTC) Date: Mon, 13 Nov 2017 13:15:30 -0800 From: Tony Lindgren To: Joonsoo Kim Cc: Pavel Machek , pali.rohar@gmail.com, sre@kernel.org, kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, khilman@kernel.org, aaro.koskinen@iki.fi, ivo.g.dimitrov.75@gmail.com, patrikbachan@gmail.com, serge@hallyn.com, abcloriens@gmail.com, "Aneesh Kumar K.V" , Vlastimil Babka , Andrew Morton , Stephen Rothwell , Russell King Subject: Re: n900 in next-20170901 Message-ID: <20171113211530.GY28152@atomide.com> References: <20171108163413.GU28152@atomide.com> <20171109000801.GA23982@js1304-P5Q-DELUXE> <20171109001113.GZ28152@atomide.com> <20171109003639.GB23982@js1304-P5Q-DELUXE> <20171109035031.GA24383@js1304-P5Q-DELUXE> <20171109150854.GC28152@atomide.com> <20171110001315.GA29669@js1304-P5Q-DELUXE> <20171110032610.GJ28152@atomide.com> <20171110063727.GA32073@js1304-P5Q-DELUXE> <20171110153620.GO28152@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171110153620.GO28152@atomide.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Tony Lindgren [171110 07:36]: > * Joonsoo Kim [171110 06:34]: > > On Thu, Nov 09, 2017 at 07:26:10PM -0800, Tony Lindgren wrote: > > > +#define OMAP34XX_SRAM_PHYS 0x40200000 > > > +#define OMAP34XX_SRAM_VIRT 0xd0010000 > > > +#define OMAP34XX_SRAM_SIZE 0x10000 > > > > For my testing environment, vmalloc address space is started at > > roughly 0xe0000000 so 0xd0010000 would not be valid. > > Well we can map it anywhere we want, got any preferences? Hmm and I'm also wondering what you do to make vmalloc space to start at 0xe0000000 instead of 0xd0000000? The reason I'm asking is because I think we can just move all of save_secure_ram_context to run from DDR instead of SRAM. But I'd rather do a minimal patch first that fixes your series and then we can test the further changes with more time. After moving save_secure_ram_context to DDR, we can call save_secure_ram_context directly with something like: args_pa = __pa(omap3_secure_ram_storage); offset = (unsigned long)omap3_secure_ram_storage - args_pa; ret = save_secure_ram_context(args_pa, offset); > Just that the current save_secure_ram_context uses "high_mask" > of 0xffff to translate the address. To make this more flexible, > we need the save_secure_ram_context changes too. So we might > want to do the static mapping and save_secure_ram_context changes > as a single patch. > > > And, PHYS can be different according to the system type. Maybe either > > OMAP3_SRAM_PUB_PA or OMAP3_SRAM_PA. It seems that SIZE and TYPE should > > be considered, too. My understanding is correct? > > We can have a static map for the whole SRAM area, see function > __arm_ioremap_pfn_caller() for the comment "Try to reuse one of the > static mapping whenever possible". So the different public SRAM start > addresses and sizes don't matter there. And then if save_secure_ram_contet runs in DDR, no static map is needed. Regards, Tony From 1583694050920952307@xxx Fri Nov 10 15:39:01 +0000 2017 X-GM-THRID: 1577552291468010502 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread