Received: by 10.223.164.202 with SMTP id h10csp53660wrb; Tue, 7 Nov 2017 02:46:59 -0800 (PST) X-Google-Smtp-Source: ABhQp+QpkvqJgEg4N7HMqTgYkJjta9ep83kXuLZbhbwgqsRhE0VF1QEQb8S4gBxtLJs3HgmLtOr7 X-Received: by 10.98.215.66 with SMTP id v2mr19835354pfl.24.1510051618997; Tue, 07 Nov 2017 02:46:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510051618; cv=none; d=google.com; s=arc-20160816; b=D8NN5Q4L3DxcJ8npPQQjQoIwAXhOU330H+b0IRbKoTzfUZlSdRhJ2UvaingCiWuXPu PZhD7HMdOtc8ruuJXuvDtbkQL2KxAvOyth/Xqr4Sx47LqxKAErZbXJbH4GKX6ilm/KCI 8MPFRcVP0e3TB2c6QryYhijpGd9o8rlYqUGGKsUZE47RXuotyXWdXX1dHydLuNU6KS6I ALZL7GhbeaBN60nyg4/rDQtAA7yhka3TfcuZP5aCYcDZ0V+AxbunffqpOy41XN/98ULR vOQymWeV8yCOupwwgKoIRtQmclIosHwNR3j6/+4NkCfgx5h0ExYvcr2WvE3Wy2NtRSYh 2I1w== 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=eI6nKCVpiCebx7tPBn2AVvmSobb2cj4Pctrmrb19Zuk=; b=XA3pqMbY0NcI5Rw1UaEG6X0FGwxGxv2FPqQJoJPLj3RVktpL04lNy+07FLQxKd2yxR q7+HzlQexlRcxHtBoXaPFyxCbFJL72GYaRF0zFIkGLCCKO9ldVo3eN8Fxa+9blFl4NWp Be0CPvGhmbvqmdUQSStav/6EKAWPkADHYa27bMRuRFCVz9N4YlhJXyA2bbg4tWsORUBP MK1OB+OXN0o24JbM5uSGddXtBhFWF5fc2is+5q0QZvsAwpdlblDAWueshBFh8bexaaQv ArWyTTer4ts9bIZEIsFv/gYlcZ4w2O4rik5Rwia5llt15mXFLqQMVf4tQv0Me3GNOJ0+ ybVA== 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 b34si862371pld.689.2017.11.07.02.46.45; Tue, 07 Nov 2017 02:46:58 -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 S1753148AbdKGF2e (ORCPT + 91 others); Tue, 7 Nov 2017 00:28:34 -0500 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:51269 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753102AbdKGF2c (ORCPT ); Tue, 7 Nov 2017 00:28:32 -0500 Received: from unknown (HELO lgemrelse6q.lge.com) (156.147.1.121) by 156.147.23.52 with ESMTP; 7 Nov 2017 14:28:28 +0900 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Received: from unknown (HELO localhost) (10.177.222.138) by 156.147.1.121 with ESMTP; 7 Nov 2017 14:28:28 +0900 X-Original-SENDERIP: 10.177.222.138 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Tue, 7 Nov 2017 14:33:14 +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: <20171107053313.GA12447@js1304-P5Q-DELUXE> References: <20170925080806.GA9837@js1304-P5Q-DELUXE> <20170925145437.GG4394@atomide.com> <20171018082927.GB27595@js1304-P5Q-DELUXE> <20171019183033.GH4394@atomide.com> <20171020015542.GA10438@js1304-P5Q-DELUXE> <20171020173146.GN4394@atomide.com> <20171023045342.GA23082@js1304-P5Q-DELUXE> <20171025173137.GQ4394@atomide.com> <20171026044829.GB11791@js1304-P5Q-DELUXE> <20171026141627.GD21504@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171026141627.GD21504@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 Hello, Sorry for dealy. I was on vacation during last week. On Thu, Oct 26, 2017 at 07:16:27AM -0700, Tony Lindgren wrote: > * Joonsoo Kim [171025 21:45]: > > On Wed, Oct 25, 2017 at 10:31:38AM -0700, Tony Lindgren wrote: > > > Great, this branch boots on n900! Early parts of the dmesg attached > > > below. > > > > Sound good. Perhaps, problem is due to the cache management. With my > > patchset, direct mapping for CMA area is cleared in > > dma_contiguous_remap() if CONFIG_HIGHMEM. I guess that proper cache > > operation is required there. > > > > Could you test my newly updated branch again? I re-enable > > dma_contiguous_remap() to clear direct mapping for CMA area and add > > proper(?) cache operation although I'm not the expert on that area. > > > > https://github.com/JoonsooKim/linux/tree/cma-debug4-next-20180901 > > Yeah that one boots too, dmesg below. I wonder why flushing the range > with dmac_flush_range() and outer_flush_range() no longer seems enough > though? I don't know the reason. AFAIK, it should be enough to flush cpu cache before clearing page table entry, however, it doesn't work for n900. flush_cache_all() has not only d-cache flushing but also i-cache flushing. So, I'd like to test effect of i-cache flushing. Could you test follwing updated branch? https://github.com/JoonsooKim/linux/tree/cma-debug4-next-20180901 It has three relevant commits on top and enables CMA memory use. "arm/dma: remove i-cache flush" "arm/dma: flush i-cache and d-cache separately" "arm/dma: call flush_cache_all() and don't do outer cache operation" I think that flush_cache_all() here looks fine because size of CMA area is usually large enough to use flush_cache_all() but understanding root cause would be important so I ask this test. If u don't mind, please test each commit with reverting one by one and let me know the result of each test. > Reverting the arch/arm/mm/dma-mapping.c changes in your patch > "arm/dma: re-enable to remap the CMA area and flush cache before > remapping" also boots, but produces the following build warnings: > > arch/arm/mm/dma-mapping.c: In function 'dma_contiguous_remap': > arch/arm/mm/dma-mapping.c:503:20: warning: passing argument 1 of > 'cpu_cache.dma_flush_range' makes pointer from integer without a > cast [-Wint-conversion] > dmac_flush_range(map.virtual, map.virtual + map.length); > ^~~ > arch/arm/mm/dma-mapping.c:503:20: note: expected 'const void *' but > argument is of type 'long unsigned int' > arch/arm/mm/dma-mapping.c:503:33: warning: passing argument 2 of > 'cpu_cache.dma_flush_range' makes pointer from integer without a > cast [-Wint-conversion] > dmac_flush_range(map.virtual, map.virtual + map.length); Thanks for info. I think that incorrect type would not be related to this problem. Thanks. From 1582329947493660115@xxx Thu Oct 26 14:17:11 +0000 2017 X-GM-THRID: 1577552291468010502 X-Gmail-Labels: Inbox,Category Forums