mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: james puthukattukaran <james.puthukattukaran@oracle.com>
Cc: Yinghai Lu <yinghai@kernel.org>,
	Bjorn Helgaas <bhelgaas@google.com>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3] PCI: Workaround wrong flags completions for IDT switch
Date: Tue, 13 Jun 2017 17:14:51 -0500	[thread overview]
Message-ID: <20170613221451.GC7012@bhelgaas-glaptop.roam.corp.google.com> (raw)
In-Reply-To: <8e04aa73-8fe0-d1ac-208b-3f8fa4b04c4b@oracle.com>

On Tue, Jun 13, 2017 at 02:30:55PM -0400, james puthukattukaran wrote:
> On 6/13/2017 1:00 PM, Yinghai Lu wrote:
> >On Mon, Jun 12, 2017 at 2:48 PM, Bjorn Helgaas <helgaas@kernel.org> wrote:
> >>On Fri, Jun 09, 2017 at 04:16:17PM -0700, Yinghai Lu wrote:
> >>>From: James Puthukattukaran <james.puthukattukaran@oracle.com>
> >>>
> >>>The IDT switch incorrectly flags an ACS source violation on a read config
> >>>request to an end point device on the completion (IDT 89H32H8G3-YC,
> >>>errata #36) even though the PCI Express spec states that completions are
> >>>never affected by ACS source violation (PCI Spec 3.1, Section 6.12.1.1).
> >>Can you include a URL where this erratum is published?  If not, can
> >>you include the actual erratum text here?
> >Ok.
> 
> Here's the errata text
> ------------------------------------
> Item #36 - Downstream port applies ACS Source Validation to Completions
> “Section 6.12.1.1" of the PCI Express Base Specification 3.1 states
> that completions are never affected
> by ACS Source Validation. However, completions received by a
> downstream port of the PCIe switch from a device that has not yet
> captured a PCIe bus number are incorrectly dropped by ACS source
> validation by the switch downstream port.
> 
> Workaround: Issue a CfgWr1 to the downstream device before issuing
> the first CfgRd1 to the device.
> This allows the downstream device to capture its bus number; ACS
> source validation no longer stops
> completions from being forwarded by the downstream port. It has been
> observed that Microsoft Windows implements this workaround already;
> however, some versions of Linux and other operating systems may not.

This doesn't mention anything about disabling ACS.  Issuing a config
write to devices downstream of an IDT bridge sounds simpler than what
this patch does.  Why don't you do that?

This patch does write to PCI_VENDOR_ID, which purports to be part of
the workaround, but that happens *after* the first config read (which
happens inside __pci_bus_read_dev_vendor_id()).

Bjorn

  reply	other threads:[~2017-06-13 22:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-09 23:16 Yinghai Lu
2017-06-12 21:48 ` Bjorn Helgaas
2017-06-13 17:00   ` Yinghai Lu
2017-06-13 18:30     ` james puthukattukaran
2017-06-13 22:14       ` Bjorn Helgaas [this message]
2017-06-13 23:19         ` James Puthukattukaran
2017-06-14 11:32           ` Bjorn Helgaas
2017-06-14 18:15             ` James Puthukattukaran
2017-06-15 19:53               ` Bjorn Helgaas
2017-06-13 22:10     ` Bjorn Helgaas

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=20170613221451.GC7012@bhelgaas-glaptop.roam.corp.google.com \
    --to=helgaas@kernel.org \
    --cc=bhelgaas@google.com \
    --cc=james.puthukattukaran@oracle.com \
    --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®