linux-next: merge conflict between drm-misc and sound trees
Dear Stephen,
when rebuilding linux-next you're going to see a merge conflict in:
sound/pci/hda/hda_intel.c
betwen commit:
1ba8f9d30817 ("ALSA: hda: Add a power_save blacklist")
from the sound tree and commit:
07f4f97d7b4b ("vga_switcheroo: Use device link for HDA controller")
from the drm-misc tree.
I recommend fixing it up like below.
-- >8 --
@@@ -2284,16 -2298,22 +2303,30 @@@
chip->running = 1;
azx_add_card_list(chip);
+ /*
+ * The discrete GPU cannot power down unless the HDA controller runtime
+ * suspends, so activate runtime PM on codecs even if power_save == 0.
+ */
+ if (use_vga_switcheroo(hda))
+ list_for_each_codec(codec, &chip->bus)
+ codec->auto_runtime_pm = 1;
+
- snd_hda_set_power_save(&chip->bus, power_save * 1000);
+ val = power_save;
+ #ifdef CONFIG_PM
+ if (val == -1) {
+ const struct snd_pci_quirk *q;
+
+ val = CONFIG_SND_HDA_POWER_SAVE_DEFAULT;
+ q = snd_pci_quirk_lookup(chip->pci, power_save_blacklist);
+ if (q && val) {
+ dev_info(chip->card->dev, "device %04x:%04x is on the power_save blacklist, forcing power_save to 0\n",
+ q->subvendor, q->subdevice);
+ val = 0;
+ }
+ }
+ #endif /* CONFIG_PM */
+ snd_hda_set_power_save(&chip->bus, val * 1000);
- if (azx_has_pm_runtime(chip) || hda->use_vga_switcheroo)
+ if (azx_has_pm_runtime(chip))
pm_runtime_put_autosuspend(&pci->dev);
out_free:
Quoted 11 lines · Lukas Wunner
Dear Stephen,
when rebuilding linux-next you're going to see a merge conflict in:
sound/pci/hda/hda_intel.cbetwen commit:
1ba8f9d30817("ALSA: hda: Add apower_saveblacklist")
Quoted 7 lines
from the sound tree and commit:
07f4f97d7b4b("vga_switcheroo: Use device link for HDA controller")from the drm-misc tree.
I recommend fixing it up like below.
FYI, there was yet another fix over the relevant code, but the conflict resolution must be trivial as well.
thanks,
Takashi
Quoted 27 lines
-- >8 --
(quoted diff) +10
-1@@@ -2284,16 -2298,22 +2303,30 @@@ chip->running = 1; azx_add_card_list(chip); + /* + * The discrete GPU cannot power down unless the HDA controller runtime + * suspends, so activate runtime PM on codecs even if power_save == 0. + */ + if (use_vga_switcheroo(hda)) + list_for_each_codec(codec, &chip->bus) + codec->auto_runtime_pm = 1; + - snd_hda_set_power_save(&chip->bus, power_save * 1000); + val = power_save; + #ifdef CONFIG_PM + if (val == -1) { + const struct snd_pci_quirk *q; + + val = CONFIG_SND_HDA_POWER_SAVE_DEFAULT; + q = snd_pci_quirk_lookup(chip->pci, power_save_blacklist); + if (q && val) { + dev_info(chip->card->dev, "device %04x:%04x is on the power_save blacklist, forcing power_save to 0\n", + q->subvendor, q->subdevice);
Review
Quoted 10 lines
(quoted diff) +5
-0+ val = 0; + } + } + #endif /* CONFIG_PM */ + snd_hda_set_power_save(&chip->bus, val * 1000); - if (azx_has_pm_runtime(chip) || hda->use_vga_switcheroo) + if (azx_has_pm_runtime(chip)) pm_runtime_put_autosuspend(&pci->dev); out_free:
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Lukas,
Quoted 9 lines · On Wed, 14 Mar 2018 07:38:01 +0100 Lukas Wunner <[email protected]> wrote:
when rebuilding linux-next you're going to see a merge conflict in:
sound/pci/hda/hda_intel.cbetwen commit:
1ba8f9d30817("ALSA: hda: Add apower_saveblacklist")
Quoted 7 lines
from the sound tree and commit:
07f4f97d7b4b("vga_switcheroo: Use device link for HDA controller")from the drm-misc tree.
I recommend fixing it up like below.
Thanks very much for the heads up and resolution. I'll still report this when I get to it just to make sure I gate it right.
Signature · 2 lines
Cheers, Stephen Rothwell
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Takashi,
Quoted 3 lines · On Wed, 14 Mar 2018 08:37:12 +0100 Takashi Iwai <[email protected]> wrote:
FYI, there was yet another fix over the relevant code, but the conflict resolution must be trivial as well.
OK, thanks as well.
Signature · 2 lines
Cheers, Stephen Rothwell
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel