Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-06 Thread Tom Rini
On Wed, Nov 06, 2019 at 12:03:23AM +, Aaron Williams wrote: > Hi Tom, > > > From: Tom Rini > Sent: Tuesday, November 5, 2019 6:16 AM > To: Wolfgang Denk > Cc: Aaron Williams; Daniel Schwierzeck; u-boot@lists.denx.de > Subject: Re: [EXT] Re: Cavium/Marvell Octeo

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-06 Thread Tom Rini
On Wed, Nov 06, 2019 at 10:18:45PM +, Aaron Williams wrote: > Hi Wolfgang, > > On Wednesday, November 6, 2019 7:06:17 AM PST Wolfgang Denk wrote: > > Dear Aaron, > > > > In message > > > you wrote: > > > > Definitely not. You could not implement any of this without heavily > > > > relyin

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-06 Thread Aaron Williams
Hi Wolfgang, On Wednesday, November 6, 2019 7:06:17 AM PST Wolfgang Denk wrote: > Dear Aaron, > > In message you wrote: > > > Definitely not. You could not implement any of this without heavily > > > relyin on and deriving from internal interfaces of U-Boot which are > > > not exported for n

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-06 Thread Wolfgang Denk
Dear Aaron, In message you wrote: > > > Definitely not. You could not implement any of this without heavily > > relyin on and deriving from internal interfaces of U-Boot which are > > not exported for non-GPL use. > > See https://www.gnu.org/licenses/old-licenses/gpl-2.0-faq.en.html#GPLInProp=

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Aaron Williams
Hi Tom, From: Tom Rini Sent: Tuesday, November 5, 2019 6:16 AM To: Wolfgang Denk Cc: Aaron Williams; Daniel Schwierzeck; u-boot@lists.denx.de Subject: Re: [EXT] Re: Cavium/Marvell Octeon Support On Tue, Nov 05, 2019 at 09:33:35AM +0100, Wolfgang Denk wrote: > Dear

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Aaron Williams
From: Wolfgang Denk Sent: Tuesday, November 5, 2019 3:36 AM To: Aaron Williams Cc: Tom Rini ; Daniel Schwierzeck ; u-boot@lists.denx.de Subject: Re: [EXT] Re: Cavium/Marvell Octeon Support Hi Wolfgang, I apologize in advance for the lack of email formatting

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Tom Rini
On Tue, Nov 05, 2019 at 09:33:35AM +0100, Wolfgang Denk wrote: > Dear Aaron, > > In message <5376617.97hUrJXovB@flash> you wrote: > > > > > Again you don't answer my question. Why do you need a special new > > > API for such code? Why do you not just link that code with the rest > > > of U-Boot?

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Tom Rini
On Tue, Nov 05, 2019 at 02:08:54AM +, Aaron Williams wrote: > On Monday, November 4, 2019 8:23:08 AM PST Tom Rini wrote: > > On Mon, Nov 04, 2019 at 04:44:18PM +0100, Wolfgang Denk wrote: > > > Dear Aaron, > > > > > > In message <2710076.TiSPtmOvtb@flash> you wrote: > > > > > What exactly do y

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Tom Rini
On Tue, Nov 05, 2019 at 02:13:13AM +, Aaron Williams wrote: > Hi Wolfgang, > > On Monday, November 4, 2019 9:22:16 AM PST Tom Rini wrote: > > On Thu, Oct 31, 2019 at 06:01:34PM +, Aaron Williams wrote: > > > Hi Wolfgang, > > > > > > On Thursday, October 31, 2019 3:40:27 AM PDT Wolfgang De

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Wolfgang Denk
Dear Aaron, In message <2609392.0ByMiX4J6F@flash> you wrote: > > U-Boot OS might be fun for people writing applications where they want bare > metal (i.e. hard real-time), though that's already provided with the API and > examples. Urgh... no!!! U-Boot is definitely *not* suitable for any kind

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Aaron Williams
Hi Wolfgang, On Tuesday, November 5, 2019 12:37:26 AM PST Wolfgang Denk wrote: > Dear Aaron, > > In message <1838672.aZrPjDvGh8@flash> you wrote: > > To be blunt, the current U-Boot EFI driver does not provide the required > > functionality. It would need to be extended in order to work. In addit

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Wolfgang Denk
Dear Aaron, In message <1838672.aZrPjDvGh8@flash> you wrote: > > To be blunt, the current U-Boot EFI driver does not provide the required > functionality. It would need to be extended in order to work. In addition, > spinlocks would be required in order to handle the case of reentrancy. Also, >

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-05 Thread Wolfgang Denk
Dear Aaron, In message <5376617.97hUrJXovB@flash> you wrote: > > > Again you don't answer my question. Why do you need a special new > > API for such code? Why do you not just link that code with the rest > > of U-Boot? > > The code in question that is calling the API is not GPL and hence cannot

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-04 Thread Aaron Williams
Hi Wolfgang, On Monday, November 4, 2019 9:22:16 AM PST Tom Rini wrote: > On Thu, Oct 31, 2019 at 06:01:34PM +, Aaron Williams wrote: > > Hi Wolfgang, > > > > On Thursday, October 31, 2019 3:40:27 AM PDT Wolfgang Denk wrote: > > > Dear Aaron, > > > > > > In message <1889679.7FQr5zsBR1@flash>

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-04 Thread Aaron Williams
On Monday, November 4, 2019 8:23:08 AM PST Tom Rini wrote: > On Mon, Nov 04, 2019 at 04:44:18PM +0100, Wolfgang Denk wrote: > > Dear Aaron, > > > > In message <2710076.TiSPtmOvtb@flash> you wrote: > > > > What exactly do you need this for? Why don't you just link your > > > > code with the rest o

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-04 Thread Aaron Williams
Hi Wolfgang, On Monday, November 4, 2019 7:44:18 AM PST Wolfgang Denk wrote: > Dear Aaron, > > In message <2710076.TiSPtmOvtb@flash> you wrote: > > > What exactly do you need this for? Why don't you just link your > > > code with the rest of U-Boot? > > > > We need it to obtain and modify the p

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-04 Thread Tom Rini
On Thu, Oct 31, 2019 at 06:01:34PM +, Aaron Williams wrote: > Hi Wolfgang, > > On Thursday, October 31, 2019 3:40:27 AM PDT Wolfgang Denk wrote: > > Dear Aaron, > > > > In message <1889679.7FQr5zsBR1@flash> you wrote: > > > Currently we are using 39MB under arch/mips. I think I can easily cut

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-04 Thread Tom Rini
On Mon, Nov 04, 2019 at 04:44:18PM +0100, Wolfgang Denk wrote: > Dear Aaron, > > In message <2710076.TiSPtmOvtb@flash> you wrote: > > > > > What exactly do you need this for? Why don't you just link your > > > code with the rest of U-Boot? > > > > We need it to obtain and modify the phy parameter

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-11-04 Thread Wolfgang Denk
Dear Aaron, In message <2710076.TiSPtmOvtb@flash> you wrote: > > > What exactly do you need this for? Why don't you just link your > > code with the rest of U-Boot? > > We need it to obtain and modify the phy parameters. This is a custom 25G > gearbox that needs a lot of hand holding. This may e

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-31 Thread Aaron Williams
On Thursday, October 31, 2019 6:26:51 AM PDT Tom Rini wrote: > On Wed, Oct 30, 2019 at 11:36:19PM +, Aaron Williams wrote: > > On Wednesday, October 30, 2019 3:05:25 PM PDT Tom Rini wrote: > > > External Email > > > > > > -- >

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-31 Thread Aaron Williams
Hi Wolfgang, On Thursday, October 31, 2019 3:40:27 AM PDT Wolfgang Denk wrote: > Dear Aaron, > > In message <1889679.7FQr5zsBR1@flash> you wrote: > > Currently we are using 39MB under arch/mips. I think I can easily cut this > > down to 15MB or smaller, especially by moving some code here to the

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-31 Thread Aaron Williams
On Thursday, October 31, 2019 3:36:10 AM PDT Wolfgang Denk wrote: > Dear Aaron, > > In message <1932577.QJWW3v3lL8@flash> you wrote: > > We do this relocation as well, however the way we do it is by changing a > > couple of TLB entries. This lets U-Boot begin execution from any memory > > location

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-31 Thread Tom Rini
On Wed, Oct 30, 2019 at 11:36:19PM +, Aaron Williams wrote: > On Wednesday, October 30, 2019 3:05:25 PM PDT Tom Rini wrote: > > External Email > > > > -- > > > > On Wed, Oct 23, 2019 at 03:50:00AM +, Aaron Williams wrote:

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-31 Thread Wolfgang Denk
Dear Aaron, In message <1889679.7FQr5zsBR1@flash> you wrote: > > Currently we are using 39MB under arch/mips. I think I can easily cut this > down to 15MB or smaller, especially by moving some code here to the > appropriate driver directories (i.e. DRAM, pcie, watchdog, etc.) > > It will still

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-31 Thread Wolfgang Denk
Dear Aaron, In message <1932577.QJWW3v3lL8@flash> you wrote: > > We do this relocation as well, however the way we do it is by changing a > couple of TLB entries. This lets U-Boot begin execution from any memory > location, be it flash, L2 cache or RAM. It also lets us statically link > U-Boot

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-30 Thread Aaron Williams
On Wednesday, October 30, 2019 3:05:25 PM PDT Tom Rini wrote: > External Email > > -- > > On Wed, Oct 23, 2019 at 03:50:00AM +, Aaron Williams wrote: > > Hi all, > > > > I have been tasked with porting our Octeon U-Boot to t

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-30 Thread Wolfgang Denk
Dear Daniel & Aaron, In message <7fdf93f6-412e-5fcf-da5e-17665daad...@gmail.com> you wrote: > > > Some other things we have included are a native API that allows Simple > > Executive applications to make calls into U-Boot for such things as > > environment variable access as well as access to bl

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-30 Thread Daniel Schwierzeck
Hi Aaron, Am 27.10.19 um 03:34 schrieb Aaron Williams: > Hi Daniel, > > On Friday, October 25, 2019 8:13:57 AM PDT Daniel Schwierzeck wrote: >> External Email >> >> -- >> Hi Aaron, >> >> Am 23.10.19 um 05:50 schrieb Aaron William

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-29 Thread Wolfgang Denk
Dear Aaron, In message <4176494.JIoP81OjG2@flash> you wrote: > > Actually the low level code is significantly different. First of all, we need > the U-Boot bootloader to be able to boot from different memory locations. > Because of this, we use mapped memory for U-Boot. A side effect of this is

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-26 Thread Aaron Williams
On Saturday, October 26, 2019 3:15:36 PM PDT Tom Rini wrote: > External Email > > -- > > On Fri, Oct 25, 2019 at 05:13:57PM +0200, Daniel Schwierzeck wrote: > > Hi Aaron, > > > > Am 23.10.19 um 05:50 schrieb Aaron Williams: > >

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-26 Thread Aaron Williams
Hi Daniel, On Friday, October 25, 2019 8:13:57 AM PDT Daniel Schwierzeck wrote: > External Email > > -- > Hi Aaron, > > Am 23.10.19 um 05:50 schrieb Aaron Williams: > > Hi all, > > > > I have been tasked with porting our Octeon