Message ID | 20240227124412.2565716-1-fei2.wu@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-83244-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2666304dyb; Tue, 27 Feb 2024 04:39:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX7kselrEjrlyxsYN6/Y8a8JbK5tq12NZ8B2lGorWD14fMrZ7lFb4soAaIcNI9SIeMP80do1n96ZnAq9FNr3Vnxh+Bk1A== X-Google-Smtp-Source: AGHT+IGycG1Extxj7EAO/Jx8A2MmUG9TObVVuAufsr1GwmgTON/ZM7b8kz0fsdXt34vnLE5sExOQ X-Received: by 2002:a05:6870:709b:b0:21f:9f09:b0de with SMTP id v27-20020a056870709b00b0021f9f09b0demr9627176oae.41.1709037583763; Tue, 27 Feb 2024 04:39:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709037583; cv=pass; d=google.com; s=arc-20160816; b=XUFx1rXiEVk6PgM+QpsdrQhZGKjjiYoYkv2+XUjfyeUw6/My4a3VtU4OlfZ13Pv+Hs eDMHjTJnwgNRUfjwHIQfk3crysU45IqqqOXc3CUDHlBKz+xvb0jD05yYdA09uuWNQ37G h284vCfyXLbWEk8GsDM3cOFGPrHlwO7s5KRZJ6PSLHrq+2I4bAs9G3UwTZzVWYgnSjhs 14CdtjbHubN59KpM3WuHsP61rktgG+lMF/5mlfFRpsLcWfzf6J2KDTDrsp7O8lX7Dl2p 2m/M0MfulnQMmZwYtCTP7aFb9i4lnCOqxDrDlwPipK/x85sIekFh+xmKmIwomFT0NUxh MEVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=5/NYl0zoS5xDqIZRvzluoX72BNkO1vfbGjQRT2rMcMA=; fh=2XRxeUg6Y5G/TjbphfITcyerE0cSaowBy1jxGifXaJc=; b=eafeu/mm6CtdxLosivMk25QzWB/3nrJroyspfbmmurWTCdKpVWwrLybykcEhN25Hr/ SBmQsv7QabBzUta/1J1tPOFMCEoyPV2lbeIpEkDm4EAZ0j/HStRxY9+fC6uLAzLppvCP f6aX4KjGXT06Y4GQgxpT1nALBSXvJm/8RJ0/SAtNwnwloYaUSEJo4GrG4AgS8u5k+DMY 1vMnaR+KAPagVzyDLivAOcpolX7uk+dWXtScTQguOXg7p+4kXaV5DY+bNy4LfQ7sUtVM L3mr/VFezkF8vLMuGidcV6HZEoPDouz8d+s958hKN3JIDOiReo7XSuzazQdUmg4vPx70 VjTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SF33v3So; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-83244-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83244-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u20-20020a05620a085400b00787c4c7992esi7123910qku.613.2024.02.27.04.39.43 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 04:39:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83244-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SF33v3So; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-83244-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83244-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 89E2A1C22ECB for <ouuuleilei@gmail.com>; Tue, 27 Feb 2024 12:39:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CCF813A88B; Tue, 27 Feb 2024 12:39:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="SF33v3So" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD16F1384BF for <linux-kernel@vger.kernel.org>; Tue, 27 Feb 2024 12:39:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709037552; cv=none; b=lAl8CuwgjXBvr2hKcy//HvaxJdnfQ+cI5zSojqEiHjxdNS1OFD8rpgH6bVe28mngAe+RY6I+zFqeIA1/OkgComvtQT3qhAvnmpq5GjgpfxdDqReIqM5OfOQwfcZbJsUKN7opf+VW3sqn8qtE0JndewDMNutOCCHYznibbuaRl9w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709037552; c=relaxed/simple; bh=WXMtQm657FAu5vA4c7tJQaFJh29ORtj1lqGV9ucikA8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=AG2w5eoEgApzWrhtrOOfJ+HKQF/+FSM41jCghH4c7iVlyWo6fYVHwj/tPE24BjMT/dOtNJisP9aqlkWSh+KwOvpYDIEttebWLpiERIAiArMaNpnbOHGty9Ctalt1s9kdSnZgHeUCiv6an7oLNA7N3ZG+P/0NCHbZN2dVH/gEmQk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=SF33v3So; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709037550; x=1740573550; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=WXMtQm657FAu5vA4c7tJQaFJh29ORtj1lqGV9ucikA8=; b=SF33v3So3glpQpwJMHAeatE9uG+lu1chzmnG5uevbMmTs0wLPDQmv+ps 1PH5g5Iiv4jcNk7XPkhIWWXpovqrJc3lIrcPTjWNzzCZ/7pPTT/qni/uC 6uwzMIbTJooxy9qGD4xvDF+hOdg7bQX6EGbaLbmc+y27bscPtb9qtTiOC 1VdHy8H2CtqCUgldPCbcobqFb9oPczMnVFuHNnfqR4unhzCjLY8Vq2ca8 T7buThcI4oK6MKhxs92u4tpmI4QC87PmBakG6vlRCc7HADB5vOYfb9SfE EUcJy/2yaEtw6uayEnkDYuNzdOqyKUrFs+kZT6LJCESB4odwN5k4+9U/j Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="3240081" X-IronPort-AV: E=Sophos;i="6.06,187,1705392000"; d="scan'208";a="3240081" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2024 04:39:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,187,1705392000"; d="scan'208";a="38062783" Received: from wufei-optiplex-7090.sh.intel.com ([10.239.158.51]) by fmviesa001.fm.intel.com with ESMTP; 27 Feb 2024 04:39:07 -0800 From: Fei Wu <fei2.wu@intel.com> To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, guoren@kernel.org, jszhang@kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Fei Wu <fei2.wu@intel.com> Subject: [PATCH] riscv: Fix definition of _PAGE_NOCACHE_THEAD Date: Tue, 27 Feb 2024 20:44:12 +0800 Message-Id: <20240227124412.2565716-1-fei2.wu@intel.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792055793290801252 X-GMAIL-MSGID: 1792055793290801252 |
Series |
riscv: Fix definition of _PAGE_NOCACHE_THEAD
|
|
Commit Message
Fei Wu
Feb. 27, 2024, 12:44 p.m. UTC
_PAGE_NOCACHE_THEAD is not used but the definition is wrong.
Signed-off-by: Fei Wu <fei2.wu@intel.com>
---
arch/riscv/include/asm/pgtable-64.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Fei, On 27/02/2024 13:44, Fei Wu wrote: > _PAGE_NOCACHE_THEAD is not used but the definition is wrong. > > Signed-off-by: Fei Wu <fei2.wu@intel.com> > --- > arch/riscv/include/asm/pgtable-64.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/riscv/include/asm/pgtable-64.h b/arch/riscv/include/asm/pgtable-64.h > index b42017d76924..b99bd66107a6 100644 > --- a/arch/riscv/include/asm/pgtable-64.h > +++ b/arch/riscv/include/asm/pgtable-64.h > @@ -136,7 +136,7 @@ enum napot_cont_order { > * 10010 - IO Strongly-ordered, Non-cacheable, Non-bufferable, Shareable, Non-trustable > */ > #define _PAGE_PMA_THEAD ((1UL << 62) | (1UL << 61) | (1UL << 60)) > -#define _PAGE_NOCACHE_THEAD ((1UL < 61) | (1UL << 60)) > +#define _PAGE_NOCACHE_THEAD ((1UL << 61) | (1UL << 60)) > #define _PAGE_IO_THEAD ((1UL << 63) | (1UL << 60)) > #define _PAGE_MTMASK_THEAD (_PAGE_PMA_THEAD | _PAGE_IO_THEAD | (1UL << 59)) > This fix is already in -fixes: https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git/commit/?id=c21f014818600ae017f97ee087e7c136b1916aa7 Thanks, Alex
On 2/27/2024 8:44 PM, Alexandre Ghiti wrote: > Hi Fei, > > On 27/02/2024 13:44, Fei Wu wrote: >> _PAGE_NOCACHE_THEAD is not used but the definition is wrong. >> >> Signed-off-by: Fei Wu <fei2.wu@intel.com> >> --- >> arch/riscv/include/asm/pgtable-64.h | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/riscv/include/asm/pgtable-64.h >> b/arch/riscv/include/asm/pgtable-64.h >> index b42017d76924..b99bd66107a6 100644 >> --- a/arch/riscv/include/asm/pgtable-64.h >> +++ b/arch/riscv/include/asm/pgtable-64.h >> @@ -136,7 +136,7 @@ enum napot_cont_order { >> * 10010 - IO Strongly-ordered, Non-cacheable, Non-bufferable, >> Shareable, Non-trustable >> */ >> #define _PAGE_PMA_THEAD ((1UL << 62) | (1UL << 61) | (1UL << >> 60)) >> -#define _PAGE_NOCACHE_THEAD ((1UL < 61) | (1UL << 60)) >> +#define _PAGE_NOCACHE_THEAD ((1UL << 61) | (1UL << 60)) >> #define _PAGE_IO_THEAD ((1UL << 63) | (1UL << 60)) >> #define _PAGE_MTMASK_THEAD (_PAGE_PMA_THEAD | _PAGE_IO_THEAD | >> (1UL << 59)) >> > > > This fix is already in -fixes: > https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git/commit/?id=c21f014818600ae017f97ee087e7c136b1916aa7 > Thank you Alex, got it. Fei. > Thanks, > > Alex >
diff --git a/arch/riscv/include/asm/pgtable-64.h b/arch/riscv/include/asm/pgtable-64.h index b42017d76924..b99bd66107a6 100644 --- a/arch/riscv/include/asm/pgtable-64.h +++ b/arch/riscv/include/asm/pgtable-64.h @@ -136,7 +136,7 @@ enum napot_cont_order { * 10010 - IO Strongly-ordered, Non-cacheable, Non-bufferable, Shareable, Non-trustable */ #define _PAGE_PMA_THEAD ((1UL << 62) | (1UL << 61) | (1UL << 60)) -#define _PAGE_NOCACHE_THEAD ((1UL < 61) | (1UL << 60)) +#define _PAGE_NOCACHE_THEAD ((1UL << 61) | (1UL << 60)) #define _PAGE_IO_THEAD ((1UL << 63) | (1UL << 60)) #define _PAGE_MTMASK_THEAD (_PAGE_PMA_THEAD | _PAGE_IO_THEAD | (1UL << 59))