[PATCH v2 0/2] powerpc: Enable lazy preemption

Shrikanth Hegde posted 2 patches 1 year, 2 months ago
arch/powerpc/Kconfig                   | 1 +
arch/powerpc/include/asm/thread_info.h | 9 ++++++---
arch/powerpc/kernel/interrupt.c        | 4 ++--
arch/powerpc/lib/vmx-helper.c          | 2 +-
4 files changed, 10 insertions(+), 6 deletions(-)
[PATCH v2 0/2] powerpc: Enable lazy preemption
Posted by Shrikanth Hegde 1 year, 2 months ago
preempt=lazy has been merged into tip[1]. Lets Enable it for PowerPC.

This has been very lightly tested and as michael suggested could go
through a test cycle. If needed, patches can be merged. I have kept it 
separate for easier bisect.

Lazy preemption support for kvm on powerpc is still to be done.

Refs:
[1]: https://lore.kernel.org/lkml/20241007074609.447006177@infradead.org/
v1: https://lore.kernel.org/all/20241108101853.277808-1-sshegde@linux.ibm.com/

Changes since v1:
- Change for vmx copy as suggested by Sebastian. 
- Add rwb tags 

Shrikanth Hegde (2):
  powerpc: Add preempt lazy support
  powerpc: Large user copy aware of full:rt:lazy preemption

 arch/powerpc/Kconfig                   | 1 +
 arch/powerpc/include/asm/thread_info.h | 9 ++++++---
 arch/powerpc/kernel/interrupt.c        | 4 ++--
 arch/powerpc/lib/vmx-helper.c          | 2 +-
 4 files changed, 10 insertions(+), 6 deletions(-)

-- 
2.43.5
Re: [PATCH v2 0/2] powerpc: Enable lazy preemption
Posted by Madhavan Srinivasan 1 year, 1 month ago
On Sun, 17 Nov 2024 00:53:04 +0530, Shrikanth Hegde wrote:
> preempt=lazy has been merged into tip[1]. Lets Enable it for PowerPC.
> 
> This has been very lightly tested and as michael suggested could go
> through a test cycle. If needed, patches can be merged. I have kept it
> separate for easier bisect.
> 
> Lazy preemption support for kvm on powerpc is still to be done.
> 
> [...]

Applied to powerpc/next.

[1/2] powerpc: Add preempt lazy support
      https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=next&id=00199ed6f2ca6601b2c5856fac64132303d9437a 
[2/2] powerpc: Large user copy aware of full:rt:lazy preemption
      https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=next&id=eda86a41a1c7700757c9217f74b9d57431c3e5f4 

Thanks
Re: [PATCH v2 0/2] powerpc: Enable lazy preemption
Posted by Shrikanth Hegde 1 year, 1 month ago

On 11/17/24 00:53, Shrikanth Hegde wrote:
> preempt=lazy has been merged into tip[1]. Lets Enable it for PowerPC.
> 
> This has been very lightly tested and as michael suggested could go
> through a test cycle. If needed, patches can be merged. I have kept it
> separate for easier bisect.
> 
> Lazy preemption support for kvm on powerpc is still to be done.
> 
> Refs:
> [1]: https://lore.kernel.org/lkml/20241007074609.447006177@infradead.org/
> v1: https://lore.kernel.org/all/20241108101853.277808-1-sshegde@linux.ibm.com/
> 
> Changes since v1:
> - Change for vmx copy as suggested by Sebastian.
> - Add rwb tags
> 
> Shrikanth Hegde (2):
>    powerpc: Add preempt lazy support
>    powerpc: Large user copy aware of full:rt:lazy preemption
> 
>   arch/powerpc/Kconfig                   | 1 +
>   arch/powerpc/include/asm/thread_info.h | 9 ++++++---
>   arch/powerpc/kernel/interrupt.c        | 4 ++--
>   arch/powerpc/lib/vmx-helper.c          | 2 +-
>   4 files changed, 10 insertions(+), 6 deletions(-)
> 

Hi mpe, maddy.

I see the lazy scheduling related changes are in powerpc tree.
If there are no objections, can we please add support for lazy 
preemption so it goes through a cycle?

Let me know your thoughts.