From patchwork Mon Sep 25 08:08:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joonsoo Kim X-Patchwork-Id: 9969401 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 460D6602CB for ; Mon, 25 Sep 2017 08:07:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A6D3287A2 for ; Mon, 25 Sep 2017 08:07:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D76F28C08; Mon, 25 Sep 2017 08:07:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 439FA28B3B for ; Mon, 25 Sep 2017 08:07:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=I6pZB+ldr5ciS7ypdaVfOnqcJ+w8bRpwWu7Yegq5KdU=; b=h1wCfiACXYVkXb NTHNQUq6levPQzB4dlH18C3GuCYVecEBnwPJktNjAEP3txMak9qI44VgaLx2j+HZyvkq0nQKjkcZJ DwEnejfQQweJ/3eKY64GTCD0pZ1MZaIYp3U4Hqbjz3DLbWD2ZsKliXgs0qBL59u+mlJVKjxr9k0Tv 1/f6oDUZFEbC8aqbyUG/GTdjtztph5wA1o/bOkpFqBN7p0ygYE1i0v93NFuRMq8CGXK1O5k4axp+4 lhFytdf4u7vfzrxXGNJYqMcOUl+ghLHhFVSoarA3LDiFwnfkfcbLoNUrE8lCt21Jtn5P08jtwfVzx hbv7DgZOYQAM9OKRI/Wg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dwOPX-0001Vh-Oh; Mon, 25 Sep 2017 08:06:39 +0000 Received: from lgeamrelo11.lge.com ([156.147.23.51]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dwOP9-0000sD-5B for linux-arm-kernel@lists.infradead.org; Mon, 25 Sep 2017 08:06:36 +0000 Received: from unknown (HELO lgemrelse7q.lge.com) (156.147.1.151) by 156.147.23.51 with ESMTP; 25 Sep 2017 17:05:49 +0900 X-Original-SENDERIP: 156.147.1.151 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Received: from unknown (HELO localhost) (10.177.222.138) by 156.147.1.151 with ESMTP; 25 Sep 2017 17:05:49 +0900 X-Original-SENDERIP: 10.177.222.138 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Mon, 25 Sep 2017 17:08:06 +0900 From: Joonsoo Kim To: Tony Lindgren Subject: Re: n900 in next-20170901 Message-ID: <20170925080806.GA9837@js1304-P5Q-DELUXE> References: <20170903203737.GA12475@amd> <20170905201314.GE5024@atomide.com> <20170905233241.GA19231@js1304-P5Q-DELUXE> <20170906133057.GH5024@atomide.com> <20170907073038.GA2111@js1304-P5Q-DELUXE> <20170907161650.GP5024@atomide.com> <20170913075516.GA25036@js1304-P5Q-DELUXE> <20170913163126.GS5024@atomide.com> <20170915065608.GA8567@js1304-P5Q-DELUXE> <20170921172811.GB4394@atomide.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170921172811.GB4394@atomide.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170925_010616_438569_E18CF5B8 X-CRM114-Status: GOOD ( 19.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stephen Rothwell , ivo.g.dimitrov.75@gmail.com, khilman@kernel.org, Vlastimil Babka , aaro.koskinen@iki.fi, kernel list , sre@kernel.org, abcloriens@gmail.com, "Aneesh Kumar K.V" , Pavel Machek , pali.rohar@gmail.com, Russell King , Andrew Morton , linux-omap@vger.kernel.org, patrikbachan@gmail.com, linux-arm-kernel , serge@hallyn.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP On Thu, Sep 21, 2017 at 10:28:11AM -0700, Tony Lindgren wrote: > * Joonsoo Kim [170914 23:55]: > > On Wed, Sep 13, 2017 at 09:31:27AM -0700, Tony Lindgren wrote: > > > Yes I disabled CONFIG_HIGHMEM and n900 boots. To disable it, > > > you need to remove it from arch/arm/mach-omap2/Kconfig that > > > selects it if ARCH_OMAP2PLUS_TYPICAL is selected. > > > > Okay. Problem would be related to address traslation. I'd like to > > check address traslation more. Could you apply following patch and > > test it? And, please send me the dmesg log and your kernel config. > > Please test this with CONFIG_DEBUG_VIRTUAL = n and CONFIG_CMA_DEBUG=y and > > CONFIG_HIGHMEM=y and with kernel bootparam 'ignore_loglevel'. > > > > It would be really appreciate if you send me two logs for before/after > > commit 9caf25f996e8. > > Sorry for the delays, I finally got around testing this for you. No problem! I really appreciate your help! > Compile with your patch failed for modules with __virt_to_phys_debug > being undefined so I added EXPORT_SYMBOL there. I also enabled DEBUG_LL > and EARLYPRINTK to get output. > > Below is dmesg output for 9caf25f996e8 + your patch. I'll send you > the full logs separately. Hmm...there is only one caller for the CMA memory, that is, atomic_pool_init(). Could you test one more time with 9caf25f996e8 + following patch? I'd like to know the actual user for the CMA memory. Thanks. -------------------------->8------------------------ diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 519c294..c68f34a 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -587,6 +587,8 @@ static void *__alloc_from_pool(size_t size, struct page **ret_page) ptr = (void *)val; } + dump_stack(); + return ptr; }