From: Hannes Reinecke <hare@suse.de>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: Johannes Thumshirn <jthumshirn@suse.de>,
Bjorn Helgaas <bhelgaas@google.com>,
Yinghai Lu <yinghai@kernel.org>,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pci: Don't set RCB bit in LNKCTL if the upstream bridge hasn't
Date: Thu, 27 Oct 2016 14:06:39 +0200 [thread overview]
Message-ID: <1a6dc762-d04c-6dca-82e2-28cc8403618a@suse.de> (raw)
In-Reply-To: <20161027115152.GG17507@bhelgaas-glaptop.roam.corp.google.com>
On 10/27/2016 01:51 PM, Bjorn Helgaas wrote:
> On Thu, Oct 27, 2016 at 07:42:27AM +0200, Hannes Reinecke wrote:
>> On 10/26/2016 09:43 PM, Bjorn Helgaas wrote:
>>> Hi Johannes,
>>>
>>> On Wed, Oct 26, 2016 at 03:53:34PM +0200, Johannes Thumshirn wrote:
>>>> The Read Completion Boundary bit must only be set on a device or endpoint if
>>>> it is set on the upstream bridge.
>>>>
>>>> Fixes: 7a1562d4f ("PCI: Apply _HPX Link Control settings to all devices with a link")
>>>
>>> Can you please include a spec citation and a pointer to the bug report?
>>>
>> PCI Express Base Specification 1.1,
>> section 2.3.1.1. Data Return for Read Requests:
>>
>> The Read Completion Boundary (RCB) parameter determines the naturally
>> aligned address boundaries on which a Read Request may be serviced with
>> multiple Completions
>> o For a Root Complex, RCB is 64 bytes or 128 bytes
>> o This value is reported through a configuration register
>> (see Section 7.8)
>> Note: Bridges and Endpoints may implement a corresponding command
>> bit which may be set by system software to indicate the RCB value
>> for the Root Complex, allowing the Bridge/Endpoint to optimize its
>> behavior when the Root Complex’s RCB is 128 bytes.
>> o For all other system elements, RCB is 128 bytes
>>
>> In this particular case the _HPX method was causing the RCB for all PCI
>> devices to be set to 128 bytes, while the root bridge remained at 64 bytes.
>> While this is arguably a BIOS bug, earlier linux version (ie without the
>> mentioned patch) were running fine, so this is actually a regression.
>
> Thanks! I can fold this into the changelog.
>
> I assume you didn't mention a bugzilla or similar URL because this was
> found internally? I'd still like a clue about what this issue looks
> like to a user, because that helps connect future problem reports with
> this fix.
>
We do have a bugzilla report, but as this is a) on the SUSE internal
bugzilla and b) a customer issue I didn't include a reference here.
However, the symptoms are:
[ 8.648872] mlx4_core: Mellanox ConnectX core driver v2.2-1 (Feb, 2014)
[ 8.648889] mlx4_core: Initializing 0000:41:00.0
[ 10.068642] mlx4_core 0000:41:00.0: command 0xfff failed: fw status = 0x1
[ 10.068645] mlx4_core 0000:41:00.0: MAP_FA command failed, aborting
[ 10.068659] mlx4_core 0000:41:00.0: Failed to start FW, aborting
[ 10.068661] mlx4_core 0000:41:00.0: Failed to init fw, aborting.
[ 11.071536] mlx4_core: probe of 0000:41:00.0 failed with error -5
> And I suppose that since 7a1562d4f2d0 appeared in v3.18, we maybe
> should consider marking the fix for stable?
>
Yes, please.
Cheers,
Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
next prev parent reply other threads:[~2016-10-27 14:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-26 13:53 Johannes Thumshirn
2016-10-26 13:58 ` Hannes Reinecke
2016-10-26 19:43 ` Bjorn Helgaas
2016-10-27 5:42 ` Hannes Reinecke
2016-10-27 11:51 ` Bjorn Helgaas
2016-10-27 12:06 ` Hannes Reinecke [this message]
2016-10-27 12:25 ` Johannes Thumshirn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1a6dc762-d04c-6dca-82e2-28cc8403618a@suse.de \
--to=hare@suse.de \
--cc=bhelgaas@google.com \
--cc=helgaas@kernel.org \
--cc=jthumshirn@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=yinghai@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®