Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1914041yba; Thu, 4 Apr 2019 22:56:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqUCyMkKbWyxytx2LKlrU+eBcE0v9d1JojBar//hDmCIwsZivHHQdURNsUFHGTiQsfzUcS X-Received: by 2002:a63:8848:: with SMTP id l69mr5716364pgd.137.1554443808767; Thu, 04 Apr 2019 22:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554443808; cv=none; d=google.com; s=arc-20160816; b=wTbgbMYGK7aMqW72Uacuc+JQ3g9vfCPZU1RVry3TOkbPU2kCOJVGsmj89SWKzrhUAj QHPQiFjKw3ioRifo2vfrPAH0Ut8tSG8kkaAwLFulu2zD6zyubS2wSK3sWQySrTdJT6iL fETkdy/YrDKsM/ifERbb4wlRfO0wtOicMk4N/tK3BWcdgWVwOi70adZpgOshEt6DRykZ +ThjUYw5lF5s9LOFQ4zN6Ls+/bltQfHLYtdBP9scqTr5nnd3U5fTipHfNN2b8QwHs+ZR EMW8b5nZFnq0x5U+38wod2zoyQl2u9jV/QcZjXil6yydMUfedz3/8HPoptHWVsG2TsC1 NbJQ== 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:message-id:subject:cc :to:from:date:dkim-signature; bh=0ElSP3JGAMxV4PKBAmgjNsswF1zAiAvQvIKeo2t7kxM=; b=Jpl7AHPV2tK6r5diXQJ+BqmFoNY2Hj9CdMXQFyLCNu9emO+oQc/dmbBjGYjb/ETfBJ hxTRrZDerNhjhgRmVjbU5TWZ9O2sKTwsaQMQjeektQgRe3z6OHlypdQcfPDASKcqGnhG O0NT9yxDT37vhiouTs1HD6XzJ1FT3z/sSYYVrtnJwoO+/SQujy4j9vOG8KpNn5KZ7jDt Ts1yoE/bzIctAlVFYLwIj4RhUpRpW/059pI+9G/f4Wlgub1m3qjQsiEns7gsk3eiptsW +M0r2QLumWmuYLKj5KSqwSZ6iH3JXkB15InlxYSPlp8PxHY4BVt2yniwZoaK4eWUQKve lD2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=hnr5WZBW; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q61si18961098plb.308.2019.04.04.22.56.32; Thu, 04 Apr 2019 22:56:48 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=hnr5WZBW; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728683AbfDEFy0 (ORCPT + 99 others); Fri, 5 Apr 2019 01:54:26 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54834 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbfDEFy0 (ORCPT ); Fri, 5 Apr 2019 01:54:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=0ElSP3JGAMxV4PKBAmgjNsswF1zAiAvQvIKeo2t7kxM=; b=hnr5WZBWyfpphSungyKH/Ftql 2oJOBCJIov3AJuJeOLyOeEgeArN04VHM6qloJubeFhyG0yYlrINWiViVbb4IFcDBXwBbWEWRv9qEs h/CI0LZqgO+Q3uqsX5rJKmezWn3HKcXOPX8UGN+db8qfBawiWTjMdR2rFiJLXT4x5XzW8/Yi57SGI x2gwwLUovAW5hNYT1XcKCJLBgFlflgjGHWYPuy6CA9qbdZJ1HPGjQojH8oQ6bTNrS49XolqXjRkI7 EFkleg2rz77pe1mivc4yMbc2wKou53PibtRP9v2RbdOPq07P9aj9J5Bqi9kH/k0S44tVCUqM+X/nk zV4UlEFWg==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCHnx-0001w0-Ii; Fri, 05 Apr 2019 05:54:21 +0000 Date: Thu, 4 Apr 2019 22:54:21 -0700 From: Christoph Hellwig To: Anup Patel Cc: Palmer Dabbelt , Albert Ou , Atish Patra , Christoph Hellwig , Paul Walmsley , Mike Rapoport , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3] RISC-V: Fix Maximum Physical Memory 2GiB option for 64bit systems Message-ID: <20190405055421.GA7087@infradead.org> References: <20190405054909.3238-1-anup.patel@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190405054909.3238-1-anup.patel@wdc.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 05, 2019 at 05:49:34AM +0000, Anup Patel wrote: > The Maximum Physical Memory 2GiB option for 64bit systems is currently > broken because kernel hangs at boot-time when this option is enabled > and the underlying system has more than 2GiB memory. > > This issue can be easily reproduced on SiFive Unleashed board where > we have 8GiB of memory. > > This patch fixes above issue by removing unusable memory region in > setup_bootmem(). > > Signed-off-by: Anup Patel > Reviewed-by: Christoph Hellwig Btw, what is the rationale behind even offering the 2GiB option and the medlow model on 64-bit? Do we reall have use cases where the slightly more effient generated code matters so much to keep up the support burden of this mostly unused and unusual configuration?