From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 92259941CFF for ; Thu, 14 Mar 2024 20:19:24 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Di2lfeNId8v/dlleaPnPvDTeLRK87wnibAylWu7GCaM=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1710447563; v=1; b=SMfZfIeJyVlwPDmtstkQTLnxP05PqPWpIV3uVDB0gWtHta48XiubnWjn/yILk5NwD+rRV3je 5PPk+a0QLuRvZ4c07CjdXSmQeeNlN+b3+jo3JyOB6Vxm8xpTZN/2VDIDU7fAzX+HgtlnEskdnf8 e9htTGP9ZIN/NPxLeX0fA/1pVkIFEfZiXJV1XkkiECmR0SuzesAJqFZFbPcLMv7WO8JW2QCYqdc kjtXacyxIMoTSVQxoMurWRkJ+PsQZmHhjlfjoIfkgZIUonkkKU0aObOYhUFXfRLI0bl7xAk/ERs +CLyDCJD1mFYXYVZTtyJkILs60X5e6u8obELV5olhV0/Q== X-Received: by 127.0.0.2 with SMTP id xvpkYY7687511xb1YmAF37nG; Thu, 14 Mar 2024 13:19:23 -0700 X-Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mx.groups.io with SMTP id smtpd.web11.3107.1710447562535799530 for ; Thu, 14 Mar 2024 13:19:22 -0700 X-Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6e6cb0f782bso1074328b3a.1 for ; Thu, 14 Mar 2024 13:19:22 -0700 (PDT) X-Gm-Message-State: SS1CWn6QbunwUJQyTFoNkeZ9x7686176AA= X-Google-Smtp-Source: AGHT+IElko5m0CAN9tNNYpiLhQgHw0HbpYCrrD0yfiNEL6kiNCaiHAGVqh4/+jTSEUOy25tGHL1j8g== X-Received: by 2002:a05:6a20:da87:b0:1a3:4aac:afd9 with SMTP id iy7-20020a056a20da8700b001a34aacafd9mr399829pzb.54.1710447561598; Thu, 14 Mar 2024 13:19:21 -0700 (PDT) X-Received: from localhost.localdomain (c-73-223-207-212.hsd1.ca.comcast.net. [73.223.207.212]) by smtp.gmail.com with ESMTPSA id y20-20020a63b514000000b005d34cf68664sm1135859pge.25.2024.03.14.13.19.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 13:19:21 -0700 (PDT) From: "Tuan Phan" To: devel@edk2.groups.io Cc: michael.d.kinney@intel.com, gaoliming@byosoft.com.cn, zhiguang.liu@intel.com, kraxel@redhat.com, lersek@redhat.com, rahul1.kumar@intel.com, ray.ni@intel.com, sunilvl@ventanamicro.com, jiewen.yao@intel.com, andrei.warkentin@intel.com, ardb+tianocore@kernel.org, Tuan Phan Subject: [edk2-devel] [PATCH v4 0/4] RISC-V: Support Svpbmt extension Date: Thu, 14 Mar 2024 13:19:13 -0700 Message-Id: <20240314201917.1756-1-tphan@ventanamicro.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Thu, 14 Mar 2024 13:19:22 -0700 Reply-To: devel@edk2.groups.io,tphan@ventanamicro.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=SMfZfIeJ; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io This series adds support for RISC-V Svpbmt extension. The GCD EFI_MEMORY_UC and EFI_MEMORY_WC attributes will be mapped to IO and NC mode defined in PBMT field. v4: - Changed UINTN to UINT64. - Fixed format error. - Addressed Andrei's comment. v3: - Addressed Laszlo's comments. v2: - Generated patch for each package. Tuan Phan (4): MdePkg.dec: RISC-V: Define override bit for Svpbmt extension UefiCpuPkg: RISC-V: MMU: Explictly use UINT64 instead of UINTN UefiCpuPkg: RISC-V: MMU: Support Svpbmt extension OvmfPkg/RiscVVirt: Disable Svpbmt extension MdePkg/MdePkg.dec | 2 + OvmfPkg/RiscVVirt/RiscVVirt.dsc.inc | 2 +- .../Library/BaseRiscVMmuLib/BaseRiscVMmuLib.c | 252 +++++++++++------- .../BaseRiscVMmuLib/BaseRiscVMmuLib.inf | 1 + 4 files changed, 159 insertions(+), 98 deletions(-) -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116775): https://edk2.groups.io/g/devel/message/116775 Mute This Topic: https://groups.io/mt/104934682/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-