Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933626AbcJLNZl (ORCPT ); Wed, 12 Oct 2016 09:25:41 -0400 Received: from paleale.coelho.fi ([176.9.41.70]:48444 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933740AbcJLNZE (ORCPT ); Wed, 12 Oct 2016 09:25:04 -0400 Message-ID: <1476277573.7776.30.camel@coelho.fi> From: Luca Coelho To: Paul Bolle , Chris Rorvick Cc: Intel Linux Wireless , Emmanuel Grumbach , Johannes Berg , Kalle Valo , Oren Givon , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 12 Oct 2016 16:06:13 +0300 In-Reply-To: <1476275787.9670.12.camel@tiscali.nl> References: <20161010071943.4717-1-chris@rorvick.com> <1476108164.5210.11.camel@coelho.fi> <1476180668.17022.21.camel@tiscali.nl> <1476275099.7776.28.camel@coelho.fi> <1476275787.9670.12.camel@tiscali.nl> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.0-2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 192.40.95.9 X-SA-Exim-Mail-From: luca@coelho.fi Subject: Re: [PATCH] iwlwifi: pcie: reduce "unsupported splx" to a warning X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on farmhouse.coelho.fi) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2364 Lines: 58 On Wed, 2016-10-12 at 14:36 +0200, Paul Bolle wrote: > On Wed, 2016-10-12 at 15:24 +0300, Luca Coelho wrote: > > Okay... Actually this is a structure in the BIOS and the actual method > > we call is SPLC.  The SPLC method may return one item from this table, > > or something entirely different, possible one of the three values > > depending on a configuration option or so. > > > > Can you to find and send me the actual SPLC method that we call, from > > your BIOS? > > > It seems Chris and I basically have identical setups, so I'll answer. Thanks! Yeah, I implied any of you two. ;) > There are 20 SPLC methods in the BIOS. The first reads > Method (SPLC, 0, Serialized) > { > DerefOf (SPLX [One]) [Zero] = DOM1 /* \DOM1 */ > DerefOf (SPLX [One]) [One] = LIM1 /* \LIM1 */ > DerefOf (SPLX [One]) [0x02] = TIM1 /* \TIM1 */ > DerefOf (SPLX [0x02]) [Zero] = DOM2 /* \DOM2 */ > DerefOf (SPLX [0x02]) [One] = LIM2 /* \LIM2 */ > DerefOf (SPLX [0x02]) [0x02] = TIM2 /* \TIM2 */ > DerefOf (SPLX [0x03]) [Zero] = DOM3 /* \DOM3 */ > DerefOf (SPLX [0x03]) [One] = LIM3 /* \LIM3 */ > DerefOf (SPLX [0x03]) [0x02] = TIM3 /* \TIM3 */ > Return (SPLX) /* \_SB_.PCI0.RP01.PXSX.SPLX */ > } > > The only difference is in the last comment. Ie, RP01 is increased until > it reaches RP20. (The machine has 20 PCI devices according to lspci. I > have no clue how to match that RPxx number to the 20 devices showing up > in lspci, sorry.) No problem, these BIOSes are usually quite cryptic. :) But what you're saying makes sense. They have added the SPLC method to all PCI root- ports (which is what RP stands for here). And, the values in the SPLX structs are being changed here, to DOM1, LIM1, TIM1 etc., before being returned.  This also matches your description that, at runtime, you got something different than the pure dump.  If you follow these DOM*, LIM*, TIM* symbols, you'll probably end up getting the values you observed at runtime. Basically this tells me that indeed 3 "structs" are being returned (as your dumps already showed).  And, according to the specs that I found (which unfortunately are confidential, so I can't share) this is correct and the driver code is broken. I'll send you a patch for testing soon. Thanks for all the help! -- Cheers, Luca.