From: Dan Carpenter <hidden> Date: 2017-08-25 10:34:16
My static checker complains that 0x00001800 >> 13 is zero. Looking at
the context, it seems like a copy and paste bug from the line below and
probably 0x3 << 13 or 0x00006000 was intended.
Fixes: 2af59f7d5c3e ("[POWERPC] 4xx: Add 405GPr and 405EP support in boot wrapper")
Signed-off-by: Dan Carpenter <redacted>
---
Not tested!
From: Benjamin Herrenschmidt <benh@kernel.crashing.org> Date: 2017-08-27 04:58:58
On Fri, 2017-08-25 at 13:33 +0300, Dan Carpenter wrote:
quoted hunk
My static checker complains that 0x00001800 >> 13 is zero. Looking at
the context, it seems like a copy and paste bug from the line below and
probably 0x3 << 13 or 0x00006000 was intended.
Fixes: 2af59f7d5c3e ("[POWERPC] 4xx: Add 405GPr and 405EP support in boot wrapper")
Signed-off-by: Dan Carpenter <redacted>
---
Not tested!
That rings a bell... Is this something we tried to fix before and had
problems ? The thing is when I opened the 405GP and EP manual PDF,
evince had memorized that this register was the last page I looked at
:-) And I don't remember how many years ago that is.
According to the 405gp spec ppdv is IBM bits 17,18 so your patch is
correct.
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
From: Dan Carpenter <hidden> Date: 2017-08-28 07:57:47
On Sun, Aug 27, 2017 at 02:56:31PM +1000, Benjamin Herrenschmidt wrote:
On Fri, 2017-08-25 at 13:33 +0300, Dan Carpenter wrote:
quoted
My static checker complains that 0x00001800 >> 13 is zero. Looking at
the context, it seems like a copy and paste bug from the line below and
probably 0x3 << 13 or 0x00006000 was intended.
Fixes: 2af59f7d5c3e ("[POWERPC] 4xx: Add 405GPr and 405EP support in boot wrapper")
Signed-off-by: Dan Carpenter <redacted>
---
Not tested!
That rings a bell... Is this something we tried to fix before and had
problems ? The thing is when I opened the 405GP and EP manual PDF,
evince had memorized that this register was the last page I looked at
:-) And I don't remember how many years ago that is.
According to the 405gp spec ppdv is IBM bits 17,18 so your patch is
correct.
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Hm... I did a search through my mailbox and you're right we discussed
this before.
[bug report] [POWERPC] 4xx: Add 405GPr and 405EP support in boot wrapper
I sent this email during kernel summit and neither of us could send a
patch at the time and we both problem forgot. I definitely forgot.
regards,
dan carpenter
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2017-08-28 11:19:24
Dan Carpenter [off-list ref] writes:
On Sun, Aug 27, 2017 at 02:56:31PM +1000, Benjamin Herrenschmidt wrote:
quoted
On Fri, 2017-08-25 at 13:33 +0300, Dan Carpenter wrote:
quoted
My static checker complains that 0x00001800 >> 13 is zero. Looking at
the context, it seems like a copy and paste bug from the line below and
probably 0x3 << 13 or 0x00006000 was intended.
Fixes: 2af59f7d5c3e ("[POWERPC] 4xx: Add 405GPr and 405EP support in boot wrapper")
Signed-off-by: Dan Carpenter <redacted>
---
Not tested!
That rings a bell... Is this something we tried to fix before and had
problems ? The thing is when I opened the 405GP and EP manual PDF,
evince had memorized that this register was the last page I looked at
:-) And I don't remember how many years ago that is.
According to the 405gp spec ppdv is IBM bits 17,18 so your patch is
correct.
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Hm... I did a search through my mailbox and you're right we discussed
this before.
[bug report] [POWERPC] 4xx: Add 405GPr and 405EP support in boot wrapper
I sent this email during kernel summit and neither of us could send a
patch at the time and we both problem forgot. I definitely forgot.
From: Michael Ellerman <hidden> Date: 2017-08-31 11:36:21
On Fri, 2017-08-25 at 10:33:40 UTC, Dan Carpenter wrote:
My static checker complains that 0x00001800 >> 13 is zero. Looking at
the context, it seems like a copy and paste bug from the line below and
probably 0x3 << 13 or 0x00006000 was intended.
Fixes: 2af59f7d5c3e ("[POWERPC] 4xx: Add 405GPr and 405EP support in boot wrapper")
Signed-off-by: Dan Carpenter <redacted>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>