From patchwork Tue Mar 31 13:23:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boaz Harrosh X-Patchwork-Id: 6129791 Return-Path: X-Original-To: patchwork-linux-nvdimm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C8C869F32E for ; Tue, 31 Mar 2015 13:23:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0BCED201C0 for ; Tue, 31 Mar 2015 13:23:21 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1C3D4201EC for ; Tue, 31 Mar 2015 13:23:20 +0000 (UTC) Received: from ml01.vlan14.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 11D0B80EEA; Tue, 31 Mar 2015 06:23:20 -0700 (PDT) X-Original-To: linux-nvdimm@ml01.01.org Delivered-To: linux-nvdimm@ml01.01.org Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 650EC80BCD for ; Tue, 31 Mar 2015 06:23:18 -0700 (PDT) Received: by wgbdm7 with SMTP id dm7so19052290wgb.1 for ; Tue, 31 Mar 2015 06:23:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=qLxQ4+os8fFg914EpUUNDxRaulVrC4wWiEx5+FqD5HE=; b=kGxBJJ5DJrDXyqL1SiUkYiv/6C9C5AANfc6zAFJzQQ8oU3J1Xoe7KbwrLaFsSPpA+i oS6+NpsVQIcKQmkVm3V80V+pmFFZ8vj7D2K9eW6qmj+2QpaFgbRooTlZaSt/QF5Qb7uz 31D3hgfzjVIIrAre/ytZosjkfyf9Ojq3YSX/D/Ru2IG+MN1Y8aRlhAvv9AYXgPKndAPa 3rY/wt6WhZsXoKRUXuNio5rlNrmoDuVc7QWRbmhH/gH4xuDlV8a8kz6C/A+KlUB1mpEP 4TKJdcSLaUWPenxKvKtgpdmp5bfibtY8A17B2Ma7rnUq71Zln9xKGBVYrbV0mWfhOPKx AlTg== X-Gm-Message-State: ALoCoQlA+XqmiTUMZxEblGQG529NczcdD4NmVvWUHqGAtyrH3YqMXL1FSR95gGePAwlF94lkEamv X-Received: by 10.180.126.69 with SMTP id mw5mr5673907wib.12.1427808197045; Tue, 31 Mar 2015 06:23:17 -0700 (PDT) Received: from [10.0.0.5] ([207.232.55.62]) by mx.google.com with ESMTPSA id bx3sm20358108wjc.21.2015.03.31.06.23.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2015 06:23:16 -0700 (PDT) Message-ID: <551A9FC2.1030005@plexistor.com> Date: Tue, 31 Mar 2015 16:23:14 +0300 From: Boaz Harrosh User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Christoph Hellwig References: <1427358764-6126-1-git-send-email-hch@lst.de> <55143A8B.2060304@plexistor.com> <20150331092526.GA25958@lst.de> <551A9EB3.8000605@plexistor.com> In-Reply-To: <551A9EB3.8000605@plexistor.com> Cc: axboe@kernel.dk, linux-nvdimm@ml01.01.org, x86@kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [Linux-nvdimm] [PATCH 1/6] SQUASHME: Don't let e820_PMEM sections X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Christoph Hellwig If we need a NUMA crossing a mids a contiguous memory range we split the range at NUMA boundary so to produce two pmemX devices. We do not like 2 NUMA IDs at the same device. TODO: What happens with real type-12 NvDIMM the BIOS splits these ranges? Christoph I please need this patch for now. I have booting problems on some machines, when a contiguous pmem range crosses a NUMA boundary. Signed-off-by: Boaz Harrosh --- arch/x86/kernel/e820.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index 4bd525a..a098c74 100644 --- a/arch/x86/kernel/e820.c +++ b/arch/x86/kernel/e820.c @@ -346,7 +346,7 @@ int __init sanitize_e820_map(struct e820entry *biosmap, int max_nr_map, * continue building up new bios map based on this * information */ - if (current_type != last_type) { + if (current_type != last_type || current_type == E820_PRAM) { if (last_type != 0) { new_bios[new_bios_entry].size = change_point[chgidx]->addr - last_addr;