Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp851903ybv; Wed, 19 Feb 2020 10:32:41 -0800 (PST) X-Google-Smtp-Source: APXvYqyrgnmYf/1pLTM0aBSrePIumFtwz+waAfz8ONaOfi9T9TqZxzu7DBtpfKT2cFCrmfu1fg31 X-Received: by 2002:a9d:6215:: with SMTP id g21mr1160589otj.265.1582137161820; Wed, 19 Feb 2020 10:32:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582137161; cv=none; d=google.com; s=arc-20160816; b=p3pDMlIBETnCoGy2SC28J4nk/obKorQgsMhEhyVd3oXe4AFv53vtJJgLJkqiFa1zmS MykVAZRBpK6wHYe873zOU8t+efG1+HPLtwnVohDf+eKDwTDR76EvYYrXVmvpLFhZ/ege DmxGcX76Oipu2vHTq2pAnzZ8lotw5dFimXB9VKH0szGeShvPbYO4DLlNVevAxWQqYDRE ubKdK6npqJ52CCWu6//M3kEGjROr74oopoljPHcLVta4PbkqYI7rZGvNN/w2AQ65Tz7t blgWNAKM5FLsRfe+GSpRmt0AGaOr0ce6Ekk23gIbZWJ1JIN6Ej4Sai5JEh1/vnyn9DaK q8gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date; bh=AqlKlXcAGc+OQGmY/JoRBjcvfpmQYhCKHrHdjj3qvl0=; b=t3PdmqHRqFv+1rIkhAzTfDbYnoptjsoYI6qUQbiZ+9gSjH7mI4NgRzEwRqiytHlwP3 jt6uA662cnhXTQQ2oaDJYpk2oWH6D61SpFaxFaFnWuJjtJDcSB62OoQevpVPYhDdNmnl /o3gVq5c/sU5VACP8/Tb583DVD/NnYvI/KWnsCc7xzznJbj7eHfXIA5tiH2boVyVM0VF 0+Uhk5HTmLsJGpzhIBapfqPK3nmQ++aMxb/7S0q0LroozQ8kok0l8ihj7nk1qVKTtkmw WMF7vgG5IC5oBcGhJ/tzUirRmgcRN6WXAKNLnnCzgt9gAFdMff1LEE/RNDqpOJ3abrCR VkYw== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b126si9981217oii.72.2020.02.19.10.32.28; Wed, 19 Feb 2020 10:32:41 -0800 (PST) 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726680AbgBSSbs (ORCPT + 99 others); Wed, 19 Feb 2020 13:31:48 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:32648 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726609AbgBSSbs (ORCPT ); Wed, 19 Feb 2020 13:31:48 -0500 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01JIMMO5125013 for ; Wed, 19 Feb 2020 13:31:46 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0b-001b2d01.pphosted.com with ESMTP id 2y8ubsfvqq-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 19 Feb 2020 13:31:46 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 19 Feb 2020 18:31:44 -0000 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 19 Feb 2020 18:31:41 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01JIVemN28770560 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Feb 2020 18:31:40 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 906E2AE051; Wed, 19 Feb 2020 18:31:40 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4AE03AE045; Wed, 19 Feb 2020 18:31:38 +0000 (GMT) Received: from linux.ibm.com (unknown [9.148.205.46]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 19 Feb 2020 18:31:38 +0000 (GMT) Date: Wed, 19 Feb 2020 19:31:35 +0100 From: Mike Rapoport To: Dan Williams Cc: Baoquan He , Linux Kernel Mailing List , Linux MM , Andrew Morton , Wei Yang , David Hildenbrand , Oscar Salvador , Michal Hocko Subject: Re: [PATCH v2 RESEND] mm/sparsemem: pfn_to_page is not valid yet on SPARSEMEM References: <20200219030454.4844-1-bhe@redhat.com> <20200219085700.GB32242@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 x-cbid: 20021918-0020-0000-0000-000003ABB057 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20021918-0021-0000-0000-00002203B29E Message-Id: <20200219183135.GA10266@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-19_05:2020-02-19,2020-02-19 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 adultscore=0 bulkscore=0 priorityscore=1501 mlxscore=0 impostorscore=0 suspectscore=1 spamscore=0 mlxlogscore=665 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002190140 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 19, 2020 at 08:37:25AM -0800, Dan Williams wrote: > On Wed, Feb 19, 2020 at 12:57 AM Mike Rapoport wrote: > > > > On Tue, Feb 18, 2020 at 07:25:15PM -0800, Dan Williams wrote: > > > On Tue, Feb 18, 2020 at 7:05 PM Baoquan He wrote: > > > > > > > > From: Wei Yang > > > > > > > > When we use SPARSEMEM instead of SPARSEMEM_VMEMMAP, pfn_to_page() > > > > doesn't work before sparse_init_one_section() is called. This leads to a > > > > crash when hotplug memory: > > > > > > I'd also add: > > > > > > "On x86 the impact is limited to x86_32 builds, or x86_64 > > > configurations that override the default setting for > > > SPARSEMEM_VMEMMAP". > > > > Do we also want to check how it affects, say, arm64, ia64 and ppc? ;-) > > Sure, I just did not take the time to look up their respective default > stances on SPARSEMEM_VMEMMAP. For a distro looking to backport this > commit I think it's helpful for them to understand if they are exposed > or not. Looks like only i386_defconfig does not enable SPARSEMEM_VMEMMAP. All the rest may have it disabled only with manual override. -- Sincerely yours, Mike.