CC: kbuild-all(a)lists.01.org TO: cros-kernel-buildreports(a)googlegroups.com TO: Guenter Roeck tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.4 head: 7ed4548c895b66a65dd7ea4e6ab155ac9802f257 commit: 7ed4548c895b66a65dd7ea4e6ab155ac9802f257 [7/7] UPSTREAM: ALSA: hda - Don't try to bind i915 unless CONFIG_SND_HDA_I915 is set :::::: branch date: 7 hours ago :::::: commit date: 7 hours ago config: i386-randconfig-m021-20200716 (attached as .config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter New smatch warnings: sound/pci/hda/hda_intel.c:898 azx_suspend() warn: bitwise AND condition is false here sound/pci/hda/hda_intel.c:921 azx_resume() warn: bitwise AND condition is false here Old smatch warnings: sound/pci/hda/hda_intel.c:551 hda_intel_init_chip() warn: bitwise AND condition is false here sound/pci/hda/hda_intel.c:564 hda_intel_init_chip() warn: bitwise AND condition is false here sound/pci/hda/hda_intel.c:992 azx_runtime_suspend() warn: bitwise AND condition is false here sound/pci/hda/hda_intel.c:1020 azx_runtime_resume() warn: bitwise AND condition is false here sound/pci/hda/hda_intel.c:1252 azx_free() warn: bitwise AND condition is false here sound/pci/hda/hda_intel.c:1751 azx_first_init() warn: bitwise AND condition is false here sound/pci/hda/hda_intel.c:2060 azx_probe_continue() warn: bitwise AND condition is false here sound/pci/hda/hda_intel.c:2145 azx_probe_continue() warn: bitwise AND condition is false here git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel git remote update chrome-os git checkout 7ed4548c895b66a65dd7ea4e6ab155ac9802f257 vim +898 sound/pci/hda/hda_intel.c 5c0b9bec460c34 Takashi Iwai 2008-12-11 866 7ccbde57ce312f Takashi Iwai 2012-08-14 867 #if defined(CONFIG_PM_SLEEP) || defined(SUPPORT_VGA_SWITCHEROO) 5c0b9bec460c34 Takashi Iwai 2008-12-11 868 /* 5c0b9bec460c34 Takashi Iwai 2008-12-11 869 * power management 5c0b9bec460c34 Takashi Iwai 2008-12-11 870 */ 68cb2b55927885 Takashi Iwai 2012-07-02 871 static int azx_suspend(struct device *dev) ^1da177e4c3f41 Linus Torvalds 2005-04-16 872 { 68cb2b55927885 Takashi Iwai 2012-07-02 873 struct snd_card *card = dev_get_drvdata(dev); 2d9772ef653ccf Takashi Iwai 2014-07-16 874 struct azx *chip; 2d9772ef653ccf Takashi Iwai 2014-07-16 875 struct hda_intel *hda; a41d122449bea3 Takashi Iwai 2015-04-14 876 struct hdac_bus *bus; ^1da177e4c3f41 Linus Torvalds 2005-04-16 877 2d9772ef653ccf Takashi Iwai 2014-07-16 878 if (!card) 2d9772ef653ccf Takashi Iwai 2014-07-16 879 return 0; 2d9772ef653ccf Takashi Iwai 2014-07-16 880 2d9772ef653ccf Takashi Iwai 2014-07-16 881 chip = card->private_data; 2d9772ef653ccf Takashi Iwai 2014-07-16 882 hda = container_of(chip, struct hda_intel, chip); 342e84490574cb U. Artie Eoff 2015-07-28 883 if (chip->disabled || hda->init_failed || !chip->running) c5c215232dfb71 Takashi Iwai 2012-12-04 884 return 0; c5c215232dfb71 Takashi Iwai 2012-12-04 885 a41d122449bea3 Takashi Iwai 2015-04-14 886 bus = azx_bus(chip); 421a12520d4ed4 Takashi Iwai 2005-11-17 887 snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); 9ad593f6d326e7 Takashi Iwai 2008-05-16 888 azx_clear_irq_pending(chip); cb53c626e1145e Takashi Iwai 2007-08-10 889 azx_stop_chip(chip); 7295b26438ec01 Mengdong Lin 2013-06-25 890 azx_enter_link_reset(chip); a41d122449bea3 Takashi Iwai 2015-04-14 891 if (bus->irq >= 0) { a41d122449bea3 Takashi Iwai 2015-04-14 892 free_irq(bus->irq, chip); a41d122449bea3 Takashi Iwai 2015-04-14 893 bus->irq = -1; 30b35399ceb239 Takashi Iwai 2006-10-11 894 } a07187c992be94 Mengdong Lin 2014-06-26 895 68e7fffc0f3e95 Takashi Iwai 2006-10-23 896 if (chip->msi) 43001c9515cf87 Takashi Iwai 2006-09-08 897 pci_disable_msi(chip->pci); 795614dde4d355 Mengdong Lin 2015-04-29 @898 if (chip->driver_caps & AZX_DCAPS_I915_POWERWELL 795614dde4d355 Mengdong Lin 2015-04-29 899 && hda->need_i915_power) 98d8fc6c5d3652 Mengdong Lin 2015-05-19 900 snd_hdac_display_power(bus, false); 785d8c4be82b45 Libin Yang 2015-05-12 901 785d8c4be82b45 Libin Yang 2015-05-12 902 trace_azx_suspend(chip); ^1da177e4c3f41 Linus Torvalds 2005-04-16 903 return 0; ^1da177e4c3f41 Linus Torvalds 2005-04-16 904 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 905 68cb2b55927885 Takashi Iwai 2012-07-02 906 static int azx_resume(struct device *dev) ^1da177e4c3f41 Linus Torvalds 2005-04-16 907 { 68cb2b55927885 Takashi Iwai 2012-07-02 908 struct pci_dev *pci = to_pci_dev(dev); 68cb2b55927885 Takashi Iwai 2012-07-02 909 struct snd_card *card = dev_get_drvdata(dev); 2d9772ef653ccf Takashi Iwai 2014-07-16 910 struct azx *chip; 2d9772ef653ccf Takashi Iwai 2014-07-16 911 struct hda_intel *hda; 2d9772ef653ccf Takashi Iwai 2014-07-16 912 2d9772ef653ccf Takashi Iwai 2014-07-16 913 if (!card) 2d9772ef653ccf Takashi Iwai 2014-07-16 914 return 0; ^1da177e4c3f41 Linus Torvalds 2005-04-16 915 2d9772ef653ccf Takashi Iwai 2014-07-16 916 chip = card->private_data; 2d9772ef653ccf Takashi Iwai 2014-07-16 917 hda = container_of(chip, struct hda_intel, chip); 342e84490574cb U. Artie Eoff 2015-07-28 918 if (chip->disabled || hda->init_failed || !chip->running) c5c215232dfb71 Takashi Iwai 2012-12-04 919 return 0; c5c215232dfb71 Takashi Iwai 2012-12-04 920 795614dde4d355 Mengdong Lin 2015-04-29 @921 if (chip->driver_caps & AZX_DCAPS_I915_POWERWELL 795614dde4d355 Mengdong Lin 2015-04-29 922 && hda->need_i915_power) { 98d8fc6c5d3652 Mengdong Lin 2015-05-19 923 snd_hdac_display_power(azx_bus(chip), true); 9550b38208efb2 Takashi Iwai 2016-04-21 924 snd_hdac_i915_set_bclk(azx_bus(chip)); a07187c992be94 Mengdong Lin 2014-06-26 925 } 68e7fffc0f3e95 Takashi Iwai 2006-10-23 926 if (chip->msi) 68e7fffc0f3e95 Takashi Iwai 2006-10-23 927 if (pci_enable_msi(pci) < 0) 68e7fffc0f3e95 Takashi Iwai 2006-10-23 928 chip->msi = 0; 68e7fffc0f3e95 Takashi Iwai 2006-10-23 929 if (azx_acquire_irq(chip, 1) < 0) 30b35399ceb239 Takashi Iwai 2006-10-11 930 return -EIO; cb53c626e1145e Takashi Iwai 2007-08-10 931 azx_init_pci(chip); d804ad9258c146 Maxim Levitsky 2007-09-03 932 0a67352153505f Lu, Han 2015-05-05 933 hda_intel_init_chip(chip, true); d804ad9258c146 Maxim Levitsky 2007-09-03 934 421a12520d4ed4 Takashi Iwai 2005-11-17 935 snd_power_change_state(card, SNDRV_CTL_POWER_D0); 785d8c4be82b45 Libin Yang 2015-05-12 936 785d8c4be82b45 Libin Yang 2015-05-12 937 trace_azx_resume(chip); ^1da177e4c3f41 Linus Torvalds 2005-04-16 938 return 0; ^1da177e4c3f41 Linus Torvalds 2005-04-16 939 } b8dfc4624162c0 Mengdong Lin 2012-08-23 940 #endif /* CONFIG_PM_SLEEP || SUPPORT_VGA_SWITCHEROO */ b8dfc4624162c0 Mengdong Lin 2012-08-23 941 :::::: The code@line 898 was first introduced by commit :::::: 795614dde4d3550c3ef72469b1ba4d09d8635202 ALSA: hda - divide controller and codec dependency on i915 gfx power well :::::: TO: Mengdong Lin :::::: CC: Takashi Iwai --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org