mbox series

[SRU,F/E/OEM-B-OSP1,RESEND,0/3] alsa/sof: load different firmware on different platforms

Message ID 20200303003305.6152-1-hui.wang@canonical.com
Headers show
Series alsa/sof: load different firmware on different platforms | expand

Message

Hui Wang March 3, 2020, 12:32 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1857409

Because we already merged the fix for #1861837, it is safe to merge
these patchset now, so I resend those patches.

[Impact]
In our ubuntu kernel, the sof driver will load the sof-cnl.ri (firmware)
on all platforms, but mainline kernel already supported the multi
firmwares on differnt platforms, and OEM project needs us to
support the mutli-firmware names in the ubuntu kernel

[Fix]
cherry-pick 3 upstream patches, then on cnl platforms, it will
load sof-cnl.ri, on cml platfomrs, it will load sof-cml.ri, on cfl
platforms, it will load sof-cfl.ri


[Test Case]
Prepare the firmware from https://github.com/thesofproject/linux-firmware
master branch, then boot the kernel with these patches.

[Regression Risk]
Low, just let different platforms load differnt firmware, and these
patches are in the upstream kernel.


Liam Girdwood (1):
  ASoC: SOF: Intel: Fix CFL and CML FW nocodec binary names.

Pierre-Louis Bossart (2):
  ASoC: SOF: Intel: hda: use fallback for firmware name
  ASoC: Intel: acpi-match: split CNL tables in three

 include/sound/soc-acpi-intel-match.h          |  2 +
 sound/soc/intel/common/Makefile               |  3 +-
 .../intel/common/soc-acpi-intel-cfl-match.c   | 18 ++++++
 .../intel/common/soc-acpi-intel-cml-match.c   | 56 +++++++++++++++++++
 .../intel/common/soc-acpi-intel-cnl-match.c   | 31 ----------
 sound/soc/sof/intel/hda.c                     | 11 +++-
 sound/soc/sof/sof-pci-dev.c                   |  8 +--
 7 files changed, 91 insertions(+), 38 deletions(-)
 create mode 100644 sound/soc/intel/common/soc-acpi-intel-cfl-match.c
 create mode 100644 sound/soc/intel/common/soc-acpi-intel-cml-match.c

Comments

Seth Forshee March 7, 2020, 2:33 p.m. UTC | #1
On Tue, Mar 03, 2020 at 08:32:56AM +0800, Hui Wang wrote:
> BugLink: https://bugs.launchpad.net/bugs/1857409
> 
> Because we already merged the fix for #1861837, it is safe to merge
> these patchset now, so I resend those patches.
> 
> [Impact]
> In our ubuntu kernel, the sof driver will load the sof-cnl.ri (firmware)
> on all platforms, but mainline kernel already supported the multi
> firmwares on differnt platforms, and OEM project needs us to
> support the mutli-firmware names in the ubuntu kernel
> 
> [Fix]
> cherry-pick 3 upstream patches, then on cnl platforms, it will
> load sof-cnl.ri, on cml platfomrs, it will load sof-cml.ri, on cfl
> platforms, it will load sof-cfl.ri
> 
> 
> [Test Case]
> Prepare the firmware from https://github.com/thesofproject/linux-firmware
> master branch, then boot the kernel with these patches.
> 
> [Regression Risk]
> Low, just let different platforms load differnt firmware, and these
> patches are in the upstream kernel.

Applied to focal/master-next, thanks!
Kleber Sacilotto de Souza March 10, 2020, 11:18 a.m. UTC | #2
On 03.03.20 01:32, Hui Wang wrote:
> BugLink: https://bugs.launchpad.net/bugs/1857409
> 
> Because we already merged the fix for #1861837, it is safe to merge
> these patchset now, so I resend those patches.

Hi Hui Wang,

The fixes for #1861837 were applied only to bionic/linux-oem-osp1. Is it
safe to apply these changes to eoan/linux as well?


Thank you,
Kleber

> 
> [Impact]
> In our ubuntu kernel, the sof driver will load the sof-cnl.ri (firmware)
> on all platforms, but mainline kernel already supported the multi
> firmwares on differnt platforms, and OEM project needs us to
> support the mutli-firmware names in the ubuntu kernel
> 
> [Fix]
> cherry-pick 3 upstream patches, then on cnl platforms, it will
> load sof-cnl.ri, on cml platfomrs, it will load sof-cml.ri, on cfl
> platforms, it will load sof-cfl.ri
> 
> 
> [Test Case]
> Prepare the firmware from https://github.com/thesofproject/linux-firmware
> master branch, then boot the kernel with these patches.
> 
> [Regression Risk]
> Low, just let different platforms load differnt firmware, and these
> patches are in the upstream kernel.
> 
> 
> Liam Girdwood (1):
>   ASoC: SOF: Intel: Fix CFL and CML FW nocodec binary names.
> 
> Pierre-Louis Bossart (2):
>   ASoC: SOF: Intel: hda: use fallback for firmware name
>   ASoC: Intel: acpi-match: split CNL tables in three
> 
>  include/sound/soc-acpi-intel-match.h          |  2 +
>  sound/soc/intel/common/Makefile               |  3 +-
>  .../intel/common/soc-acpi-intel-cfl-match.c   | 18 ++++++
>  .../intel/common/soc-acpi-intel-cml-match.c   | 56 +++++++++++++++++++
>  .../intel/common/soc-acpi-intel-cnl-match.c   | 31 ----------
>  sound/soc/sof/intel/hda.c                     | 11 +++-
>  sound/soc/sof/sof-pci-dev.c                   |  8 +--
>  7 files changed, 91 insertions(+), 38 deletions(-)
>  create mode 100644 sound/soc/intel/common/soc-acpi-intel-cfl-match.c
>  create mode 100644 sound/soc/intel/common/soc-acpi-intel-cml-match.c
>
Hui Wang March 10, 2020, 12:24 p.m. UTC | #3
On 2020/3/10 下午7:18, Kleber Souza wrote:
> On 03.03.20 01:32, Hui Wang wrote:
>> BugLink: https://bugs.launchpad.net/bugs/1857409
>>
>> Because we already merged the fix for #1861837, it is safe to merge
>> these patchset now, so I resend those patches.
> Hi Hui Wang,
>
> The fixes for #1861837 were applied only to bionic/linux-oem-osp1. Is it
> safe to apply these changes to eoan/linux as well?

It is safe to apply to eoan and focal. And for the fixes of #1861837, 
they are for focal, eoan and oem-osp1,  I remember I sent the patches 
for focal, eoan and oem-osp1. Just created nominations for #1861837.

Thanks,

Hui.


>
>
> Thank you,
> Kleber
>
>> [Impact]
>> In our ubuntu kernel, the sof driver will load the sof-cnl.ri (firmware)
>> on all platforms, but mainline kernel already supported the multi
>> firmwares on differnt platforms, and OEM project needs us to
>> support the mutli-firmware names in the ubuntu kernel
>>
>> [Fix]
>> cherry-pick 3 upstream patches, then on cnl platforms, it will
>> load sof-cnl.ri, on cml platfomrs, it will load sof-cml.ri, on cfl
>> platforms, it will load sof-cfl.ri
>>
>>
>> [Test Case]
>> Prepare the firmware from https://github.com/thesofproject/linux-firmware
>> master branch, then boot the kernel with these patches.
>>
>> [Regression Risk]
>> Low, just let different platforms load differnt firmware, and these
>> patches are in the upstream kernel.
>>
>>
>> Liam Girdwood (1):
>>    ASoC: SOF: Intel: Fix CFL and CML FW nocodec binary names.
>>
>> Pierre-Louis Bossart (2):
>>    ASoC: SOF: Intel: hda: use fallback for firmware name
>>    ASoC: Intel: acpi-match: split CNL tables in three
>>
>>   include/sound/soc-acpi-intel-match.h          |  2 +
>>   sound/soc/intel/common/Makefile               |  3 +-
>>   .../intel/common/soc-acpi-intel-cfl-match.c   | 18 ++++++
>>   .../intel/common/soc-acpi-intel-cml-match.c   | 56 +++++++++++++++++++
>>   .../intel/common/soc-acpi-intel-cnl-match.c   | 31 ----------
>>   sound/soc/sof/intel/hda.c                     | 11 +++-
>>   sound/soc/sof/sof-pci-dev.c                   |  8 +--
>>   7 files changed, 91 insertions(+), 38 deletions(-)
>>   create mode 100644 sound/soc/intel/common/soc-acpi-intel-cfl-match.c
>>   create mode 100644 sound/soc/intel/common/soc-acpi-intel-cml-match.c
>>
Kleber Sacilotto de Souza March 10, 2020, 2:32 p.m. UTC | #4
On 03.03.20 01:32, Hui Wang wrote:
> BugLink: https://bugs.launchpad.net/bugs/1857409
> 
> Because we already merged the fix for #1861837, it is safe to merge
> these patchset now, so I resend those patches.
> 
> [Impact]
> In our ubuntu kernel, the sof driver will load the sof-cnl.ri (firmware)
> on all platforms, but mainline kernel already supported the multi
> firmwares on differnt platforms, and OEM project needs us to
> support the mutli-firmware names in the ubuntu kernel
> 
> [Fix]
> cherry-pick 3 upstream patches, then on cnl platforms, it will
> load sof-cnl.ri, on cml platfomrs, it will load sof-cml.ri, on cfl
> platforms, it will load sof-cfl.ri
> 
> 
> [Test Case]
> Prepare the firmware from https://github.com/thesofproject/linux-firmware
> master branch, then boot the kernel with these patches.
> 
> [Regression Risk]
> Low, just let different platforms load differnt firmware, and these
> patches are in the upstream kernel.
> 
> 
> Liam Girdwood (1):
>   ASoC: SOF: Intel: Fix CFL and CML FW nocodec binary names.
> 
> Pierre-Louis Bossart (2):
>   ASoC: SOF: Intel: hda: use fallback for firmware name
>   ASoC: Intel: acpi-match: split CNL tables in three
> 
>  include/sound/soc-acpi-intel-match.h          |  2 +
>  sound/soc/intel/common/Makefile               |  3 +-
>  .../intel/common/soc-acpi-intel-cfl-match.c   | 18 ++++++
>  .../intel/common/soc-acpi-intel-cml-match.c   | 56 +++++++++++++++++++
>  .../intel/common/soc-acpi-intel-cnl-match.c   | 31 ----------
>  sound/soc/sof/intel/hda.c                     | 11 +++-
>  sound/soc/sof/sof-pci-dev.c                   |  8 +--
>  7 files changed, 91 insertions(+), 38 deletions(-)
>  create mode 100644 sound/soc/intel/common/soc-acpi-intel-cfl-match.c
>  create mode 100644 sound/soc/intel/common/soc-acpi-intel-cml-match.c
> 

For Eoan:

Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Stefan Bader March 12, 2020, 2:24 p.m. UTC | #5
On 03.03.20 01:32, Hui Wang wrote:
> BugLink: https://bugs.launchpad.net/bugs/1857409
> 
> Because we already merged the fix for #1861837, it is safe to merge
> these patchset now, so I resend those patches.
> 
> [Impact]
> In our ubuntu kernel, the sof driver will load the sof-cnl.ri (firmware)
> on all platforms, but mainline kernel already supported the multi
> firmwares on differnt platforms, and OEM project needs us to
> support the mutli-firmware names in the ubuntu kernel
> 
> [Fix]
> cherry-pick 3 upstream patches, then on cnl platforms, it will
> load sof-cnl.ri, on cml platfomrs, it will load sof-cml.ri, on cfl
> platforms, it will load sof-cfl.ri
> 
> 
> [Test Case]
> Prepare the firmware from https://github.com/thesofproject/linux-firmware
> master branch, then boot the kernel with these patches.
> 
> [Regression Risk]
> Low, just let different platforms load differnt firmware, and these
> patches are in the upstream kernel.
> 
> 
> Liam Girdwood (1):
>   ASoC: SOF: Intel: Fix CFL and CML FW nocodec binary names.
> 
> Pierre-Louis Bossart (2):
>   ASoC: SOF: Intel: hda: use fallback for firmware name
>   ASoC: Intel: acpi-match: split CNL tables in three
> 
>  include/sound/soc-acpi-intel-match.h          |  2 +
>  sound/soc/intel/common/Makefile               |  3 +-
>  .../intel/common/soc-acpi-intel-cfl-match.c   | 18 ++++++
>  .../intel/common/soc-acpi-intel-cml-match.c   | 56 +++++++++++++++++++
>  .../intel/common/soc-acpi-intel-cnl-match.c   | 31 ----------
>  sound/soc/sof/intel/hda.c                     | 11 +++-
>  sound/soc/sof/sof-pci-dev.c                   |  8 +--
>  7 files changed, 91 insertions(+), 38 deletions(-)
>  create mode 100644 sound/soc/intel/common/soc-acpi-intel-cfl-match.c
>  create mode 100644 sound/soc/intel/common/soc-acpi-intel-cml-match.c
> 
From the bug task it seems not committed to Focal, despite the email...

Acked-by: Stefan Bader <stefan.bader@canonical.com>
Khalid Elmously March 13, 2020, 3:11 a.m. UTC | #6
On 2020-03-03 08:32:56 , Hui Wang wrote:
> BugLink: https://bugs.launchpad.net/bugs/1857409
> 
> Because we already merged the fix for #1861837, it is safe to merge
> these patchset now, so I resend those patches.
> 
> [Impact]
> In our ubuntu kernel, the sof driver will load the sof-cnl.ri (firmware)
> on all platforms, but mainline kernel already supported the multi
> firmwares on differnt platforms, and OEM project needs us to
> support the mutli-firmware names in the ubuntu kernel
> 
> [Fix]
> cherry-pick 3 upstream patches, then on cnl platforms, it will
> load sof-cnl.ri, on cml platfomrs, it will load sof-cml.ri, on cfl
> platforms, it will load sof-cfl.ri
> 
> 
> [Test Case]
> Prepare the firmware from https://github.com/thesofproject/linux-firmware
> master branch, then boot the kernel with these patches.
> 
> [Regression Risk]
> Low, just let different platforms load differnt firmware, and these
> patches are in the upstream kernel.
> 
> 
> Liam Girdwood (1):
>   ASoC: SOF: Intel: Fix CFL and CML FW nocodec binary names.
> 
> Pierre-Louis Bossart (2):
>   ASoC: SOF: Intel: hda: use fallback for firmware name
>   ASoC: Intel: acpi-match: split CNL tables in three
> 
>  include/sound/soc-acpi-intel-match.h          |  2 +
>  sound/soc/intel/common/Makefile               |  3 +-
>  .../intel/common/soc-acpi-intel-cfl-match.c   | 18 ++++++
>  .../intel/common/soc-acpi-intel-cml-match.c   | 56 +++++++++++++++++++
>  .../intel/common/soc-acpi-intel-cnl-match.c   | 31 ----------
>  sound/soc/sof/intel/hda.c                     | 11 +++-
>  sound/soc/sof/sof-pci-dev.c                   |  8 +--
>  7 files changed, 91 insertions(+), 38 deletions(-)
>  create mode 100644 sound/soc/intel/common/soc-acpi-intel-cfl-match.c
>  create mode 100644 sound/soc/intel/common/soc-acpi-intel-cml-match.c
> 
> -- 
> 2.17.1
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
Khalid Elmously March 13, 2020, 3:12 a.m. UTC | #7
On 2020-03-03 08:32:56 , Hui Wang wrote:
> BugLink: https://bugs.launchpad.net/bugs/1857409
> 
> Because we already merged the fix for #1861837, it is safe to merge
> these patchset now, so I resend those patches.
> 
> [Impact]
> In our ubuntu kernel, the sof driver will load the sof-cnl.ri (firmware)
> on all platforms, but mainline kernel already supported the multi
> firmwares on differnt platforms, and OEM project needs us to
> support the mutli-firmware names in the ubuntu kernel
> 
> [Fix]
> cherry-pick 3 upstream patches, then on cnl platforms, it will
> load sof-cnl.ri, on cml platfomrs, it will load sof-cml.ri, on cfl
> platforms, it will load sof-cfl.ri
> 
> 
> [Test Case]
> Prepare the firmware from https://github.com/thesofproject/linux-firmware
> master branch, then boot the kernel with these patches.
> 
> [Regression Risk]
> Low, just let different platforms load differnt firmware, and these
> patches are in the upstream kernel.
> 
> 
> Liam Girdwood (1):
>   ASoC: SOF: Intel: Fix CFL and CML FW nocodec binary names.
> 
> Pierre-Louis Bossart (2):
>   ASoC: SOF: Intel: hda: use fallback for firmware name
>   ASoC: Intel: acpi-match: split CNL tables in three
> 
>  include/sound/soc-acpi-intel-match.h          |  2 +
>  sound/soc/intel/common/Makefile               |  3 +-
>  .../intel/common/soc-acpi-intel-cfl-match.c   | 18 ++++++
>  .../intel/common/soc-acpi-intel-cml-match.c   | 56 +++++++++++++++++++
>  .../intel/common/soc-acpi-intel-cnl-match.c   | 31 ----------
>  sound/soc/sof/intel/hda.c                     | 11 +++-
>  sound/soc/sof/sof-pci-dev.c                   |  8 +--
>  7 files changed, 91 insertions(+), 38 deletions(-)
>  create mode 100644 sound/soc/intel/common/soc-acpi-intel-cfl-match.c
>  create mode 100644 sound/soc/intel/common/soc-acpi-intel-cml-match.c
> 
> -- 
> 2.17.1
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team