mbox series

[SRU,F/OEM-5.6/G,0/5] improve the amd renoir audio driver to prepare to work with ucm3

Message ID 20200716012429.11957-1-hui.wang@canonical.com
Headers show
Series improve the amd renoir audio driver to prepare to work with ucm3 | expand

Message

Hui Wang July 16, 2020, 1:24 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1887734

For focal and oem-5.6 kernel, these all 5 patches are needed, for
groovy kernel, since the 1st patch is already in the 5.8 kernel, the
groovy kernel only needs the last 3 patches [3/5, 4/5 and 5/5]. BTW
the last 3 patches will be in the mainline kernel 5.9.

[Impact]
the alsa upstream worte the ucm3 files for amd renoir audio, but to
load the ucm3, it depends on the kernel module name, and the upstream
ucm3 needs the name snd-xxx, so we need to backport the patches
from mainline kernel to change the kernel module name to meet ucm3
requirement. BTW, there are some dmic dynamically detection patches,
we integrate them too.

[Fix]
Backport 4 patches from upstream.

[Test Case]
boot the kernel with these patches on amd renoir machines (lenovo
machines), the audio driver works well (via command line like
aplay or areord), then upgrade the alsa-lib and alsa-ucm-conf to
1.2.3.2, now we could see the audio devices from gnome, and they work
well.

[Regression Risk]
Low, this SRU are only specific to soc/amd/renoir, and we already
tested on 2 lenovo machines, their audio worked as before.


Hui Wang (1):
  UBUNTU: remove a kernel module since its name is changed

Jaroslav Kysela (1):
  AsoC: amd: add missing snd- module prefix to the acp3x-rn driver
    kernel module

Vijendar Mukunda (3):
  ASoC: amd: add logic to check dmic hardware runtime
  ASoC: amd: add ACPI dependency check
  ASoC: amd: fixed kernel warnings

 .../abi/5.6.0-1019.19/amd64/oem.modules       |  1 -
 sound/soc/amd/renoir/Makefile                 |  7 ++--
 sound/soc/amd/renoir/rn-pci-acp3x.c           | 33 +++++++++++++++++++
 sound/soc/amd/renoir/rn_acp3x.h               |  2 ++
 4 files changed, 39 insertions(+), 4 deletions(-)

Comments

Seth Forshee July 17, 2020, 10:35 p.m. UTC | #1
On Thu, Jul 16, 2020 at 09:24:19AM +0800, Hui Wang wrote:
> BugLink: https://bugs.launchpad.net/bugs/1887734
> 
> For focal and oem-5.6 kernel, these all 5 patches are needed, for
> groovy kernel, since the 1st patch is already in the 5.8 kernel, the
> groovy kernel only needs the last 3 patches [3/5, 4/5 and 5/5]. BTW
> the last 3 patches will be in the mainline kernel 5.9.
> 
> [Impact]
> the alsa upstream worte the ucm3 files for amd renoir audio, but to
> load the ucm3, it depends on the kernel module name, and the upstream
> ucm3 needs the name snd-xxx, so we need to backport the patches
> from mainline kernel to change the kernel module name to meet ucm3
> requirement. BTW, there are some dmic dynamically detection patches,
> we integrate them too.
> 
> [Fix]
> Backport 4 patches from upstream.
> 
> [Test Case]
> boot the kernel with these patches on amd renoir machines (lenovo
> machines), the audio driver works well (via command line like
> aplay or areord), then upgrade the alsa-lib and alsa-ucm-conf to
> 1.2.3.2, now we could see the audio devices from gnome, and they work
> well.
> 
> [Regression Risk]
> Low, this SRU are only specific to soc/amd/renoir, and we already
> tested on 2 lenovo machines, their audio worked as before.

Some of these patches are noted as coming from a maintainer tree but are
not marked as sauce. However they are already in linux-next, so should
be noted as coming from there instead. Please be more careful about this
in the future.

Applied to unstable with the commit messages updated to indicate that
they were cherry picked from linux-next. Thanks!
Hui Wang July 18, 2020, 2:49 a.m. UTC | #2
On 2020/7/18 上午6:35, seth.forshee@canonical.com wrote:
> On Thu, Jul 16, 2020 at 09:24:19AM +0800, Hui Wang wrote:
>> BugLink: https://bugs.launchpad.net/bugs/1887734
>>
>> For focal and oem-5.6 kernel, these all 5 patches are needed, for
>> groovy kernel, since the 1st patch is already in the 5.8 kernel, the
>> groovy kernel only needs the last 3 patches [3/5, 4/5 and 5/5]. BTW
>> the last 3 patches will be in the mainline kernel 5.9.
>>
>> [Impact]
>> the alsa upstream worte the ucm3 files for amd renoir audio, but to
>> load the ucm3, it depends on the kernel module name, and the upstream
>> ucm3 needs the name snd-xxx, so we need to backport the patches
>> from mainline kernel to change the kernel module name to meet ucm3
>> requirement. BTW, there are some dmic dynamically detection patches,
>> we integrate them too.
>>
>> [Fix]
>> Backport 4 patches from upstream.
>>
>> [Test Case]
>> boot the kernel with these patches on amd renoir machines (lenovo
>> machines), the audio driver works well (via command line like
>> aplay or areord), then upgrade the alsa-lib and alsa-ucm-conf to
>> 1.2.3.2, now we could see the audio devices from gnome, and they work
>> well.
>>
>> [Regression Risk]
>> Low, this SRU are only specific to soc/amd/renoir, and we already
>> tested on 2 lenovo machines, their audio worked as before.
> Some of these patches are noted as coming from a maintainer tree but are
> not marked as sauce. However they are already in linux-next, so should
> be noted as coming from there instead. Please be more careful about this
> in the future.
>
> Applied to unstable with the commit messages updated to indicate that
> they were cherry picked from linux-next. Thanks!

Oh, got it. will be more careful about this in the future.

Thanks.
Hui Wang July 20, 2020, 1:51 a.m. UTC | #3
NAK for focal and oem-5.6, will split the SRU and resend them.

On 2020/7/16 上午9:24, Hui Wang wrote:
> BugLink: https://bugs.launchpad.net/bugs/1887734
>
> For focal and oem-5.6 kernel, these all 5 patches are needed, for
> groovy kernel, since the 1st patch is already in the 5.8 kernel, the
> groovy kernel only needs the last 3 patches [3/5, 4/5 and 5/5]. BTW
> the last 3 patches will be in the mainline kernel 5.9.
>
> [Impact]
> the alsa upstream worte the ucm3 files for amd renoir audio, but to
> load the ucm3, it depends on the kernel module name, and the upstream
> ucm3 needs the name snd-xxx, so we need to backport the patches
> from mainline kernel to change the kernel module name to meet ucm3
> requirement. BTW, there are some dmic dynamically detection patches,
> we integrate them too.
>
> [Fix]
> Backport 4 patches from upstream.
>
> [Test Case]
> boot the kernel with these patches on amd renoir machines (lenovo
> machines), the audio driver works well (via command line like
> aplay or areord), then upgrade the alsa-lib and alsa-ucm-conf to
> 1.2.3.2, now we could see the audio devices from gnome, and they work
> well.
>
> [Regression Risk]
> Low, this SRU are only specific to soc/amd/renoir, and we already
> tested on 2 lenovo machines, their audio worked as before.
>
>
> Hui Wang (1):
>    UBUNTU: remove a kernel module since its name is changed
>
> Jaroslav Kysela (1):
>    AsoC: amd: add missing snd- module prefix to the acp3x-rn driver
>      kernel module
>
> Vijendar Mukunda (3):
>    ASoC: amd: add logic to check dmic hardware runtime
>    ASoC: amd: add ACPI dependency check
>    ASoC: amd: fixed kernel warnings
>
>   .../abi/5.6.0-1019.19/amd64/oem.modules       |  1 -
>   sound/soc/amd/renoir/Makefile                 |  7 ++--
>   sound/soc/amd/renoir/rn-pci-acp3x.c           | 33 +++++++++++++++++++
>   sound/soc/amd/renoir/rn_acp3x.h               |  2 ++
>   4 files changed, 39 insertions(+), 4 deletions(-)
>