LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Michal Suchánek" <msuchanek@suse.de>
To: "Christophe Leroy (CS GROUP)" <chleroy@kernel.org>
Cc: Christian Zigotzky <chzigotzky@xenosoft.de>,
	Shrikanth Hegde <sshegde@linux.ibm.com>,
	linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,
	"kvm-ppc@vger.kernel.org" <kvm-ppc@vger.kernel.org>,
	Madhavan Srinivasan <maddy@linux.ibm.com>,
	Peter Zijlstra <peterz@infradead.org>,
	"R.T.Dickinson" <rtd2@xtra.co.nz>,
	hypexed@yahoo.com.au, mad skateman <madskateman@gmail.com>,
	Christian Zigotzky <info@xenosoft.de>
Subject: Re: [Linux PPC] Disable PREEMPT
Date: Thu, 3 Sep 2026 11:53:31 +0200	[thread overview]
Message-ID: <aplDm-byYL79laYG@kunlun.suse.cz> (raw)
In-Reply-To: <8c6f2510-1dc5-4c45-9288-6b9c8f9b6b24@kernel.org>

On Thu, Feb 26, 2026 at 02:24:50PM +0100, Christophe Leroy (CS GROUP) wrote:
> Hi Christian,
> 
> Le 26/02/2026 à 06:37, Christian Zigotzky a écrit :
> > On 25/02/26 08:16, Christophe Leroy (CS GROUP) wrote:
> > > +Peter
> > > 
> > > Hi Christian,
> > > 
> > > Le 25/02/2026 à 06:54, Christian Zigotzky a écrit :
> > > > Hello,
> > > > 
> > > > We were previously able to disable PREEMPT in the kernel
> > > > configuration, but the latest kernels now enable it by default
> > > > and it is no longer possible to disable it.
> > > > 
> > > > Is it possible to let us decide whether to activate PREEMPT or not?
> > > 
> > > Can you give more details on why you want to be able to deactivate
> > > PREEMPT ?
> > > 
> > > Read https://eur01.safelinks.protection.outlook.com/? url=https%3A%2F%2Fgithub.com%2Ftorvalds%2Flinux%2Fcommit%2F7dadeaa6e851e&data=05%7C02%7Cchristophe.leroy2%40cs-soprasteria.com%7C7006c8b4b98c4315a7e508de74f9388a%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C639076810956939768%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=6xLB%2FOVSkmgZRamaBM9zaxm%2FUTk9ssf4409QJdiXkDg%3D&reserved=0
> > I use PREEMPT_NONE kernels on my Linux PPC servers. (Without desktop)
> 
> You are doing that today because it is possible. Tomorrow it will not be
> possible anymore, for the reasons explained by Peter.
> 
> My question was not to know what you are doing but why, and why you think
> you still need PREEMPT_NONE and why the modern PREEMPT_LAZY is not good
> enough for you.

Hello,

I tried to compile a kernel with preemption for pSeries, and while
PREEMPT_VOLUNTARY works for me PREEMPT_LAZY crashes.

The kernel crashing is certainly a reason why a preemtion model would
not be good enough for me.

This is not the latest kernel so it might have been fixed in the
meantime for the platform in question. Will need to check that.

Nonethless, there are quite a few platforms. Originally no preemption
was the only option, and that's the reason why many people run that.
It's the conservative, known working option. And that's the reason a lot
of platfrom code does not get tested with more aggressive preemtion
models, and never gets fixed to work with them.

Simply disabling the no preemtion option does not make the platform code
ready.

Thanks

Michal

> 
> Christophe
> 
> > > 
> > > 
> > > > 
> > > > Currently we use the following revert patch for our non-preempt kernels.
> > > > 
> > > > --- a/kernel/Kconfig.preempt    2026-02-14 10:06:32.000000000 +0000
> > > > +++ b/kernel/Kconfig.preempt    2026-02-08 21:03:27.000000000 +0000
> > > > @@ -16,13 +16,11 @@ config ARCH_HAS_PREEMPT_LAZY
> > > > 
> > > >   choice
> > > >       prompt "Preemption Model"
> > > > -    default PREEMPT_LAZY if ARCH_HAS_PREEMPT_LAZY
> > > >       default PREEMPT_NONE
> > > > 
> > > >   config PREEMPT_NONE
> > > >       bool "No Forced Preemption (Server)"
> > > >       depends on !PREEMPT_RT
> > > > -    depends on ARCH_NO_PREEMPT
> > > >       select PREEMPT_NONE_BUILD if !PREEMPT_DYNAMIC
> > > >       help
> > > >         This is the traditional Linux preemption model, geared towards
> > > > @@ -37,7 +35,6 @@ config PREEMPT_NONE
> > > > 
> > > >   config PREEMPT_VOLUNTARY
> > > >       bool "Voluntary Kernel Preemption (Desktop)"
> > > > -    depends on !ARCH_HAS_PREEMPT_LAZY
> > > >       depends on !ARCH_NO_PREEMPT
> > > >       depends on !PREEMPT_RT
> > > >       select PREEMPT_VOLUNTARY_BUILD if !PREEMPT_DYNAMIC
> > > > 
> > > > ---
> > > > 
> > > > Thanks in advance,
> > > > 
> > > > Christian
> > > > 
> > > 
> > 
> > 
> 


  reply	other threads:[~2026-09-03  9:53 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-14 14:02 [Linux PPC] KVM PR and KVM HV do not work if the kernel was compiled with PREEMPT Christian Zigotzky
2026-02-17  5:02 ` Shrikanth Hegde
2026-02-17  8:52   ` Christian Zigotzky
2026-02-17  9:03     ` Shrikanth Hegde
2026-02-17  9:44       ` Christian Zigotzky
2026-02-17 10:17         ` Madhavan Srinivasan
2026-02-17 10:26           ` Christian Zigotzky
2026-02-17 11:34             ` Shrikanth Hegde
2026-02-21  5:30               ` Christian Zigotzky
2026-02-23  3:45                 ` Shrikanth Hegde
2026-02-23 16:48                   ` [Linux PPC] 7.0-rc1: e500_mmu.c:923:26: error: assignment to 'struct tlbe_priv *' from incompatible pointer type 'struct tlbe_ref *' Christian Zigotzky
2026-02-23 18:07                     ` Christophe Leroy (CS GROUP)
2026-02-23 19:38                       ` Christophe Leroy (CS GROUP)
2026-02-23 22:40                         ` Kees Cook
2026-02-24  6:30                           ` Christian Zigotzky
2026-02-24  7:18                           ` Christophe Leroy (CS GROUP)
2026-02-25  5:54               ` [Linux PPC] Disable PREEMPT Christian Zigotzky
2026-02-25  6:23                 ` Shrikanth Hegde
2026-02-25  7:16                 ` Christophe Leroy (CS GROUP)
2026-02-25 11:36                   ` Peter Zijlstra
2026-02-26  5:37                   ` Christian Zigotzky
2026-02-26 13:24                     ` Christophe Leroy (CS GROUP)
2026-09-03  9:53                       ` Michal Suchánek [this message]
2026-09-03 10:56                         ` Shrikanth Hegde
2026-09-03 11:25                           ` Michal Suchánek
2026-09-03 11:31                             ` Shrikanth Hegde
2026-09-03 11:40                               ` Michal Suchánek
2026-09-03 12:04                                 ` Shrikanth Hegde
2026-09-03 12:25                                   ` Michal Suchánek
2026-09-03 12:36                                     ` Harsh Prateek Bora
2026-09-03 12:55                                       ` Michal Suchánek
2026-09-03 15:17                                         ` Amit Machhiwal
2026-09-03 13:28                                       ` Michal Suchánek
2026-09-04  7:39                                         ` Michal Suchánek
2026-09-03 17:22                             ` Shrikanth Hegde
2026-09-04  7:35                               ` Michal Suchánek
2026-09-04  9:04                                 ` Shrikanth Hegde
2026-09-10  8:59                                   ` Michal Suchánek
2026-09-10 10:41                                     ` Shrikanth Hegde
2026-09-10 11:29                                       ` Michal Suchánek
2026-09-10 12:16                                         ` Michal Suchánek
2026-09-11 17:09                                           ` Shrikanth Hegde
2026-09-04  8:55                               ` Christian Zigotzky
2026-09-04  9:20                                 ` Christian Zigotzky
2026-09-04  9:24                                   ` Shrikanth Hegde
2026-09-04  9:34                                     ` Christian Zigotzky
2026-09-05 13:07                                       ` Christian Zigotzky
2026-09-07  8:50                                         ` Michal Suchánek
2026-09-07 11:32                                           ` Christian Zigotzky
2026-09-10  8:54                                             ` Michal Suchánek
2026-09-10 10:31                                               ` Michal Suchánek
2026-09-10 11:31                                                 ` Michal Suchánek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aplDm-byYL79laYG@kunlun.suse.cz \
    --to=msuchanek@suse.de \
    --cc=chleroy@kernel.org \
    --cc=chzigotzky@xenosoft.de \
    --cc=hypexed@yahoo.com.au \
    --cc=info@xenosoft.de \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=maddy@linux.ibm.com \
    --cc=madskateman@gmail.com \
    --cc=peterz@infradead.org \
    --cc=rtd2@xtra.co.nz \
    --cc=sshegde@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox