Ignore:
Timestamp:
Apr 14, 2017, 9:41:36 PM (10 days ago)
Author:
brainslayer
Message:

kernel update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/drivers/gpu/drm/mga/mga_dma.c

    r31574 r31859  
    393393        int ret;
    394394
     395        /* There are PCI versions of the G450.  These cards have the
     396         * same PCI ID as the AGP G450, but have an additional PCI-to-PCI
     397         * bridge chip.  We detect these cards, which are not currently
     398         * supported by this driver, by looking at the device ID of the
     399         * bus the "card" is on.  If vendor is 0x3388 (Hint Corp) and the
     400         * device is 0x0021 (HB6 Universal PCI-PCI bridge), we reject the
     401         * device.
     402         */
     403        if ((dev->pdev->device == 0x0525) && dev->pdev->bus->self
     404            && (dev->pdev->bus->self->vendor == 0x3388)
     405            && (dev->pdev->bus->self->device == 0x0021)
     406            && dev->agp) {
     407                /* FIXME: This should be quirked in the pci core, but oh well
     408                 * the hw probably stopped existing. */
     409                arch_phys_wc_del(dev->agp->agp_mtrr);
     410                kfree(dev->agp);
     411                dev->agp = NULL;
     412        }
    395413        dev_priv = kzalloc(sizeof(drm_mga_private_t), GFP_KERNEL);
    396414        if (!dev_priv)
     
    699717                                drm_mga_dma_bootstrap_t *dma_bs)
    700718{
    701         const int is_agp = (dma_bs->agp_mode != 0) && drm_pci_device_is_agp(dev);
     719        const int is_agp = (dma_bs->agp_mode != 0) && dev->agp;
    702720        int err;
    703721        drm_mga_private_t *const dev_priv =
Note: See TracChangeset for help on using the changeset viewer.