igd.c (60ca584b8af0de525656f959991a440f8c191f12) | igd.c (64410a741d57b62f736562a89b89d0497b3033ce) |
---|---|
1/* 2 * IGD device quirks 3 * 4 * Copyright Red Hat, Inc. 2016 5 * 6 * Authors: 7 * Alex Williamson <alex.williamson@redhat.com> 8 * --- 464 unchanged lines hidden (view full) --- 473 474 gmch = vfio_pci_read_config(&vdev->pdev, IGD_GMCH, 4); 475 476 /* 477 * If IGD VGA Disable is clear (expected) and VGA is not already enabled, 478 * try to enable it. Probably shouldn't be using legacy mode without VGA, 479 * but also no point in us enabling VGA if disabled in hardware. 480 */ | 1/* 2 * IGD device quirks 3 * 4 * Copyright Red Hat, Inc. 2016 5 * 6 * Authors: 7 * Alex Williamson <alex.williamson@redhat.com> 8 * --- 464 unchanged lines hidden (view full) --- 473 474 gmch = vfio_pci_read_config(&vdev->pdev, IGD_GMCH, 4); 475 476 /* 477 * If IGD VGA Disable is clear (expected) and VGA is not already enabled, 478 * try to enable it. Probably shouldn't be using legacy mode without VGA, 479 * but also no point in us enabling VGA if disabled in hardware. 480 */ |
481 if (!(gmch & 0x2) && !vdev->vga && vfio_populate_vga(vdev, &err)) { | 481 if (!(gmch & 0x2) && !vdev->vga && !vfio_populate_vga(vdev, &err)) { |
482 error_reportf_err(err, VFIO_MSG_PREFIX, vdev->vbasedev.name); 483 error_report("IGD device %s failed to enable VGA access, " 484 "legacy mode disabled", vdev->vbasedev.name); 485 goto out; 486 } 487 488 /* Create our LPC/ISA bridge */ 489 ret = vfio_pci_igd_lpc_init(vdev, lpc); --- 128 unchanged lines hidden --- | 482 error_reportf_err(err, VFIO_MSG_PREFIX, vdev->vbasedev.name); 483 error_report("IGD device %s failed to enable VGA access, " 484 "legacy mode disabled", vdev->vbasedev.name); 485 goto out; 486 } 487 488 /* Create our LPC/ISA bridge */ 489 ret = vfio_pci_igd_lpc_init(vdev, lpc); --- 128 unchanged lines hidden --- |