Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1334411 > unrolled thread

[REGRESSION, bisected] 4.5rc4 sound fsl-soc

Started byMika Penttilä <mika.penttila@nextfour.com>
First post2016-02-15 12:30 +0100
Last post2016-02-20 22:30 +0100
Articles 5 — 4 participants

Back to article view | Back to linux.kernel


Contents

  [REGRESSION, bisected] 4.5rc4 sound fsl-soc Mika Penttilä <mika.penttila@nextfour.com> - 2016-02-15 12:30 +0100
    Re: [REGRESSION, bisected] 4.5rc4 sound fsl-soc Fabio Estevam <fabio.estevam@nxp.com> - 2016-02-15 13:10 +0100
      Re: [REGRESSION, bisected] 4.5rc4 sound fsl-soc Fabio Estevam <festevam@gmail.com> - 2016-02-15 17:00 +0100
      Re: [REGRESSION, bisected] 4.5rc4 sound fsl-soc Mika Penttilä <mika.penttila@nextfour.com> - 2016-02-20 22:00 +0100
        Re: [REGRESSION, bisected] 4.5rc4 sound fsl-soc Mark Brown <broonie@kernel.org> - 2016-02-20 22:30 +0100

#1334411 — [REGRESSION, bisected] 4.5rc4 sound fsl-soc

FromMika Penttilä <mika.penttila@nextfour.com>
Date2016-02-15 12:30 +0100
Subject[REGRESSION, bisected] 4.5rc4 sound fsl-soc
Message-ID<r2pvQ-e6-23@gated-at.bofh.it>
Hi,

The following commit :

5c408fee254633a5be69505bc86c6b034f871ab4 is the first bad commit
commit 5c408fee254633a5be69505bc86c6b034f871ab4
Author: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Date:   Mon Jan 18 20:07:44 2016 +0100

    ASoC: fsl_ssi: remove explicit register defaults
    	
    There is no guarantee that on fsl_ssi module load
    SSI registers will have their power-on-reset values.
    
    In fact, if the driver is reloaded the values in
    registers will be whatever they were set to previously.
    
    However, the cache needs to be fully populated at probe
    time to avoid non-atomic allocations during register
    access.
    
    Special case here is imx21-class SSI, since
    according to datasheet it don't have SACC{ST,EN,DIS}
    regs.
    
    This fixes hard lockup on fsl_ssi module reload,
    at least in AC'97 mode.
    
    Fixes: 05cf237972fe ("ASoC: fsl_ssi: Add driver suspend and resume to support MEGA Fast")
    Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
    Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
    Signed-off-by: Mark Brown <broonie@kernel.org>


causes regmap init failure when loading the sgtl5000 codec on imx6q, and
leads to no audio.

With the mentioned patch reverted sound works ok.

--Mika

[toc] | [next] | [standalone]


#1334425

FromFabio Estevam <fabio.estevam@nxp.com>
Date2016-02-15 13:10 +0100
Message-ID<r2q8y-HB-13@gated-at.bofh.it>
In reply to#1334411
[Sorry for the top post, can't reply properly from this Inbox]

Could you please try applying this commit from linux-next?
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/base/regmap/regcache.c?id=3245d460a1eb55b5c3ca31dde7b5c5ac71546edf

Thanks,

Fabio Estevam

________________________________________
From: Mika Penttilä <mika.penttila@nextfour.com>
Sent: Monday, February 15, 2016 9:25 AM
To: LKML; mail@maciej.szmigiero.name; Fabio Estevam
Subject: [REGRESSION, bisected] 4.5rc4 sound fsl-soc

Hi,

The following commit :

5c408fee254633a5be69505bc86c6b034f871ab4 is the first bad commit
commit 5c408fee254633a5be69505bc86c6b034f871ab4
Author: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Date:   Mon Jan 18 20:07:44 2016 +0100

    ASoC: fsl_ssi: remove explicit register defaults

    There is no guarantee that on fsl_ssi module load
    SSI registers will have their power-on-reset values.

    In fact, if the driver is reloaded the values in
    registers will be whatever they were set to previously.

    However, the cache needs to be fully populated at probe
    time to avoid non-atomic allocations during register
    access.

    Special case here is imx21-class SSI, since
    according to datasheet it don't have SACC{ST,EN,DIS}
    regs.

    This fixes hard lockup on fsl_ssi module reload,
    at least in AC'97 mode.

    Fixes: 05cf237972fe ("ASoC: fsl_ssi: Add driver suspend and resume to support MEGA Fast")
    Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
    Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
    Signed-off-by: Mark Brown <broonie@kernel.org>


causes regmap init failure when loading the sgtl5000 codec on imx6q, and
leads to no audio.

With the mentioned patch reverted sound works ok.

--Mika

[toc] | [prev] | [next] | [standalone]


#1334555

FromFabio Estevam <festevam@gmail.com>
Date2016-02-15 17:00 +0100
Message-ID<r2tJ8-30g-11@gated-at.bofh.it>
In reply to#1334425
On Mon, Feb 15, 2016 at 9:30 AM, Fabio Estevam <fabio.estevam@nxp.com> wrote:
> [Sorry for the top post, can't reply properly from this Inbox]
>
> Could you please try applying this commit from linux-next?
> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/base/regmap/regcache.c?id=3245d460a1eb55b5c3ca31dde7b5c5ac71546edf

I just confirmed that applying this patch to 4.5-rc4 fixes the fsl ssi
regression.

Mark,

Could you apply
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/base/regmap/regcache.c?id=3245d460a1eb55b5c3ca31dde7b5c5ac71546edf

to 4.5-rc?

Thanks

[toc] | [prev] | [next] | [standalone]


#1338791

FromMika Penttilä <mika.penttila@nextfour.com>
Date2016-02-20 22:00 +0100
Message-ID<r4mNc-2Zt-11@gated-at.bofh.it>
In reply to#1334425
Mark,

I can confirm that the patch:

https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/base/regmap/regcache.c?id=3245d460a1eb55b5c3ca31dde7b5c5ac71546edf


solved the audio codec probing issue for me. Without it there's no sound on imx6 with 4.5-rc4.

Please apply.

Thanks,
Mika

On 20.02.2016 22:45, Fabio Estevam wrote:
> Hi Mika,
>
> Did it work for you?
>
> If so, please ask in the mailing list for Mark Brown to apply that patch.
>
> Thanks
>
> ________________________________________
> From: Mika Penttilä <mika.penttila@nextfour.com>
> Sent: Monday, February 15, 2016 11:00 AM
> To: Fabio Estevam
> Subject: Re: [REGRESSION, bisected] 4.5rc4 sound fsl-soc
>
> On 02/15/2016 01:30 PM, Fabio Estevam wrote:
>> [Sorry for the top post, can't reply properly from this Inbox]
> Hi,
>
> will test that tomorrow morning EET.
>
>
> thanks,
> Mika
>
>
>> Could you please try applying this commit from linux-next?
>> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/base/regmap/regcache.c?id=3245d460a1eb55b5c3ca31dde7b5c5ac71546edf
>>
>> Thanks,
>>
>> Fabio Estevam
>>
>> ________________________________________
>> From: Mika Penttilä <mika.penttila@nextfour.com>
>> Sent: Monday, February 15, 2016 9:25 AM
>> To: LKML; mail@maciej.szmigiero.name; Fabio Estevam
>> Subject: [REGRESSION, bisected] 4.5rc4 sound fsl-soc
>>
>> Hi,
>>
>> The following commit :
>>
>> 5c408fee254633a5be69505bc86c6b034f871ab4 is the first bad commit
>> commit 5c408fee254633a5be69505bc86c6b034f871ab4
>> Author: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
>> Date:   Mon Jan 18 20:07:44 2016 +0100
>>
>>     ASoC: fsl_ssi: remove explicit register defaults
>>
>>     There is no guarantee that on fsl_ssi module load
>>     SSI registers will have their power-on-reset values.
>>
>>     In fact, if the driver is reloaded the values in
>>     registers will be whatever they were set to previously.
>>
>>     However, the cache needs to be fully populated at probe
>>     time to avoid non-atomic allocations during register
>>     access.
>>
>>     Special case here is imx21-class SSI, since
>>     according to datasheet it don't have SACC{ST,EN,DIS}
>>     regs.
>>
>>     This fixes hard lockup on fsl_ssi module reload,
>>     at least in AC'97 mode.
>>
>>     Fixes: 05cf237972fe ("ASoC: fsl_ssi: Add driver suspend and resume to support MEGA Fast")
>>     Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
>>     Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
>>     Signed-off-by: Mark Brown <broonie@kernel.org>
>>
>>
>> causes regmap init failure when loading the sgtl5000 codec on imx6q, and
>> leads to no audio.
>>
>> With the mentioned patch reverted sound works ok.
>>
>> --Mika
>>

[toc] | [prev] | [next] | [standalone]


#1338795

FromMark Brown <broonie@kernel.org>
Date2016-02-20 22:30 +0100
Message-ID<r4nge-3sS-5@gated-at.bofh.it>
In reply to#1338791

[Multipart message — attachments visible in raw view] — view raw

On Sat, Feb 20, 2016 at 10:57:58PM +0200, Mika Penttilä wrote:
> Mark,

> I can confirm that the patch:

> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/base/regmap/regcache.c?id=3245d460a1eb55b5c3ca31dde7b5c5ac71546edf

Please don't top post, reply in line with needed context.  This allows
readers to readily follow the flow of conversation and understand what
you are talking about and also helps ensure that everything in the
discussion is being addressed.  Please also fix your mail client to word
wrap within paragraphs at something substantially less than 80 columns.
Doing this makes your messages much easier to read and reply to.

Please include human readable descriptions of things like commits and
issues being discussed in e-mail in your mails, this makes them much
easier for humans to read especially when they have no internet access.
I do frequently catch up on my mail on flights or while otherwise
travelling so this is even more pressing for me than just being about
making things a bit easier to read.

> solved the audio codec probing issue for me. Without it there's no sound on imx6 with 4.5-rc4.

Did this ever work?  What is the problem, this is the first message in
this thread I have seen (the subject line isn't very intelligable with
very long tags that hide most of the actual text, I may well have
deleted prior mails)?

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web