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

2017-05-11 Thread Cheng, Collins
will be correctly assigned BAR resource and user can use PF device. -Collins Cheng -Original Message- From: 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.co

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

2017-05-11 Thread Cheng, Collins
some error handler to either just keep original BAR values set by system BIOS, or disable this device and log errors. -Collins Cheng -Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Friday, May 12, 2017 12:01 PM To: Cheng, Collins <collins.ch...@amd.

[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

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

2017-05-15 Thread Cheng, Collins
resource. I will send out dmesg log lspci info tomorrow. Thanks. -Collins Cheng -Original Message- 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.co

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

2017-05-16 Thread Cheng, Collins
- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Tuesday, May 16, 2017 1:54 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

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

2017-05-19 Thread Cheng, Collins
be better. My patch is trying to auto detect and bypass VF resource allocation. -Collins Cheng -Original Message- From: Alexander Duyck [mailto:alexander.du...@gmail.com] Sent: Friday, May 19, 2017 11:44 PM To: Alex Williamson <alex.william...@redhat.com> Cc: Cheng, Col

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

2017-05-20 Thread Cheng, Collins
-Collins Cheng -Original Message- From: Zytaruk, Kelly Sent: Saturday, May 20, 2017 6:28 PM To: Cheng, Collins <collins.ch...@amd.com>; Alexander Duyck <alexander.du...@gmail.com>; Alex Williamson <alex.william...@redhat.com> Cc: Bjorn Helgaas <bhelg...@go

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

2017-05-25 Thread Cheng, Collins
Hi Alex W, I don't need the kernel patch anymore. However it looks the kernel could be improved to handle this more gracefully when PCI resource allocation fail. Do you have a plan to improve it in kernel PCI code? -Collins Cheng -Original Message- From: Cheng, Collins Sent

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

2017-05-24 Thread Cheng, Collins
Hi Alex, How do you know "particular this system offers no 64-bit MMIO", from dmesg log? -Collins Cheng -Original Message----- From: Cheng, Collins Sent: Wednesday, May 24, 2017 4:56 PM To: 'Alex Williamson' <alex.william...@redhat.com> Cc: Alexander Duyck <alexan

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 <collins.ch...@amd.com> Cc: Alexander Duyck <alexander.du...@gmail.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-24 Thread Cheng, Collins
Hi Alex, How do you know "particular this system offers no 64-bit MMIO", from dmesg log? -Collins Cheng -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; li

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

2017-05-25 Thread Cheng, Collins
Hi Alex W, I don't need the kernel patch anymore. However it looks the kernel could be improved to handle this more gracefully when PCI resource allocation fail. Do you have a plan to improve it in kernel PCI code? -Collins Cheng -Original Message- From: Cheng, Collins Sent

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-19 Thread Cheng, Collins
be better. My patch is trying to auto detect and bypass VF resource allocation. -Collins Cheng -Original Message- From: Alexander Duyck [mailto:alexander.du...@gmail.com] Sent: Friday, May 19, 2017 11:44 PM To: Alex Williamson Cc: Cheng, Collins ; Bjorn Helgaas ; linux-...@vger.

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

2017-05-20 Thread Cheng, Collins
-Collins Cheng -Original Message- From: Zytaruk, Kelly Sent: Saturday, May 20, 2017 6:28 PM To: Cheng, Collins ; Alexander Duyck ; Alex Williamson Cc: Bjorn Helgaas ; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Deucher, Alexander ; Yinghai Lu Subject: RE: [PATCH] PCI: M

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

2017-05-15 Thread Cheng, Collins
resource. I will send out dmesg log lspci info tomorrow. Thanks. -Collins Cheng -Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Friday, May 12, 2017 10:43 PM To: Cheng, Collins Cc: Bjorn Helgaas ; linux-...@vger.kernel.org; linux-kernel

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

2017-05-16 Thread Cheng, Collins
- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Tuesday, May 16, 2017 1:54 AM 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

[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

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

2017-05-11 Thread Cheng, Collins
will be correctly assigned BAR resource and user can use PF device. -Collins Cheng -Original Message- From: Alex Williamson [mailto:alex.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

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

2017-05-11 Thread Cheng, Collins
some error handler to either just keep original BAR values set by system BIOS, or disable this device and log errors. -Collins Cheng -Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Friday, May 12, 2017 12:01 PM To: Cheng, Collins Cc: Bjorn Helgaas