RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-27 Thread Cheng, Collins
@amd.com>; Yinghai Lu <ying...@kernel.org> Subject: Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform On Fri, 26 May 2017 01:52:35 + "Cheng, Collins" <collins.ch...@amd.com> wrote: > Hi Alex W, > > I don't need the kernel pa

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-27 Thread Cheng, Collins
:52 PM To: Cheng, Collins Cc: Alexander Duyck ; Bjorn Helgaas ; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Deucher, Alexander ; Zytaruk, Kelly ; Yinghai Lu Subject: Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform On Fri, 26 May 2017 01:52:35

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-26 Thread Alex Williamson
> linux-kernel@vger.kernel.org; Deucher, Alexander <alexander.deuc...@amd.com>; > Zytaruk, Kelly <kelly.zyta...@amd.com>; Yinghai Lu <ying...@kernel.org> > Subject: RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV > incapable platform > > Hi Alex W, Al

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-26 Thread Alex Williamson
t; From: Cheng, Collins > Sent: Wednesday, May 24, 2017 4:56 PM > To: 'Alex Williamson' > Cc: Alexander Duyck ; Bjorn Helgaas > ; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; Deucher, Alexander ; > Zytaruk, Kelly ; Yinghai Lu > Subject: RE: [PATCH] PCI: Make S

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-25 Thread Cheng, Collins
aruk, Kelly <kelly.zyta...@amd.com>; Yinghai Lu <ying...@kernel.org> Subject: RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform Hi Alex W, Alex D, I just tried two options, one is enable "Above 4G Decoding" in BIOS setup menu, the other

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-25 Thread Cheng, Collins
: Wednesday, May 24, 2017 4:56 PM To: 'Alex Williamson' Cc: Alexander Duyck ; Bjorn Helgaas ; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Deucher, Alexander ; Zytaruk, Kelly ; Yinghai Lu Subject: RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform Hi Alex W

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-24 Thread Alex Williamson
On Wed, 24 May 2017 08:57:53 + "Cheng, Collins" wrote: > Hi Alex, > > How do you know "particular this system offers no 64-bit MMIO", from dmesg > log? >From this: > [0.891319] pci_bus :00: root bus resource [io 0x-0x0cf7 window] > [0.891321]

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-24 Thread Alex Williamson
On Wed, 24 May 2017 08:57:53 + "Cheng, Collins" wrote: > Hi Alex, > > How do you know "particular this system offers no 64-bit MMIO", from dmesg > log? >From this: > [0.891319] pci_bus :00: root bus resource [io 0x-0x0cf7 window] > [0.891321] pci_bus :00: root bus

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-24 Thread Cheng, Collins
@vger.kernel.org; Deucher, Alexander <alexander.deuc...@amd.com>; Zytaruk, Kelly <kelly.zyta...@amd.com>; Yinghai Lu <ying...@kernel.org> Subject: Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform On Tue, 23 May 2017 03:41:21 + "Cheng, Colli

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-24 Thread Cheng, Collins
nux-kernel@vger.kernel.org; Deucher, Alexander ; Zytaruk, Kelly ; Yinghai Lu Subject: RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform Hi Alex W, Alex D, I just tried two options, one is enable "Above 4G Decoding" in BIOS setup menu, the other is

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-23 Thread Alex Williamson
On Tue, 23 May 2017 03:41:21 + "Cheng, Collins" wrote: > Hi Alex, > > I owe you a dmesg log. Attachment are two log files. 1.txt is without > "pci=earlydump", 2.txt is with "pci=earlydump". The platform is an ASUS > Z170-A motherboard that doesn't support SR-IOV.

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-23 Thread Alex Williamson
On Tue, 23 May 2017 03:41:21 + "Cheng, Collins" wrote: > Hi Alex, > > I owe you a dmesg log. Attachment are two log files. 1.txt is without > "pci=earlydump", 2.txt is with "pci=earlydump". The platform is an ASUS > Z170-A motherboard that doesn't support SR-IOV. The graphics card is AMD

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-23 Thread Alexander Duyck
ck <alexander.du...@gmail.com> > Cc: Cheng, Collins <collins.ch...@amd.com>; Bjorn Helgaas > <bhelg...@google.com>; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; Deucher, Alexander <alexander.deuc...@amd.com>; > Zytaruk, Kelly <kelly.zyta

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-23 Thread Alexander Duyck
ocation failed. In this case, kernel cannot allocate enough resource >> >> > to PF. It should trigger some error handler to either just keep >> >> > original BAR values set by system BIOS, or disable this device and log >> >> > errors. >> >> >>

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-23 Thread Deucher, Alexander
> -Original Message- > From: Cheng, Collins > Sent: Thursday, May 11, 2017 10:51 PM > To: Bjorn Helgaas; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: Deucher, Alexander; Zytaruk, Kelly > Subject: [PATCH] PCI: Make SR-IOV capable GPU working on the

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-23 Thread Deucher, Alexander
> -Original Message- > From: Cheng, Collins > Sent: Thursday, May 11, 2017 10:51 PM > To: Bjorn Helgaas; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: Deucher, Alexander; Zytaruk, Kelly > Subject: [PATCH] PCI: Make SR-IOV capable GPU working on the

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-22 Thread Alex Williamson
t; >> Sent: Friday, May 12, 2017 10:43 PM > >> To: Cheng, Collins <collins.ch...@amd.com> > >> Cc: Bjorn Helgaas <bhelg...@google.com>; linux-...@vger.kernel.org; > >> linux-kernel@vger.kernel.org; Deucher, Alexander > >> <alexander.deuc...@

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-22 Thread Alex Williamson
ut dmesg log lspci info tomorrow. Thanks. > > > > Thanks, > > Alex > > > >> -Original Message- > >> From: Alex Williamson [mailto:alex.william...@redhat.com] > >> Sent: Friday, May 12, 2017 10:43 PM > >> To: Cheng, Collins > >> Cc:

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-20 Thread Alexander Duyck
>>Cc: Bjorn Helgaas; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; >>Deucher, Alexander; Yinghai Lu >>Subject: RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV >>incapable platform >> >>Hi Kelly, >> >>This issue also happens i

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-20 Thread Alexander Duyck
inux-...@vger.kernel.org; linux-kernel@vger.kernel.org; >>Deucher, Alexander; Yinghai Lu >>Subject: RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV >>incapable platform >> >>Hi Kelly, >> >>This issue also happens in "not SR-IOV capable

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-20 Thread Zytaruk, Kelly
rnel.org; linux-kernel@vger.kernel.org; >Deucher, Alexander; Yinghai Lu >Subject: RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV >incapable platform > >Hi Kelly, > >This issue also happens in "not SR-IOV capable" SBIOS. It seems some "not >SR-IO

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-20 Thread Zytaruk, Kelly
rnel.org; linux-kernel@vger.kernel.org; >Deucher, Alexander; Yinghai Lu >Subject: RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV >incapable platform > >Hi Kelly, > >This issue also happens in "not SR-IOV capable" SBIOS. It seems some "not >SR-IO

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-20 Thread Cheng, Collins
ogle.com>; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Deucher, Alexander <alexander.deuc...@amd.com>; Yinghai Lu <ying...@kernel.org> Subject: RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform >-Original Message- >From: Cheng, C

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-20 Thread Cheng, Collins
Alexander; Zytaruk, Kelly; >Yinghai Lu >Subject: RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV >incapable platform > >Hi Alex, > >Yes, I hope kernel can disable SR-IOV and related VF resource >allocation if the system BIOS is not SR-IOV capable. > >Ad

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-20 Thread Zytaruk, Kelly
allocating VF device resource, and keep PF device resource >valid >and functional if failed to allocate VF device resource. >>> >>> I will send out dmesg log lspci info tomorrow. Thanks. >> >> Thanks, >> Alex >> >>> -Original Message- &g

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-20 Thread Zytaruk, Kelly
Duyck [mailto:alexander.du...@gmail.com] >Sent: Friday, May 19, 2017 11:44 PM >To: Alex Williamson >Cc: Cheng, Collins ; Bjorn Helgaas >; linux-...@vger.kernel.org; linux- >ker...@vger.kernel.org; Deucher, Alexander ; >Zytaruk, Kelly ; Yinghai Lu >Subject: Re: [PATCH] PCI: Make SR-I

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-19 Thread Cheng, Collins
gt; From: Alex Williamson [mailto:alex.william...@redhat.com] >> Sent: Friday, May 12, 2017 10:43 PM >> To: Cheng, Collins <collins.ch...@amd.com> >> Cc: Bjorn Helgaas <bhelg...@google.com>; linux-...@vger.kernel.org; >> linux-kernel@vger.kernel.org; Deucher, Alexa

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-19 Thread Cheng, Collins
kernel.org; linux-kernel@vger.kernel.org; Deucher, Alexander ; Zytaruk, Kelly ; Yinghai Lu Subject: Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform On Mon, May 15, 2017 at 10:53 AM, Alex Williamson wrote: > On Mon, 15 May 2017 08:19:28 + > "C

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-19 Thread Alexander Duyck
day, May 12, 2017 10:43 PM >> To: Cheng, Collins <collins.ch...@amd.com> >> Cc: Bjorn Helgaas <bhelg...@google.com>; linux-...@vger.kernel.org; >> linux-kernel@vger.kernel.org; Deucher, Alexander >> <alexander.deuc...@amd.com>; Zytaruk, Kelly <kelly.zyt

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-19 Thread Alexander Duyck
t; > So the problem is that something bad happens when the kernel is trying >> > to reallocate resources in order to fulfill the requirements of the >> > VFs, leaving the PF resources incorrectly programmed? Why not just >> > fix that bug rather than creating spec

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-16 Thread Cheng, Collins
.com>; Zytaruk, Kelly <kelly.zyta...@amd.com>; Yinghai Lu <ying...@kernel.org> Subject: Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform On Mon, 15 May 2017 08:19:28 + "Cheng, Collins" <collins.ch...@amd.com> wrote: > Hi Willi

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-16 Thread Cheng, Collins
May 12, 2017 10:43 PM > To: Cheng, Collins > Cc: Bjorn Helgaas ; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; Deucher, Alexander > ; Zytaruk, Kelly ; > Yinghai Lu > Subject: Re: [PATCH] PCI: Make SR-IOV capable GPU working on the > SR-IOV incapable platform

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-15 Thread Alex Williamson
[mailto:alex.william...@redhat.com] > > Sent: Friday, May 12, 2017 12:01 PM > > To: Cheng, Collins <collins.ch...@amd.com> > > Cc: Bjorn Helgaas <bhelg...@google.com>; linux-...@vger.kernel.org; > > linux-kernel@vger.kernel.org; Deucher, Alexander > > <ale

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-15 Thread Alex Williamson
> Cc: Bjorn Helgaas ; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; Deucher, Alexander ; > Zytaruk, Kelly ; Yinghai Lu > Subject: Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV > incapable platform > > On Fri, 12 May 2017 04:51:43 +

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-15 Thread Cheng, Collins
m>; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Deucher, Alexander <alexander.deuc...@amd.com>; Zytaruk, Kelly <kelly.zyta...@amd.com>; Yinghai Lu <ying...@kernel.org> Subject: Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform On F

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-15 Thread Cheng, Collins
@vger.kernel.org; Deucher, Alexander ; Zytaruk, Kelly ; Yinghai Lu Subject: Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform On Fri, 12 May 2017 04:51:43 + "Cheng, Collins" wrote: > Hi Williamson, > > I verified the patch is working for both AMD SR-I

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-12 Thread Alex Williamson
17 12:01 PM > To: Cheng, Collins <collins.ch...@amd.com> > Cc: Bjorn Helgaas <bhelg...@google.com>; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; Deucher, Alexander <alexander.deuc...@amd.com>; > Zytaruk, Kelly <kelly.zyta...@amd.com> > Subject: Re:

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-12 Thread Alex Williamson
Collins > Cc: Bjorn Helgaas ; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; Deucher, Alexander ; > Zytaruk, Kelly > Subject: Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV > incapable platform > > On Fri, 12 May 2017 03:42:46 + > "Cheng

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-11 Thread Cheng, Collins
com> Cc: Bjorn Helgaas <bhelg...@google.com>; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Deucher, Alexander <alexander.deuc...@amd.com>; Zytaruk, Kelly <kelly.zyta...@amd.com> Subject: Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platf

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-11 Thread Cheng, Collins
; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Deucher, Alexander ; Zytaruk, Kelly Subject: Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform On Fri, 12 May 2017 03:42:46 + "Cheng, Collins" wrote: > Hi Williamson, > > GPU card need

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-11 Thread Alex Williamson
mailto:alex.william...@redhat.com] > Sent: Friday, May 12, 2017 11:21 AM > To: Cheng, Collins <collins.ch...@amd.com> > Cc: Bjorn Helgaas <bhelg...@google.com>; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; Deucher, Alexander <alexander.deuc...@amd.com>

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-11 Thread Alex Williamson
at.com] > Sent: Friday, May 12, 2017 11:21 AM > To: Cheng, Collins > Cc: Bjorn Helgaas ; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; Deucher, Alexander ; > Zytaruk, Kelly > Subject: Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV > incapab

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-11 Thread Zytaruk, Kelly
[PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV >incapable platform > >On Fri, 12 May 2017 02:50:32 + >"Cheng, Collins" <collins.ch...@amd.com> wrote: > >> Hi Helgaas, >> >> Some AMD GPUs have hardware support for graphics SR-IOV. >>

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-11 Thread Zytaruk, Kelly
[PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV >incapable platform > >On Fri, 12 May 2017 02:50:32 + >"Cheng, Collins" wrote: > >> Hi Helgaas, >> >> Some AMD GPUs have hardware support for graphics SR-IOV. >> If the SR-IOV capabl

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-11 Thread Cheng, Collins
m>; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Deucher, Alexander <alexander.deuc...@amd.com>; Zytaruk, Kelly <kelly.zyta...@amd.com> Subject: Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform On Fri, 12 May 2017 02:50:32 + "Cheng, Collins&q

RE: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-11 Thread Cheng, Collins
; Deucher, Alexander ; Zytaruk, Kelly Subject: Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform On Fri, 12 May 2017 02:50:32 + "Cheng, Collins" wrote: > Hi Helgaas, > > Some AMD GPUs have hardware support for graphics SR-IOV. > If the SR-IOV

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-11 Thread Alex Williamson
On Fri, 12 May 2017 02:50:32 + "Cheng, Collins" wrote: > Hi Helgaas, > > Some AMD GPUs have hardware support for graphics SR-IOV. > If the SR-IOV capable GPU is plugged into the SR-IOV incapable > platform. It would cause a problem on PCI resource allocation in >

Re: [PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-11 Thread Alex Williamson
On Fri, 12 May 2017 02:50:32 + "Cheng, Collins" wrote: > Hi Helgaas, > > Some AMD GPUs have hardware support for graphics SR-IOV. > If the SR-IOV capable GPU is plugged into the SR-IOV incapable > platform. It would cause a problem on PCI resource allocation in > current Linux kernel. > >

[PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-11 Thread Cheng, Collins
Hi Helgaas, Some AMD GPUs have hardware support for graphics SR-IOV. If the SR-IOV capable GPU is plugged into the SR-IOV incapable platform. It would cause a problem on PCI resource allocation in current Linux kernel. Therefore in order to allow the PF (Physical Function) device of SR-IOV

[PATCH] PCI: Make SR-IOV capable GPU working on the SR-IOV incapable platform

2017-05-11 Thread Cheng, Collins
Hi Helgaas, Some AMD GPUs have hardware support for graphics SR-IOV. If the SR-IOV capable GPU is plugged into the SR-IOV incapable platform. It would cause a problem on PCI resource allocation in current Linux kernel. Therefore in order to allow the PF (Physical Function) device of SR-IOV