[U-Boot] [PATCH 4/4] powerpc: Add LINK_OFF calls in early C-code.
Joakim Tjernlund
joakim.tjernlund at transmode.se
Tue Jan 18 22:08:28 CET 2011
Wolfgang Denk <wd at denx.de> wrote on 2011/01/18 21:06:34:
> Dear Joakim Tjernlund,
>
> In message <OF287114D8.013B6E51-ONC125781C.00667DCD-C125781C.00673260 at transmode.se> you wrote:
> >
> > > You don't need to make the MMU trick work on all boards, just your board
> > > (or cpu family), because it wouldn't be imposing anything on
> > > the rest of the system. Do we actually have someone who
> > > needs this feature on a board without a suitable MMU, large lockable
> > > cache or other SRAM, hardware bank switching, or other mechanism
> > > that can be confined to early low-level board/cpu-specific code?
> >
> > Wolfgang seems to think so. As I read his reply he wants a solution for all
>
> Please be aware that I don't think anything at all. I just comment :-)
>
> I'm not in your position, where I am focussing on "how can I implement
> this". I'm looking at the code from the outside, and I ask what does
> it give to me, what of the things I'd like to have does it not give to
> me, and at which price does it come.
>
> > boards which I don't think is possible. I do think my approach comes closest though.
> > I did try BATs but I didn't get very far.
>
> If we are talking about _all_ boards we have to keep a wider view.
> For example, on MPC8xx there are not BATs. Not to mention other
> architectures.
>
>
> Actually I was not asking for support for all boards, not even for
> all boards of a specific architecture, or a specific CPU. You
> submitted this patch, and I learned that the code, as is, is only
> useful for a single board, which appears to be maintained in an
> out-of-tree port. For all in-tree boards the code, as is, is broken
> and unusable without further rework. Needless to repeat that it is
> completely untested for mainline.
Ah, finally you make sense to me. I actually tested this with mainline
on my board so it is not completely untested in mainline.
>
> So we have a patch that promises a feature, which cannot be used by
> any of the mainline boards, but it makes the code more complex for
> zero benefit.
You can test that nothing breaks in other 83xx boards. That would be
valuable feedback to me.
I can try to complete all NOR based 83xx boards too, but someone needs
to test them.
>
> It's a nice and appreciated RFC patch or even example implementation,
> but I fail to see arguments why we should add this to mainline.
Well, you have to start somewhere and as this involves asm changes
in start.S it would be pretty dangerous add these without being able to
test. The idea is that once some version of this patch is in, interested
parties can apply the same concept on their boards too.
Finally, I would like to remind you about
[PATCH] PowerPC: Move -fPIC flag to common place
[PATCH] PowerPC: Add support for -msingle-pic-base
Those two stands on its own.
More information about the U-Boot
mailing list