Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3401616imm; Sun, 1 Jul 2018 20:53:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIEb11vje57nh+UFprZFEgR0tizh5NVrn6gvf4yoCZqgFwD5N2B5+RZQY185XM4wT+7kogX X-Received: by 2002:a63:8c5:: with SMTP id 188-v6mr20026737pgi.97.1530503639737; Sun, 01 Jul 2018 20:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530503639; cv=none; d=google.com; s=arc-20160816; b=Q3dm7p4P29vW0ZQxyR+UOkl1zuhABNYJ7W0/fNG37xWb76pAWFyC7+1Jb4qXugtZNh YnIqkZ21ZWknoJSrHy4ygZEOn10pL265Bllk0ED1pQeC2sYqO77Y+8NAZBmu+R2F94Sz 7N3vtrNa3pbF3bHBB8FhMJVootgevYAFYlopUZ97Tz5pcjHRJPrYmba8r4qaFK07BS3N OZJUwB4gRu3x923ulVlpZHmh94P21DMyu4snsYa+ofV/i4drQmjQTzfe/YBDrJWP5Ubd vaudMVrFIVaBVI48g5lacFEe3zc00LmUV2RUXSUP+TexPEml5tAIcExvHIvZhJZk8YUs AO0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=1cQzL5FNjvHpTtfMNl4qKFhK4JiVzWAyyor7+dgMEqE=; b=C2XDQkGp42ytJ4FQrGmHEXjxz/Wwf391OBMSXhRM8QLST7DyNWjd95cwp2+PkZudJy a25RZNCW0tt0rJQQyMVWOavE/Q4ZN0cNQEhfVXk1D4Bb0SoH3GwanFl7EFsY/VNbd6Zt fWfxtGDoqdzPn4EgFbRUvYqitAlYdlozL/o3VW02d0hpv8tW97sVVYrz5gjSvTn+aWOG Cb0cuDHZWkm5yka7/LCkjPowYnDHXZFuo2d3wiHHZA1XfxZpcAwH+Ln0OZHDkMqT9CDN AOQXZKsw1qqv51fHwFREnXPvAUKZ1sPm8MYruSIg+U0r487Z/Z+SzrqH10css4GktMBA +dNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=CCZz2kiP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4-v6si9017162pfb.52.2018.07.01.20.53.45; Sun, 01 Jul 2018 20:53:59 -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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=CCZz2kiP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932889AbeGBDFm (ORCPT + 99 others); Sun, 1 Jul 2018 23:05:42 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:37192 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932281AbeGBDFl (ORCPT ); Sun, 1 Jul 2018 23:05:41 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6235VRd113369 for ; Mon, 2 Jul 2018 03:05:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : cc : content-type; s=corp-2017-10-26; bh=1cQzL5FNjvHpTtfMNl4qKFhK4JiVzWAyyor7+dgMEqE=; b=CCZz2kiPj2piUYLBm+hoV6UB0s9Eqhk9F0FfqVDzxo1rSCq+wFXSW2jvNMV2t3ICgq7/ ux4/bkiwmgdFCtFGonq1+pP3UqJIu+Kulj0qC4MOU325SWiExadyQw2jdkPhCOidljFE 2PID6koFPLjcYyLWdFHTjE2oosMGuzNBA3UVLiB1oNHQYWWGAHVpQqOf02UKNSx1gHw8 NRzZoO0nPBDoGB4d1sUBRlnPRDm+ZLqNg8EI9G3XbU7yqtvV71qQLw23UI+/QcghEwsg qbBaWciIveoTamqa6plydCWcyYZUxCzbjdLfZ3p/k57BAPZvfznZGfz88sTzhhHZuyrY yQ== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2jx2gptkhu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 02 Jul 2018 03:05:40 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w6235e6L020952 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 2 Jul 2018 03:05:40 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w6235dQI007777 for ; Mon, 2 Jul 2018 03:05:39 GMT Received: from mail-oi0-f48.google.com (/209.85.218.48) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 01 Jul 2018 20:05:39 -0700 Received: by mail-oi0-f48.google.com with SMTP id i12-v6so9271956oik.2 for ; Sun, 01 Jul 2018 20:05:39 -0700 (PDT) X-Gm-Message-State: APt69E0JzfHTlz5p6GvspUCy9ctopK1Ohui6GrMo9WN4dcnrArSRLTo8 A0sfjB3+ZvFOBe40r3R+WI9XA+nmAACpFrR19QE= X-Received: by 2002:aca:e5d2:: with SMTP id c201-v6mr14609358oih.191.1530500739177; Sun, 01 Jul 2018 20:05:39 -0700 (PDT) MIME-Version: 1.0 References: <20180702020417.21281-1-pasha.tatashin@oracle.com> <20180702020417.21281-2-pasha.tatashin@oracle.com> <20180702025632.GO3223@MiWiFi-R3L-srv> In-Reply-To: <20180702025632.GO3223@MiWiFi-R3L-srv> From: Pavel Tatashin Date: Sun, 1 Jul 2018 23:05:03 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/2] mm/sparse: add sparse_init_nid() To: bhe@redhat.com Cc: Steven Sistare , Daniel Jordan , LKML , Andrew Morton , kirill.shutemov@linux.intel.com, Michal Hocko , Linux Memory Management List , dan.j.williams@intel.com, jack@suse.cz, jglisse@redhat.com, Souptick Joarder , gregkh@linuxfoundation.org, Vlastimil Babka , Wei Yang , dave.hansen@intel.com, rientjes@google.com, mingo@kernel.org, osalvador@techadventures.net Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8941 signatures=668704 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=725 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807020035 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > + if (!usemap) { > > + pr_err("%s: usemap allocation failed", __func__); > > Wondering if we can provide more useful information for better debugging > if failed. E.g here tell on what nid the usemap allocation failed. > > > + pnum, nid); > > + if (!map) { > > + pr_err("%s: memory map backing failed. Some memory will not be available.", > > + __func__); > And here tell nid and the memory section nr failed. Sure, I will wait for more comments, if any, and add more info to the error messages in the next revision. Thank you, Pavel