From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web08.196.1637771027060681758 for ; Wed, 24 Nov 2021 08:23:47 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: pierre.gondois@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 156941042; Wed, 24 Nov 2021 08:23:46 -0800 (PST) Received: from e126645.nice.arm.com (e126645.nice.arm.com [10.34.125.4]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 3D1D83F66F; Wed, 24 Nov 2021 08:23:45 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io Cc: Sami Mujawar Subject: [PATCH edk2-platforms v1 06/10] Platform/ARM: Fix Ecc error 1008 Date: Wed, 24 Nov 2021 17:23:26 +0100 Message-Id: <20211124162330.236813-7-Pierre.Gondois@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211124162330.236813-1-Pierre.Gondois@arm.com> References: <20211124162330.236813-1-Pierre.Gondois@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable From: Pierre Gondois This patch fixes the following Ecc reported error: File has invalid Non-ACSII char. Signed-off-by: Pierre Gondois --- .../Drivers/SmbiosPlatformDxe/Type17MemoryDevice.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type17MemoryDe= vice.c b/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type17MemoryDevice= .c index b51e2b3fa1a6..90907bc19a8f 100644 --- a/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type17MemoryDevice.c +++ b/Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/Type17MemoryDevice.c @@ -259,7 +259,7 @@ UpdateMemorySize ( } /* Ref: SMBIOS Specifiation, Version 3.4.0, Document Identifier: DSP01= 34, - Table 75 =E2=80=93 Memory Device (Type 17) structure, description f= or Size field. + Table 75 - Memory Device (Type 17) structure, description for Size = field. If the value is 0, no memory device is installed in the socket; if the size is unknown, the field value is FFFFh. */ @@ -276,13 +276,13 @@ UpdateMemorySize ( } /* Ref: SMBIOS Specifiation, Version 3.4.0, Document Identifier: DSP01= 34, - Table 75 =E2=80=93 Memory Device (Type 17) structure, description f= or Size field. + Table 75 - Memory Device (Type 17) structure, description for Size = field. If the size is 32 GB-1 MB or greater, the field value is 7FFFh and = the actual size is stored in the Extended Size field. */ if (MemorySize < (SIZE_32GB - SIZE_1MB)) { /* Ref: SMBIOS Specifiation, Version 3.4.0, Document Identifier: DSP= 0134, - section 7.18.5 Memory Device =E2=80=94 Extended Size + section 7.18.5 Memory Device - Extended Size For compatibility with older SMBIOS parsers, memory devices smaller than (32 GB - 1 MB) should be represented using their size in the Size field, leaving the Extended Size field set to 0. @@ -290,7 +290,7 @@ UpdateMemorySize ( Type17Table->ExtendedSize =3D 0; /* Ref: SMBIOS Specifiation, Version 3.4.0, Document Identifier: DSP= 0134, - Table 75 =E2=80=93 Memory Device (Type 17) structure, description= for Size field. + Table 75 - Memory Device (Type 17) structure, description for Siz= e field. The granularity in which the value is specified depends on the se= tting of the most-significant bit (bit 15). If the bit is 0, the value = is specified in megabyte units; if the bit is 1, the value is specif= ied @@ -308,7 +308,7 @@ UpdateMemorySize ( } /* Ref: SMBIOS Specifiation, Version 3.4.0, Document Identifier: DSP01= 34, - section 7.18.5 Memory Device =E2=80=94 Extended Size + section 7.18.5 Memory Device - Extended Size The Extended Size field is intended to represent memory devices larger than 32,767 MB (32 GB - 1 MB), which cannot be described using the Size field. This field is only meaningful if the value @@ -317,12 +317,12 @@ UpdateMemorySize ( Type17Table->Size =3D 0x7FFF; /* Ref: SMBIOS Specifiation, Version 3.4.0, Document Identifier: DSP01= 34, - section 7.18.5 Memory Device =E2=80=94 Extended Size + section 7.18.5 Memory Device - Extended Size Bit 31 is reserved for future use and must be set to 0. Bits 30:0 represent the size of the memory device in megabytes. EXAMPLE: 0000_8000h indicates a 32 GB memory device (32,768 MB), 0002_0000h represents a 128 GB memory device (131,072 MB),= and - 0000_7FFFh represents a 32,767 MB (32 GB =E2=80=93 1 MB) d= evice. + 0000_7FFFh represents a 32,767 MB (32 GB - 1 MB) device. */ Type17Table->ExtendedSize =3D (MemorySize >> 20) & (~BIT31); return EFI_SUCCESS; -- 2.25.1