Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DE0EC4338F for ; Mon, 26 Jul 2021 21:02:36 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2751E60F91 for ; Mon, 26 Jul 2021 21:02:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2751E60F91 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D03011AEA; Mon, 26 Jul 2021 23:01:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D03011AEA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1627333352; bh=FWmCm3XBbToS9cEkqweOQlixriiLx8fEMqPxg2TW898=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=VR922I2clH5Ym0ITICKt+bSBj5x2ZuvGlFZ2jHMpoywEDXmg+acmwu1qaP0Y6g2al xzOcbYV1wDQGUiXwz0n/xvLJAU70kI0cF6/9pG2wW8l7fj/HMTL/8Q3i4irpV7PT3S NVWbriQ2oen1wgrWuu5tR0gW2mKHrL9aqp6TtcRI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 38947F80253; Mon, 26 Jul 2021 23:01:42 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A17F5F8025A; Mon, 26 Jul 2021 23:01:40 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 723B1F80130 for ; Mon, 26 Jul 2021 23:01:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 723B1F80130 X-IronPort-AV: E=McAfee;i="6200,9189,10057"; a="273398800" X-IronPort-AV: E=Sophos;i="5.84,270,1620716400"; d="scan'208";a="273398800" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2021 14:01:22 -0700 X-IronPort-AV: E=Sophos;i="5.84,270,1620716400"; d="scan'208";a="464057612" Received: from tskelley-mobl.amr.corp.intel.com (HELO [10.212.14.236]) ([10.212.14.236]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2021 14:01:21 -0700 Subject: Re: [PATCH 0/7] ALSA/ASoC/SOF/SoundWire: fix Kconfig issues To: Arnd Bergmann References: <20210302003125.1178419-1-pierre-louis.bossart@linux.intel.com> From: Pierre-Louis Bossart Message-ID: <9cbc71be-17b0-4a88-c8a1-a1e800894a56@linux.intel.com> Date: Mon, 26 Jul 2021 16:01:18 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Cc: Takashi Iwai , ALSA Development Mailing List , Mark Brown , Vinod Koul X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" > I have not done as much randconfig tested recently as I used to, but > since I ramped up the rate again after the merge window, I have unfortunately > once more run into a variation of this problem, with > CONFIG_SND_SOC_SOF_INTEL_SOUNDWIRE=m and > CONFIG_SND_SOC_SOF_HDA_COMMON=y: > > x86_64-linux-ld: sound/soc/sof/intel/hda.o: in function > `hda_dsp_interrupt_thread': > hda.c:(.text+0x739): undefined reference to `sdw_intel_thread' > x86_64-linux-ld: hda.c:(.text+0x764): undefined reference to > `sdw_intel_process_wakeen_event' > x86_64-linux-ld: sound/soc/sof/intel/hda.o: in function `hda_sdw_int_enable': > hda.c:(.text+0x782): undefined reference to `sdw_intel_enable_irq' > x86_64-linux-ld: sound/soc/sof/intel/hda.o: in function `hda_sdw_startup': > hda.c:(.text+0x7ac): undefined reference to `sdw_intel_startup' > x86_64-linux-ld: sound/soc/sof/intel/hda.o: in function > `hda_sdw_process_wakeen': > hda.c:(.text+0x7dc): undefined reference to `sdw_intel_process_wakeen_event' > x86_64-linux-ld: sound/soc/sof/intel/hda.o: in function `hda_dsp_probe': > hda.c:(.text+0xee1): undefined reference to `sdw_intel_probe' > x86_64-linux-ld: sound/soc/sof/intel/hda.o: in function `hda_dsp_remove': > hda.c:(.text+0xf7f): undefined reference to `sdw_intel_enable_irq' > x86_64-linux-ld: hda.c:(.text+0xf8e): undefined reference to `sdw_intel_exit' > > This only seems to appear very rarely, as I still did around 25000 randconfig > builds since you merged the series, but this config does show the problem > for any kernel version between the fix and the latest linux-next: > > https://pastebin.com/raw/VCjcB3EU > > I have only done the quick bisection but no analysis regarding what > we may have missed back in March. I hope you can figure this out. Thanks for this report Arnd. I can reproduce the problem, the changes made 6 months back don't make too much sense to me any longer. I have really no idea why I moved the INTEL_SOUNDWIRE config to a boolean, that was asking for trouble. I have a tentative fix being tested at https://github.com/thesofproject/linux/pull/3066. I just moved the select operations to a different option and reverted the INTEL_SOUNDWIRE config to be an on/off switch from the user perspective, with dependencies on built-in v. module checked inside.