Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7911952imu; Mon, 3 Dec 2018 22:55:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/W5NxC15DnNlSAOUDawl/jgAYQrlZYJH305ptdg+Va+Zpz/LyCC1Tm+LpC0rrQ300CETEiE X-Received: by 2002:a63:9809:: with SMTP id q9mr15883652pgd.109.1543906548038; Mon, 03 Dec 2018 22:55:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543906548; cv=none; d=google.com; s=arc-20160816; b=VM0z7MKfOw7sXwmSFGzEhB8vQk6NuNHNCwWfjeNE2P3cOu87UYCcm3wTuRYvlHAGYX cy/BWlpCH6yYN7DQDk01+aSwEAcBF5912piQs/r+TOHnf4hs6NVzx0mJb9JPQdCz7q0S aI17OPE/CtynSLNjPl/4JSNlx7ic6eqPGFxdnth9GYPqLcRbVaRDUAz/kparvu+7iN+O MNeOoti1WaxKflT/LvWli1swbNiQM8EL2++glSqR58NMuBQ7BbzlABMbbSSUJNkIg5C9 TKvkwE4QnEBgZL/FOvWHtvaGdxEID4zqWtINMuS3OBoJMmc6MSVZT73BNmyNTRQf/Owz mhVQ== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=LCVw5D5JKQwcqynqXV6M4mR/vwbFVP76FkiLwGbnmyk=; b=XJMO/OSSvRszc+Eb9FgY9e+G55DbB/1viOamaWEQfUMeWtOlHKwjamSaZKvEj1weCF uQOxWeg3lG2sdxSVl0/SEYr1C/sjQp5xAnFzUa2800ff6CEvvdVZE59+membFgO4VbvQ fq3+6QKjepnNumWPwgQrXpSv6p98sKjZqtjeVCuOh9/xbdx2xwsWf8N082MP3aOAdy4c R8S1nXJ73S/jzCpiGF2lH0IYehXDbmsFHBbqvuOLCCRkVh5L59pUV42VP0pmgFHiciFu SAnrsJZ5EWPKdnAE4zoWCQdKxN8JkU6KHJQsDUNpDuMvW/odTFR7+HJ1N3mItHjnbMKU Zmog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DLern7E8; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f61si17905478plb.51.2018.12.03.22.55.32; Mon, 03 Dec 2018 22:55:47 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DLern7E8; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726020AbeLDGy6 (ORCPT + 99 others); Tue, 4 Dec 2018 01:54:58 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:37965 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbeLDGy5 (ORCPT ); Tue, 4 Dec 2018 01:54:57 -0500 Received: by mail-ed1-f67.google.com with SMTP id h50so12966880ede.5 for ; Mon, 03 Dec 2018 22:54:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LCVw5D5JKQwcqynqXV6M4mR/vwbFVP76FkiLwGbnmyk=; b=DLern7E82sXQQ+3tY8VlFT+NyxT+q1U3KNhWKSskHXkqlnjB1eFBWJf06c2B4sxYzL 2NkDDBAA8jWUPZor6jqsiQN4kDtPY+G4tHhh/j9dqSvz5E87Rq5WWHZ9lkhkAcUAoh9Y dqXiR6skDOuX8LXiQvc+ZjKmxfdUU660htastXuovwdVkgPa71QT0WuR3AN4FjQhwhmB 1/v8EXeFnSESRgaZaMTc5q5LyHFsL7R105FtgZ/pMLcJjcKeO0PHjwWTBGfbkcsPiBFb VMCM1cq/DpwRtpy72bfe8qwnlDrWMBeSzJNKfmzONx4hWfOk3kXfP6A2RSJvpDPiZyQY fgcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=LCVw5D5JKQwcqynqXV6M4mR/vwbFVP76FkiLwGbnmyk=; b=ol8tAkmNBrVw2LaLZ/dMKTOO5oqlOmrWptZv7EdFdQox7nwuqeTFzCbhiz/ackYWMu nBE39exoOgLWWzZvxmQ/fEosbXMDXnXPcTOiPehakF0RCzrQXcE5Kd8T0Fsn3TYOUYzI wsyiPDN5+NokvFhxcmLiMrnYMVVHP3SBBbbPZfhEoAIf5xKbku8dcUNm94HUVKQqBlce 9WguuwseUwJmPq3rMYbcIqSOlJwh/zSAYpIrKErXnB0zMOi4u7qX0xBDZ+7Iu+rZucty lO6N9UhUd+uTUuJusXRz95KTDlHQZ96zB/y9PcPwhRXXAXCLXcvhGUj5gZv3m2d6uw2V B4Tw== X-Gm-Message-State: AA+aEWadKGeaCs6mGcBAev8UZcFdXduTl9NEBvZUNN5C2n/MAnaF5CQu js8wCKQK2dQ4KRnsZvvXGq8= X-Received: by 2002:a50:c089:: with SMTP id k9mr16226073edf.89.1543906495209; Mon, 03 Dec 2018 22:54:55 -0800 (PST) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id l17sm4467216edc.56.2018.12.03.22.54.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Dec 2018 22:54:54 -0800 (PST) Date: Tue, 4 Dec 2018 06:54:53 +0000 From: Wei Yang To: Pingfan Liu Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Michal Hocko , Vlastimil Babka , Mike Rapoport , Bjorn Helgaas , Jonathan Cameron Subject: Re: [PATCH] mm/alloc: fallback to first node if the wanted node offline Message-ID: <20181204065453.4rsyhtsk2aej4vim@master> Reply-To: Wei Yang References: <1543892757-4323-1-git-send-email-kernelfans@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1543892757-4323-1-git-send-email-kernelfans@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 04, 2018 at 11:05:57AM +0800, Pingfan Liu wrote: >During my test on some AMD machine, with kexec -l nr_cpus=x option, the >kernel failed to bootup, because some node's data struct can not be allocated, >e.g, on x86, initialized by init_cpu_to_node()->init_memory_less_node(). But >device->numa_node info is used as preferred_nid param for could we fix the preferred_nid before passed to __alloc_pages_nodemask()? BTW, I don't catch the function call flow to this point. Would you mind giving me some hint? -- Wei Yang Help you, Help me