Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp262140ybk; Tue, 19 May 2020 22:04:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCTN9m5R4ueexH5oR2cc+GG11e9gDbNZT/ew5wiQwxC/vEUtoZLRSmqBAx4ITfuO+Ia4fI X-Received: by 2002:a17:906:3b9a:: with SMTP id u26mr2246331ejf.456.1589951073761; Tue, 19 May 2020 22:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589951073; cv=none; d=google.com; s=arc-20160816; b=pKdlrEeGB+KiiwLoF4hPOtCNFNV5429RQ3VJA3N5i4wDbb0MjMSMI2NxA2p4aHbc4W YyMme9rbBvHcTzxjvocCa1yYuHAmthvpLhKXiaV8v/gKsyw3rrn2VXWhkFc4tK2dE3VY L6DezDNsh4ZapU3atdgm2vxF0YiBKQ+MSHiIEM9NYVsPaq2kFWfsrydv48R0LsNKPUrM 8zkCePG67JyZomvtATed/6WmrssH3y7rncBIYYr/Yhhk9kXt6R/zjE7d/hHfwBfbQciU f5z8ZBAoEZy1hfZ2Egr4Yxyb1a1IPrL6wXWQ+y3tcyqgKWgQpGhHhVDJhOSrYAmxUbxv sqog== 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:ironport-sdr:ironport-sdr; bh=SzIzm7sFQnHoljV5VuSL9B38O3GTdd3y89zda7apogE=; b=YWWSPZ7UDhAfoNirs141p/h7nk01KgwCZyfX8HrXb6GSEgB/6Xevr+b09JXFl/xLmA y+2uv4Yzmkmwwzr6ibOW66dVuqoXrG2nF2zBTyYr5K1UtBTnd64nyLiGBfADLC+KMCEg 3q1LDar6omBDpAV5F27xmOZP8yfEoL3yTRAkgoe0FRkxANw0MVc5jHHTaTzIQPu8XUUU Qi36dPvrm5674TEIeVVtDgd87ubul6rOKjW+2gxb1FR4ZyZEJQ/Zktm1acaB99RHHAs6 MCx89A4Sb5CgMs3x2NN2WB0Ztk0V7Ta9/t3uRsMEv08ZWxuyCpOO/yDbAPe2EwexzkTR pdDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id j90si936654edc.496.2020.05.19.22.04.11; Tue, 19 May 2020 22:04:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726655AbgETFCg (ORCPT + 99 others); Wed, 20 May 2020 01:02:36 -0400 Received: from mga07.intel.com ([134.134.136.100]:49153 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726439AbgETFCg (ORCPT ); Wed, 20 May 2020 01:02:36 -0400 IronPort-SDR: tBzu7XWPPHectZh84+boP5KQkGvCLVkR7x2son4wGIc2YQhj97AI3FrnJWKRmT+S6irIdN/nvJ JzY57JSw0T1Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2020 22:02:35 -0700 IronPort-SDR: 5mdOya4YqlgSTKO3c+IE0Bjj3/zITTGmWtyJGGPQcID/7L0ymDI6FfjftlmZFv5htpsyDfUzlC eVvrVdKIk9ig== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,412,1583222400"; d="scan'208";a="439885922" Received: from iweiny-desk2.sc.intel.com ([10.3.52.147]) by orsmga005.jf.intel.com with ESMTP; 19 May 2020 22:02:34 -0700 Date: Tue, 19 May 2020 22:02:34 -0700 From: Ira Weiny To: Guenter Roeck Cc: linux-kernel@vger.kernel.org, Andrew Morton , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Chris Zankel , Max Filippov , Dan Williams , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org, dri-devel@lists.freedesktop.org, Christian Koenig , Al Viro , Christoph Hellwig Subject: Re: [PATCH] arch/{mips,sparc,microblaze,powerpc}: Don't enable pagefault/preempt twice Message-ID: <20200520050233.GB3470571@iweiny-DESK2.sc.intel.com> References: <20200507150004.1423069-8-ira.weiny@intel.com> <20200518184843.3029640-1-ira.weiny@intel.com> <20200519165422.GA5838@roeck-us.net> <20200519184031.GB3356843@iweiny-DESK2.sc.intel.com> <20200519194215.GA71941@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200519194215.GA71941@roeck-us.net> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 19, 2020 at 12:42:15PM -0700, Guenter Roeck wrote: > On Tue, May 19, 2020 at 11:40:32AM -0700, Ira Weiny wrote: > > On Tue, May 19, 2020 at 09:54:22AM -0700, Guenter Roeck wrote: > > > On Mon, May 18, 2020 at 11:48:43AM -0700, ira.weiny@intel.com wrote: > > > > From: Ira Weiny > > > > > > > > The kunmap_atomic clean up failed to remove one set of pagefault/preempt > > > > enables when vaddr is not in the fixmap. > > > > > > > > Fixes: bee2128a09e6 ("arch/kunmap_atomic: consolidate duplicate code") > > > > Signed-off-by: Ira Weiny > > > > > > microblazeel works with this patch, > > > > Awesome... Andrew in my rush yesterday I should have put a reported by on the > > patch for Guenter as well. > > > > Sorry about that Guenter, > > No worries. > > > Ira > > > > > as do the nosmp sparc32 boot tests, > > > but sparc32 boot tests with SMP enabled still fail with lots of messages > > > such as: > > > > > > BUG: Bad page state in process swapper/0 pfn:006a1 > > > page:f0933420 refcount:0 mapcount:1 mapping:(ptrval) index:0x1 > > > flags: 0x0() > > > raw: 00000000 00000100 00000122 00000000 00000001 00000000 00000000 00000000 > > > page dumped because: nonzero mapcount > > > Modules linked in: > > > CPU: 0 PID: 1 Comm: swapper/0 Tainted: G B 5.7.0-rc6-next-20200518-00002-gb178d2d56f29 #1 > > > [f00e7ab8 : > > > bad_page+0xa8/0x108 ] > > > [f00e8b54 : > > > free_pcppages_bulk+0x154/0x52c ] > > > [f00ea024 : > > > free_unref_page+0x54/0x6c ] > > > [f00ed864 : > > > free_reserved_area+0x58/0xec ] > > > [f0527104 : > > > kernel_init+0x14/0x110 ] > > > [f000b77c : > > > ret_from_kernel_thread+0xc/0x38 ] > > > [00000000 : > > > 0x0 ] I'm really not seeing how this is related to the kmap clean up. But just to make sure I'm trying to run your environment for sparc and having less luck than with microblaze. Could you give me the command which is failing above? Ira > > > > > > Code path leading to that message is different but always the same > > > from free_unref_page(). > > > > > > Still testing ppc images. > > > > > ppc image tests are passing with this patch. > > Guenter