Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1535642ybk; Thu, 21 May 2020 09:07:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVDkkqE/a4/qb3iDBMghGcg2cbDEr4bgtBGebJGMhnbbTnR0I/5scFmlaDfrNclrdPU1+Q X-Received: by 2002:a17:906:944c:: with SMTP id z12mr4195767ejx.472.1590077269140; Thu, 21 May 2020 09:07:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590077268; cv=none; d=google.com; s=arc-20160816; b=OIGX8PSjW0lJl7jzZe0pAjcIWoV5EBXs30BzB9ixQfW8T4YtoXeaT4zmS0VWHzj5Le ioU2D7RPpq1CP9tiQ6189epft9MFdfmNz3PlFenFxFoOm7Svgw3oumRl8IMVfBVLJ2vN ZLIlRxuog/ipGaEyuZQSFV5jug/C/XaboawD0Q8aDgp+x9Y1b/evtX4E65eW/hb9DnWn Y+TDAR9cEvzRucAT8ulGa/Do3GE8MfJ7zh3W1z6bgCJssHJek7FJz30X1/1RWOnkDetr xnzCS5/kLnHwMBF0El51K+p1OuR7xxwpAXUn9f8leWyWmtET2GSxDW5v/2S7OJBmxeGk L7fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=brBskc7OSpc8vLgyV05P6kgcU84VvKyHpj2CvWpwWuE=; b=I/cO2pVuwkhZ6v3oSbLVC1fMjkqNa39DHnmAs2ArigXbfyFHsA/PaLk7OpEJr95Kq7 MtJTxD2W6vmFqWSVsaNlGiZkGa2pQ1vlMba7TzfH0lBFNm6AYdcJOjGMqQpvhqu6jTH7 mXJlbVgNXreM6R4uPCgXGxwBBWNBXVSg/4bFJ1h99axB2OitdweTYvQksnFU9rk5mCvn zCKA/570ZY+ADyfiXWjWQ5onl3wUzEwLFjSCbCtbjQtoCGGOAIO9jjiQfdFmfAbW9t+a y3MKBCGzZtgQ0u42fR5WCoEN3VScKovksgIqcf02VF1ym9gxAe6KbER+LuPjg+wScRwW MayQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JfpWh18d; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w18si3339109edv.185.2020.05.21.09.07.23; Thu, 21 May 2020 09:07:48 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JfpWh18d; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729539AbgEUQFs (ORCPT + 99 others); Thu, 21 May 2020 12:05:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726938AbgEUQFr (ORCPT ); Thu, 21 May 2020 12:05:47 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FFCBC061A0E; Thu, 21 May 2020 09:05:47 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id r10so3369164pgv.8; Thu, 21 May 2020 09:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=brBskc7OSpc8vLgyV05P6kgcU84VvKyHpj2CvWpwWuE=; b=JfpWh18dQhc1pWOh8zAOsS78qYwx4DM8Ost+2U0ULJa5ov80Czhf105HEe9sbbWB9b hQpfVogm1RdB00QD9S9bmi5OhUUF6uy/RTqJYyQp6bEzSIuxlsJfrrcDkxdG9pKSVW4i I6b3bAPPrIuf5jnkoExzt6j4tJ2eCcchHCMQ+pGsHxmDmdMVMbgv8Vsqb/BWdsHW+5nh DoAMBlGnYNq/4F3+n9/wKNXCBMb877nheG88r1hFl8jjM3wTBmg3D80Ow5toUPVxE5+J DHJLKVkczScxglrJUnGfHQWrSn7zVa7WZjNXBScN1WVwdZjhTqUCxsYFlPnciflhMa2u 2wIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=brBskc7OSpc8vLgyV05P6kgcU84VvKyHpj2CvWpwWuE=; b=J6uH0uqKXuvaoY2H/mdcWAYq6SWpA9ttAwkGZhhk8+wmctdX2jCPfE7T+YRV0waW60 Ngv4iNMss7+yFcjWtBNP4w/GvPVsg+4H0QpWiVggbLg622qAUNIg7Rs9cCiYkXaUeind MGULP1xn8gufNgjvtKPrrY81vuA3fXX3yVPhMKb6NJjaPyoylnYSSJO9r4+JLeWjmKdI h2TgigvxnMc85tXLi29HcMwS+fUzEHtUbtWXr1lFbTMHqzZzNLMUy3Qnxi37Qqjcu/Ma BPZse3f8mWu9VEi/YJP4AAaOUG9ltG3TUhd2QilrilaPwWeG8w7R2Xpmf/RVsc6ySphh P6dg== X-Gm-Message-State: AOAM530OEeh88tK5ZYlXF7eRl3L3JoEyQLLhVUvle6e7MBt6QQkGcvmD 8smcF7+QrMJon4Ul7Hx7134= X-Received: by 2002:a63:5225:: with SMTP id g37mr9290666pgb.230.1590077146606; Thu, 21 May 2020 09:05:46 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id j2sm4978776pfb.73.2020.05.21.09.05.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 May 2020 09:05:45 -0700 (PDT) Subject: Re: [PATCH] arch/{mips,sparc,microblaze,powerpc}: Don't enable pagefault/preempt twice To: Ira Weiny 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 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> <20200520051315.GA3660833@iweiny-DESK2.sc.intel.com> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz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lAwPbr8xWT4qMSA43VKQ7ZCeTQJ4TC8kjqtcbw41SjkjrcTG wF52zFO4bOWyovVAPncvV9eGA/vtnd3xEZXQiSt91kBSqK28yjxAqK/c3G6i7IX2rg6pzgqh hiH3/1qM2M/LSuqAv0Rwrt/k+pZXE+B4Ud42hwmMr0TfhNxG+X7YKvjKC+SjPjqp0CaztQ0H nsDLSLElVROxCd9m8CAUuHplgmR3seYCOrT4jriMFBtKNPtj2EE4DNV4s7k0Zy+6iRQ8G8ng QjsSqYJx8iAR8JRB7Gm2rQOMv8lSRdjva++GT0VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: Date: Thu, 21 May 2020 09:05:41 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200520051315.GA3660833@iweiny-DESK2.sc.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/19/20 10:13 PM, Ira Weiny wrote: > 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 ] >>>> >>>> Code path leading to that message is different but always the same >>>> from free_unref_page(). > > Actually it occurs to me that the patch consolidating kmap_prot is odd for > sparc 32 bit... > > Its a long shot but could you try reverting this patch? > > 4ea7d2419e3f kmap: consolidate kmap_prot definitions > That is not easy to revert, unfortunately, due to several follow-up patches. Guenter > Alternately I will need to figure out how to run the sparc on qemu here... > > Thanks very much for all the testing though! :-D > > Ira > >>>> >>>> Still testing ppc images. >>>> >> >> ppc image tests are passing with this patch. >> >> Guenter