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 CE640941566 for ; Mon, 8 Jan 2024 11:37:01 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=9h9TEkt8s8d7TVdjFOVLaBmAFis7KF5eRtQsHD5vMo4=; 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:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1704713820; v=1; b=Fl8S/os6i696nhCi0RAkKr7UAAB6fJkalCeDqD0evjLyoffP7LPCR9C9O0zgE+jbxu/s5niH HKU0Tdhs1j+tniduOWD/2iB6Rvqi1yMgzUzrSdRFbWR50M7s8uL+2pidu1XmiplsXUEZR7SQtAu 446G+w/tkJIKFElxmg3EDLK4= X-Received: by 127.0.0.2 with SMTP id 7WowYY7687511xBFAxFXc03k; Mon, 08 Jan 2024 03:37:00 -0800 X-Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mx.groups.io with SMTP id smtpd.web11.4715.1704713819655896670 for ; Mon, 08 Jan 2024 03:36:59 -0800 X-Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6dac225bf42so399261b3a.0 for ; Mon, 08 Jan 2024 03:36:59 -0800 (PST) X-Gm-Message-State: SEWP1pVcr31QdSkeHaNcGaplx7686176AA= X-Google-Smtp-Source: AGHT+IH00WccdqWt6830DZk/UqWL+p5Hv0xrUYNUTF6KT6M1Lm+y/HMdcnGq88WmWV8rzjxIwqZoSw== X-Received: by 2002:a05:6a00:d6e:b0:6da:13bc:fb4e with SMTP id n46-20020a056a000d6e00b006da13bcfb4emr1052513pfv.65.1704713818291; Mon, 08 Jan 2024 03:36:58 -0800 (PST) X-Received: from localhost.localdomain ([106.51.188.200]) by smtp.gmail.com with ESMTPSA id i12-20020aa787cc000000b006d9af59eecesm5846618pfo.20.2024.01.08.03.36.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 03:36:57 -0800 (PST) From: "Sunil V L" To: devel@edk2.groups.io Cc: Sunil V L , Andrei Warkentin , Ard Biesheuvel , Gerd Hoffmann , Jiewen Yao , Laszlo Ersek , Rahul Kumar , Ray Ni , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [PATCH v2 0/4] RISC-V: Add support for Sstc extension Date: Mon, 8 Jan 2024 17:06:46 +0530 Message-Id: <20240108113650.454940-1-sunilvl@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 Reply-To: devel@edk2.groups.io,sunilvl@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=20140610 header.b="Fl8S/os6"; 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 the support for RISC-V Sstc extension in EDK2 timer implementation. Sstc extension allows S-mode software to program the timer directly without using SBI calls. Currently, PCD variable is used to detect whether feature is enabled. By default the feature is enabled and platforms need to set the PCD to disable the feature if Sstc is not supported. For RiscVVirtQemu, it is disabled by default (until extension discovery feature is enabled). Changes since v1: 1) Updated "PATCH 3" to address Laszlo's comments. 2) Updated RB tag for PATCH 4. Cc: Andrei Warkentin Cc: Ard Biesheuvel Cc: Gerd Hoffmann Cc: Jiewen Yao Cc: Laszlo Ersek Cc: Rahul Kumar Cc: Ray Ni Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Sunil V L (4): MdePkg.dec: RISC-V: Define override bit for Sstc extension MdePkg/BaseLib: RISC-V: Add function to update stimecmp register UefiCpuPkg/CpuTimerDxeRiscV64: Add support for Sstc OvmfPkg/RiscVVirt: Override Sstc extension MdePkg/MdePkg.dec | 2 + OvmfPkg/RiscVVirt/RiscVVirt.dsc.inc | 2 +- .../CpuTimerDxeRiscV64/CpuTimerDxeRiscV64.inf | 1 + MdePkg/Include/Library/BaseLib.h | 5 ++ .../Include/Register/RiscV64/RiscVEncoding.h | 3 ++ UefiCpuPkg/CpuTimerDxeRiscV64/Timer.h | 2 + UefiCpuPkg/CpuTimerDxeRiscV64/Timer.c | 49 +++++++++++++++++-- MdePkg/Library/BaseLib/RiscV64/ReadTimer.S | 7 +++ 8 files changed, 67 insertions(+), 4 deletions(-) -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113381): https://edk2.groups.io/g/devel/message/113381 Mute This Topic: https://groups.io/mt/103595207/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-