Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1561pxb; Wed, 13 Jan 2021 21:13:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqOuD5sItQAcpuhykyGa0R3C7JDrdtxew4U0n7tVFAqowCqA4YdnNRJpGVa1VQX2/GsjMY X-Received: by 2002:aa7:dd17:: with SMTP id i23mr4374653edv.14.1610601196096; Wed, 13 Jan 2021 21:13:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610601196; cv=none; d=google.com; s=arc-20160816; b=YHvo1F+4RELTZkNb2S94v9ar6EYJfCJqqQxn5jo9OpPuAdrLDxEVIc8KEYbSspTkny JHBsudd7b6GX2KSMVnWNmE+qyymNDKZ8IkuSWLC8qEdXX82bXrQ9MhacpECs67aIruyT xgX7lYQmW3IvQpenU2fdCv3p8g5yCSZBfSUWVEuYMWzW2rHX8iG2Cm7hKMMqUnBinfUG rxayb7L7RRQOGAPagWGSFKGOMaEOqaFIYYZBQ0XiG/6JOs/Eq3hWoys/SoFZ4EEHAV2L vzMB0zR3Mi5Vu63H4MlTyiuE5I6z00Slu0QQHjbUpuuyEEFU0OtEWyFBC1qaSkDXnkDM eEKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=KcEA2nbzXx0jru83yIQ190/mImRN9DXek195EgNHMTM=; b=gje+1wMNTocL4HFBzeXeEiWAr0693rp2jA4hAAEA0Rg/550+6QpKQlOCdLvmJRSKQN G+GYZwK8lMgiAndgF9n10jpXpLmGmr+7kOYkSQb+7sSvP99pHsKFHJ04TXVzw5cLajOB 2+19jx/n3N4O2xZ0dOW/u24bH72xfM5Af5CjVwAI05CqnSFudi2teDBEFUhuDI0FxuNZ fOjAw5qzRcFOaI+J//meA4FUEpZPWW/PjjCpG9klH3JuCPuTOSzIodocjzbaGTL9kbg2 TKTpbv7Idtw4H7lsHzvf7la4CLFV3ZFJzqzR7PscYyaFc1FcpXxonCDUtRAVWBR9Z0uU su9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=ItvMJreq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dh5si2145422edb.122.2021.01.13.21.12.52; Wed, 13 Jan 2021 21:13:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=ItvMJreq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726510AbhANFKX (ORCPT + 99 others); Thu, 14 Jan 2021 00:10:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726208AbhANFKR (ORCPT ); Thu, 14 Jan 2021 00:10:17 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B0E5C061786 for ; Wed, 13 Jan 2021 21:09:37 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id r4so2308256pls.11 for ; Wed, 13 Jan 2021 21:09:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=KcEA2nbzXx0jru83yIQ190/mImRN9DXek195EgNHMTM=; b=ItvMJreq/VrK59JsNEZhxHcD41LpU029J3ATPXNn4VP79v8smYm5CKi6tvsZLZ0IMN stLb6jdptaiX2p2VLSOmVluSITFwuKCpP5FEuqVCUWsrzyDAzQaAiyEuUV2piCLv2QlR Fm5le6VT20CABM5QMDgNso6BR/g9B1sbWPIG1OHXkQ1RD8NVb22molvVS5maGkslFNKP gKXjakFIy2btTOKIedtUM8ufKnw8YbY/bFCKaixINOyWVYxfvnLSg1M0N3B9YeyQRBJ1 IJvNQ7bCH1ipvvL9LDC7WXNt6eKC+b/tvd/K3Aj5ZXD/pGgOJocHlq4MYdrYdzrDEQTn 0Www== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=KcEA2nbzXx0jru83yIQ190/mImRN9DXek195EgNHMTM=; b=h+ZkUyCRdZQG3SUEZZTpkIbuYYLoLZM5Ol2xdxOEiXBhJ2WlJ6U5cRhYO8YYruUJMu 2ONFBa/hMN1wjkuDhIPQ0roi5H6voR9XVkU3LOQR5PISfm9Dd7lQztdF3dbLljmHj9MD zz6WyvElVwLKlSEEJAM7q7W8jhvRBPBF8BRsErE3CIpALwR1+mSqD+M2uqZOnbzcVFJO i4uWb2g4nsvhvins0HW52HkghfJS1pDcztT6y2nTxWXFKMXE7xmNWVLEyLIObQ03T3Dl OyGd0yDMtkmpszkBQd7DtxnbncoUrs51vmoaJ8zCyHa7+CsZVoeOkPZda/yGxv0njhmC vJxQ== X-Gm-Message-State: AOAM533h+d8+i6Og+3tKW6LqLXgMtVobKLMHZKbh5mfy7a2pxcQ6Ck3+ OC/XNYXsDA3NSNFT2rCrs2ij2qrbmHoDJQ== X-Received: by 2002:a17:902:9a4a:b029:dc:435c:70ad with SMTP id x10-20020a1709029a4ab02900dc435c70admr5884019plv.77.1610600976917; Wed, 13 Jan 2021 21:09:36 -0800 (PST) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id s29sm4277278pgn.65.2021.01.13.21.09.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 21:09:36 -0800 (PST) Date: Wed, 13 Jan 2021 21:09:36 -0800 (PST) X-Google-Original-Date: Wed, 13 Jan 2021 21:09:24 PST (-0800) Subject: Re: [PATCH 0/4] Assorted fixes for RV32 In-Reply-To: <20210107092652.3438696-1-atish.patra@wdc.com> CC: linux-kernel@vger.kernel.org, Atish Patra , aou@eecs.berkeley.edu, akpm@linux-foundation.org, Anup Patel , ardb@kernel.org, linux-riscv@lists.infradead.org, rppt@kernel.org, Paul Walmsley , mick@ics.forth.gr From: Palmer Dabbelt To: Atish Patra Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 07 Jan 2021 01:26:48 PST (-0800), Atish Patra wrote: > This series fixes various issues observed in latest kernel on RV32. > The first two patches fixes an resource tree introduced in 5.11-rc1 > while the last two fixes the case where 2GB physical memory is used > on RV32. > > There are may be better way to fix the issue pointed out in PATCH 3 > as it seems a generic kernel issue where kernel pointers can not use > last 4k of addressable memory. I am open to other better alternate > suggestions. > > Atish Patra (4): > RISC-V: Do not allocate memblock while iterating reserved memblocks > RISC-V: Set current memblock limit > RISC-V: Fix L1_CACHE_BYTES for RV32 > RISC-V: Fix maximum allowed phsyical memory for RV32 > > arch/riscv/Kconfig | 6 ++++-- > arch/riscv/include/asm/cache.h | 4 ++++ > arch/riscv/kernel/setup.c | 24 +++++++++++++----------- > arch/riscv/mm/init.c | 16 ++++++++++++++-- > 4 files changed, 35 insertions(+), 15 deletions(-) I took all of them but that L1_CACHE_BYTES one, which I had a comment on. Thanks!