From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id F386C941624 for ; Tue, 30 Jul 2024 15:08:33 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=YUOarWCcN9Lu/o9M4o5a+f6gKatOjErRvCp5Afu0w6w=; c=relaxed/simple; d=groups.io; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From:To:Cc:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20240206; t=1722352113; v=1; b=bkc8WAWn4tibS0kAzemIRij2hKcw5LlEglNaHqa08jh+7DKusAPsGa1qwb3NY5mb3Kzip3to MlMvmPweDFv1O37GVDglM6ViC4PuepGUGNwwXCFGwKiMurl1jiZOKYmHHDHjM9KTUojhgZ/lIhk sEMcxHJDTZ4iqEgudGZj2dOazktOv5/VrGJIdyxmrKEYzstxVqHU7AuV1LYM9CED7ZfBlJxfTtg 4i6eobN9wGPU6hhPZqpixExE275N6CLYV1spmDl7M/qDwaH48p2wJjzDozOYr8quYqsGnbkQ3uY E9bUGxXjXT6BsZFBiEQL4x/Lx8l4iwq1JCH7wu2XYzByg== X-Received: by 127.0.0.2 with SMTP id RHxMYY7687511xC9t9omwww7; Tue, 30 Jul 2024 08:08:32 -0700 X-Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) by mx.groups.io with SMTP id smtpd.web10.42098.1722199484074988293 for ; Sun, 28 Jul 2024 13:44:44 -0700 X-Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-6698f11853aso38674267b3.0 for ; Sun, 28 Jul 2024 13:44:43 -0700 (PDT) X-Gm-Message-State: IbNIxcTEYoL1uPygI59mzmcPx7686176AA= X-Google-Smtp-Source: AGHT+IF2BI66CslV/9GXyHcpofi3NLWd9km3lD4ULHIumsxxTCwlFzZM0laz/VQ3Qh4kTSfWrUukIUD9 X-Received: from palermo.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:118a]) (user=ardb job=sendgmr) by 2002:a05:690c:385:b0:647:def5:ccac with SMTP id 00721157ae682-67a06252517mr1831027b3.3.1722199483104; Sun, 28 Jul 2024 13:44:43 -0700 (PDT) Date: Sun, 28 Jul 2024 22:44:28 +0200 In-Reply-To: <20240728204437.4064847-1-ardb+git@google.com> Mime-Version: 1.0 References: <20240728204437.4064847-1-ardb+git@google.com> Message-ID: <20240728204437.4064847-2-ardb+git@google.com> Subject: [edk2-devel] [PATCH edk2-platforms v2 1/8] Platform/RaspberryPi: Mark RAM regions as write/execute protectable From: "Ard Biesheuvel via groups.io" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Jeremy Linton 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 Resent-Date: Tue, 30 Jul 2024 08:08:17 -0700 Resent-From: ardb+git@google.com Reply-To: devel@edk2.groups.io,ardb+git@google.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=bkc8WAWn; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io From: Ard Biesheuvel Mark RAM ranges as write/execute protectable in the GCD memory map. This is needed to avoid issues with NonCoherentDmaLib in EmbeddedPkg, which will fail if it does not manage to set the EFI_MEMORY_XP attribute on the allocated DMA buffers. Signed-off-by: Ard Biesheuvel --- Platform/RaspberryPi/Library/MemoryInitPeiLib/MemoryInitPeiLib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Platform/RaspberryPi/Library/MemoryInitPeiLib/MemoryInitPeiLib.c b/Platform/RaspberryPi/Library/MemoryInitPeiLib/MemoryInitPeiLib.c index 7ba1cc5602d2..cf9eca2ffe9a 100644 --- a/Platform/RaspberryPi/Library/MemoryInitPeiLib/MemoryInitPeiLib.c +++ b/Platform/RaspberryPi/Library/MemoryInitPeiLib/MemoryInitPeiLib.c @@ -51,6 +51,8 @@ AddBasicMemoryRegion ( EFI_RESOURCE_ATTRIBUTE_WRITE_COMBINEABLE | EFI_RESOURCE_ATTRIBUTE_WRITE_THROUGH_CACHEABLE | EFI_RESOURCE_ATTRIBUTE_WRITE_BACK_CACHEABLE | + EFI_RESOURCE_ATTRIBUTE_WRITE_PROTECTABLE | + EFI_RESOURCE_ATTRIBUTE_EXECUTION_PROTECTABLE | EFI_RESOURCE_ATTRIBUTE_TESTED, Desc->PhysicalBase, Desc->Length -- 2.46.0.rc1.232.g9752f9e123-goog -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120101): https://edk2.groups.io/g/devel/message/120101 Mute This Topic: https://groups.io/mt/107628975/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-