Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3687204imm; Thu, 17 May 2018 12:55:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqT71rbFj122rClaBWk0AqLxIUHMaUJHrQo+TzF3BEs8TTanPi017S+qspWZcS6+PdniD4q X-Received: by 2002:a62:66dd:: with SMTP id s90-v6mr6306525pfj.123.1526586947058; Thu, 17 May 2018 12:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526586947; cv=none; d=google.com; s=arc-20160816; b=E98mz4xbYUoq2rKjVyT8MtK+m5eNos/l5zxKYK0WSInS5FOM/avt5czEAHgUmKG821 /e5/egz2YAsCLC2meZ9GSwQW0rgliZIHXr6Oc7LW6BCFzWqiDjp3Wh4DBsX01bY2yE+Y 1uk4Jpg8VVzepzEkEq+kx1EKBPGYqwF4vaRJhQ2nDxnK8+0GizaoLxhc5sv4t8jbcE9P 0k4XouXLX3eDKR+t4zik50JKTzQnyVjuXRiQA2ToMW10RtVuw1huW3XXpp39vg9ZmeTX bSB/6pr7EhskxMzPZV2h4sFOqek6EbnOnuMrxD8J5ImyDfaxiuYB2c2XcyqyDlFfNdYg LvAQ== 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=HlQVphJuF09aTTvvq4NXd9+yVDzVwNKwfzScesN+SNU=; b=UeBbSFqVAzUsWlkiawfaw0lkkk1mNx/QhrSFIlApS1BVBSYomgtcTMA3jqB2MIDfII TBeWI3bQ/ppPERPEhuoZMm2ELtvmP3qZ3lLb563i9fMRNK9vNVaICbbVIPCRCqq3379q RHrHnRII87/74zZLCosJNXSpjZ1sNdftudlAqcSSrmM+/QG/JOj1EzL6D27r8nRzCyhz MI3UNt4izbq84uYOgBdr8sIoHvN/NvzYTVY4Q1aARGe6RPdF/G77kL7iGtmBL9YANAPg 1BY9RBq3aMrphy/KKvJlBCwZ4zUzJehKgvp8s0tasIdX74efAcQJEo67DgOMfHVpZugi Fa4Q== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r8-v6si5560958pli.119.2018.05.17.12.55.32; Thu, 17 May 2018 12:55:47 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751879AbeEQTzX (ORCPT + 99 others); Thu, 17 May 2018 15:55:23 -0400 Received: from mga11.intel.com ([192.55.52.93]:25345 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750924AbeEQTzW (ORCPT ); Thu, 17 May 2018 15:55:22 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 May 2018 12:55:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,411,1520924400"; d="scan'208";a="40789106" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by fmsmga008.fm.intel.com with SMTP; 17 May 2018 12:55:16 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 17 May 2018 22:55:15 +0300 Date: Thu, 17 May 2018 22:55:15 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Michal Hocko 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: <20180517195515.GR23723@intel.com> References: <20180517125959.8095-1-ville.syrjala@linux.intel.com> <20180517132109.GU12670@dhcp22.suse.cz> <20180517133629.GH23723@intel.com> <20180517135832.GI23723@intel.com> <20180517164947.GV12670@dhcp22.suse.cz> <20180517171335.GN23723@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180517171335.GN23723@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 17, 2018 at 08:13:35PM +0300, Ville Syrj?l? wrote: > On Thu, May 17, 2018 at 06:49:47PM +0200, Michal Hocko wrote: > > 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? > > Attached. Not sure there's anything particularly useful in it though > since I've now seen this on all the highmem systems I've booted. > > > BTW I just noticed that the reported memory sizes look pretty crazy: > > Memory: 3926480K/3987424K available (5254K kernel code, 561K rwdata, > 2156K rodata, 572K init, 9308K bss, 56848K reserved, > 4096K cma-reserved, 3078532K highmem) > > vs. > > Memory: 7001976K/3987424K available (5254K kernel code, 561K rwdata, > 2156K rodata, 572K init, 9308K bss, 4291097664K reserved, > 4096K cma-reserved, 7005012K highmem) > > > > > [...] > > > [ 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. > > I'll see about grabbing another log. With DEBUG_VM the machine doesn't get far enough to print anything on the serial console. DEBUG_HIGHMEM didn't give me any new output. -- Ville Syrj?l? Intel