Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-02-19 Thread Ian Campbell
On Sat, 2015-02-14 at 16:08 +0100, Jan Kiszka wrote: To avoid duplicate work: I started to implement the suggested algorithm on the TK1. Just like Ian, I don't have access to any other platform (nor docs at hand), so I will stick with Tegra124 support for the first step. I suppose we can

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-02-14 Thread Jan Kiszka
On 2015-02-09 12:26, Mark Rutland wrote: [...] The solution that was discussed internally would involve having the secure monitor (U-Boot's PSCI implementation in this case) program the flow controller appropriately, point the CPU reset vectors to a location containing a WFI instruction and

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-02-09 Thread Mark Rutland
[...] The solution that was discussed internally would involve having the secure monitor (U-Boot's PSCI implementation in this case) program the flow controller appropriately, point the CPU reset vectors to a location containing a WFI instruction and power up the CPUs. That way they

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-02-05 Thread Thierry Reding
On Thu, Feb 05, 2015 at 12:37:39PM +, Mark Rutland wrote: On Thu, Feb 05, 2015 at 11:44:25AM +, Thierry Reding wrote: On Fri, Jan 23, 2015 at 12:37:20PM +, Mark Rutland wrote: On Fri, Jan 23, 2015 at 10:10:45AM +, Thierry Reding wrote: On Thu, Jan 22, 2015 at 07:20:15PM

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-02-05 Thread Mark Rutland
On Thu, Feb 05, 2015 at 11:44:25AM +, Thierry Reding wrote: On Fri, Jan 23, 2015 at 12:37:20PM +, Mark Rutland wrote: On Fri, Jan 23, 2015 at 10:10:45AM +, Thierry Reding wrote: On Thu, Jan 22, 2015 at 07:20:15PM +, Mark Rutland wrote: On Fri, Jan 16, 2015 at 09:12:59AM

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-02-05 Thread Ian Campbell
On Thu, 2015-02-05 at 14:55 +0100, Thierry Reding wrote: Ian, are you planning on revising the series based on the outcome above? Yes, although I don't have any 114 or 30 hardware, just a single Jetson. (there should probably be an eventually near the start of that sentence, I'm travelling for

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-02-05 Thread Thierry Reding
On Fri, Jan 23, 2015 at 12:37:20PM +, Mark Rutland wrote: On Fri, Jan 23, 2015 at 10:10:45AM +, Thierry Reding wrote: On Thu, Jan 22, 2015 at 07:20:15PM +, Mark Rutland wrote: On Fri, Jan 16, 2015 at 09:12:59AM +, Thierry Reding wrote: On Thu, Jan 15, 2015 at 07:19:37PM

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-02-05 Thread Ian Campbell
On Thu, 2015-02-05 at 12:44 +0100, Thierry Reding wrote: We've had some discussions about this internally and I think this should not be a problem after all. The Tegra flow controller can be programmed to automatically coordinate with the PMC to powergate CPUs when they encounter a WFI

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-30 Thread Thierry Reding
On Fri, Jan 23, 2015 at 12:37:20PM +, Mark Rutland wrote: On Fri, Jan 23, 2015 at 10:10:45AM +, Thierry Reding wrote: On Thu, Jan 22, 2015 at 07:20:15PM +, Mark Rutland wrote: On Fri, Jan 16, 2015 at 09:12:59AM +, Thierry Reding wrote: On Thu, Jan 15, 2015 at 07:19:37PM

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-23 Thread Thierry Reding
On Thu, Jan 22, 2015 at 07:20:15PM +, Mark Rutland wrote: On Fri, Jan 16, 2015 at 09:12:59AM +, Thierry Reding wrote: On Thu, Jan 15, 2015 at 07:19:37PM +, Mark Rutland wrote: On Wed, Jan 14, 2015 at 07:57:25AM +, Thierry Reding wrote: On Tue, Jan 13, 2015 at 07:44:50PM

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-23 Thread Mark Rutland
[...] PSCI assumes that the FW is in full control of the registers it's poking. While a lock isn't necessarily bad, I suspect it's going to be very difficult to have that common across all users without the code becoming unmaintainable fast. I'd also hope that for arm64 we wouldn't

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-23 Thread Mark Rutland
On Fri, Jan 23, 2015 at 10:10:45AM +, Thierry Reding wrote: On Thu, Jan 22, 2015 at 07:20:15PM +, Mark Rutland wrote: On Fri, Jan 16, 2015 at 09:12:59AM +, Thierry Reding wrote: On Thu, Jan 15, 2015 at 07:19:37PM +, Mark Rutland wrote: On Wed, Jan 14, 2015 at 07:57:25AM

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-22 Thread Mark Rutland
On Fri, Jan 16, 2015 at 09:12:59AM +, Thierry Reding wrote: On Thu, Jan 15, 2015 at 07:19:37PM +, Mark Rutland wrote: On Wed, Jan 14, 2015 at 07:57:25AM +, Thierry Reding wrote: On Tue, Jan 13, 2015 at 07:44:50PM +, Ian Campbell wrote: Hi Thierry, I needed to

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-19 Thread Ian Campbell
On Mon, 2015-01-19 at 10:25 +0100, Thierry Reding wrote: On Fri, Jan 16, 2015 at 04:11:19PM +, Ian Campbell wrote: On Fri, 2015-01-16 at 17:03 +0100, Thierry Reding wrote: On Fri, Jan 16, 2015 at 10:24:03AM +, Ian Campbell wrote: On Fri, 2015-01-16 at 11:05 +0100, Thierry Reding

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-19 Thread Thierry Reding
On Fri, Jan 16, 2015 at 04:11:19PM +, Ian Campbell wrote: On Fri, 2015-01-16 at 17:03 +0100, Thierry Reding wrote: On Fri, Jan 16, 2015 at 10:24:03AM +, Ian Campbell wrote: On Fri, 2015-01-16 at 11:05 +0100, Thierry Reding wrote: On Fri, Jan 16, 2015 at 09:43:22AM +, Ian

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-16 Thread Thierry Reding
On Thu, Jan 15, 2015 at 07:19:37PM +, Mark Rutland wrote: On Wed, Jan 14, 2015 at 07:57:25AM +, Thierry Reding wrote: On Tue, Jan 13, 2015 at 07:44:50PM +, Ian Campbell wrote: Hi Thierry, I needed to boot my Jetson in NS mode (in order to boot Xen) and was investigating

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-16 Thread Ian Campbell
On Thu, 2015-01-15 at 15:55 +0100, Thierry Reding wrote: On Wed, Jan 14, 2015 at 08:58:41AM +, Ian Campbell wrote: On Wed, 2015-01-14 at 08:57 +0100, Thierry Reding wrote: I also pushed my tree to gitorious: https://gitorious.org/ijc/u-boot jetson-psci-v1 I would

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-16 Thread Thierry Reding
On Fri, Jan 16, 2015 at 09:43:22AM +, Ian Campbell wrote: On Thu, 2015-01-15 at 15:55 +0100, Thierry Reding wrote: On Wed, Jan 14, 2015 at 08:58:41AM +, Ian Campbell wrote: On Wed, 2015-01-14 at 08:57 +0100, Thierry Reding wrote: I also pushed my tree to gitorious:

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-16 Thread Ian Campbell
On Fri, 2015-01-16 at 11:05 +0100, Thierry Reding wrote: On Fri, Jan 16, 2015 at 09:43:22AM +, Ian Campbell wrote: On Thu, 2015-01-15 at 15:55 +0100, Thierry Reding wrote: On Wed, Jan 14, 2015 at 08:58:41AM +, Ian Campbell wrote: On Wed, 2015-01-14 at 08:57 +0100, Thierry Reding

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-16 Thread Thierry Reding
On Fri, Jan 16, 2015 at 10:24:03AM +, Ian Campbell wrote: On Fri, 2015-01-16 at 11:05 +0100, Thierry Reding wrote: On Fri, Jan 16, 2015 at 09:43:22AM +, Ian Campbell wrote: On Thu, 2015-01-15 at 15:55 +0100, Thierry Reding wrote: On Wed, Jan 14, 2015 at 08:58:41AM +, Ian

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-16 Thread Ian Campbell
On Fri, 2015-01-16 at 17:03 +0100, Thierry Reding wrote: On Fri, Jan 16, 2015 at 10:24:03AM +, Ian Campbell wrote: On Fri, 2015-01-16 at 11:05 +0100, Thierry Reding wrote: On Fri, Jan 16, 2015 at 09:43:22AM +, Ian Campbell wrote: On Thu, 2015-01-15 at 15:55 +0100, Thierry Reding

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-15 Thread Thierry Reding
On Wed, Jan 14, 2015 at 08:58:41AM +, Ian Campbell wrote: On Wed, 2015-01-14 at 08:57 +0100, Thierry Reding wrote: I also pushed my tree to gitorious: https://gitorious.org/ijc/u-boot jetson-psci-v1 I would Ack your patch, but I don't think you've posted it and it has no

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-15 Thread Mark Rutland
On Wed, Jan 14, 2015 at 07:57:25AM +, Thierry Reding wrote: On Tue, Jan 13, 2015 at 07:44:50PM +, Ian Campbell wrote: Hi Thierry, I needed to boot my Jetson in NS mode (in order to boot Xen) and was investigating the possibility of PSCI support when I discovered that you had

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-14 Thread Thierry Reding
On Tue, Jan 13, 2015 at 07:44:50PM +, Ian Campbell wrote: Hi Thierry, I needed to boot my Jetson in NS mode (in order to boot Xen) and was investigating the possibility of PSCI support when I discovered that you had already started on it[0]. Hurrah! I cherry-picked the relevant commit

Re: [U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-14 Thread Ian Campbell
On Wed, 2015-01-14 at 08:57 +0100, Thierry Reding wrote: I also pushed my tree to gitorious: https://gitorious.org/ijc/u-boot jetson-psci-v1 I would Ack your patch, but I don't think you've posted it and it has no S-o-b so that would seem a bit premature/rude of me. For the same

[U-Boot] [PATCH v1 0/4] Jetson-TK1 support for PSCI

2015-01-13 Thread Ian Campbell
Hi Thierry, I needed to boot my Jetson in NS mode (in order to boot Xen) and was investigating the possibility of PSCI support when I discovered that you had already started on it[0]. Hurrah! I cherry-picked the relevant commit onto u-boot-tegra#master and added a few more patches and now it