Received: by 10.192.165.148 with SMTP id m20csp978959imm; Thu, 10 May 2018 03:51:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZogquF7TNlWpn3qiMRKI/xe5x8/xwAemAudZkWBivE9UxUGHFT4gtqBUFLbMXsUHaxf+MMo X-Received: by 2002:a62:c615:: with SMTP id m21-v6mr889202pfg.232.1525949485360; Thu, 10 May 2018 03:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525949485; cv=none; d=google.com; s=arc-20160816; b=q5m08Yc+vtuvbk6JXuQ0c4UIv4oMGEyo563qRNULuHcZXygQVUJHz/nJOTJT5QTX9U h/zfHOPNC6htbwVJiOBBKnBMDJameVP3dyQvloAwjVSskJmb5mFXNcYJXMIkNXAQiy+k 9VHPHihU44D3ahlodGqLAMB5qzReibMsi0Su8NRejWb7Rm1wJLd3xI9Wxdah95HWCiYn w0DUE7VZqIxzcoMFtVku8yjfQgK4moGMsjr+EX8ssLxmeiwo20wyI+BGQzLO7XMfimTo Y4DImOmRFFgETmRGgjkebM4EtwpIfqmjKZYLMViV2ShfpdjgX/lEBUm49TVEC8BLrStg CSfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=NL/lB2B3mpC7kYBYVqAOYOxKbHg8OLUKh8oIrmSgBMg=; b=0EjW0cjqRc3vRAMYt+eR0+IaXfrr4M/f1XPwqWkBMlHarFtPHuHsHvbZZiAgqy1H0k z6EHI79UcB3sIW3bwAdMOswtOhtv2x4a+uUkaz/rg+0eaXslOmUk9nDQM6hB0CJjooS6 7zB5Ur00YGtbVrdcdGWSW3ojL0zU6hAejEDszHavK1ckFPR77oMItjSCkZq2p1DTvSCT EVOLLpXN53IICY51HT+/pO7Gs5wCJ9cFrmYGLjfGpJAMI83FOAy3Z+VL+9/j5VMoz3Hu GYZpvf0HeXzkAlDiA/5+H/FctjAGaINGJu0BT9rtDvrwbh33vAxqKCgnHSlPNzd2Zvma 0EgQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 81-v6si508135pfl.295.2018.05.10.03.51.11; Thu, 10 May 2018 03:51:25 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935404AbeEJKtl convert rfc822-to-8bit (ORCPT + 99 others); Thu, 10 May 2018 06:49:41 -0400 Received: from 9pmail.ess.barracuda.com ([64.235.154.211]:36720 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935346AbeEJKti (ORCPT ); Thu, 10 May 2018 06:49:38 -0400 Received: from mipsdag02.mipstec.com (mail2.mips.com [12.201.5.32]) by mx1401.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=NO); Thu, 10 May 2018 10:49:28 +0000 Received: from [192.168.155.41] (192.168.155.41) by mipsdag02.mipstec.com (10.20.40.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1415.2; Thu, 10 May 2018 03:49:54 -0700 Subject: Re: Regression caused by commit 882164a4a928 To: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Larry Finger CC: =?UTF-8?Q?Michael_B=c3=bcsch?= , Kalle Valo , linux-wireless , LKML References: <7bbc067a-c412-3d2e-174a-abc31b46e246@lwfinger.net> From: Matt Redfearn Message-ID: <6e64abf4-a8c1-21db-e740-79f031b4560e@mips.com> Date: Thu, 10 May 2018 11:49:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8BIT X-Originating-IP: [192.168.155.41] X-ClientProxiedBy: mipsdag02.mipstec.com (10.20.40.47) To mipsdag02.mipstec.com (10.20.40.47) X-BESS-ID: 1525949368-321457-18461-48659-1 X-BESS-VER: 2018.5-r1804261738 X-BESS-Apparent-Source-IP: 12.201.5.32 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.192872 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rafał, On 10/05/18 11:41, Rafał Miłecki wrote: > On 7 May 2018 at 17:44, Larry Finger wrote: >> Although commit 882164a4a928 ("ssb: Prevent build of PCI host features in >> module") appeared to be harmless, it leads to complete failure of drivers >> b43. and b43legacy, and likely affects b44 as well. The problem is that >> CONFIG_SSB_PCIHOST is undefined, which prevents the compilation of the code >> that controls the PCI cores of the device. See >> https://bugzilla.redhat.com/show_bug.cgi?id=1572349 for details. >> >> As the underlying errors ("pcibios_enable_device" undefined, and >> "register_pci_controller" undefined) do not appear on the architectures that >> I have tested (x86_64, x86, and ppc), I suspect something in the >> arch-specific code for your setup (MIPS?). As I have no idea on how to fix >> that problem, would the following patch work for you? >> >> diff --git a/drivers/ssb/Kconfig b/drivers/ssb/Kconfig >> index 9371651d8017..3743533c8057 100644 >> --- a/drivers/ssb/Kconfig >> +++ b/drivers/ssb/Kconfig >> @@ -117,7 +117,7 @@ config SSB_SERIAL >> >> config SSB_DRIVER_PCICORE_POSSIBLE >> bool >> - depends on SSB_PCIHOST && SSB = y >> + depends on SSB_PCIHOST && (SSB = y || !MIPS) >> default y >> >> config SSB_DRIVER_PCICORE > > I strongly suggest we take a step back, slow down a bit and look at > the original problem. > > In driver_pcicore.c there is MIPS specific code. It's protected using > #ifdef CONFIG_SSB_PCICORE_HOSTMODE > (...) > #endif > > If anyone has ever seen > ERROR: "pcibios_enable_device" [drivers/ssb/ssb.ko] undefined! > ERROR: "register_pci_controller" [drivers/ssb/ssb.ko] undefined! > make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1 > it means he managed to get CONFIG_SSB_PCICORE_HOSTMODE set on non-MIPS system. I saw this on a MIPS system (to my knowledge, this does not happen on other arches due to the Kconfig rules you describe), which is what my original patch was attempting to fix, but appears to have caused problems on other arches. Thanks, Matt > > We should rather answer how did that happen and fix it. > > SSB_PCICORE_HOSTMODE depends on SSB_DRIVER_MIPS > SSB_DRIVER_MIPS depends on MIPS > > How is that possible to set SSB_PCICORE_HOSTMODE with non-MIPS config? > Is there some mistake in Kconfig I can't see? >