From nobody Mon Apr 29 14:07:23 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+77373+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+77373+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1625078468; cv=none; d=zohomail.com; s=zohoarc; b=LPR1m/4poSeJDjFU7Fh4BalbbvIAI/TnZ5m5vlAFsbByTQvSn1xl9u/fgksz45vKXLEmcaqjn9N/QrqguKXktI7HyaW727tWf88ibtr14YST1F/QuLrZHJuXGHy6M9lywaOt7Y6f33PDoTrSVnlVzy6Tm4u0NTx9MMSWLeQRhYA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1625078468; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=MT1mksx6SuI8518YvI8nHt1lM8VAXNYMtC0TqftSRoM=; b=hyNfpKBmKknsfeDXqXi5rI8YhpiVtb6OdL7LbW3Rn9cfCJBHoAS/tMg/iARmittdYRJ67E4LBDX8h0SrVEs+z0CwZDc+wATHb4iVMHhNFUieGYAtraQyRVmhery94E18EZFo5iOAjjgVSa5wOn8E1OyTEr6Vk/KgytMHomj/67s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+77373+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1625078467815148.1536791317111; Wed, 30 Jun 2021 11:41:07 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id xCt7YY1788612x220YAz9cdT; Wed, 30 Jun 2021 11:41:07 -0700 X-Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web08.2127.1625032484413112260 for ; Tue, 29 Jun 2021 22:54:45 -0700 X-Received: from localhost.localdomain ([10.10.1.1]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Wed, 30 Jun 2021 13:54:40 +0800 X-WM-Sender: yanggang@byosoft.com.cn X-Originating-IP: 10.10.1.1 X-WM-AuthFlag: YES X-WM-AuthUser: yanggang@byosoft.com.cn From: "Yang Gang" To: devel@edk2.groups.io Cc: Eric Dong , Ray Ni , Liming Gao Subject: [edk2-devel] [PATCH] MdeModulePkg PiSmmCore: Change MemoryAttributes message to DEBUG_VERBOSE level Date: Wed, 30 Jun 2021 13:54:06 +0800 Message-Id: <20210630055406.559-1-yanggang@byosoft.com.cn> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,yanggang@byosoft.com.cn X-Gm-Message-State: aOQ6r3D11Qa6RBsY73KH4bEZx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1625078467; bh=C9byeJ5DlbGhyxkvcyq4F7ZpDRomL/uo/ZzI1sgZgyg=; h=Cc:Date:From:Reply-To:Subject:To; b=SiAJA4dzKbi/z9pQEjbC5yTGkMaDYHbWubi+xzZsPXqBW9sXepfvvkIKehr2THugy0B farn92XYAZLFzw1VdmEYQqlPFiuy4lrSskDGVSRVfqQr8cKMlaVyPRy5s2tHIaNbonEby 0DDpw5zNL6rSDZ0E32qKR9R2EgXQmlZAKAw= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Signed-off-by: Yang Gang Cc: Eric Dong Cc: Ray Ni Cc: Liming Gao --- .../Core/PiSmmCore/MemoryAttributesTable.c | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c b/MdeModul= ePkg/Core/PiSmmCore/MemoryAttributesTable.c index de8262ecb9..3e8a80dd7d 100644 --- a/MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c +++ b/MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c @@ -1208,10 +1208,10 @@ PublishMemoryAttributesTable ( ASSERT (Status =3D=3D EFI_BUFFER_TOO_SMALL); =20 do { - DEBUG ((DEBUG_INFO, "MemoryMapSize - 0x%x\n", MemoryMapSize)); + DEBUG ((DEBUG_VERBOSE, "MemoryMapSize - 0x%x\n", MemoryMapSize)); MemoryMap =3D AllocatePool (MemoryMapSize); ASSERT (MemoryMap !=3D NULL); - DEBUG ((DEBUG_INFO, "MemoryMap - 0x%x\n", MemoryMap)); + DEBUG ((DEBUG_VERBOSE, "MemoryMap - 0x%x\n", MemoryMap)); =20 Status =3D SmmCoreGetMemoryMapMemoryAttributesTable ( &MemoryMapSize, @@ -1236,19 +1236,19 @@ PublishMemoryAttributesTable ( MemoryAttributesTable->NumberOfEntries =3D (UINT32)RuntimeEntryCount; MemoryAttributesTable->DescriptorSize =3D (UINT32)DescriptorSize; MemoryAttributesTable->Reserved =3D 0; - DEBUG ((DEBUG_INFO, "MemoryAttributesTable:\n")); - DEBUG ((DEBUG_INFO, " Version - 0x%08x\n", MemoryAttribute= sTable->Version)); - DEBUG ((DEBUG_INFO, " NumberOfEntries - 0x%08x\n", MemoryAttribute= sTable->NumberOfEntries)); - DEBUG ((DEBUG_INFO, " DescriptorSize - 0x%08x\n", MemoryAttribute= sTable->DescriptorSize)); + DEBUG ((DEBUG_VERBOSE, "MemoryAttributesTable:\n")); + DEBUG ((DEBUG_VERBOSE, " Version - 0x%08x\n", MemoryAttrib= utesTable->Version)); + DEBUG ((DEBUG_VERBOSE, " NumberOfEntries - 0x%08x\n", MemoryAttrib= utesTable->NumberOfEntries)); + DEBUG ((DEBUG_VERBOSE, " DescriptorSize - 0x%08x\n", MemoryAttrib= utesTable->DescriptorSize)); MemoryAttributesEntry =3D (EFI_MEMORY_DESCRIPTOR *)(MemoryAttributesTabl= e + 1); for (Index =3D 0; Index < MemoryMapSize/DescriptorSize; Index++) { CopyMem (MemoryAttributesEntry, MemoryMap, DescriptorSize); - DEBUG ((DEBUG_INFO, "Entry (0x%x)\n", MemoryAttributesEntry)); - DEBUG ((DEBUG_INFO, " Type - 0x%x\n", MemoryAttributesEn= try->Type)); - DEBUG ((DEBUG_INFO, " PhysicalStart - 0x%016lx\n", MemoryAttribut= esEntry->PhysicalStart)); - DEBUG ((DEBUG_INFO, " VirtualStart - 0x%016lx\n", MemoryAttribut= esEntry->VirtualStart)); - DEBUG ((DEBUG_INFO, " NumberOfPages - 0x%016lx\n", MemoryAttribut= esEntry->NumberOfPages)); - DEBUG ((DEBUG_INFO, " Attribute - 0x%016lx\n", MemoryAttribut= esEntry->Attribute)); + DEBUG ((DEBUG_VERBOSE, "Entry (0x%x)\n", MemoryAttributesEntry)); + DEBUG ((DEBUG_VERBOSE, " Type - 0x%x\n", MemoryAttribute= sEntry->Type)); + DEBUG ((DEBUG_VERBOSE, " PhysicalStart - 0x%016lx\n", MemoryAttri= butesEntry->PhysicalStart)); + DEBUG ((DEBUG_VERBOSE, " VirtualStart - 0x%016lx\n", MemoryAttri= butesEntry->VirtualStart)); + DEBUG ((DEBUG_VERBOSE, " NumberOfPages - 0x%016lx\n", MemoryAttri= butesEntry->NumberOfPages)); + DEBUG ((DEBUG_VERBOSE, " Attribute - 0x%016lx\n", MemoryAttri= butesEntry->Attribute)); MemoryAttributesEntry =3D NEXT_MEMORY_DESCRIPTOR(MemoryAttributesEntry= , DescriptorSize); =20 MemoryMap =3D NEXT_MEMORY_DESCRIPTOR(MemoryMap, DescriptorSize); @@ -1331,7 +1331,7 @@ SmmInstallMemoryAttributesTable ( { SmmInstallImageRecord (); =20 - DEBUG ((DEBUG_INFO, "SMM MemoryProtectionAttribute - 0x%016lx\n", mMemor= yProtectionAttribute)); + DEBUG ((DEBUG_VERBOSE, "SMM MemoryProtectionAttribute - 0x%016lx\n", mMe= moryProtectionAttribute)); if ((mMemoryProtectionAttribute & EFI_MEMORY_ATTRIBUTES_RUNTIME_MEMORY_P= ROTECTION_NON_EXECUTABLE_PE_DATA) =3D=3D 0) { return EFI_SUCCESS; } --=20 2.23.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#77373): https://edk2.groups.io/g/devel/message/77373 Mute This Topic: https://groups.io/mt/83886683/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-