Re: [U-Boot] decode_regions() function

2017-02-09 Thread Simon Glass
Hi York, On 8 February 2017 at 15:56, york sun wrote: > On 02/08/2017 02:12 PM, Simon Glass wrote: >> Hi York, >> >> On 8 February 2017 at 14:58, york sun wrote: >>> Simon, >>> >>> I stumped on this issue when I was rewriting the code to reserve secure >>> memory. I didn't realize gd->ram_size w

Re: [U-Boot] decode_regions() function

2017-02-08 Thread york sun
On 02/08/2017 02:12 PM, Simon Glass wrote: > Hi York, > > On 8 February 2017 at 14:58, york sun wrote: >> Simon, >> >> I stumped on this issue when I was rewriting the code to reserve secure >> memory. I didn't realize gd->ram_size was used in the driver. I made the >> top of memory secure so EL2

[U-Boot] decode_regions() function

2017-02-08 Thread york sun
Simon, I stumped on this issue when I was rewriting the code to reserve secure memory. I didn't realize gd->ram_size was used in the driver. I made the top of memory secure so EL2 code wouldn't be able to access. All of the sudden my PCI device failed. By reducing the gd->ram_size, PCI works ag

Re: [U-Boot] decode_regions() function

2017-02-08 Thread Simon Glass
Hi York, On 8 February 2017 at 14:58, york sun wrote: > Simon, > > I stumped on this issue when I was rewriting the code to reserve secure > memory. I didn't realize gd->ram_size was used in the driver. I made the > top of memory secure so EL2 code wouldn't be able to access. All of the > sudden