Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3510288imm; Thu, 17 May 2018 09:52:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqkFy4pU+1CiaW3NW3PnvLs6WHfS1b2dfT9kSseUeKXq6UHWisAelHu7Fz70teLTqCMLpKB X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr5864235plu.22.1526575930701; Thu, 17 May 2018 09:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526575930; cv=none; d=google.com; s=arc-20160816; b=ZnZm97a160RJXDKdW+LluLxK40nXctF9Y2Z8g6Z9wk3+IbK/oI50HSanzkl2sW9E3a hiKhNcK5kbueMDGBBWvVoRw6BsioH0fcII+5qEvbeWyu1TKgsZcTzAweg3TNBWHn7W0H xkiWV8taLxPsN1A9Cao9RfsV2lpNM7uqMfybg1Umw/NBQ4LaZbzW1+XWVK4qNRfPtKql zrNkkNrb3NHiJVTFPAKOBwccmPpM68MoABF+BjCZtWl+LorTLngFRzYv3jyv+SbWPCrr RKIPIXBXMjnZB2TowFPTx+wm6RRiQ8/JglFGSsYAPT8UdflXCZGfKMaWxJtSOSi7dxuJ LRbg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=yGMw9EjKhepqljIlvQtBpBbg2nW70sDddLmb/Xuwz4A=; b=ukm7FM4sT3mO2fch2SHqQYhCHuW197GkJqHt3ejXE1Q+YZ6mrZZdPwsF/AuV+LnEvi Aaf2ODApMw2DPTB2Dnr9Rs1bc6bNqssCBeHyC4QKZk+Egh5c4YRw6cGSWucNYi62h5vp agfZ20uytyVBaRax9fXvl3uXfwjz8Gsl1XvA6YkeR9Thq8YYU5XCs0VBWGUbX1c2fBgi n5vHE0xd7Xnoy6LHSQQYsGR0gxG4Ym+Sl6NrUo4XvKqhxwn+ij7n/+U1NOHEWx6AHkvo kBJDapaIM5yvFF/7tZTXq4xzqMCnkmC8CKb5/QqEV+RqdG4LYjRwBBM6CV0WuwvE5nNO v5RQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si1198252plg.586.2018.05.17.09.51.56; Thu, 17 May 2018 09:52:10 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752332AbeEQQtx (ORCPT + 99 others); Thu, 17 May 2018 12:49:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:55914 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751280AbeEQQtw (ORCPT ); Thu, 17 May 2018 12:49:52 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E2FA4AF55; Thu, 17 May 2018 16:49:50 +0000 (UTC) Date: Thu, 17 May 2018 18:49:47 +0200 From: Michal Hocko To: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Cc: Joonsoo Kim , "Aneesh Kumar K . V" , Tony Lindgren , Vlastimil Babka , Johannes Weiner , Laura Abbott , Marek Szyprowski , Mel Gorman , Michal Nazarewicz , Minchan Kim , Rik van Riel , Russell King , Will Deacon , Andrew Morton , Linus Torvalds , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "mm/cma: manage the memory of the CMA area by using the ZONE_MOVABLE" Message-ID: <20180517164947.GV12670@dhcp22.suse.cz> References: <20180517125959.8095-1-ville.syrjala@linux.intel.com> <20180517132109.GU12670@dhcp22.suse.cz> <20180517133629.GH23723@intel.com> <20180517135832.GI23723@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180517135832.GI23723@intel.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 17-05-18 16:58:32, Ville Syrj?l? wrote: > On Thu, May 17, 2018 at 04:36:29PM +0300, Ville Syrj?l? wrote: > > On Thu, May 17, 2018 at 03:21:09PM +0200, Michal Hocko wrote: > > > On Thu 17-05-18 15:59:59, Ville Syrjala wrote: > > > > From: Ville Syrj?l? > > > > > > > > This reverts commit bad8c6c0b1144694ecb0bc5629ede9b8b578b86e. > > > > > > > > Make x86 with HIGHMEM=y and CMA=y boot again. > > > > > > Is there any bug report with some more details? It is much more > > > preferable to fix the issue rather than to revert the whole thing > > > right away. > > > > The machine I have in front of me right now didn't give me anything. > > Black screen, and netconsole was silent. No serial port on this > > machine unfortunately. > > Booted on another machine with serial: Could you provide your .config please? [...] > [ 0.000000] cma: Reserved 4 MiB at 0x0000000037000000 [...] > [ 0.000000] BUG: Bad page state in process swapper pfn:377fe > [ 0.000000] page:f53effc0 count:0 mapcount:-127 mapping:00000000 index:0x0 OK, so this looks the be the source of the problem. -128 would be a buddy page but I do not see anything that would set the counter to -127 and the real map count updates shouldn't really happen that early. Maybe CONFIG_DEBUG_VM and CONFIG_DEBUG_HIGHMEM will tell us more. > [ 0.000000] flags: 0x80000000() > [ 0.000000] raw: 80000000 00000000 00000000 ffffff80 00000000 00000100 00000200 00000001 > [ 0.000000] page dumped because: nonzero mapcount > [ 0.000000] Modules linked in: > [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.17.0-rc5-elk+ #145 > [ 0.000000] Hardware name: Dell Inc. Latitude E5410/03VXMC, BIOS A15 07/11/2013 > [ 0.000000] Call Trace: > [ 0.000000] dump_stack+0x60/0x96 > [ 0.000000] bad_page+0x9a/0x100 > [ 0.000000] free_pages_check_bad+0x3f/0x60 > [ 0.000000] free_pcppages_bulk+0x29d/0x5b0 > [ 0.000000] free_unref_page_commit+0x84/0xb0 > [ 0.000000] free_unref_page+0x3e/0x70 > [ 0.000000] __free_pages+0x1d/0x20 > [ 0.000000] free_highmem_page+0x19/0x40 > [ 0.000000] add_highpages_with_active_regions+0xab/0xeb > [ 0.000000] set_highmem_pages_init+0x66/0x73 > [ 0.000000] mem_init+0x1b/0x1d7 > [ 0.000000] start_kernel+0x17a/0x363 > [ 0.000000] i386_start_kernel+0x95/0x99 > [ 0.000000] startup_32_smp+0x164/0x168 -- Michal Hocko SUSE Labs