Received: by 10.223.164.202 with SMTP id h10csp100891wrb; Tue, 14 Nov 2017 18:30:03 -0800 (PST) X-Google-Smtp-Source: AGs4zMaVozPDgWevVszJMPQRhKofwGaogCtdBfFWKIz6b7tn3+kEJgem6cLbFdBMownpGsXg8LNu X-Received: by 10.84.230.137 with SMTP id e9mr14498276plk.46.1510713003216; Tue, 14 Nov 2017 18:30:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510713003; cv=none; d=google.com; s=arc-20160816; b=gYmZ6s2EkaKXs6NgaPoe3eExSDiw9hc1g5YLVDCbDSbcPHhjI77umR72cwGTx5zh3z ndfQs07sHNsVVDUkVzoNz8cv+mtaHazc0MwKV3sIQtl+UdZ+tN/2LpTCUSyMFYRnJa2H 9R/koCvzAnmKmj0TzgmyboPtZYVmqTztyDdgf/OHWx9we5kfxjirrseh5Sbmkl950sJe PnzimtvUDw0+8bmOwG/3eIS4D9cbDY2yzK4rcGp85zuxv3EUlrxRwjiZ+YBEU0/SUnO2 QVjXKRCWlyZT6DqmgFDcCaTlM5c5j8Shf5l/lv9dfXm2NjeSCG6Z9JXNb5cKoj8PAoOs Fl1g== 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=rXsjJNSKi9UUk8Q25xf8948qoeA3tZ5wQZ6P0/+HVVs=; b=AZaK/ojcOqWvpAou1Ftjc2zhHISMadvfOeXON+0khiZ/xfypTNP+vmt14mCzCqYW7/ S2GadFlOyZMIwJ+h5DuoLtb5hBZ14jXZmxcCXdVgsydS1+hRtfROw8nhSqN8HNBVoD73 cDxl2iJiXiSJCe4MWAUL0Nr/kgk4fgZXg7YcdxloOEroTWoUWqo6mYpHGs8ZXrCNSzRT 0FD91KNJ1ALF7d8GzaGlpTR+hx82+9yBtcxV/c1Pe3p2Q2PYWjoP4sMYcpg5kTG1+aQP 0yCCZv4lfrdp/li2TgsxVjctpNTHo1fxRtG0VfJW2X6Nw6p5Kk3MhZvF4aJDJyrakp2v BqfA== 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 f124si16538146pgc.192.2017.11.14.18.29.51; Tue, 14 Nov 2017 18:30:03 -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 S1754635AbdKOCEM (ORCPT + 87 others); Tue, 14 Nov 2017 21:04:12 -0500 Received: from muru.com ([72.249.23.125]:48796 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752233AbdKOCEG (ORCPT ); Tue, 14 Nov 2017 21:04:06 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 954D68064; Wed, 15 Nov 2017 02:05:52 +0000 (UTC) Date: Tue, 14 Nov 2017 18:04:00 -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 , Tero Kristo Subject: Re: n900 in next-20170901 Message-ID: <20171115020400.GJ28152@atomide.com> References: <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> <20171114063724.GA16969@js1304-P5Q-DELUXE> <20171114173719.GA28152@atomide.com> <20171115005118.GA21113@js1304-P5Q-DELUXE> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171115005118.GA21113@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 [171115 00:48]: > On Tue, Nov 14, 2017 at 09:37:19AM -0800, Tony Lindgren wrote: > > * Joonsoo Kim [171114 06:34]: > > > On Fri, Nov 10, 2017 at 07:36:20AM -0800, Tony Lindgren wrote: > > > > * 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? > > > > > > My testing environment is a beagle-(xm?) for QEMU. It is configured by > > > CONFIG_VMSPLIT_3G=y so kernel address space is started at 0xc0000000. > > > And, it has 512 MB memory so 0xc0000000 ~ 0xdff00000 is used for > > > direct mapping. See below. > > > > > > [ 0.000000] Memory: 429504K/522240K available (11264K kernel code, > > > 1562K rwdata, 4288K rodata, 2048K init, 405K bss, 27200K reserved, > > > 65536K cma-reserved, 0K highmem) > > > [ 0.000000] Virtual kernel memory layout: > > > [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) > > > [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) > > > [ 0.000000] vmalloc : 0xe0000000 - 0xff800000 ( 504 MB) > > > [ 0.000000] lowmem : 0xc0000000 - 0xdff00000 ( 511 MB) > > > [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) > > > [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) > > > [ 0.000000] .text : 0xc0208000 - 0xc0e00000 (12256 kB) > > > [ 0.000000] .init : 0xc1300000 - 0xc1500000 (2048 kB) > > > [ 0.000000] .data : 0xc1500000 - 0xc1686810 (1563 kB) > > > [ 0.000000] .bss : 0xc168fc68 - 0xc16f512c ( 406 kB) > > > > > > Therefore, if OMAP34XX_SRAM_VIRT is 0xd0010000, direct mapping is > > > broken and the system doesn't work. I guess that we should use more > > > stable address like as 0xf0000000. > > > > OK. Let's forget about adding static mappings and my earlier > > patches to attempt to fix this. Below is what I now think we should > > merge as a fix before merging Joonsoo's patches. Please all review > > and test, adding Tero to Cc also. > > Okay. Then, this patch will be merged by yourself as a fix? I'm okay > with either way. Just let me know. :) Well what's the plan with your patches? I'd not have mainline kernel broken so if this was the only blocker for the v4.15, then you should pick it. However, if your patches are now planned for v4.16, then I'll queue it for early v4.15-rc. Regards, Tony From 1584095725462577201@xxx Wed Nov 15 02:03:28 +0000 2017 X-GM-THRID: 1577552291468010502 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread