tree:
git://anongit.freedesktop.org/drm/drm-intel drm-intel-next-queued
head: 1629224324b6cab6f7f96e839c9b57b74cfd8349
commit: 1629224324b6cab6f7f96e839c9b57b74cfd8349 [1/1] drm/i915/lmem: add the fake lmem
region
config: i386-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
git checkout 1629224324b6cab6f7f96e839c9b57b74cfd8349
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/i915_drv.c: In function 'i915_driver_probe':
> drivers/gpu/drm/i915/i915_drv.c:1491:35: error:
'i915_selftest' undeclared (first use in this function)
if
(INTEL_GEN(dev_priv) >= 9 && i915_selftest.live < 0 &&
^~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_drv.c:1491:35: note: each undeclared identifier is reported
only once for each function it appears in
vim +/i915_selftest +1491 drivers/gpu/drm/i915/i915_drv.c
1459
1460 /**
1461 * i915_driver_probe - setup chip and create an initial config
1462 * @pdev: PCI device
1463 * @ent: matching PCI ID entry
1464 *
1465 * The driver probe routine has to do several things:
1466 * - drive output discovery via intel_modeset_init()
1467 * - initialize the memory manager
1468 * - allocate initial config memory
1469 * - setup the DRM framebuffer with the allocated memory
1470 */
1471 int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1472 {
1473 const struct intel_device_info *match_info =
1474 (struct intel_device_info *)ent->driver_data;
1475 struct drm_i915_private *dev_priv;
1476 int ret;
1477
1478 dev_priv = i915_driver_create(pdev, ent);
1479 if (IS_ERR(dev_priv))
1480 return PTR_ERR(dev_priv);
1481
1482 /* Disable nuclear pageflip by default on pre-ILK */
1483 if (!i915_modparams.nuclear_pageflip && match_info->gen < 5)
1484 dev_priv->drm.driver_features &= ~DRIVER_ATOMIC;
1485
1486 /*
1487 * Check if we support fake LMEM -- for now we only unleash this for
1488 * the live selftests(test-and-exit).
1489 */
1490 if (IS_ENABLED(CONFIG_DRM_I915_UNSTABLE_FAKE_LMEM)) {
1491 if (INTEL_GEN(dev_priv) >= 9 && i915_selftest.live
< 0 &&
1492 i915_modparams.fake_lmem_start) {
1493 mkwrite_device_info(dev_priv)->memory_regions =
1494 REGION_SMEM | REGION_LMEM | REGION_STOLEN;
1495 mkwrite_device_info(dev_priv)->is_dgfx = true;
1496 GEM_BUG_ON(!HAS_LMEM(dev_priv));
1497 GEM_BUG_ON(!IS_DGFX(dev_priv));
1498 }
1499 }
1500
1501 ret = pci_enable_device(pdev);
1502 if (ret)
1503 goto out_fini;
1504
1505 ret = i915_driver_early_probe(dev_priv);
1506 if (ret < 0)
1507 goto out_pci_disable;
1508
1509 disable_rpm_wakeref_asserts(&dev_priv->runtime_pm);
1510
1511 i915_detect_vgpu(dev_priv);
1512
1513 ret = i915_driver_mmio_probe(dev_priv);
1514 if (ret < 0)
1515 goto out_runtime_pm_put;
1516
1517 ret = i915_driver_hw_probe(dev_priv);
1518 if (ret < 0)
1519 goto out_cleanup_mmio;
1520
1521 ret = i915_driver_modeset_probe(dev_priv);
1522 if (ret < 0)
1523 goto out_cleanup_hw;
1524
1525 i915_driver_register(dev_priv);
1526
1527 enable_rpm_wakeref_asserts(&dev_priv->runtime_pm);
1528
1529 i915_welcome_messages(dev_priv);
1530
1531 return 0;
1532
1533 out_cleanup_hw:
1534 i915_driver_hw_remove(dev_priv);
1535 intel_memory_regions_driver_release(dev_priv);
1536 i915_ggtt_driver_release(dev_priv);
1537 out_cleanup_mmio:
1538 i915_driver_mmio_release(dev_priv);
1539 out_runtime_pm_put:
1540 enable_rpm_wakeref_asserts(&dev_priv->runtime_pm);
1541 i915_driver_late_release(dev_priv);
1542 out_pci_disable:
1543 pci_disable_device(pdev);
1544 out_fini:
1545 i915_probe_error(dev_priv, "Device initialization failed (%d)\n", ret);
1546 i915_driver_destroy(dev_priv);
1547 return ret;
1548 }
1549
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation