Received: by 10.192.165.148 with SMTP id m20csp5485323imm; Wed, 9 May 2018 05:56:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoF/ev0SGXo0CSX8JRA0LavFdZNF3UU6IlVIvqEAtQ9FyRmv0FZg88Xl8HuKyFamz2fHcCH X-Received: by 10.98.60.209 with SMTP id b78mr43056135pfk.44.1525870571377; Wed, 09 May 2018 05:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525870571; cv=none; d=google.com; s=arc-20160816; b=hetj7LmabouEJFaENjgbFmppHCRhIEosYNGTgRo12pF/IP8+uoPRyduYGNNtoSSqpu epJ7KDC4M1g1tkQsQ4h2siAHfYPLmZ+bcd0ImT9XrYCOIeur4xRkLVAEJ3XVSa7iko/I rUFn16D99KWGZqUxQeUwALyHnJ8Nx4UxreAptfEbWgwKDv05Kl76rQgY1QTLKS5e0AxF K/mO1UiUxLrZK86WUQ44gqVotfw1pkVs0WnQDuX/ezYIXEX1tWTO11KZ9orI+quxa8kL SQYM124c3KqwNtkKncLAXlZgHYs7/goL1Y/Om0osZpqN5razjL0IGKwedDKbIdN8zVl5 lldQ== 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=IpuEdpxQ/piaCQ6iFQzNbCDUNsYLeyaRG0PwVivI0w8=; b=mcySG+j1Pp4F8Cz8LeHmT3T5Agzrhc1JURYdqzwfrox6By7hYjiyCby/LuXX0HcR/U 3+DVN9fIPm15z0pgajSbQdvaR4x5DPJlo/oCfcvG5/LMuAN31RjNvwO9XP1G6dnZfKiR 8DyIaLthKeij/eZJUWA78FgXUV8ybldsW/ce7sA/UxrQrwDFPwEleq16YiNznSpArWnK 0F5p636vUZ14yjRj9f2K8f5Yb1HNbF/SsRl0Da++ykrjQwKd4BuJ/nD+TnncHpoaaW5h NYG6cKfhkHRcEG1iVesOCtnCbIyYHSlb+tPXVGhVjdlYgr5E9wauTjmMIvrq5HNs5vka Jhnw== 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 j10si16488438pfn.87.2018.05.09.05.55.56; Wed, 09 May 2018 05:56:11 -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 S934630AbeEIMz3 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 9 May 2018 08:55:29 -0400 Received: from 9pmail.ess.barracuda.com ([64.235.154.210]:32955 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934328AbeEIMz2 (ORCPT ); Wed, 9 May 2018 08:55:28 -0400 Received: from mipsdag02.mipstec.com (mail2.mips.com [12.201.5.32]) by mx1404.ess.rzc.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=NO); Wed, 09 May 2018 12:55:19 +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; Wed, 9 May 2018 05:55:44 -0700 Subject: Re: Regression caused by commit 882164a4a928 To: Larry Finger , =?UTF-8?Q?Michael_B=c3=bcsch?= , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= CC: Kalle Valo , linux-wireless , LKML References: <7bbc067a-c412-3d2e-174a-abc31b46e246@lwfinger.net> From: Matt Redfearn Message-ID: <372d149c-c34c-56a0-4e1a-5ab2c1e16e73@mips.com> Date: Wed, 9 May 2018 13:55:43 +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: <7bbc067a-c412-3d2e-174a-abc31b46e246@lwfinger.net> 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: 1525870519-382908-25996-421923-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.192847 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 Larry On 07/05/18 16:44, Larry Finger wrote: > Matt, > > 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. Sorry for the breakage :-/ > > 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 believe that the problem stems from these drivers being used for some wireless AP functionality built into some MIPS based SoCs. The Kconfig rules sort out building this additional functionality when configured for MIPS (in a round about sort of way), but it allowed it even when SSB is a module, leading to build failures. My patch was intended to prevent that. There was a similar issue in the same Kconfig file, introduced by c5611df96804 and fixed by a9e6d44ddecc. It was fixed the same way as you suggest. I've tested the above patch and it does work for MIPS (preventing the PCICORE being built into the module). Tested-by: Matt Redfearn Thanks & sorry again for the breakage, Matt > > Thanks, > > Larry