From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mx.groups.io with SMTP id smtpd.web10.105576.1679672627427833635 for ; Fri, 24 Mar 2023 08:43:51 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=XX0APyDs; spf=pass (domain: rivosinc.com, ip: 209.85.214.174, mailfrom: dhaval@rivosinc.com) Received: by mail-pl1-f174.google.com with SMTP id bc12so2201186plb.0 for ; Fri, 24 Mar 2023 08:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; t=1679672630; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=420/eawK9bGE+srzg44ICXAmvCbfiHBwKxKuLrcsCFI=; b=XX0APyDsGdLFkx9MsLixUTStBGnJeNtp7xlHe4FuCgiCd7II+NxdwHdEvQJGOBWu9n 5/lAvWTtHL2ndoP7RF5iLBKOVbprNsTCciDfGkaYX2/gmxNOggTSir1qXEE9m8wb7tOL 8lFSFTN6XJ3B62oO19smGK8VCh7eUirl475p92CNfHdxmf6qdJ0yCrcOrQodnVXt6eZ3 zQlPb3GUyMzpAObqftU1hLLeU6KXzHZI1FOiVPSLylzRNkGFlZmUZgRIQLy7vHeDLMw+ ioVdWsAFDNx+luyqw7llHZdFcV5kwPk0IFJGiaiH9R8Q050fEeTf4Fgmjpz8vO7HLfbr 2Dqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679672630; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=420/eawK9bGE+srzg44ICXAmvCbfiHBwKxKuLrcsCFI=; b=Dja+Y12od/MVTzR5ZuhVTYBUwzPtqKVIcyU0+/bkJ/8/4m4JNJXHHrYR5zOZxRD5Oa Iu7c2M3fROZz2NX7oUL5MOx/q8hNfTIlDMwy+Tx6PYbzXeLzHp0bag9M5gckKDd0W+YS t8vwXKDQzon9xuVYwm6iAxNtzeqntt09u4urPuP9A79JuuWinm3XxGyBUSJdbRSAoXfR 9+gs+EU/S00c6jCE7ggUwZPaWeNt88GKgTuAPtNR+ZUiCP16+njunnvvtK1xrC0ayG6x RJq8TESyWYR1rBTtqqLE/VXi+ksWPq3hLobO9OEAc9G1zKbV/tQBpycrCz5Hh2XIx4zA p58A== X-Gm-Message-State: AAQBX9eSIWUqhWO1UGGFvKoznhpYLYT19vfLa7YRdVHLWdroTRPlAu61 5fKMIHBL6VdWhPrmCO+4iM7QIJ70n46P8zQjfzI= X-Google-Smtp-Source: AKy350aw9O0GIBLFLtE46juai7J38nt9gLTMu7ojMCoMtfsObkUY7p/GkUKXoWBVFQccWZJGH95rLw== X-Received: by 2002:a17:903:8cf:b0:19e:500b:517a with SMTP id lk15-20020a17090308cf00b0019e500b517amr2224817plb.69.1679672630568; Fri, 24 Mar 2023 08:43:50 -0700 (PDT) Return-Path: Received: from dhaval.ba.rivosinc.com ([171.76.83.64]) by smtp.gmail.com with ESMTPSA id je19-20020a170903265300b0019f3e339fb4sm14365369plb.187.2023.03.24.08.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 08:43:50 -0700 (PDT) From: "Dhaval Sharma" To: devel@edk2.groups.io Cc: Sunil V L , Andrei Warkentin , Daniel Schaefer Subject: [PATCH v1 2/2] OvmfPkg/RiscVVirt: Enable CMO support Date: Fri, 24 Mar 2023 21:13:42 +0530 Message-Id: <20230324154342.180062-3-dhaval@rivosinc.com> X-Mailer: git-send-email 2.40.0.rc0.57.g454dfcbddf In-Reply-To: <20230324154342.180062-1-dhaval@rivosinc.com> References: <20230324154342.180062-1-dhaval@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Cc: Sunil V L Cc: Andrei Warkentin Cc: Daniel Schaefer Signed-off-by: Dhaval Sharma Add support for Cache Management Operations --- OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc b/OvmfPkg/RiscVVirt/RiscVV= irtQemu.dsc index 28d9af4d79b9..16c591d94228 100644 --- a/OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc +++ b/OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc @@ -46,6 +46,12 @@ [Defines] DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS =3D TRUE=0D DEFINE NETWORK_ISCSI_ENABLE =3D FALSE=0D =0D +#=0D +# CMO support for RV. It depends on 2 factors. First support in compiler=0D +# GCC:Binutils 2.39 (GCC12.2+) is required.=0D +#=0D + DEFINE RV_CMO_FEATURE_AVAILABLE =3D FALSE=0D +=0D !if $(NETWORK_SNP_ENABLE) =3D=3D TRUE=0D !error "NETWORK_SNP_ENABLE is IA32/X64/EBC only"=0D !endif=0D @@ -112,6 +118,9 @@ [LibraryClasses.common] TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLi= bNull/PeiDxeTpmPlatformHierarchyLib.inf=0D !endif=0D =0D +!if $(RV_CMO_FEATURE_AVAILABLE) =3D=3D TRUE=0D + CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMai= ntenanceLib.inf=0D +!endif=0D [LibraryClasses.common.DXE_DRIVER]=0D ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeRepor= tStatusCodeLib.inf=0D PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExp= ressLib.inf=0D --=20 2.40.0.rc0.57.g454dfcbddf