Received: by 10.223.164.202 with SMTP id h10csp866544wrb; Thu, 9 Nov 2017 16:09:18 -0800 (PST) X-Google-Smtp-Source: ABhQp+QA/CAc4n2KfrP9ZYwIJy+aAYElfKFoFdNq0uAmuAZo9H12e0QjTLbD3jTgx5OxAyaXGfKa X-Received: by 10.99.47.6 with SMTP id v6mr2138815pgv.452.1510272558707; Thu, 09 Nov 2017 16:09:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510272558; cv=none; d=google.com; s=arc-20160816; b=uKUDSfc69CWLQVlDn8tzDo41EjqHalkn6MpNVB4r5/gzQneKqkqqRgEJ500UY7ZYmn yEvVg7E1ugyNo+d2CcParhtMQrGibt6ONK+ikAw6xkylmym9ub/fzTwlG5kOA0sKtiWu XAPe9ygjgyNy5Rs+Q/y2OQAEa5c2+cdZ8oTUtn4OInuNQnxZlGIs1LXj5HyGNC1M9f+3 TnXEjjy7GaW9605AujIoriczTxUcVA2ihJC8ErI02VJ5HLuB+Bv5InPyYMzMvo6wHfab Pzd7wfkc4surM4UcGhdLVCWSpuTctYRLiuc+VrRYkJbP8QdIllm/TxKMzvcsh3nXhMwM nyNw== 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=FfA3OIREAIdtFq5RmUzPZjiLTpJmzNzlJrWiIkxHccI=; b=k53Sv5OvDc3usHiR5EOepHk0ZDiRiz9jxm9uLDsPfHx6nHnbYVvbP/trJDk0M6Soff fQrPBVnknK5F3zEMc85YWbibAgvZru6tPNVvIvqlR0khED5stZpvAZ5aApisd8uPv5x8 ND7k83ubEpppAQSrUQPaGlTNcWk9vg3UVJqnmCxr07XQQtYSxYVhOkYBSAVSwhpenEYp dVJtGplo5KyPls1jw4Fwra9NvgPR3UMA5ax7VFfsPrBIluK3RmydF4Wp9UQGQ36v4QsR 9H6x8lQlzKyP5UahIBL1a1lDw42gvCQ3wz5Wi3VarsDTnNPSOd/3zyU+0/WN0IUF80e8 WyEQ== 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 f17si7409706plr.754.2017.11.09.16.09.06; Thu, 09 Nov 2017 16:09:18 -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 S1755342AbdKJAI0 (ORCPT + 83 others); Thu, 9 Nov 2017 19:08:26 -0500 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:44720 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755082AbdKJAIZ (ORCPT ); Thu, 9 Nov 2017 19:08:25 -0500 Received: from unknown (HELO lgeamrelo02.lge.com) (156.147.1.126) by 156.147.23.52 with ESMTP; 10 Nov 2017 09:08:22 +0900 X-Original-SENDERIP: 156.147.1.126 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Received: from unknown (HELO localhost) (10.177.222.138) by 156.147.1.126 with ESMTP; 10 Nov 2017 09:08:21 +0900 X-Original-SENDERIP: 10.177.222.138 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Fri, 10 Nov 2017 09:13:16 +0900 From: Joonsoo Kim To: Tony Lindgren 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: <20171110001315.GA29669@js1304-P5Q-DELUXE> References: <20171026141627.GD21504@atomide.com> <20171107053313.GA12447@js1304-P5Q-DELUXE> <20171107154842.GP28152@atomide.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171109150854.GC28152@atomide.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 09, 2017 at 07:08:54AM -0800, Tony Lindgren wrote: > * Joonsoo Kim [171109 03:47]: > > Could you test following two commits on my updated branch? > > > > "arm/dma: vmalloc area allocation" > > Won't boot at this commit: > > [ 6.747283] save_secure_sram() returns 0000ff02 > [ 6.751983] save_secure_sram()'s param: 0: 0x4 > [ 6.756561] save_secure_sram()'s param: 1: 0x8e700000 > [ 6.761749] save_secure_sram()'s param: 2: 0x0 > [ 6.766326] save_secure_sram()'s param: 3: 0x1 > [ 6.770904] save_secure_sram()'s param: 4: 0x1 > > > "arm/dma: defer atomic pool initialization" > > Boots at this commit. > > > I suspect that changed virtual address of the sram due to early > > __dma_alloc_remap() call causes the problem and above two commits test > > this theory. > > Hmm OK. Does your first patch above now have the initcall issue too? > It boots if I make that also subsys_initcall and then I get: > [ 2.078094] vmalloc_pool_init: DMA: get vmalloc area: d0010000 Yes, first patch has the initcall issue and it's intentional in order to check the theory. I checked following log for this. - Boot failure SRAM_ADDR: omap_map_sram: P: 0x40208000 - 0x4020f000 SRAM_ADDR: omap_map_sram: V: 0xd0050000 - 0xd0057000 - Boot success SRAM_ADDR: omap_map_sram: P: 0x40208000 - 0x4020f000 SRAM_ADDR: omap_map_sram: V: 0xd0008000 - 0xd000f000 When failure, virtual address for sram is higher than normal one due to vmalloc area allocation in __dma_alloc_remap(). If it is deferred, virtual address is the same with success case and then the system work. So, my next theory is that there is n900 specific assumption that sram should have that address. Could you check if any working tree for n900 which doesn't have my CMA series work or not with adding "arm/dma: vmalloc area allocation"? Thanks. From 1583601628160362031@xxx Thu Nov 09 15:10:00 +0000 2017 X-GM-THRID: 1577552291468010502 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread