monstr has quit [Remote host closed the connection]
flyback has quit [Quit: Leaving]
flyback has joined #u-boot
___nick___ has quit [Ping timeout: 252 seconds]
___nick___ has joined #u-boot
enok has quit [Quit: enok]
ikarso has quit [Quit: Connection closed for inactivity]
<sjg1>
Tartarus: The point of co-operation (as I think we agreed to call it) is the end of any image loading via lmb, and the start of any memory allocation by EFI. This is the whole key to solving this problem without a complex set of bidirectional logic
<sjg1>
Tartarus: Images are loaded via lmb, then EFI takes over and adds lmb to its memory map, then carries on as today
<Tartarus>
sjg1: I had a thought about this last night that may make objections clearer. Why are you not making some similar flag for "bootelf" and "go" ?
<Tartarus>
But, what do you mean images loaded via lmb?
<sjg1>
Tartarus: I wouldn't worry so much but it is quite difficult to get any changes in with the EFI subsystem, so if we go ahead with this scheme, it will be very difficult to back out
<Tartarus>
With Sughosh's v3, yes, everything loaded is covered by an lmb
<Tartarus>
and, electrician msging me, brb'ish
<sjg1>
The latest series doesn't have a flag actually. For bootelf and go, we don't have callbacks, so they cannot allocation memory, so lmb is the final word. It is only EFI where things are more complicated
<sjg1>
I mean, images are loaded via lmb today, so we don't need to change that. It works fine
<Tartarus>
Right, bootelf and go can fiddle whatever they want in memory and not bother setting an lmb over what they load since we won't know
<Tartarus>
EFI is more complicated in that we do know what's going on and so... why does it need some special treatment? That's what's confusing
<Tartarus>
The app we launch can say I need $this hunk of memory and we know about it, rather than not knowing about it
<sjg1>
Yes
<sjg1>
But all that is needed is for EFI to add the lmb records to its memory map. Everything else can stay the same, right?
<Tartarus>
To be clear, before all of this rework, EFI only was doing LMB checks because I noticed it wasn't and wanted to avoid an easy-and-stupid CVE being assigned. Today there's gaps because Sughosh's initial series that did cover EFI was split in two, leaving the EFI part out to not block the rest of the rework going in. "Tomorrow" (not literally, I had a small comment for v3 and will fully review Monday) EFI will be fully integrated with
<Tartarus>
LMB as his series looks to be basically ready and done
<Tartarus>
iirc the "event" mechanism that was in earlier series was dropped
<Tartarus>
We now just make the calls as needed, and have a CONFIG symbol for that being the case. The only change I've asked for is that the symbol needs to be select'd and not prompted for
<Tartarus>
(Which to be clear, is a common problem with our Kconfig symbols, many things are prompted over when there's no real choice, you either enable $X or you have broken software)
<sjg1>
I still see 'notify of any changes to the LMB memory map' although I see that it simply adds to the EFI memory map. I still see LMB_NONOTIFY.
<sjg1>
Do you understand what I am saying about the point of co-operation?
<Tartarus>
I've just now asked sng to elaborate on the use case and update the documentation as to what LMB_NONOTIFY is for exactly
<sjg1>
It's to break the deadlock on the circular dependency, which it what my series avoids
<Tartarus>
That said, I _think_ the flag is used so that we can add the whole of unused memory to the EFI memory map without inadvertently making an LMB that covers all of the rest of memory
<Tartarus>
Nothing nefarious
<Tartarus>
afk no power for a while
Stat_headcrabbed has quit [Quit: Stat_headcrabbed]
naoki has joined #u-boot
joeskb7 has joined #u-boot
jfsimon1981 has quit [Remote host closed the connection]
jfsimon1981 has joined #u-boot
jfsimon1981 has quit [Remote host closed the connection]
jfsimon1981 has joined #u-boot
mmu_man has quit [Ping timeout: 248 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
mmu_man has joined #u-boot
goliath has quit [Quit: SIGSEGV]
___nick___ has quit [Ping timeout: 276 seconds]
jfsimon1981 has quit [Remote host closed the connection]
jfsimon1981 has joined #u-boot
jfsimon1981 has quit [Max SendQ exceeded]
jfsimon1981_b has joined #u-boot
Perflosopher has quit [Ping timeout: 252 seconds]
joeskb7 has quit [Quit: Lost terminal]
naoki has quit [Remote host closed the connection]
naoki has joined #u-boot
mmu_man has quit [Ping timeout: 252 seconds]
slobodan has quit [Ping timeout: 252 seconds]
mmu_man has joined #u-boot
jfsimon1981_b has quit [Ping timeout: 245 seconds]
jfsimon1981 has joined #u-boot
Perflosopher has joined #u-boot
Perflosopher has quit [Ping timeout: 252 seconds]
Perflosopher has joined #u-boot
alan_o has quit [Ping timeout: 260 seconds]
alan_o has joined #u-boot
alan_o has quit [Remote host closed the connection]