All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gavin Shan <gwshan@linux.vnet.ibm.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: "Yinghai Lu" <yinghai@kernel.org>,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	"Alexey Voronkov" <zermond@gmail.com>,
	"David Airlie" <airlied@linux.ie>,
	"Saifi Khan" <saifi.khan@datasynergy.org>,
	"Alex Deucher" <alexdeucher@gmail.com>,
	"Marek Kordík" <kordikmarek@gmail.com>,
	"Gavin Shan" <gwshan@linux.vnet.ibm.com>,
	weiyang@linux.vnet.ibm.com
Subject: Re: Regression: bug 85491: radeon 0000:01:00.0: Fatal error during GPU init
Date: Mon, 8 Dec 2014 11:47:35 +1100	[thread overview]
Message-ID: <20141208004735.GA15508@shangw> (raw)
In-Reply-To: <1417777177.4741.69.camel@kernel.crashing.org>

On Fri, Dec 05, 2014 at 09:59:37PM +1100, Benjamin Herrenschmidt wrote:
>On Thu, 2014-12-04 at 14:06 -0800, Yinghai Lu wrote:
>> > I'm considering reverting 5b28541552ef (assuming that would fix this radeon
>> > regression) because I think the radeon problem is worse than the 74151
>> > problem and I think we can solve 74151 in a different way.
>> >

Commit 5b28541552ef affects PowerPC PCI greatly. Without the commit, those
adapters requesting large BAR would fail and can't work properly. Another
related thing is SRIOV support. Currently, VF BARs are covered by 64-bits
prefetch windows and we expect VF BARs allocated from 64-bits prefetchable
windows. If we're going to revert commit 5b28541552ef, too much things are
affected. I think it's more reasonable to find a solution for bug#85491 if
that's not too hard.

Looking at bug#85491 and the logs from Marek, BIOS didn't configure windows
and BARs for PCI bridge and adapters properly, which forces the kernel to
reassign those BARs/windows failing to be claimed previously. If I'm correct,
we need a way to reassign the bridge's non-prefetchable window and with it,
find_free_bus_resource() needn't check on "!r->parent".

Another way to fix it would be to returning error from pbus_size_mem() for
64-bits-prefetchable case so that prefetchable BARs will be assigned from
prefetchable windows (64-bits flag will be ignored). I guss Yinghai will
have more comments on this.

>> > Guo, Ben, this would affect you!  It's too late to revert 5b28541552ef for
>> > v3.18, but we really need to work on this for v3.19.
>> >
>> > FOr 85491 (the radeon problem), we might be able to work around it by
>> > fixing the bridge window, but I'm not sure we could even get that done
>> > before v3.18.  I'll work on that today.
>> 
>> shrink bridge mmio pref range instead of reject it?
>
>Guo unfortunately doesn't work for us anymore. Gavin, Richard, can
>you handle this please ?
>

Thanks,
Gavin

>Cheers,
>Ben.
>
>


  reply	other threads:[~2014-12-08  0:47 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-03 22:15 Regression: bug 85491: radeon 0000:01:00.0: Fatal error during GPU init Bjorn Helgaas
2014-12-04  0:51 ` Bjorn Helgaas
2014-12-04  1:44   ` Yinghai Lu
2014-12-04 17:34     ` Bjorn Helgaas
2014-12-04 22:06       ` Yinghai Lu
2014-12-05 10:59         ` Benjamin Herrenschmidt
2014-12-08  0:47           ` Gavin Shan [this message]
2014-12-08 21:04             ` Bjorn Helgaas
2014-12-08 21:38               ` Benjamin Herrenschmidt
2014-12-08 21:46                 ` Bjorn Helgaas
2014-12-08 23:38                   ` Gavin Shan
2014-12-09  0:21                     ` Yinghai Lu
2014-12-19 22:17                       ` Bjorn Helgaas
2014-12-20  0:23                       ` Bjorn Helgaas
2014-12-20  0:34                         ` Yinghai Lu
2014-12-20  0:56                           ` Bjorn Helgaas
2014-12-20  1:33                             ` Yinghai Lu
2014-12-23  1:53                               ` Yinghai Lu
2014-12-23 21:41                                 ` Bjorn Helgaas
2014-12-24  2:29                                   ` Yinghai Lu
2014-12-24 17:26                                     ` Bjorn Helgaas
2014-12-24 20:29                                       ` Yinghai Lu
2014-12-25 15:46                                     ` Marek Kordík
2014-12-25 21:12                                       ` Yinghai Lu
2015-01-09 18:45                                         ` Bjorn Helgaas
2015-01-09 20:38                                           ` Yinghai Lu
2014-12-22  8:17                           ` Wei Yang
2014-12-22 19:50                             ` Bjorn Helgaas
2014-12-04  1:38 ` Yinghai Lu
2014-12-04  1:41   ` Yinghai Lu
2014-12-04 16:15     ` Bjorn Helgaas
2014-12-04 22:15       ` Yinghai Lu
2014-12-04 22:25         ` Bjorn Helgaas
2014-12-04  2:01 ` Yinghai Lu
2014-12-04 16:37   ` Bjorn Helgaas
2014-12-04 22:24     ` Yinghai Lu
2014-12-05  0:24       ` Yinghai Lu

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=20141208004735.GA15508@shangw \
    --to=gwshan@linux.vnet.ibm.com \
    --cc=airlied@linux.ie \
    --cc=alexdeucher@gmail.com \
    --cc=benh@kernel.crashing.org \
    --cc=bhelgaas@google.com \
    --cc=kordikmarek@gmail.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=saifi.khan@datasynergy.org \
    --cc=weiyang@linux.vnet.ibm.com \
    --cc=yinghai@kernel.org \
    --cc=zermond@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.