[Intel-gfx] [RFCv2 DP-typeC 5/6] drm/i915/dp: Enable Upfront link training for typeC DP support on BXT
kbuild test robot
lkp at intel.com
Wed Oct 14 06:23:27 PDT 2015
Hi Durgadoss,
[auto build test WARNING on drm-intel/for-linux-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
url: https://github.com/0day-ci/linux/commits/Durgadoss-R/Add-support-for-USB-typeC-based-DP/20151014-193613
config: x86_64-randconfig-s5-10142016 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/mod_devicetable.h:11,
from include/linux/i2c.h:29,
from drivers/gpu/drm/i915/intel_dp.c:28:
drivers/gpu/drm/i915/intel_dp.c: In function 'intel_dp_upfront_link_train':
drivers/gpu/drm/i915/intel_dp.c:4803:19: error: 'struct intel_encoder' has no member named 'connectors_active'
if (intel_encoder->connectors_active && crtc && crtc->enabled) {
^
include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
if (__builtin_constant_p((cond)) ? !!(cond) : \
^
>> drivers/gpu/drm/i915/intel_dp.c:4803:2: note: in expansion of macro 'if'
if (intel_encoder->connectors_active && crtc && crtc->enabled) {
^
drivers/gpu/drm/i915/intel_dp.c:4803:19: error: 'struct intel_encoder' has no member named 'connectors_active'
if (intel_encoder->connectors_active && crtc && crtc->enabled) {
^
include/linux/compiler.h:147:40: note: in definition of macro '__trace_if'
if (__builtin_constant_p((cond)) ? !!(cond) : \
^
>> drivers/gpu/drm/i915/intel_dp.c:4803:2: note: in expansion of macro 'if'
if (intel_encoder->connectors_active && crtc && crtc->enabled) {
^
drivers/gpu/drm/i915/intel_dp.c:4803:19: error: 'struct intel_encoder' has no member named 'connectors_active'
if (intel_encoder->connectors_active && crtc && crtc->enabled) {
^
include/linux/compiler.h:158:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^
>> drivers/gpu/drm/i915/intel_dp.c:4803:2: note: in expansion of macro 'if'
if (intel_encoder->connectors_active && crtc && crtc->enabled) {
^
drivers/gpu/drm/i915/intel_dp.c:4806:3: error: implicit declaration of function 'intel_crtc_control' [-Werror=implicit-function-declaration]
intel_crtc_control(crtc, false);
^
cc1: some warnings being treated as errors
vim +/if +4803 drivers/gpu/drm/i915/intel_dp.c
4787
4788 static bool intel_dp_upfront_link_train(struct intel_dp *intel_dp)
4789 {
4790 struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp);
4791 struct drm_crtc *crtc = intel_dig_port->base.base.crtc;
4792 struct intel_encoder *intel_encoder = &intel_dig_port->base;
4793 struct drm_device *dev = intel_encoder->base.dev;
4794 struct intel_crtc *intel_crtc = crtc ? to_intel_crtc(crtc) : NULL;
4795
4796 /*
4797 * On hotplug cases, we call _upfront_link_train directly.
4798 * In connected boot scenarios (boot with {MIPI/eDP} + DP),
4799 * BIOS typically brings up DP. Hence, we disable the crtc
4800 * to do _upfront_link_training. It gets re-enabled as part of
4801 * subsequent modeset.
4802 */
> 4803 if (intel_encoder->connectors_active && crtc && crtc->enabled) {
4804 DRM_DEBUG_KMS("Disabling crtc %c for upfront link training\n",
4805 pipe_name(intel_crtc->pipe));
4806 intel_crtc_control(crtc, false);
4807 }
4808
4809 if (HAS_DDI(dev))
4810 return intel_ddi_upfront_link_train(dev, intel_dp, intel_crtc);
4811
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 24235 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20151014/7d233d55/attachment-0001.obj>
More information about the Intel-gfx
mailing list