From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ard Biesheuvel Subject: Re: [PATCH 2/8] arm64/efi: register UEFI reserved regions as iomem resources Date: Wed, 7 Jan 2015 11:53:38 +0000 Message-ID: References: <1419275322-29811-1-git-send-email-ard.biesheuvel@linaro.org> <1419275322-29811-3-git-send-email-ard.biesheuvel@linaro.org> <20150106091322.GG3163@console-pimps.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <20150106091322.GG3163-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org> Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Matt Fleming Cc: "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , "linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Leif Lindholm , Roy Franz , Mark Rutland , Catalin Marinas , Will Deacon , Matt Fleming , Borislav Petkov , Dave Young , Mark Salter , Grant Likely List-Id: linux-efi@vger.kernel.org On 6 January 2015 at 09:13, Matt Fleming wrote: > On Mon, 22 Dec, at 07:08:36PM, Ard Biesheuvel wrote: >> To prevent device drivers from attaching to device or memory regions >> owned by the firmware, register all UEFI reserved regions in the iomem >> resource table at init time. >> >> Signed-off-by: Ard Biesheuvel >> --- >> arch/arm64/kernel/efi.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 46 insertions(+) > > Looks nice. > > Just curious, have you actually seen drivers trying to claim these > regions? > Yes. RTC and NOR flash in particular, which should not appear in the device tree in the first place if the firmware owns them, but let's not assume all firmware vendors will get that right first try, From mboxrd@z Thu Jan 1 00:00:00 1970 From: ard.biesheuvel@linaro.org (Ard Biesheuvel) Date: Wed, 7 Jan 2015 11:53:38 +0000 Subject: [PATCH 2/8] arm64/efi: register UEFI reserved regions as iomem resources In-Reply-To: <20150106091322.GG3163@console-pimps.org> References: <1419275322-29811-1-git-send-email-ard.biesheuvel@linaro.org> <1419275322-29811-3-git-send-email-ard.biesheuvel@linaro.org> <20150106091322.GG3163@console-pimps.org> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 6 January 2015 at 09:13, Matt Fleming wrote: > On Mon, 22 Dec, at 07:08:36PM, Ard Biesheuvel wrote: >> To prevent device drivers from attaching to device or memory regions >> owned by the firmware, register all UEFI reserved regions in the iomem >> resource table at init time. >> >> Signed-off-by: Ard Biesheuvel >> --- >> arch/arm64/kernel/efi.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 46 insertions(+) > > Looks nice. > > Just curious, have you actually seen drivers trying to claim these > regions? > Yes. RTC and NOR flash in particular, which should not appear in the device tree in the first place if the firmware owns them, but let's not assume all firmware vendors will get that right first try,