Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp95108imu; Wed, 2 Jan 2019 14:59:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/WpkK3kqso2gdZ9nZJTwIoCaGKGbBI4TkFWwBO/OTNAUw2EjvShWrtty0tIDf7sGpyklMBN X-Received: by 2002:a62:d2c1:: with SMTP id c184mr46508200pfg.248.1546469990104; Wed, 02 Jan 2019 14:59:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546469990; cv=none; d=google.com; s=arc-20160816; b=hkYad7/UbDyuk1IJ7Xkj0cnugBtHmUokt7575wsInyfWdSjuSNRrNeXB+5C0fwP+wO nc66AwjvU1svM6DDIibMsAdm07HiRn6axSxVy9dqNboGzpVYucy3ixuQImxmc/q+G6cT utD4D6SYtAaigFF6cS2kTrNjMnCzGmHlFnTE2cBO6arNCb9XEUvGGBVgeLRzZY9XXgk2 f5D1ZAg/du3oCYYxGlGUV9vOuHhPka8UU0yvBMqfctLBZS88VgQqoVrkfMhdMhIc+zu1 eLJoh0wsUZ72gogL/01pp2DSqNcBQGgZNVy485S6Y3vr4dhNYMFuzgpiCPcNBBuGydU+ i4mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject; bh=QG6TXg1fVOas+iHCI+wfLMPSsDggaKMfZDcTDmGte6I=; b=z8+CUNU4LeiYFO+oFkN8LEeYxjh09y0RN8M87++5XL29htsMp8f1BJE4BQ6fQCHkUN VKL32UjP4E6Vc1uIYEy4Nl6WcYOhWegtW8YNkO8oqNe8MOU6yEnx13E4rRkZmvaxgbyq h243QPYRzQXUsZdAc7pKn9im5ajjNTLLwqc1cdzyi99ouMhk/w9gQUJtFgOHCk+phIE+ NchqZ8Y7J9SQdCE0RcOC0cQngUy0vP55+txMVJz25T4eFeSJuKJJXbl8m02gOHDIwwvI RyGbQMLJqYwF4H7IKmocLkad5pMS0nPs8ZLS6ti131BcyBxVHRClFHOqNpBHvEC8uuWs TpsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e188si51995143pfa.16.2019.01.02.14.59.35; Wed, 02 Jan 2019 14:59:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726852AbfABUdJ (ORCPT + 99 others); Wed, 2 Jan 2019 15:33:09 -0500 Received: from mga18.intel.com ([134.134.136.126]:54705 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726816AbfABUdJ (ORCPT ); Wed, 2 Jan 2019 15:33:09 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jan 2019 12:33:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,432,1539673200"; d="_sh'?scan'208";a="288366383" Received: from mataggar-mobl.amr.corp.intel.com (HELO [10.254.107.40]) ([10.254.107.40]) by orsmga005.jf.intel.com with ESMTP; 02 Jan 2019 12:33:07 -0800 Subject: Re: [alsa-devel] [PATCH v5 08/11] ASoC: Intel: atom: Make PCI dependency explicit To: Sinan Kaya , linux-next@vger.kernel.org Cc: "moderated list:INTEL ASoC DRIVERS" , Takashi Iwai , Jie Yang , Liam Girdwood , linux-acpi@vger.kernel.org, Mark Brown , open list References: <20190102181038.4418-1-okaya@kernel.org> <20190102181038.4418-9-okaya@kernel.org> From: Pierre-Louis Bossart Message-ID: <57ed1d94-7f89-20e8-3289-7ef7efd18c20@linux.intel.com> Date: Wed, 2 Jan 2019 14:33:06 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190102181038.4418-9-okaya@kernel.org> Content-Type: multipart/mixed; boundary="------------41396966F0FB1F9C35E77E1D" Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --------------41396966F0FB1F9C35E77E1D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit I have three opens with this ACPI/PCI change 1. the baseline change fails on my cross-compilation checks, see below the result of the attached script (simplification of the one I use to avoid 0day reports). 2. there are different patterns to express the dependency on PCI e.g.  config MMC_SDHCI_ACPI      tristate "SDHCI support for ACPI enumerated SDHCI controllers"      depends on MMC_SDHCI && ACPI -    select IOSF_MBI if X86 +    select IOSF_MBI if (X86 && PCI) but config SND_SST_ATOM_HIFI2_PLATFORM_ACPI      tristate "ACPI HiFi2 (Baytrail, Cherrytrail) Platforms"      default ACPI -    depends on X86 && ACPI +    depends on X86 && ACPI && PCI      select SND_SST_IPC_ACPI      select SND_SST_ATOM_HIFI2_PLATFORM      select SND_SOC_ACPI_INTEL_MATCH IOSF is only needed for Baytrail-CR detection, and the code will compile fine without it, so maybe it'd be a better model if you used the following diff? diff --git a/sound/soc/intel/Kconfig b/sound/soc/intel/Kconfig index 2fd1b61e8331..68af0ea5c96c 100644 --- a/sound/soc/intel/Kconfig +++ b/sound/soc/intel/Kconfig @@ -95,7 +95,7 @@ config SND_SST_ATOM_HIFI2_PLATFORM_ACPI         select SND_SST_IPC_ACPI         select SND_SST_ATOM_HIFI2_PLATFORM         select SND_SOC_ACPI_INTEL_MATCH -       select IOSF_MBI +       select IOSF_MBI if PCI 3. All the Intel machine drivers depend on X86_INTEL_LPSS which depends on PCI. But for Baytrail/Haswell/Broadwell we have only a dependency on ACPI, so we expose drivers that can be selected but fail on probe since there are no machine drivers. I am not sure if we want to be strict and only expose meaningful configurations, or allow for more compilations tests and corner cases? -Pierre cross-compilation issue: git checkout next-20190102 make CROSS_COMPILE=/opt/gcc-8.1.0-nolibc/ia64-linux/bin/ia64-linux- --jobs=16 allmodconfig ARCH=ia64   HOSTCC  scripts/basic/fixdep   HOSTCC  scripts/kconfig/conf.o   YACC    scripts/kconfig/zconf.tab.c   LEX     scripts/kconfig/zconf.lex.c   HOSTCC  scripts/kconfig/confdata.o   HOSTCC  scripts/kconfig/expr.o   HOSTCC  scripts/kconfig/symbol.o   YACC    scripts/kconfig/zconf.tab.h   HOSTCC  scripts/kconfig/preprocess.o   HOSTCC  scripts/kconfig/zconf.tab.o   HOSTCC  scripts/kconfig/zconf.lex.o   HOSTLD  scripts/kconfig/conf scripts/kconfig/conf  --allmodconfig Kconfig arch/ia64/Kconfig:128:error: recursive dependency detected! arch/ia64/Kconfig:128:    choice contains symbol IA64_HP_SIM arch/ia64/Kconfig:202:    symbol IA64_HP_SIM is part of choice PM kernel/power/Kconfig:144:    symbol PM is selected by PM_SLEEP kernel/power/Kconfig:104:    symbol PM_SLEEP depends on HIBERNATE_CALLBACKS kernel/power/Kconfig:31:    symbol HIBERNATE_CALLBACKS is selected by HIBERNATION kernel/power/Kconfig:34:    symbol HIBERNATION depends on SWAP init/Kconfig:250:    symbol SWAP depends on BLOCK block/Kconfig:5:    symbol BLOCK is selected by UBIFS_FS fs/ubifs/Kconfig:1:    symbol UBIFS_FS depends on MISC_FILESYSTEMS fs/Kconfig:227:    symbol MISC_FILESYSTEMS is selected by ACPI_APEI drivers/acpi/apei/Kconfig:8:    symbol ACPI_APEI depends on ACPI drivers/acpi/Kconfig:9:    symbol ACPI depends on ARCH_SUPPORTS_ACPI drivers/acpi/Kconfig:6:    symbol ARCH_SUPPORTS_ACPI is selected by IA64_HP_SIM arch/ia64/Kconfig:202:    symbol IA64_HP_SIM is part of choice For a resolution refer to Documentation/kbuild/kconfig-language.txt subsection "Kconfig recursive dependency limitations" --------------41396966F0FB1F9C35E77E1D Content-Type: text/plain; charset=UTF-8; name="cross-check._sh" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="cross-check._sh" IyEvYmluL2Jhc2gKCnNldCAtZQoKdGVzdF9mYXN0KCkgewoKICAgIFBMQVRGT1JNPSIkMSIK ICAgIG1ha2UgbXJwcm9wZXIKICAgIC4uL21ha2UuY3Jvc3MgYWxsbW9kY29uZmlnIEFSQ0g9 JFBMQVRGT1JNCiAgICAuLi9tYWtlLmNyb3NzIG9sZGRlZmNvbmZpZyBBUkNIPSRQTEFURk9S TSAgICAKICAgIC4uL21ha2UuY3Jvc3MgQVJDSD0kUExBVEZPUk0gbW9kdWxlc19wcmVwYXJl Cn0KCnRlc3RfY29tcGlsZSgpIHsKCiAgICBQTEFURk9STT0iJDEiCiAgICBtYWtlIG1ycHJv cGVyCiAgICAKICAgIG1ha2UgZGVmY29uZmlnIEFSQ0g9JFBMQVRGT1JNCiAgICAKICAgIGVj aG8gIm1vZHVsZXMgZmlyc3QiCiAgICAuLi9tYWtlLmNyb3NzIEFSQ0g9JFBMQVRGT1JNCiAg ICBpZiBbICIkUExBVEZPUk0iID0gIng4Nl82NCIgXTsgdGhlbgoJLi4vbWFrZS5jcm9zcyBi aW5kZWItcGtnIEFSQ0g9JFBMQVRGT1JNCiAgICBmaQoKCiAgICBlY2hvICJhbGwgeWVzIHNl Y29uZCIKICAgIHBlcmwgLXBpLmJhayAtZSAncy89bS89eS9nJyAuY29uZmlnCiAgICAuLi9t YWtlLmNyb3NzIG9sZGRlZmNvbmZ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