Message ID | 20250127171623.1523171-1-bfaccini@nvidia.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B024C02188 for <linux-mm@archiver.kernel.org>; Mon, 27 Jan 2025 17:16:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C6CE9280165; Mon, 27 Jan 2025 12:16:51 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C1C62280163; Mon, 27 Jan 2025 12:16:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A4807280165; Mon, 27 Jan 2025 12:16:51 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 82BBB280163 for <linux-mm@kvack.org>; Mon, 27 Jan 2025 12:16:51 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 36DCCA03A8 for <linux-mm@kvack.org>; Mon, 27 Jan 2025 17:16:51 +0000 (UTC) X-FDA: 83053886622.03.2E65C0C Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2085.outbound.protection.outlook.com [40.107.237.85]) by imf13.hostedemail.com (Postfix) with ESMTP id 7741E2001A for <linux-mm@kvack.org>; Mon, 27 Jan 2025 17:16:48 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=BmEs5bq9; spf=pass (imf13.hostedemail.com: domain of bfaccini@nvidia.com designates 40.107.237.85 as permitted sender) smtp.mailfrom=bfaccini@nvidia.com; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1737998208; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=QjB1CkZu4BTwUA4CspDMcI/BGEVy+mM0uNwtz6WPEJA=; b=d8l8Uvpylq5BTKbTCoUKliSAhmfFWg3G7G7Ls6vrln1sXGVVky+lJml2OXICjh3lnYGv2R sGqWWsWva3Fk/Bi3kt5LtnWhf9IvgxkQzHELuT49gibF+0KoStRfLkTH64vc0GXxjuUWKU h33VtRurT2vEkaRlQy/veVGKeYQSeJs= ARC-Authentication-Results: i=2; imf13.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=BmEs5bq9; spf=pass (imf13.hostedemail.com: domain of bfaccini@nvidia.com designates 40.107.237.85 as permitted sender) smtp.mailfrom=bfaccini@nvidia.com; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1737998208; a=rsa-sha256; cv=pass; b=GH7BNXjS7/Nv0fF1/sPuN7snSj/deeWa5gh3IVkhrdEwhx+Fzede00ijsPcHe3P00IhlJQ L6xCf6YyIYZpMBKbFZRgqzaQ3+cO1U1r8C7IHy2CRGI/paJ+oW78wyPluWNmrZ14KFHEIS tdFED/Yyvl2W47JtztCXbayWyh6aHs4= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZD46f9Le3kKlyCtV3FIAFMyFEn/tSMf2ekjdmTtRO5ZuZYL0zBK/vgFR/p4InuOV1V5K9K4EoHgKlC4aHtAe1t3JuJjPlpfTwioFGjKUqiG8SyUuX5q43gvv+q8NKdwWzP21TpCY06RIWGdP5C+Rz5ywIHyEpsF7t0MzrsI2D7IpBsqFm6CwAqsGyIxlU0f+prHIgbXv1q/i1bkfvr8E4h/YHgkQj5lGNYRawGSz3WRwE8rhCBUEk0SRmF81R38GOnB7wJns5qTG7XxuQgpTTS3NMuVJ54py5bHORZ4rKuLt21Al8Fri/VlQV7Ir8FI93Pczas5/B6o0F62/qCMwLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QjB1CkZu4BTwUA4CspDMcI/BGEVy+mM0uNwtz6WPEJA=; b=Mo/mUN8mZ8YTBNAf/+8pw7J/sU2THw9ECg9SvxGv4Uwl0qBd+BUIhhj83pd4PGn9QNrGKermAV+EurbdHwJMpvQ3eKCO0hHOZzuO6OPcAYwoRAQRyVzbr9amyjVHoZLx8KVRt+CIy04/CxPfAQlnQaXCVDQIibqtIBAz0j2QH/BGEWiCH58ilttWxhGIOIh4wYkGTP70foaJocMbCVrVPwESpyVHmUsiodtkNtoF9UqCwV5zSprbFTt2Pd/maKQtGF8RicXtLd6yQgIcdRopYjzHVkY+W6qRWm9I0dLCzAe7zx6nfcIvRnkpDN1n9QnjX1z3I/c7XMoN29/8JgkoyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QjB1CkZu4BTwUA4CspDMcI/BGEVy+mM0uNwtz6WPEJA=; b=BmEs5bq9Mon7WNT15dbfn3y/E+1pk+SWES+JXMXQCn7TfPixg2NquNft16mzJ8Kb+9kjM1OQdurciUG48cNJiJFjbs8fajAaZn6kQ2oX69u1svV6WcT8i5+wj4EGvIA/9y5QESPo5QEEYUwUJYjkzuL8V63jXHr4C8qrbNGktVpy1M7qMdL1xp1GT9EXAU0zPyBgdKT5sKnBJofMeOrwKd6BqI7b7v5+vUGaSLodtYwTw/WrS1HGVW6tjCVJQuQai0Y9ZA0vFpCCvzGirKwAPUxB0BNbsMv0HxLe69bPO8pxG900y+9RCYTVq3OA3dVntkN70bDpbWPigPxmbuOWDQ== Received: from MW4PR12MB7261.namprd12.prod.outlook.com (2603:10b6:303:229::22) by CY8PR12MB7491.namprd12.prod.outlook.com (2603:10b6:930:92::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8377.22; Mon, 27 Jan 2025 17:16:45 +0000 Received: from MW4PR12MB7261.namprd12.prod.outlook.com ([fe80::d231:4655:2e3d:af1b]) by MW4PR12MB7261.namprd12.prod.outlook.com ([fe80::d231:4655:2e3d:af1b%5]) with mapi id 15.20.8377.021; Mon, 27 Jan 2025 17:16:45 +0000 From: Bruno Faccini <bfaccini@nvidia.com> To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, rppt@kernel.org, david@redhat.com, ziy@nvidia.com, jhubbard@nvidia.com, mrusiniak@nvidia.com, rafael@kernel.org, lenb@kernel.org, linux-acpi@vger.kernel.org, hyeonggon.yoo@sk.com, Bruno Faccini <bfaccini@nvidia.com> Subject: [PATCH] mm/fake-numa: handle cases with no SRAT info Date: Mon, 27 Jan 2025 09:16:23 -0800 Message-ID: <20250127171623.1523171-1-bfaccini@nvidia.com> X-Mailer: git-send-email 2.43.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SJ0PR03CA0104.namprd03.prod.outlook.com (2603:10b6:a03:333::19) To MW4PR12MB7261.namprd12.prod.outlook.com (2603:10b6:303:229::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR12MB7261:EE_|CY8PR12MB7491:EE_ X-MS-Office365-Filtering-Correlation-Id: 49c2a7c7-b2d7-48b9-ba92-08dd3ef66062 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?MeoNd7hJNmYwNEU/amznpcKqHnsdWCs?= =?utf-8?q?vG3ujiDUePeVhfp7IyTqQ/b1xe8Qe+GmS69Jp9hxtsuDtJBTdAYeOQCNnjiVMVHkk?= =?utf-8?q?l9wknGHDxpSdS9yvrrf1bqYYkwQ+gcs080TnzRVw7cutB+9RXLABVVXHKBTN5fGOu?= =?utf-8?q?vTUCv0FQj4NbdiZY+T8P3Ufzh2KNn5FcLizbWep4vI11FwPz2ZNQwlgcSVW7+Ig/Y?= =?utf-8?q?/Zkbpg97vfR8wzXywm2w/pxW81fJzmXojxmqVcaGarTeHZz5KxMQXjuurGafo/cHj?= =?utf-8?q?4CYNCvy+YZd/752NUFu4wusBbjBeHJtkkhnBoAO/Xo47VJLrWIYMezYkPdoXanGBq?= =?utf-8?q?rvWgFFpW//wN+vlNvogo66y3bla46270/GEs/MK7p0ExO0oseS+9vrA9DiKX4drjV?= =?utf-8?q?5wqGJDFvSC0QkrfI134j2v8lPyqi5xeUD8kb6AQqy0LNE4EW5+J7Bmx07Mr4ZVeOH?= =?utf-8?q?tEaXeY1qW7tAKsWF1YgKBUDkOFcZDx42srRS5wg7bv+LLuxo+AZ+Xm4AL9ivE/OAr?= =?utf-8?q?oMOhYjYZtiPZ/XiX4vD8ZGKrGndnqP50miXvja7CHP8owdMvNxIwIHi2f4Q9SaSYH?= =?utf-8?q?8GSXRD0XO4i9b6pmn7oKSlEh5SfJR8tZlPv0DDw2ZYPiO/fwswZMR/ZSiukREWZ1N?= =?utf-8?q?CLlvkGC8EtpDzEfj17sv+CVVqGf++hieBy1P/fgLEmZBGJ5d9M/rElqSrygDHzxWv?= =?utf-8?q?i1PwavqnaFe20os0UQMuvykj52oTo/NWpC3MaO/WcUly43seTxfKrVl+o0orT81vQ?= =?utf-8?q?4NtEiqBIQZekLyTPjItLs4kTBhbW4zAe31mc5kBfr0OoOZNyZV7P892aTtyRox01p?= =?utf-8?q?vq85K96j9K5snr2Ed5ICtOp09Bh6DY8G6BPtKiG/KnA+PSieRlLYlD8hk+nueWAHM?= =?utf-8?q?VZ22sEGSZnRi4PHiZQJaG5bV/cuL28HRDgEPZEf8nVMeapETnfvP3H/kGmsmWyBzY?= =?utf-8?q?NsqPmNWa0cQwK+gmMPyS2RxKmGVNXGXggwXmJYM2ilYXrICD/BF+afemckLuZgWYZ?= =?utf-8?q?E0rkm7iWdiINuVqlyfnXoIrKPNQGeAbIvSIWdRTWRM9V8ms0SlVObonD2JrbD2MLi?= =?utf-8?q?JWZacK6I45whA3pl6IJIChYvEvJekQX6Dra88QRV+wEDNjifRMleWYZbsmsqYiU6U?= =?utf-8?q?p1tLJj7MoAVwkA/Ii6PASdB9SDmZ3+OvUnvNdFkdXpQaH+kZVywGN71TfHzJSqWBo?= =?utf-8?q?awOiaRHTkS+VzdGqsx4pdSifV1e+1Q3uWHTrNbPRNlqXqHUvOd7qv4X47fmHZYs53?= =?utf-8?q?zmTT5Q42LQyNIdtsil0W4sJ87Z/EoQXsNnjn0Hqh/DT/xWCJi15MA6xmjW2ygWjdf?= =?utf-8?q?TvHV1Q4+dN2z?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR12MB7261.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?lvSa4MhD6URW8rkT/9K96ovx/j7R?= =?utf-8?q?0iVQ1zhVHFm7voPbPh2hV7oENceYbsxtUAh4AG4aMC47vfjS32l8+3jMxLi800sJe?= =?utf-8?q?mtHvssqNxqwKs5dPR3Bcb7mnLfk/Z8key/F3av4L0+K0WoA/gKU4aWfNN9H7UgomF?= =?utf-8?q?tkO0UnUnnFE10D/MCqKJSsITmqZg8rLa8Jacl1vQHBNfEoFym3kgj5RtX1Pe3K1fL?= =?utf-8?q?9XlVBs/Mn0BjRxQREQKsCFMYUl1ruI8QhUbQ9DaYrplsD5S6fYKSFNcD76KgrvjkC?= =?utf-8?q?T/2CNfUC5wG+hkVNxyGTWyFLOArf4LvtpBc642ObTk3FTKEkyKs0b4Qqdaavzlvw9?= =?utf-8?q?d6xAWeEat5HrD1LaFz4UU66q/4G17tP/WQ2PhIRuYaaKRE1PXKe242OtI5XBcPEjD?= =?utf-8?q?/EZO6tpob3usN2qdqAP0D3655HNHQ2nJEL7+R5XgXAf6xPQX5TwzKiJsW3MeX64k/?= =?utf-8?q?wmyoycUcs7u8/TBbQeNNTYatBBursLwPmTJu8L5nFe69PfOPkBqCGwb5C4F1kOxAr?= =?utf-8?q?o7nASk5uNxp4ppwtrXvePWmpluqQjNLGiP5usbbGfhmLWlpbNctPuRdDHQRotyKSd?= =?utf-8?q?a3P75ryQDmEYB8Y0SzZx6zwUV19su2DR0LeoWu5D+zi9Vkx2NGDWvkWhLbzLMYeXG?= =?utf-8?q?jBSGlwYVNG2dYOm0K7VZWPRb+flqvRSnd5+e+dOE7r+iyUslbvdVADCLJF4YhBr1E?= =?utf-8?q?7+EQ5sEeKDSgUNK0UscbGp10GGrW5m1Q6WJjYFtTL0Jyj/F0MEubXuzaRJIWD5ulm?= =?utf-8?q?ORAvK6SJDYS5SuFX4JIAiMDAL8CraQzn3D4tJNOYCMcBIbepfYvciRr5KLKtJ2DBc?= =?utf-8?q?Wz15T4lPRD4yDgeOsSnh/qVDsuRDeYhmyg4F2jL3fdJYR4kLQdnMUxsMl/ZuSRDql?= =?utf-8?q?VxcMnqEkPBdCMHA83aY9wEoEMKeQg38ZReQzxE3dwv45qyz6mUM4hyjl2vx6kmnpy?= =?utf-8?q?l/E73pSB+a5XLnTbCm2kggwXrWhQZmShDf+LGPXeqKUd5F4y2V55iR25NSCUxJttq?= =?utf-8?q?jUWncHiSWAQgoHnWisr2QNfpgmj6xTbqE2ZW9PIV5CjpljPEYUGTEnZOjr11mqrY4?= =?utf-8?q?/qD4Jm2PKIQ7ja8lCTLD4MvMqSteN8YSoxDgQMibfr4u/J20+Y7Fqf2xhfrAqXQtW?= =?utf-8?q?+11cqwwa2P6hD5WTJLikwO+27YFprVxOWQkVKpJUopKyPyjYtSuuVlV8rJJR9HXmg?= =?utf-8?q?8cs7Rx3jlwLhF9o81+nr/dvwjvHrXL9Gs2GmJNFfGjaOczgpeoBdxzO1goIX6WUOV?= =?utf-8?q?qDGegTd/QrVLu+iPxLdoICfKDRPlxsCIgMFUch/O/you9BfmlVtZdjyOLzAiP59qZ?= =?utf-8?q?LhM+pxDqk9UrAUSdOxgmuttF+SDHfFvoMHH4Lo3oG3uNV0efbXNyfhFJWjdJv3ez3?= =?utf-8?q?zXY9dF1uW0LXAMJdbC8ppC4KFQqBKrA0qsMeHuAbDBGKzvCUKxSMr8oNZg9C3RVq/?= =?utf-8?q?JxWV6ybENuFfy3Hy/JmhFi6krQivLxcwIFinYaTpCe/O+MgWYJAhinAZYWu6c5PI6?= =?utf-8?q?9t/n/CXEPh/5?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 49c2a7c7-b2d7-48b9-ba92-08dd3ef66062 X-MS-Exchange-CrossTenant-AuthSource: MW4PR12MB7261.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2025 17:16:45.8191 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MITtBMCWtWZaiM8g3uvPu2zNNcdEzfHr1TeEQtifOScvXLLVPEqOWKTgPGvgh3pKCgQ6CdXgsw84VWLrLcxQQg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7491 X-Rspam-User: X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 7741E2001A X-Stat-Signature: rsotzbqx55gidh79gomnqygddrkei36a X-HE-Tag: 1737998208-788576 X-HE-Meta: U2FsdGVkX1+vJXCvBsGKrxOlbtVcD0t83WIBJtEkTwMMgzudx3VZ1cRg2OFZfjXrhI4dwKWgSmkKm8/VxhVugONnqORSRC131qmlFngUCIo24QwzQ0rEQrmtqf5halIg1PhyK6dH4nkwdGKIUI4I+2kKJviUTJA4p3LxSEvi5VZPh87aqOeVHxUZE0jF9osoIFJkELyqfFhtSr5PflZO9m+U4TyAp2hcMFy4Myi5EK/Mj4+0iOGn6tev8CyZdLVX3K+hMTgANsP500Vmh/8K5LwJW9qORW5gq3RSeWbKwZEulAGw16WlukNk1NBT1blrmAA0hmsbFVZAbsIYTK3rg5NL4nxaj+TA4on/m+XPx7Gg9EpsL54PLhBH+IPsW/UmT+oszuH0VejAw8ySnSo6+Buf76fvDyR4EcXm2SBwRjrmImdwwI24GOmi4n591/JoFpgSOijLRGi4EzmCo5LI4LmW0zfR2ba4RgqBkXeNiYcq+KmNRcFVtwy4GnDO097JIm8fJSaofbv3Ukh1npQPvKz+c0+87MEfdZb+/IcYZu53tXybUQIjUc//VL5pKL2WnUjfOYIsyJYY5WvvT5BSXjNuwxcavZq+WrP4eKc1ENriYCwgH/UYcTWaA6VWyefzTQKoU1suH6cV1ZjFt/6kEkJ3b4qnXM6zArmUVmaDwfovTP/Cc6wrTZAOZu4rqU87TjC3YvxfZ8mCCo8Dm03e8WwHlfawmEU0SOER7k3z3+JF/e3xn0bZ4Xcb1WqvDkjtDkSKad6nMWSO3Hz5I6CJGWC3RtBfeMx5Tz/+gcbqt7CSJrXGuV3ErPYy+Y+CXYQKQMYQ2b+vgnfOKBEuDXZIV9NxA9p9KySaE6ZqUHG6CytMPc6KfklX4s2WmkIxDNXA0KSv6xt7tyS9elHGrzg6Bv5eMXIg1u2vxyjGmc4qI9V4N3yFZuinU0fhCZJikPY3t2vpDof4yGnvffScmOJ vLkV1Ied AJCdSMuik52TBJbaqsGPoZqeFYTrl4Ikta0Fo4NFp974rrPB8OAxx0SW4EplOZkN4hFDURBjjZXu+bcxvxN+QOm/scDL8wCzf1TLBYblDA0ge+sSZ6zPX3Qwhbt90kLq6LG0H07Su78X5yjgOE7/Qs1KQ5s8Av9+r0EWFBs7LPBvtrE4CWhH7ozH/9XS6Ureq29oUWE6EbQCyinp3F20fcRX2JqMgoQGm4aX+FPbCJTzgWJTrdbVGYgI2Edjcrv7UbG9r/RokMllBDZDcKZxhm/9Q5Vn2vtavHfZFNNmU7sYIzk2AQbBgQFn2DEJH8W4grABBnwMAao6R0FAWB39TojchQfPcjGyYk7HacQ6fNmB78hD/yhf6p0GC2Q== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000051, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm/fake-numa: handle cases with no SRAT info
|
expand
|
diff --git a/drivers/acpi/numa/srat.c b/drivers/acpi/numa/srat.c index 59fffe34c9d0..00ac0d7bb8c9 100644 --- a/drivers/acpi/numa/srat.c +++ b/drivers/acpi/numa/srat.c @@ -95,9 +95,13 @@ int __init fix_pxm_node_maps(int max_nid) int i, j, index = -1, count = 0; nodemask_t nodes_to_enable; - if (numa_off || srat_disabled()) + if (numa_off) return -1; + /* no or incomplete node/PXM mapping set, nothing to do */ + if (srat_disabled()) + return 0; + /* find fake nodes PXM mapping */ for (i = 0; i < MAX_NUMNODES; i++) { if (node_to_pxm_map[i] != PXM_INVAL) { @@ -117,6 +121,11 @@ int __init fix_pxm_node_maps(int max_nid) } } } + if (index == -1) { + pr_debug("No node/PXM mapping has been set\n"); + /* nothing more to be done */ + return 0; + } if (WARN(index != max_nid, "%d max nid when expected %d\n", index, max_nid)) return -1;
handle more gracefully cases where no SRAT information is available, like in VMs with no Numa support, and allow fake-numa configuration to complete successfully in these cases Fixes: 63db8170bf34 (“mm/fake-numa: allow later numa node hotplug”) Signed-off-by: Bruno Faccini <bfaccini@nvidia.com> --- drivers/acpi/numa/srat.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)