Re: [PATCH 3/4] powerpc/powernv: Enable TM without suspend if possible

2017-10-22 Thread Michael Ellerman
Adhemerval Zanella writes: > On 19/10/2017 11:34, Tulio Magno Quites Machado Filho wrote: >> Forwarding some comments from Adhemerval sent to libc-alpha [1]... >> >> Adhemerval Zanella writes: >>> Florian Weimer writes: >>> On 10/12/2017 12:17 PM, Michael Ellerman wrote: > + pr_info("

Re: [PATCH 3/4] powerpc/powernv: Enable TM without suspend if possible

2017-10-22 Thread Michael Ellerman
Florian Weimer writes: > On 10/12/2017 12:17 PM, Michael Ellerman wrote: >> +pr_info("Enabling TM (Transactional Memory) with Suspend Disabled\n"); >> +cur_cpu_spec->cpu_features |= CPU_FTR_TM; >> +cur_cpu_spec->cpu_user_features2 |= PPC_FEATURE2_HTM_NO_SUSPEND; >> +tm_suspend_dis

Re: [PATCH 3/4] powerpc/powernv: Enable TM without suspend if possible

2017-10-22 Thread Michael Ellerman
Hi all, Tulio Magno Quites Machado Filho writes: > Forwarding some comments from Adhemerval sent to libc-alpha [1]... > > Adhemerval Zanella writes: >>Florian Weimer writes: >> >>> On 10/12/2017 12:17 PM, Michael Ellerman wrote: + pr_info("Enabling TM (Transactional Memory) with Suspend D

Re: [PATCH 3/4] powerpc/powernv: Enable TM without suspend if possible

2017-10-19 Thread Michael Neuling
On Thu, 2017-10-19 at 11:34 -0200, Tulio Magno Quites Machado Filho wrote: > Forwarding some comments from Adhemerval sent to libc-alpha [1]... > > Adhemerval Zanella writes: > > Florian Weimer writes: > > > > > On 10/12/2017 12:17 PM, Michael Ellerman wrote: > > > > + pr_info("Enabling T

Re: [PATCH 3/4] powerpc/powernv: Enable TM without suspend if possible

2017-10-19 Thread Adhemerval Zanella
On 19/10/2017 11:34, Tulio Magno Quites Machado Filho wrote: > Forwarding some comments from Adhemerval sent to libc-alpha [1]... > > Adhemerval Zanella writes: >> Florian Weimer writes: >> >>> On 10/12/2017 12:17 PM, Michael Ellerman wrote: + pr_info("Enabling TM (Transactional Memory)

Re: [PATCH 3/4] powerpc/powernv: Enable TM without suspend if possible

2017-10-19 Thread Tulio Magno Quites Machado Filho
Forwarding some comments from Adhemerval sent to libc-alpha [1]... Adhemerval Zanella writes: >Florian Weimer writes: > >> On 10/12/2017 12:17 PM, Michael Ellerman wrote: >>> + pr_info("Enabling TM (Transactional Memory) with Suspend Disabled\n"); >>> + cur_cpu_spec->cpu_features |= CPU_FTR_

Re: [PATCH 3/4] powerpc/powernv: Enable TM without suspend if possible

2017-10-19 Thread Florian Weimer
On 10/19/2017 02:04 PM, Tulio Magno Quites Machado Filho wrote: Florian Weimer writes: On 10/12/2017 12:17 PM, Michael Ellerman wrote: + pr_info("Enabling TM (Transactional Memory) with Suspend Disabled\n"); + cur_cpu_spec->cpu_features |= CPU_FTR_TM; + cur_cpu_spec->cpu_use

Re: [PATCH 3/4] powerpc/powernv: Enable TM without suspend if possible

2017-10-19 Thread Tulio Magno Quites Machado Filho
Florian Weimer writes: > On 10/12/2017 12:17 PM, Michael Ellerman wrote: >> +pr_info("Enabling TM (Transactional Memory) with Suspend Disabled\n"); >> +cur_cpu_spec->cpu_features |= CPU_FTR_TM; >> +cur_cpu_spec->cpu_user_features2 |= PPC_FEATURE2_HTM_NO_SUSPEND; >> +tm_suspend_dis

Re: [PATCH 3/4] powerpc/powernv: Enable TM without suspend if possible

2017-10-19 Thread Florian Weimer
On 10/12/2017 12:17 PM, Michael Ellerman wrote: + pr_info("Enabling TM (Transactional Memory) with Suspend Disabled\n"); + cur_cpu_spec->cpu_features |= CPU_FTR_TM; + cur_cpu_spec->cpu_user_features2 |= PPC_FEATURE2_HTM_NO_SUSPEND; + tm_suspend_disabled = true; This does

[PATCH 3/4] powerpc/powernv: Enable TM without suspend if possible

2017-10-12 Thread Michael Ellerman
Some Power9 revisions can run in a mode where TM operates without suspended state. If we find ourself on a CPU that might be in this mode, we query OPAL to check, and if so we reenable TM in CPU features, and enable a new user feature to signal to userspace that we are in this mode. Signed-off-by: