From patchwork Thu Dec 1 13:51:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Ghiti X-Patchwork-Id: 13061336 Return-Path: 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 0E1F0C43217 for ; Thu, 1 Dec 2022 13:52:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9CD366B0072; Thu, 1 Dec 2022 08:52:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 97C816B0073; Thu, 1 Dec 2022 08:52:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8442C6B0074; Thu, 1 Dec 2022 08:52:21 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 72DC76B0072 for ; Thu, 1 Dec 2022 08:52:21 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 4794FA9870 for ; Thu, 1 Dec 2022 13:52:21 +0000 (UTC) X-FDA: 80193876882.26.5EA874D Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by imf20.hostedemail.com (Postfix) with ESMTP id ADEBD1C000F for ; Thu, 1 Dec 2022 13:52:20 +0000 (UTC) Received: by mail-wm1-f41.google.com with SMTP id bg10so1218879wmb.1 for ; Thu, 01 Dec 2022 05:52:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=eOrylymYjcUxwPoIjc41bfSu8k4HBK0lJeu4zajRIls=; b=k9Diy66l17Fnxfg7aQNLZ1KX8aTf/tpKeM0E49LxuGb0Bi1Zqhpn4atF7GN7zu7nn9 HWzEtYDAwaqGI1uglPAT/UZ5gAY9pRxFt72l/ADMFuctBM++Wrp4/KfuPpmmYOegSB73 iXIR7ZwIPfwgVCIpc6Q7/c3tQl3ngtczrOJoRGE5441R7KxrH7zEtfmyNtlV9o9X0mc2 6QPkPJNnQNKAok6WWNRZPvdViEo/X2BvpEAiVxcxQqC3IbXZy+xAnU9CdYhBg2p1caSk +Zz5Sgnfs5PB6n18WycCx2+U/Wnu20UgVbrKCDgEvdshzhwrTlZ52dlEMHxsYqPKwiyu vhLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eOrylymYjcUxwPoIjc41bfSu8k4HBK0lJeu4zajRIls=; b=j08kvNf98P749Rf9QKdUAbQgDFlIekr7trbV01EmYhvO4VwFGmVrSH0+XoD8D5WcEI y52mkpBIWnSrE83X8Z6zL2kohCYOJO/1sHdVwCesgXpH8x/Xgw+oUkXHiN7B5thSF4hT vVs7BLEKi1CYYl3q6SP/gzZM56DF5dDg/rNLWvHA9uYNAteZPZqACV6b3GwQuvzipQ9x Q3dbsgYcDKgJxtLrZoxX0AwJTeORmyGUfB8B8L3KuS3wfFdQB1t4mHloBYEfeb8N+HV5 CyWjWF05U2V9Y+4QRb0pPIr5O4CKQaCUdfYfOBywdnfbyrnBLXMsLvOqMNlc6Q8l5BlT DXZA== X-Gm-Message-State: ANoB5plxJtEcyVb987MTwXbyzSkjqMXz9qW8yzkX59+PasWQsePDzqB7 hgfkvsUpMf2ghiF8tsyfBr8VSQ== X-Google-Smtp-Source: AA0mqf76JQEnN0ISZaDcT2aZuKhMzGd114XgVhZ/taHM0DIN/Tzeik0zg5UpwWoF23zTi5ZJ1VssHw== X-Received: by 2002:a7b:ce09:0:b0:3d0:6b76:4e67 with SMTP id m9-20020a7bce09000000b003d06b764e67mr8141476wmc.147.1669902739370; Thu, 01 Dec 2022 05:52:19 -0800 (PST) Received: from alex-rivos.ba.rivosinc.com (lfbn-gre-1-201-46.w90-112.abo.wanadoo.fr. [90.112.163.46]) by smtp.gmail.com with ESMTPSA id n12-20020a1c720c000000b003c64c186206sm5194538wmc.16.2022.12.01.05.52.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Dec 2022 05:52:19 -0800 (PST) From: Alexandre Ghiti To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Qinglin Pan , linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Alexandre Ghiti Subject: [PATCH 0/1] riscv: Fix P4D_SHIFT definition for 3-level page table mode Date: Thu, 1 Dec 2022 14:51:27 +0100 Message-Id: <20221201135128.1482189-1-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1669902740; a=rsa-sha256; cv=none; b=e9jnqEoaALc5MYKmcmcrJyzw+jyRl/mOS+BljEkKEKm0HQdxjVUGr9/w+xLid5ugKnQJhB r9951S2ykbwB+bbe6MZcfYPLN/jmOhYHE2YZ/+4DxvKFE/VBCOTwbnH/uaHLCM7WtmEf8h umE8nnLmFePi74DWXkiA+r3gbJ2TsJc= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=k9Diy66l; dmarc=none; spf=pass (imf20.hostedemail.com: domain of alexghiti@rivosinc.com designates 209.85.128.41 as permitted sender) smtp.mailfrom=alexghiti@rivosinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1669902740; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=eOrylymYjcUxwPoIjc41bfSu8k4HBK0lJeu4zajRIls=; b=E1fKNhuAzPqqvTcZcVMFC6Y2v2JbtbhVoLWW84Q7oDGHDTTa9APfBa6IhsfeMXhn6rIUYb zau2IDlyGiMzWHWpk9joak90f4JHtJzn0G2qtm7wJDSvkB0s98DeitpXF0e0UGctNXWEhX v4y2BDkm0146L9zZYyJoLek4C/0kS/w= X-Rspamd-Queue-Id: ADEBD1C000F X-Rspam-User: Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=k9Diy66l; dmarc=none; spf=pass (imf20.hostedemail.com: domain of alexghiti@rivosinc.com designates 209.85.128.41 as permitted sender) smtp.mailfrom=alexghiti@rivosinc.com X-Rspamd-Server: rspam09 X-Stat-Signature: nnfku5w64oxcbz7hrtsn471gzz1ij7pw X-HE-Tag: 1669902740-875946 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: +cc linux-mm since I'm struggling to know how bad is this issue and if this should be picked for 6.1-rc8 or not. I tested this fix on an Ubuntu kernel in sv39 mode without any issue but the version without the fix seems to work fine too, either this is not a real issue or I don't exercise the right thing to make it visible. Any help appreciated! Alexandre Ghiti (1): riscv: Fix P4D_SHIFT definition for 3-level page table mode arch/riscv/include/asm/pgtable-64.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)