Re: [PATCH 2/3] powerpc: support dynamic preemption

2024-11-26 Thread Christophe Leroy
Le 25/11/2024 à 05:22, Shrikanth Hegde a écrit : Once the lazy preemption is supported, it would be desirable to change the preemption models at runtime. So this change adds support for dynamic preemption using DYNAMIC_KEY. In irq-exit to kernel path, use preempt_model_preemptible for decisio

Re: [PATCH 1/3] powerpc: copy preempt.h into arch/include/asm

2024-11-26 Thread Christophe Leroy
Le 25/11/2024 à 05:22, Shrikanth Hegde a écrit : PowerPC uses asm-generic preempt definitions as of now. Copy that into arch/asm so that arch specific changes can be done. This would help the next patch for enabling dynamic preemption. Instead of copying all the content of asm-generic versio

Re: [PATCH 2/3] powerpc: support dynamic preemption

2024-11-26 Thread Christophe Leroy
Le 26/11/2024 à 12:15, Shrikanth Hegde a écrit : On 11/26/24 16:18, Christophe Leroy wrote: Hi Christophe, Thanks for taking a look at this. Le 25/11/2024 à 05:22, Shrikanth Hegde a écrit : Once the lazy preemption is supported, it would be desirable to change the preemption models a

[PATCH 1/2] ASoC: fsl_xcvr: Use regmap for PHY and PLL registers

2024-11-26 Thread Shengjiu Wang
Define regmap for PHY and PLL registers, the PHY and PLL registers are accessed by AI interface in controller. So that driver can use regcache to recover registers after suspend and resume. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_xcvr.c | 224 +++

[PATCH 2/2] ASoC: fsl_xcvr: Add suspend and resume support

2024-11-26 Thread Shengjiu Wang
Use regcache_sync() to recover the registers of controller, PHY and PLL after suspend and resume. In order to recover the registers need to avoid use the *_SET, *_CLR and *_TOG registers. Recovery of the registers should be done before loading XCVR firmware otherwise some registers set by firmware

[PATCH 0/2] ASoC: fsl_xcvr: Add suspend and resume support

2024-11-26 Thread Shengjiu Wang
Define regmap for PHY and PLL registers, the PHY and PLL registers are accessed by AI interface in controller. Then driver can use regcache to recover registers after suspend and resume. Shengjiu Wang (2): ASoC: fsl_xcvr: Use regmap for PHY and PLL registers ASoC: fsl_xcvr: Add suspend and re

Re: [PATCH] powerpc/pseries: Add papr-platform-dump character driver for dump retrieval

2024-11-26 Thread Haren Myneni
On Wed, 2024-11-27 at 00:42 +0530, Mahesh J Salgaonkar wrote: > On 2024-11-23 21:20:39 Sat, Haren Myneni wrote: > [...] > > +static ssize_t papr_platform_dump_handle_read(struct file *file, > > + char __user *buf, size_t size, loff_t *off) > > +{ > > + struct ibm_platform_dump_params *p

Re: [PATCH] powerpc/pseries: Add papr-platform-dump character driver for dump retrieval

2024-11-26 Thread Mahesh J Salgaonkar
On 2024-11-23 21:20:39 Sat, Haren Myneni wrote: [...] > +static ssize_t papr_platform_dump_handle_read(struct file *file, > + char __user *buf, size_t size, loff_t *off) > +{ > + struct ibm_platform_dump_params *params = file->private_data; > + u64 total_bytes; > + s32 fwrc;

Re: [RFC PATCH 20/20] genirq: Remove IRQ_EDGE_EOI_HANDLER

2024-11-26 Thread Thomas Gleixner
On Thu, Nov 14 2024 at 23:51, Michael Ellerman wrote: > The powerpc Cell blade support, now removed, was the only user of > IRQ_EDGE_EOI_HANDLER, so remove it. > > Signed-off-by: Michael Ellerman Acked-by: Thomas Gleixner

Re: [PATCH] powerpc/prom_init: Fixup missing powermac #size-cells

2024-11-26 Thread Rob Herring
On Mon, Nov 25, 2024 at 8:57 PM Michael Ellerman wrote: > > On some powermacs `escc` nodes are missing `#size-cells` properties, > which is deprecated and now triggers a warning at boot since commit > 045b14ca5c36 ("of: WARN on deprecated #address-cells/#size-cells > handling"). > > For example: >

Re: [RFC PATCH 01/10] powerpc/chrp: Remove CHRP support

2024-11-26 Thread John Paul Adrian Glaubitz
Hi, On Tue, 2024-11-26 at 14:27 +1100, Michael Ellerman wrote: > > > The Linux CHRP code only supports a handful of machines, all 32-bit, eg. > > > IBM B50, bplan/Genesi Pegasos/Pegasos2, Total Impact briQ, and possibly > > > some from Motorola? No Apple machines should be affected. > > > > I hav

[PATCH 4/4] ASoC: fsl_sai: Add sample rate constraint

2024-11-26 Thread Chancel Liu
Platforms like i.MX93/91 only have one audio PLL. Some sample rates are not supported. If the PLL source is used for 8kHz series rates, then 11kHz series rates can't be supported. Use fsl_asoc_constrain_rates() to constrain rates according to PLL sources. Signed-off-by: Chancel Liu --- sound/soc

[PATCH 3/4] ASoC: fsl_xcvr: Add sample rate constraint

2024-11-26 Thread Chancel Liu
Platforms like i.MX93/91 only have one audio PLL. Some sample rates are not supported. If the PLL source is used for 8kHz series rates, then 11kHz series rates can't be supported. Use fsl_asoc_constrain_rates() to constrain rates according to PLL sources. This constraint is merely applicable to pla

[PATCH 1/4] ASoC: fsl_utils: Add function to constrain rates

2024-11-26 Thread Chancel Liu
Platforms like i.MX93/91 only have one audio PLL. Some sample rates are not supported. Add common function to constrain rates according to different clock sources. Signed-off-by: Chancel Liu --- sound/soc/fsl/fsl_utils.c | 45 +++ sound/soc/fsl/fsl_utils.h |

[PATCH 2/4] ASoC: fsl_micfil: Switch to common sample rate constraint function

2024-11-26 Thread Chancel Liu
fsl_asoc_constrain_rates() is a common function to constrain rates. Let's switch to this function. Signed-off-by: Chancel Liu --- sound/soc/fsl/fsl_micfil.c | 33 - 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/

[PATCH 0/4] Add function to constrain rates

2024-11-26 Thread Chancel Liu
Platforms like i.MX93/91 only have one audio PLL. Some sample rates are not supported. If the PLL source is used for 8kHz series rates, then 11kHz series rates can't be supported. Add common function to constrain rates according to different clock sources. In ASoC drivers switch to this new functi

Re: [PATCH 2/3] powerpc: support dynamic preemption

2024-11-26 Thread Shrikanth Hegde
On 11/26/24 16:18, Christophe Leroy wrote: Hi Christophe, Thanks for taking a look at this. Le 25/11/2024 à 05:22, Shrikanth Hegde a écrit : Once the lazy preemption is supported, it would be desirable to change the preemption models at runtime. So this change adds support for dynamic p

Re: [PATCH v2 1/2] powerpc: Add preempt lazy support

2024-11-26 Thread Christophe Leroy
Le 16/11/2024 à 20:23, Shrikanth Hegde a écrit : Define preempt lazy bit for Powerpc. Use bit 9 which is free and within 16 bit range of NEED_RESCHED, so compiler can issue single andi. Since Powerpc doesn't use the generic entry/exit, add lazy check at exit to user. CONFIG_PREEMPTION is defi

Re: [PATCH 1/3] powerpc: copy preempt.h into arch/include/asm

2024-11-26 Thread Christophe Leroy
Le 25/11/2024 à 05:22, Shrikanth Hegde a écrit : PowerPC uses asm-generic preempt definitions as of now. Copy that into arch/asm so that arch specific changes can be done. This would help the next patch for enabling dynamic preemption. I can't see any valid use in following patches. The only

Re: [PATCH 2/3] powerpc: support dynamic preemption

2024-11-26 Thread Christophe Leroy
Le 25/11/2024 à 05:22, Shrikanth Hegde a écrit : Once the lazy preemption is supported, it would be desirable to change the preemption models at runtime. So this change adds support for dynamic preemption using DYNAMIC_KEY. In irq-exit to kernel path, use preempt_model_preemptible for decisio