Received: by 10.223.164.202 with SMTP id h10csp119341wrb; Tue, 14 Nov 2017 18:57:05 -0800 (PST) X-Google-Smtp-Source: AGs4zMaxPwM60cUo+Z4iLKykCAV5xvUvoBFjuF3/yViUhbAzgxHram5srV7fLxvNljHqAZHD3n7i X-Received: by 10.98.87.13 with SMTP id l13mr10435049pfb.193.1510714624931; Tue, 14 Nov 2017 18:57:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510714624; cv=none; d=google.com; s=arc-20160816; b=cGPhTAYXKO3g7dPecSd7wWRHx90e0+xdChTuzC3rjDdRpH1B7gGom/kQLzAoe3AftC cqSYwePcoikUuVqFrwkVquaJoD+IbwsNvO5crH+af+Kq2afNVVE0Kcnd8R1cpo+WhxXP sqrm6L1DzWL11STm61O2U7O1MNwBCfPZCAmdmBuCpfGApyhbjz4QpKZNY0jux4LN50D9 LxMNR0ydlHwILnmkjNR3/F26EXZesVquI2d8/Hz9DxrwZ7N1qj2WpQpt+9y8GIMgDHNe IgwhelPuGe6b9bavYxXmCi4dPZ0y6weTM4p87gvjKjHIWAzdIwLyNQL10EOh2ZQAlWaC ph6w== 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=vq/pl9XmZ4woNEUIVdz9tWLnrdppPmCO8vE3DF0jKHQ=; b=e8DhyHuOhD1Xv+JQ2pONCt9/4wLMCALvrluTZhg4bJRiQw9tck5Z0Fef0KI5C4GL2C nWycmO2oPjKWwX73L16brJVsJldpaX2fm0c89NVo/qalmhEPl2tEjJ7ZTMdJVtJH6iDd dEpZyfn5AF18tCU/95+63GVnHthajYlg4fLG7ZfpOz5ym4x+8I815I5TprlEg9h4iDRm mjsoPFwEV2PVvwm9v54FEetwyNU5j0mSm5LfjVbW7h5Iv8mlApizdyzUeFcgfFL7b15u b30OVz3lSBLJuirggSbemIZonmJgeDCCgN65YpQununCMYfEMRO7NtS79Lylw2F5jFhj 1T1A== 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 91si10679694ply.766.2017.11.14.18.56.53; Tue, 14 Nov 2017 18:57:04 -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 S1757314AbdKOCzl (ORCPT + 86 others); Tue, 14 Nov 2017 21:55:41 -0500 Received: from muru.com ([72.249.23.125]:48852 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756482AbdKOCxS (ORCPT ); Tue, 14 Nov 2017 21:53:18 -0500 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 824188064; Wed, 15 Nov 2017 02:55:05 +0000 (UTC) Date: Tue, 14 Nov 2017 18:53:12 -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: <20171115025312.GL28152@atomide.com> References: <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> <20171115020400.GJ28152@atomide.com> <20171115024801.GA21621@js1304-P5Q-DELUXE> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171115024801.GA21621@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 02:44]: > On Tue, Nov 14, 2017 at 06:04:00PM -0800, Tony Lindgren wrote: > > * 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. > > It was the only blocker but I think that it's too late for v4.15. I > will try again for v4.16. Please queue your fix for early v4.15-rc. OK let's do that. I'll wait few days for comments. Regards, Tony From 1584097397986043674@xxx Wed Nov 15 02:30:03 +0000 2017 X-GM-THRID: 1577552291468010502 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread