Received: by 10.223.164.202 with SMTP id h10csp368869wrb; Fri, 10 Nov 2017 07:37:14 -0800 (PST) X-Google-Smtp-Source: AGs4zMZw/xbxkPz3xqd9fbo9kMNGI0EIc4FQndRQpietExRUR1+O76ftpqQSgSuPwEXYIa+pNQfW X-Received: by 10.101.83.5 with SMTP id m5mr718971pgq.350.1510328234374; Fri, 10 Nov 2017 07:37:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510328234; cv=none; d=google.com; s=arc-20160816; b=FOPdnYN96f5gnuDd8am9skQgiq+61gY2Dd1M5YAlWIB2V5Ralo0yI8NA88tPmteS/z Tq2pbm+34mBEmtlAYRWPzRri6+8w/M1vbElTDlFWuN4p82Ix36AWGVqwhKhzj11/vxwP V9VPs+RQCid+qw6tvo0EYVGeNudpLrPmE1MhAQhNvJAsJosPgE7DhI7ebsKBO2LOHuLi iFZArYu+VvC6O7zReox794cetyrI28Sl1fhMn+0nzmhCkJfqInnn3nr58pfRjn7CM5wT 198UZIW6GTNrLz0hc5R8pnzLOky3xFKhuzaT9CTdX/ziX+CBL3FKkNrUjHTSCpJhPxS0 KaBg== 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=lfotvbd/c61Tl7nGl76pp/huAL8stUglDGOkeq50R9E=; b=M0NVwn4hlQPTdLQrZJq8y5oInC9uTsZjdIlZQ1vlryr21gnCFp2a23Sqb+1qovMYfc AHKYY59+FCHxzm0bWZsdqY5c0xXEtFPPVBeUng3cImmLYn94zd07oOCKizmAv8ilrIm7 scQ3gXHsseXPnbcadwRG1gvJQgJRicfKbmja61SVpghAeTw2qBlToF87w6J/flNdJbko k0J5QjCMVhJB/04dNjRXUXnQl9enFCkkBVI/vOwwzAynirRtLK+axE6oflmJakn+/T3K K3ylsjnPsJqCq+zi1v/n15pq5sah6tWgUfAvChcqA6FiIvK4lRGN6fUOgNlgT+EmOz2x napQ== 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 z76si7422447pgz.199.2017.11.10.07.37.02; Fri, 10 Nov 2017 07:37:14 -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 S1753054AbdKJPg0 (ORCPT + 82 others); Fri, 10 Nov 2017 10:36:26 -0500 Received: from muru.com ([72.249.23.125]:47928 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752411AbdKJPgZ (ORCPT ); Fri, 10 Nov 2017 10:36:25 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id C60428139; Fri, 10 Nov 2017 15:38:07 +0000 (UTC) Date: Fri, 10 Nov 2017 07:36:20 -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: <20171110153620.GO28152@atomide.com> References: <20171108074645.GA18747@js1304-P5Q-DELUXE> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171110063727.GA32073@js1304-P5Q-DELUXE> 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 * 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? 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. Regards, Tony From 1583660308637511967@xxx Fri Nov 10 06:42:42 +0000 2017 X-GM-THRID: 1577552291468010502 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread