Searched hist:b57aeab811db07295f646808b1b17c312d17f57d (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/arch/powerpc/kernel/ |
H A D | dawr.c | diff b57aeab811db07295f646808b1b17c312d17f57d Thu Oct 17 04:31:59 CDT 2019 Ravi Bangoria <ravi.bangoria@linux.ibm.com> powerpc/watchpoint: Fix length calculation for unaligned target
Watchpoint match range is always doubleword(8 bytes) aligned on powerpc. If the given range is crossing doubleword boundary, we need to increase the length such that next doubleword also get covered. Ex,
address len = 6 bytes |=========. |------------v--|------v--------| | | | | | | | | | | | | | | | | | |---------------|---------------| <---8 bytes--->
In such case, current code configures hw as: start_addr = address & ~HW_BREAKPOINT_ALIGN len = 8 bytes
And thus read/write in last 4 bytes of the given range is ignored. Fix this by including next doubleword in the length.
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20191017093204.7511-3-ravi.bangoria@linux.ibm.com
|
H A D | hw_breakpoint.c | diff b57aeab811db07295f646808b1b17c312d17f57d Thu Oct 17 04:31:59 CDT 2019 Ravi Bangoria <ravi.bangoria@linux.ibm.com> powerpc/watchpoint: Fix length calculation for unaligned target
Watchpoint match range is always doubleword(8 bytes) aligned on powerpc. If the given range is crossing doubleword boundary, we need to increase the length such that next doubleword also get covered. Ex,
address len = 6 bytes |=========. |------------v--|------v--------| | | | | | | | | | | | | | | | | | |---------------|---------------| <---8 bytes--->
In such case, current code configures hw as: start_addr = address & ~HW_BREAKPOINT_ALIGN len = 8 bytes
And thus read/write in last 4 bytes of the given range is ignored. Fix this by including next doubleword in the length.
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20191017093204.7511-3-ravi.bangoria@linux.ibm.com
|
H A D | process.c | diff b57aeab811db07295f646808b1b17c312d17f57d Thu Oct 17 04:31:59 CDT 2019 Ravi Bangoria <ravi.bangoria@linux.ibm.com> powerpc/watchpoint: Fix length calculation for unaligned target
Watchpoint match range is always doubleword(8 bytes) aligned on powerpc. If the given range is crossing doubleword boundary, we need to increase the length such that next doubleword also get covered. Ex,
address len = 6 bytes |=========. |------------v--|------v--------| | | | | | | | | | | | | | | | | | |---------------|---------------| <---8 bytes--->
In such case, current code configures hw as: start_addr = address & ~HW_BREAKPOINT_ALIGN len = 8 bytes
And thus read/write in last 4 bytes of the given range is ignored. Fix this by including next doubleword in the length.
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20191017093204.7511-3-ravi.bangoria@linux.ibm.com
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | hw_breakpoint.h | diff b57aeab811db07295f646808b1b17c312d17f57d Thu Oct 17 04:31:59 CDT 2019 Ravi Bangoria <ravi.bangoria@linux.ibm.com> powerpc/watchpoint: Fix length calculation for unaligned target
Watchpoint match range is always doubleword(8 bytes) aligned on powerpc. If the given range is crossing doubleword boundary, we need to increase the length such that next doubleword also get covered. Ex,
address len = 6 bytes |=========. |------------v--|------v--------| | | | | | | | | | | | | | | | | | |---------------|---------------| <---8 bytes--->
In such case, current code configures hw as: start_addr = address & ~HW_BREAKPOINT_ALIGN len = 8 bytes
And thus read/write in last 4 bytes of the given range is ignored. Fix this by including next doubleword in the length.
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20191017093204.7511-3-ravi.bangoria@linux.ibm.com
|