Re: [PATCH 1/1] soc: keembay: Add Keem Bay IMR driver
From: Pavel Machek
Date: Sun May 24 2020 - 17:29:01 EST
Hi!
> > Like I said above, you just broke multi-system kernels by always
> > trying
> > to do this. Trigger off of a hardware device that only your platform
> > has in order to properly load and run. As-is, you don't want to do
> > this.
>
> My bad, I didn't consider the issue of multi-platform ARM kernels.
>
> The problem is that I need this code to be run early at boot, so I
> don't think I can make this a module.
How early is early enough?
What bootloader are you using?
I believe you should simply fix your bootloader not to pass locked memory to the kernel.
Alternatively, take that memory off the "memory available" maps, and only re-add it once
it is usable.
Anything else is dangerous.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html