Re: [PATCH 2/4] PCI/VGA: Deal only with PCI VGA class devices

2023-07-19 Thread Bjorn Helgaas
On Tue, Jul 18, 2023 at 06:14:00PM -0500, Bjorn Helgaas wrote: > On Fri, Jun 30, 2023 at 06:17:29PM +0800, Sui Jingfeng wrote: > > From: Sui Jingfeng > > > > VGAARB should only care about PCI VGA class devices (pdev->class == 0x0300) > > since only those devices might have VGA routed to them. >

Re: [PATCH 2/4] PCI/VGA: Deal only with PCI VGA class devices

2023-07-18 Thread Bjorn Helgaas
On Fri, Jun 30, 2023 at 06:17:29PM +0800, Sui Jingfeng wrote: > From: Sui Jingfeng > > VGAARB should only care about PCI VGA class devices (pdev->class == 0x0300) > since only those devices might have VGA routed to them. This is not actually a question of whether VGA addresses (mem

[PATCH 2/4] PCI/VGA: Deal only with PCI VGA class devices

2023-06-30 Thread Sui Jingfeng
From: Sui Jingfeng VGAARB should only care about PCI VGA class devices (pdev->class == 0x0300) since only those devices might have VGA routed to them.      PCI_CLASS_DISPLAY_3D and PCI_CLASS_DISPLAY_OTHER are used to annotate the render-only GPU. Render-only GPUs shouldn't decode the fixed VGA