[edk2-devel] [PATCH v1 2/5] RISC-V/CpuDxe: Ignore set memory attributes failure

Sunil V L sunilvl at ventanamicro.com
Mon Oct 4 10:39:42 UTC 2021


On Mon, Oct 04, 2021 at 01:23:56AM +0800, Daniel Schaefer wrote:
> While enumerating the PCIe devices, the driver tries to set some caching
> attributes on the memory.
> 
> Cc: Abner Chang <abner.chang at hpe.com>
> Cc: Sunil V L <sunilvl at ventanamicro.com>
> Cc: Leif Lindholm <leif at nuviainc.com>
> 
> Signed-off-by: Daniel Schaefer <daniel.schaefer at hpe.com>
> ---
>  Silicon/RISC-V/ProcessorPkg/Universal/CpuDxe/CpuDxe.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Silicon/RISC-V/ProcessorPkg/Universal/CpuDxe/CpuDxe.c b/Silicon/RISC-V/ProcessorPkg/Universal/CpuDxe/CpuDxe.c
> index 27a07b1561..b8b8e91a6c 100644
> --- a/Silicon/RISC-V/ProcessorPkg/Universal/CpuDxe/CpuDxe.c
> +++ b/Silicon/RISC-V/ProcessorPkg/Universal/CpuDxe/CpuDxe.c
> @@ -1,7 +1,7 @@
>  /** @file
>    RISC-V CPU DXE driver.
>  
> -  Copyright (c) 2016 - 2019, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
> +  Copyright (c) 2016 - 2021, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
>  
>    SPDX-License-Identifier: BSD-2-Clause-Patent
>  
> @@ -269,7 +269,7 @@ CpuSetMemoryAttributes (
>    )
>  {
>    DEBUG ((DEBUG_INFO, "%a: Set memory attributes not supported yet\n", __FUNCTION__));
> -  return EFI_UNSUPPORTED;
> +  return EFI_SUCCESS;
Looks good to me.

Reviewed-by: Sunil V L <sunilvl at ventanamicro.com>

Thanks
Sunil
>  }
>  
>  /**
> -- 
> 2.33.0
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#81465): https://edk2.groups.io/g/devel/message/81465
Mute This Topic: https://groups.io/mt/86046986/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list