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
-Original Message- > 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 &g

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

2017-05-25 Thread 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 SR-IOV capable GPU working on the SR-IOV incapable plat

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 res

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

2017-05-24 Thread Cheng, Collins
el.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, Alex D, I just tried two options, one is enable "Above 4G Decoding" in BIOS setup menu, the oth

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
ure if kernel has error handler if PCI resource >> >> > allocation 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 thi

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; > >> I will send out 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: Che

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

2017-05-20 Thread Alexander Duyck
as; 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 in "not SR-IOV ca

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
her, 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. > &

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

2017-05-20 Thread Zytaruk, Kelly
nder 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

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
AR resource and user can use PF device. >> > >> > 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 n

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

2017-05-16 Thread Cheng, Collins
Sent: Friday, 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 inca

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

2017-05-15 Thread Alex Williamson
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 > > On Fri, 12 May 2017 04

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

2017-05-15 Thread Cheng, Collins
ernel@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

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

2017-05-12 Thread Alex Williamson
2017 12:01 PM > 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 > incapable platform > > On Fri, 12 May 2017 0

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

2017-05-11 Thread Cheng, Collins
rn 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, Collins" wrote: > Hi Williamson, > > GPU

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

2017-05-11 Thread Alex Williamson
william...@redhat.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-IO

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 capable

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

2017-05-11 Thread Cheng, Collins
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 02:50:32 + "Cheng, Collins" wrote: > Hi Helgaas, > > Some AMD GPUs have hardware support for graphics SR-IOV. > If t

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. > > T

[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 capabl