diff mbox

[9/9] npu2: Allow POWER9 DD2 in ec level check

Message ID 1500046768-24405-10-git-send-email-arbab@linux.vnet.ibm.com
State Superseded
Headers show

Commit Message

Reza Arbab July 14, 2017, 3:39 p.m. UTC
Don't bail when we encounter a POWER9 DD2.x chip.

Cc: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com>
---
 hw/npu2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alistair Popple July 17, 2017, 3:53 a.m. UTC | #1
On Fri, 14 Jul 2017 10:39:28 AM Reza Arbab wrote:
> Don't bail when we encounter a POWER9 DD2.x chip.

Clown.

Acked-By: Alistair Popple <alistair@popple.id.au>

> Cc: Alistair Popple <alistair@popple.id.au>
> Signed-off-by: Reza Arbab <arbab@linux.vnet.ibm.com>
> ---
>  hw/npu2.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/npu2.c b/hw/npu2.c
> index dfe8622..02000e4 100644
> --- a/hw/npu2.c
> +++ b/hw/npu2.c
> @@ -1242,7 +1242,7 @@ static void npu2_probe_phb(struct dt_node *dn)
>  	path = dt_get_path(dn);
>  	gcid = dt_get_chip_id(dn);
>  	assert(proc_chip = get_chip(gcid));
> -	if ((proc_chip->ec_level & 0xf0) != 0x10) {
> +	if ((proc_chip->ec_level & 0xf0) > 0x20) {
>  		prerror("NPU2: unsupported ec level on Chip 0x%x!\n", gcid);
>  		return;
>  	}
>
diff mbox

Patch

diff --git a/hw/npu2.c b/hw/npu2.c
index dfe8622..02000e4 100644
--- a/hw/npu2.c
+++ b/hw/npu2.c
@@ -1242,7 +1242,7 @@  static void npu2_probe_phb(struct dt_node *dn)
 	path = dt_get_path(dn);
 	gcid = dt_get_chip_id(dn);
 	assert(proc_chip = get_chip(gcid));
-	if ((proc_chip->ec_level & 0xf0) != 0x10) {
+	if ((proc_chip->ec_level & 0xf0) > 0x20) {
 		prerror("NPU2: unsupported ec level on Chip 0x%x!\n", gcid);
 		return;
 	}