Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp40193rwp; Wed, 12 Jul 2023 09:22:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlGXAJEiofGnvkREVfbvU68gNerCSzy3TFCH8DqnOmFcDDtWlA4xS0TsbvE6PLOJ4eZpXCTG X-Received: by 2002:a17:906:3f1a:b0:982:caf9:126 with SMTP id c26-20020a1709063f1a00b00982caf90126mr20014405ejj.42.1689178933653; Wed, 12 Jul 2023 09:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689178933; cv=none; d=google.com; s=arc-20160816; b=nSPCZogCTAkPIdWk7p55CWqUXPWzo28hPzPNjfiycjQnqG/B2ZbDQ7vBgmL/nsiEue amCbVBP0BG3Ib0v0b26GlGDeHz2zw/O+HGVs2QtrfQDMKWhJoQO8p8DuP5iKFItssBMd wPJOXwO6/Del61poVIw3wcg1YKqIMv+htHylIUjB/ivZNjSNnWQ+gQhltTgFShl/An/a y0HrJ9yI5Vm1Y7tXMPDecM9r8sJA9mI06GVak4FY341BYpvNKAsBOGw1XCdbBol8XmZj OsfAosjkD4xQrVY/lxtoQTLmUQDzEu3oBzP/cz2KwJsLMVoWnUS+RSVk7Q+Km9NTKEmQ G6jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:cc:content-transfer-encoding :mime-version:date:message-id:subject:references:in-reply-to :dkim-signature; bh=vuGfImREI3+vAOMG7Qz0iAJD7LdxEjUxKUaKqmBNQrI=; fh=zz6afr11Gj/b8onQEdXuI+IDN6VUtozBpvSZAddZnq0=; b=rKfnIQHU40AN2USRZSA9233xHqBGn4BpFvix6sA3jvbmYjsSmsTXx7945JQhhrfgkV Of4w5rECQNMygI3fNxEErStUlSViz4l/y5PyqdxMxPs/Ehj4NoTH1Na1di/2KKR+/EhL dhQLgRLVmGAV2AwTEkGB4l1sQzg0FN1V4+AbC786vFZK3nsR1rXa7/QtI+PFjHRTYjwQ Pat0+9tRIy2Em2+/+fPNMTRkCakSTk4vVgtlMTtv5USzTY1YnYKv7rKjYPjALTpzP5Lr Xaehg2vVSsMTHGniYk/uLsr1K34pNSfvwilRQArObnI8nky0Mk241RJi06lbQjF+yl/P 0fNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=vrFoeYWD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w25-20020a1709064a1900b00991f773d9b4si5053868eju.268.2023.07.12.09.21.48; Wed, 12 Jul 2023 09:22:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=vrFoeYWD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233830AbjGLPyO (ORCPT + 99 others); Wed, 12 Jul 2023 11:54:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232869AbjGLPyK (ORCPT ); Wed, 12 Jul 2023 11:54:10 -0400 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 6DE961BE2 for ; Wed, 12 Jul 2023 08:54:06 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1b852785a65so6547685ad.0 for ; Wed, 12 Jul 2023 08:54:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1689177246; x=1691769246; h=to:from:cc:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:from:to:cc:subject:date:message-id :reply-to; bh=vuGfImREI3+vAOMG7Qz0iAJD7LdxEjUxKUaKqmBNQrI=; b=vrFoeYWDsg7YPhr4bqWyPs+29mbupjC5nNCh4GVYf8Vkh0zWSbRgBxhRUp+Ui01t2S A+Bj+AbZFLOizlV8tFhji8+D8hsioUYz8n6Ak7yGE+pEsX2ysSi7Fb7MqmJ9kHrINb1o 0cv+ch7z4CNXTxUXLdw9MnQznvJXO45IN91j2NR5HNECOCgzVJrbMKbo8dXifrsmRbK/ 7MMdleXB7nsa4KJdjY1gLpRENrG6PHAUxp9886g9IOxNtWsNW962QxUBCgqOXRyU8c4t LPLjScfvOgfwmKrVqZwm0ksOhsJ5h2yr4mAtBtpO6mXfD6+BJjBN5peK2ir/cufvfLzi 20lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689177246; x=1691769246; h=to:from:cc:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vuGfImREI3+vAOMG7Qz0iAJD7LdxEjUxKUaKqmBNQrI=; b=i00vLejz4fnpm+QaXpjl89QBIkoBaMah35pvT5m9azT1vqjfUHfANF3jerO2WFj9YI brYKs5lekogNXTZN27OsU9HN1zB/IAWvkJCG1RvB45iMZ6I6cc0xx5Tl+F9hipMJHZwB y7UqBmac0Fjq7XkuseON+XsN+D5wCwoDYCWBzxOwg3UOFRlbnfGUqw4lgHczA7TVtnic c2V/gUeIAGly90TpcOkilXuUQTO9dbRVwr2/xAt8c6DpQmwHcrJ/fhfCmILjFC5YOP/G kw7qKLYcE0QZRYwCw07C4JOYcgWFDqb/Lv7CMSMEyjwscJn8HkQpn7C1XUzhsv+oCdkZ OHjQ== X-Gm-Message-State: ABy/qLYJUmbcv647ylSa8mZ9UrF6tI5d+Ya3HB8cQuBb8nWZ4e/EvAl/ 6KlftY0+AjVnJyr2XuAtSEX6RGxrXS9q/A7KQBw= X-Received: by 2002:a17:902:6542:b0:1b9:e9ed:c721 with SMTP id d2-20020a170902654200b001b9e9edc721mr2441743pln.19.1689177245834; Wed, 12 Jul 2023 08:54:05 -0700 (PDT) Received: from localhost ([50.38.6.230]) by smtp.gmail.com with ESMTPSA id y2-20020a1709029b8200b001b891259eddsm4133317plp.197.2023.07.12.08.54.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 08:54:05 -0700 (PDT) In-Reply-To: <20230709171036.1906-1-jszhang@kernel.org> References: <20230709171036.1906-1-jszhang@kernel.org> Subject: Re: [PATCH] riscv: mm: fix truncates issue on RV32 Message-Id: <168917713755.21773.10817207313937867675.b4-ty@rivosinc.com> Date: Wed, 12 Jul 2023 08:52:17 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13-dev-901c5 Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Randy Dunlap , kernel test robot From: Palmer Dabbelt To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 10 Jul 2023 01:10:36 +0800, Jisheng Zhang wrote: > lkp reports below sparse warning when building for RV32: > arch/riscv/mm/init.c:1204:48: sparse: warning: cast truncates bits from > constant value (100000000 becomes 0) > > IMO, the reason we didn't see this truncates bug in real world is "0" > means MEMBLOCK_ALLOC_ACCESSIBLE in memblock and there's no RV32 HW > with more than 4GB memory. > > [...] Applied, thanks! [1/1] riscv: mm: fix truncates issue on RV32 https://git.kernel.org/palmer/c/b690e266dae2 Best regards, -- Palmer Dabbelt