Hi Ville, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm-intel/for-linux-next] [also build test ERROR on v4.17-rc4 next-20180508] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Ville-Syrjala/drm-i915-Replace-vbt-edp-support-with-int_lvds_support/20180509-043426 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: i386-randconfig-x003-201818 (attached as .config) compiler: gcc-7 (Debian 7.3.0-16) 7.3.0 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): drivers/gpu//drm/i915/intel_bios.c: In function 'parse_edp': >> drivers/gpu//drm/i915/intel_bios.c:545:24: error: 'struct <anonymous>' has no member named 'support' if (dev_priv->vbt.edp.support) ^ vim +545 drivers/gpu//drm/i915/intel_bios.c 32f9d658a Zhenyu Wang 2009-07-24 534 6363ee6f4 Zhao Yakui 2009-11-24 535 static void dcb58a40c Jani Nikula 2015-05-12 536 parse_edp(struct drm_i915_private *dev_priv, const struct bdb_header *bdb) 500a8cc46 Zhenyu Wang 2010-01-13 537 { e8ef3b4c9 Jani Nikula 2015-04-15 538 const struct bdb_edp *edp; e8ef3b4c9 Jani Nikula 2015-04-15 539 const struct edp_power_seq *edp_pps; 058727ee8 Jani Nikula 2017-08-25 540 const struct edp_fast_link_params *edp_link_params; 3e845c7a4 Ville Syrjälä 2016-04-08 541 int panel_type = dev_priv->vbt.panel_type; 500a8cc46 Zhenyu Wang 2010-01-13 542 500a8cc46 Zhenyu Wang 2010-01-13 543 edp = find_section(bdb, BDB_EDP); 500a8cc46 Zhenyu Wang 2010-01-13 544 if (!edp) { 6aa23e658 Jani Nikula 2016-03-24 @545 if (dev_priv->vbt.edp.support) 9a30a61f3 Jani Nikula 2012-11-12 546 DRM_DEBUG_KMS("No eDP BDB found but eDP panel supported.\n"); 500a8cc46 Zhenyu Wang 2010-01-13 547 return; 500a8cc46 Zhenyu Wang 2010-01-13 548 } 500a8cc46 Zhenyu Wang 2010-01-13 549 500a8cc46 Zhenyu Wang 2010-01-13 550 switch ((edp->color_depth >> (panel_type * 2)) & 3) { 500a8cc46 Zhenyu Wang 2010-01-13 551 case EDP_18BPP: 6aa23e658 Jani Nikula 2016-03-24 552 dev_priv->vbt.edp.bpp = 18; 500a8cc46 Zhenyu Wang 2010-01-13 553 break; 500a8cc46 Zhenyu Wang 2010-01-13 554 case EDP_24BPP: 6aa23e658 Jani Nikula 2016-03-24 555 dev_priv->vbt.edp.bpp = 24; 500a8cc46 Zhenyu Wang 2010-01-13 556 break; 500a8cc46 Zhenyu Wang 2010-01-13 557 case EDP_30BPP: 6aa23e658 Jani Nikula 2016-03-24 558 dev_priv->vbt.edp.bpp = 30; 500a8cc46 Zhenyu Wang 2010-01-13 559 break; 500a8cc46 Zhenyu Wang 2010-01-13 560 } 5ceb0f9bb Chris Wilson 2010-09-24 561 9f0e7ff4b Jesse Barnes 2010-10-07 562 /* Get the eDP sequencing and link info */ 9f0e7ff4b Jesse Barnes 2010-10-07 563 edp_pps = &edp->power_seqs[panel_type]; 058727ee8 Jani Nikula 2017-08-25 564 edp_link_params = &edp->fast_link_params[panel_type]; 5ceb0f9bb Chris Wilson 2010-09-24 565 6aa23e658 Jani Nikula 2016-03-24 566 dev_priv->vbt.edp.pps = *edp_pps; 5ceb0f9bb Chris Wilson 2010-09-24 567 e13e2b2c4 Jani Nikula 2014-05-06 568 switch (edp_link_params->rate) { e13e2b2c4 Jani Nikula 2014-05-06 569 case EDP_RATE_1_62: 6aa23e658 Jani Nikula 2016-03-24 570 dev_priv->vbt.edp.rate = DP_LINK_BW_1_62; e13e2b2c4 Jani Nikula 2014-05-06 571 break; e13e2b2c4 Jani Nikula 2014-05-06 572 case EDP_RATE_2_7: 6aa23e658 Jani Nikula 2016-03-24 573 dev_priv->vbt.edp.rate = DP_LINK_BW_2_7; e13e2b2c4 Jani Nikula 2014-05-06 574 break; e13e2b2c4 Jani Nikula 2014-05-06 575 default: e13e2b2c4 Jani Nikula 2014-05-06 576 DRM_DEBUG_KMS("VBT has unknown eDP link rate value %u\n", e13e2b2c4 Jani Nikula 2014-05-06 577 edp_link_params->rate); e13e2b2c4 Jani Nikula 2014-05-06 578 break; e13e2b2c4 Jani Nikula 2014-05-06 579 } e13e2b2c4 Jani Nikula 2014-05-06 580 9f0e7ff4b Jesse Barnes 2010-10-07 581 switch (edp_link_params->lanes) { e13e2b2c4 Jani Nikula 2014-05-06 582 case EDP_LANE_1: 6aa23e658 Jani Nikula 2016-03-24 583 dev_priv->vbt.edp.lanes = 1; 9f0e7ff4b Jesse Barnes 2010-10-07 584 break; e13e2b2c4 Jani Nikula 2014-05-06 585 case EDP_LANE_2: 6aa23e658 Jani Nikula 2016-03-24 586 dev_priv->vbt.edp.lanes = 2; 9f0e7ff4b Jesse Barnes 2010-10-07 587 break; e13e2b2c4 Jani Nikula 2014-05-06 588 case EDP_LANE_4: 6aa23e658 Jani Nikula 2016-03-24 589 dev_priv->vbt.edp.lanes = 4; 9f0e7ff4b Jesse Barnes 2010-10-07 590 break; e13e2b2c4 Jani Nikula 2014-05-06 591 default: e13e2b2c4 Jani Nikula 2014-05-06 592 DRM_DEBUG_KMS("VBT has unknown eDP lane count value %u\n", e13e2b2c4 Jani Nikula 2014-05-06 593 edp_link_params->lanes); e13e2b2c4 Jani Nikula 2014-05-06 594 break; 9f0e7ff4b Jesse Barnes 2010-10-07 595 } e13e2b2c4 Jani Nikula 2014-05-06 596 9f0e7ff4b Jesse Barnes 2010-10-07 597 switch (edp_link_params->preemphasis) { e13e2b2c4 Jani Nikula 2014-05-06 598 case EDP_PREEMPHASIS_NONE: 6aa23e658 Jani Nikula 2016-03-24 599 dev_priv->vbt.edp.preemphasis = DP_TRAIN_PRE_EMPH_LEVEL_0; 9f0e7ff4b Jesse Barnes 2010-10-07 600 break; e13e2b2c4 Jani Nikula 2014-05-06 601 case EDP_PREEMPHASIS_3_5dB: 6aa23e658 Jani Nikula 2016-03-24 602 dev_priv->vbt.edp.preemphasis = DP_TRAIN_PRE_EMPH_LEVEL_1; 9f0e7ff4b Jesse Barnes 2010-10-07 603 break; e13e2b2c4 Jani Nikula 2014-05-06 604 case EDP_PREEMPHASIS_6dB: 6aa23e658 Jani Nikula 2016-03-24 605 dev_priv->vbt.edp.preemphasis = DP_TRAIN_PRE_EMPH_LEVEL_2; 9f0e7ff4b Jesse Barnes 2010-10-07 606 break; e13e2b2c4 Jani Nikula 2014-05-06 607 case EDP_PREEMPHASIS_9_5dB: 6aa23e658 Jani Nikula 2016-03-24 608 dev_priv->vbt.edp.preemphasis = DP_TRAIN_PRE_EMPH_LEVEL_3; 9f0e7ff4b Jesse Barnes 2010-10-07 609 break; e13e2b2c4 Jani Nikula 2014-05-06 610 default: e13e2b2c4 Jani Nikula 2014-05-06 611 DRM_DEBUG_KMS("VBT has unknown eDP pre-emphasis value %u\n", e13e2b2c4 Jani Nikula 2014-05-06 612 edp_link_params->preemphasis); e13e2b2c4 Jani Nikula 2014-05-06 613 break; 9f0e7ff4b Jesse Barnes 2010-10-07 614 } e13e2b2c4 Jani Nikula 2014-05-06 615 9f0e7ff4b Jesse Barnes 2010-10-07 616 switch (edp_link_params->vswing) { e13e2b2c4 Jani Nikula 2014-05-06 617 case EDP_VSWING_0_4V: 6aa23e658 Jani Nikula 2016-03-24 618 dev_priv->vbt.edp.vswing = DP_TRAIN_VOLTAGE_SWING_LEVEL_0; 9f0e7ff4b Jesse Barnes 2010-10-07 619 break; e13e2b2c4 Jani Nikula 2014-05-06 620 case EDP_VSWING_0_6V: 6aa23e658 Jani Nikula 2016-03-24 621 dev_priv->vbt.edp.vswing = DP_TRAIN_VOLTAGE_SWING_LEVEL_1; 9f0e7ff4b Jesse Barnes 2010-10-07 622 break; e13e2b2c4 Jani Nikula 2014-05-06 623 case EDP_VSWING_0_8V: 6aa23e658 Jani Nikula 2016-03-24 624 dev_priv->vbt.edp.vswing = DP_TRAIN_VOLTAGE_SWING_LEVEL_2; 9f0e7ff4b Jesse Barnes 2010-10-07 625 break; e13e2b2c4 Jani Nikula 2014-05-06 626 case EDP_VSWING_1_2V: 6aa23e658 Jani Nikula 2016-03-24 627 dev_priv->vbt.edp.vswing = DP_TRAIN_VOLTAGE_SWING_LEVEL_3; 9f0e7ff4b Jesse Barnes 2010-10-07 628 break; e13e2b2c4 Jani Nikula 2014-05-06 629 default: e13e2b2c4 Jani Nikula 2014-05-06 630 DRM_DEBUG_KMS("VBT has unknown eDP voltage swing value %u\n", e13e2b2c4 Jani Nikula 2014-05-06 631 edp_link_params->vswing); e13e2b2c4 Jani Nikula 2014-05-06 632 break; 9f0e7ff4b Jesse Barnes 2010-10-07 633 } 9a57f5bb7 Sonika Jindal 2015-02-25 634 9a57f5bb7 Sonika Jindal 2015-02-25 635 if (bdb->version >= 173) { 9a57f5bb7 Sonika Jindal 2015-02-25 636 uint8_t vswing; 9a57f5bb7 Sonika Jindal 2015-02-25 637 9e4580346 Sonika Jindal 2015-05-06 638 /* Don't read from VBT if module parameter has valid value*/ 4f044a88a Michal Wajdeczko 2017-09-19 639 if (i915_modparams.edp_vswing) { 4f044a88a Michal Wajdeczko 2017-09-19 640 dev_priv->vbt.edp.low_vswing = 4f044a88a Michal Wajdeczko 2017-09-19 641 i915_modparams.edp_vswing == 1; 9e4580346 Sonika Jindal 2015-05-06 642 } else { 9a57f5bb7 Sonika Jindal 2015-02-25 643 vswing = (edp->edp_vswing_preemph >> (panel_type * 4)) & 0xF; 06411f08b Jani Nikula 2016-03-24 644 dev_priv->vbt.edp.low_vswing = vswing == 0; 9e4580346 Sonika Jindal 2015-05-06 645 } 9a57f5bb7 Sonika Jindal 2015-02-25 646 } 500a8cc46 Zhenyu Wang 2010-01-13 647 } 500a8cc46 Zhenyu Wang 2010-01-13 648 :::::: The code at line 545 was first introduced by commit :::::: 6aa23e658d910342e8fedb23780638ddaed744d7 drm/i915: use a substruct in vbt data for edp :::::: TO: Jani Nikula <jani.nikula@xxxxxxxxx> :::::: CC: Jani Nikula <jani.nikula@xxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip
_______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx