From nobody Mon Feb 9 19:52:54 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+51274+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+51274+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1574765869; cv=none; d=zohomail.com; s=zohoarc; b=VeT1GVfOjnnE2Yo/nJFwp8/Ssri9+sP6Wh2gW++zVA26oIzvmzASjMlM+yaq8u+tijWG1Jg6sg4bELBW+yr000AVKJGifr8lO6R0DfRG7JxQb656Js07+brZHttEntT32bQxhFrvCU365LKg/UU+vfJp0WiKaZj0iTaOI55D4rw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574765869; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=sUZcvHjksUMp10uyz2txAIyxGgyZjs8PI88sIuTM5WI=; b=OFQ5CoqEx2nZrAlZx1NMFuBRk4UB7Fn7bptr2lreuHvsPCHh+MbVIgv3AqRYxX4Xsx8iTU9aUKxa+W+fpPhcXtHIBsSWYG9vabsZgcmylqXwIEYBmLx3acxx8hMui0GxvhKzF7vOSaZ/o7ce4XAvWeU38+w48w6o9sdD6oxNX8A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+51274+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1574765869888238.33928443600735; Tue, 26 Nov 2019 02:57:49 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id aaaaYY1788612xaaaaaaaaaa; Tue, 26 Nov 2019 02:57:49 -0800 X-Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by mx.groups.io with SMTP id smtpd.web11.10093.1574765868729730555 for ; Tue, 26 Nov 2019 02:57:49 -0800 X-Received: by mail-wr1-f65.google.com with SMTP id t2so21896173wrr.1 for ; Tue, 26 Nov 2019 02:57:48 -0800 (PST) X-Gm-Message-State: aaaaaaaaaaaaaaaaaaaaaaaax1787277AA= X-Google-Smtp-Source: APXvYqw7n6nKIBywxlsEcL1YRAMRb544TTbdElOYsR6ZkOg1YXWaIkRj9VZK9TIuodlySjKb5yL/3Q== X-Received: by 2002:a5d:558b:: with SMTP id i11mr34365825wrv.379.1574765867000; Tue, 26 Nov 2019 02:57:47 -0800 (PST) X-Received: from localhost.localdomain ([84.203.37.1]) by smtp.gmail.com with ESMTPSA id p25sm2545037wma.20.2019.11.26.02.57.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Nov 2019 02:57:46 -0800 (PST) From: "Pete Batard" To: devel@edk2.groups.io Cc: ard.biesheuvel@linaro.org, leif.lindholm@linaro.org, philmd@redhat.com Subject: [edk2-devel] [edk2-platforms][PATCH 1/2] Platform/RPi3: Disable DEBUG output at runtime for the RTC driver Date: Tue, 26 Nov 2019 10:57:32 +0000 Message-Id: <20191126105733.6300-2-pete@akeo.ie> In-Reply-To: <20191126105733.6300-1-pete@akeo.ie> References: <20191126105733.6300-1-pete@akeo.ie> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,pete@akeo.ie Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1574765869; bh=h9J3pdFZ/IJYH0JKg6l9bXSrJ3DS/IP8gxEtmg+eRGU=; h=Cc:Date:From:Reply-To:Subject:To; b=MiivQlbBkHaUzovQIAk+5PN2coPbMbOeuFNZPWyZI7FcbHYUvx20ZpRQChDmKzr8c3/ nogvAbu0nqOepUSPW9Z4kea2TW2U5cttL3MTEAvBW3C0hpJg0LqQtkzvEOUL/nfqP+6xa uG+p47wHmLjRTX3DDkyfHWlfTi9++WEybT0= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Ard Biesheuvel Using DEBUG () at runtime can crash the OS if we don't take care to inhibit serial output to MMIO mapped UARTs that we don't inform the OS about via the memory map. So use a version of DebugLib that does exactly that for the RTC driver. Signed-off-by: Pete Batard --- Platform/RaspberryPi/RPi3/RPi3.dsc | 1 + 1 file changed, 1 insertion(+) diff --git a/Platform/RaspberryPi/RPi3/RPi3.dsc b/Platform/RaspberryPi/RPi3= /RPi3.dsc index 98c75e373fa7..8ec82fc6d598 100644 --- a/Platform/RaspberryPi/RPi3/RPi3.dsc +++ b/Platform/RaspberryPi/RPi3/RPi3.dsc @@ -505,6 +505,7 @@ [Components.common] EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf { + DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebug= LibSerialPort.inf RealTimeClockLib|EmbeddedPkg/Library/VirtualRealTimeClockLib/Virtual= RealTimeClockLib.inf } EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf --=20 2.21.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 (#51274): https://edk2.groups.io/g/devel/message/51274 Mute This Topic: https://groups.io/mt/61957163/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-