diff mbox

prd: Enable prd_init() for firestone platform

Message ID 20150608043902.7342.52407.stgit@drishya
State Accepted
Headers show

Commit Message

Vaidyanathan Srinivasan June 8, 2015, 4:43 a.m. UTC
Call prd_init() on astbmc/firestone platform
in order to enable PRD in host kernel.

Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
---
Tested on Firestone system with custom HBRT. PRD memory region
parsing in OPAL and host kernel have been verified. Host kernel
PRD driver and application are functional.

 platforms/astbmc/firestone.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Joel Stanley June 9, 2015, 4:41 a.m. UTC | #1
Hey Vaidy,

On Mon, Jun 8, 2015 at 2:13 PM, Vaidyanathan Srinivasan
<svaidy@linux.vnet.ibm.com> wrote:
> --- a/platforms/astbmc/firestone.c
> +++ b/platforms/astbmc/firestone.c
> @@ -30,6 +30,7 @@ static bool firestone_probe(void)
>
>         /* Lot of common early inits here */
>         astbmc_early_init();
> +       prd_init();

Is there any reason not to put it in astbmc_early_init?

Cheers,

Joel
Jeremy Kerr June 9, 2015, 4:45 a.m. UTC | #2
Hi Joel,

>>         /* Lot of common early inits here */
>>         astbmc_early_init();
>> +       prd_init();
> 
> Is there any reason not to put it in astbmc_early_init?

I was thinking about doing this, but it may be possible that we have an
astbmc machine without PRD support; the two aren't necessarily linked.

Cheers,


Jeremy
Jeremy Kerr June 11, 2015, 4:03 a.m. UTC | #3
Hi Vaidy,

> Call prd_init() on astbmc/firestone platform
> in order to enable PRD in host kernel.
> 
> Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>

Acked-by: Jeremy Kerr <jk@ozlabs.org>

Thanks!


Jeremy
diff mbox

Patch

diff --git a/platforms/astbmc/firestone.c b/platforms/astbmc/firestone.c
index 4d3be19..362f1b6 100644
--- a/platforms/astbmc/firestone.c
+++ b/platforms/astbmc/firestone.c
@@ -30,6 +30,7 @@  static bool firestone_probe(void)
 
 	/* Lot of common early inits here */
 	astbmc_early_init();
+	prd_init();
 
 	return true;
 }