[Intel-gfx] [RFCv2 DP-typeC 6/6] drm/i915/dp: Enable Upfront link training for typeC DP support on CHV
kbuild test robot
lkp at intel.com
Wed Oct 14 06:41:52 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 >>):
drivers/gpu/drm/i915/intel_display.c: In function 'chv_upfront_link_train':
drivers/gpu/drm/i915/intel_display.c:15741:27: error: 'struct intel_connector' has no member named 'new_encoder'
tmp_encoder = connector->new_encoder;
^
drivers/gpu/drm/i915/intel_display.c:15742:22: error: 'struct intel_encoder' has no member named 'new_crtc'
tmp_crtc = encoder->new_crtc;
^
drivers/gpu/drm/i915/intel_display.c:15745:13: error: 'struct intel_connector' has no member named 'new_encoder'
connector->new_encoder = encoder;
^
drivers/gpu/drm/i915/intel_display.c:15746:11: error: 'struct intel_encoder' has no member named 'new_crtc'
encoder->new_crtc = crtc;
^
drivers/gpu/drm/i915/intel_display.c:15767:24: error: 'struct intel_dp' has no member named 'link_bw'
tmp_link_bw = intel_dp->link_bw;
^
drivers/gpu/drm/i915/intel_display.c:15770:10: error: 'struct intel_dp' has no member named 'link_bw'
intel_dp->link_bw = intel_dp->dpcd[DP_MAX_LINK_RATE];
^
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/list.h:4,
from include/linux/dmi.h:4,
from drivers/gpu/drm/i915/intel_display.c:27:
drivers/gpu/drm/i915/intel_display.c:15775:14: error: 'struct intel_dp' has no member named 'link_bw'
if (intel_dp->link_bw == DP_LINK_BW_5_4)
^
include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
if (__builtin_constant_p((cond)) ? !!(cond) : \
^
>> drivers/gpu/drm/i915/intel_display.c:15775:2: note: in expansion of macro 'if'
if (intel_dp->link_bw == DP_LINK_BW_5_4)
^
drivers/gpu/drm/i915/intel_display.c:15775:14: error: 'struct intel_dp' has no member named 'link_bw'
if (intel_dp->link_bw == DP_LINK_BW_5_4)
^
include/linux/compiler.h:147:40: note: in definition of macro '__trace_if'
if (__builtin_constant_p((cond)) ? !!(cond) : \
^
>> drivers/gpu/drm/i915/intel_display.c:15775:2: note: in expansion of macro 'if'
if (intel_dp->link_bw == DP_LINK_BW_5_4)
^
drivers/gpu/drm/i915/intel_display.c:15775:14: error: 'struct intel_dp' has no member named 'link_bw'
if (intel_dp->link_bw == DP_LINK_BW_5_4)
^
include/linux/compiler.h:158:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^
>> drivers/gpu/drm/i915/intel_display.c:15775:2: note: in expansion of macro 'if'
if (intel_dp->link_bw == DP_LINK_BW_5_4)
^
drivers/gpu/drm/i915/intel_display.c:15776:11: error: 'struct intel_dp' has no member named 'link_bw'
intel_dp->link_bw = DP_LINK_BW_2_7;
^
drivers/gpu/drm/i915/intel_display.c:15780:15: error: request for member 'port_clock' in something not a structure or union
crtc->config.port_clock =
^
drivers/gpu/drm/i915/intel_display.c:15781:41: error: 'struct intel_dp' has no member named 'link_bw'
drm_dp_bw_code_to_link_rate(intel_dp->link_bw);
^
drivers/gpu/drm/i915/intel_display.c:15784:3: error: implicit declaration of function 'intel_dp_set_clock' [-Werror=implicit-function-declaration]
intel_dp_set_clock(encoder, &crtc->config, intel_dp->link_bw);
^
drivers/gpu/drm/i915/intel_display.c:15784:54: error: 'struct intel_dp' has no member named 'link_bw'
intel_dp_set_clock(encoder, &crtc->config, intel_dp->link_bw);
^
drivers/gpu/drm/i915/intel_display.c:15785:3: error: implicit declaration of function 'chv_update_pll' [-Werror=implicit-function-declaration]
chv_update_pll(crtc);
^
drivers/gpu/drm/i915/intel_display.c:15787:3: error: too few arguments to function 'chv_enable_pll'
chv_enable_pll(crtc);
^
drivers/gpu/drm/i915/intel_display.c:1636:13: note: declared here
static void chv_enable_pll(struct intel_crtc *crtc,
^
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/list.h:4,
from include/linux/dmi.h:4,
from drivers/gpu/drm/i915/intel_display.c:27:
drivers/gpu/drm/i915/intel_display.c:15792:15: error: 'struct intel_dp' has no member named 'has_fast_link_train'
if (intel_dp->has_fast_link_train) {
^
include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
if (__builtin_constant_p((cond)) ? !!(cond) : \
^
drivers/gpu/drm/i915/intel_display.c:15792:3: note: in expansion of macro 'if'
if (intel_dp->has_fast_link_train) {
^
drivers/gpu/drm/i915/intel_display.c:15792:15: error: 'struct intel_dp' has no member named 'has_fast_link_train'
if (intel_dp->has_fast_link_train) {
^
include/linux/compiler.h:147:40: note: in definition of macro '__trace_if'
if (__builtin_constant_p((cond)) ? !!(cond) : \
^
drivers/gpu/drm/i915/intel_display.c:15792:3: note: in expansion of macro 'if'
if (intel_dp->has_fast_link_train) {
^
drivers/gpu/drm/i915/intel_display.c:15792:15: error: 'struct intel_dp' has no member named 'has_fast_link_train'
if (intel_dp->has_fast_link_train) {
^
include/linux/compiler.h:158:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^
drivers/gpu/drm/i915/intel_display.c:15792:3: note: in expansion of macro 'if'
if (intel_dp->has_fast_link_train) {
^
In file included from drivers/gpu/drm/i915/intel_display.c:35:0:
drivers/gpu/drm/i915/intel_display.c:15810:35: error: 'struct intel_dp' has no member named 'link_bw'
intel_dp->lane_count, intel_dp->link_bw);
^
include/drm/drmP.h:208:41: note: in definition of macro 'DRM_DEBUG_KMS'
drm_ut_debug_printk(__func__, fmt, ##args); \
^
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/list.h:4,
from include/linux/dmi.h:4,
from drivers/gpu/drm/i915/intel_display.c:27:
drivers/gpu/drm/i915/intel_display.c:15817:22: error: 'struct intel_dp' has no member named 'link_bw'
} else if (intel_dp->link_bw == DP_LINK_BW_2_7) {
^
include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
if (__builtin_constant_p((cond)) ? !!(cond) : \
^
drivers/gpu/drm/i915/intel_display.c:15817:10: note: in expansion of macro 'if'
} else if (intel_dp->link_bw == DP_LINK_BW_2_7) {
^
drivers/gpu/drm/i915/intel_display.c:15817:22: error: 'struct intel_dp' has no member named 'link_bw'
} else if (intel_dp->link_bw == DP_LINK_BW_2_7) {
^
include/linux/compiler.h:147:40: note: in definition of macro '__trace_if'
if (__builtin_constant_p((cond)) ? !!(cond) : \
^
drivers/gpu/drm/i915/intel_display.c:15817:10: note: in expansion of macro 'if'
} else if (intel_dp->link_bw == DP_LINK_BW_2_7) {
^
drivers/gpu/drm/i915/intel_display.c:15817:22: error: 'struct intel_dp' has no member named 'link_bw'
} else if (intel_dp->link_bw == DP_LINK_BW_2_7) {
^
include/linux/compiler.h:158:16: note: in definition of macro '__trace_if'
______r = !!(cond); \
^
vim +/if +15775 drivers/gpu/drm/i915/intel_display.c
15759 start_link_train:
15760
15761 DRM_DEBUG_KMS("upfront link training on pipe:%c\n",
15762 pipe_name(crtc->pipe));
15763 found = false;
15764
15765 /* Save the existing lane_count and link_bw values */
15766 tmp_lane_count = intel_dp->lane_count;
15767 tmp_link_bw = intel_dp->link_bw;
15768
15769 /* Initialize with Max Link rate & lane count supported by panel */
15770 intel_dp->link_bw = intel_dp->dpcd[DP_MAX_LINK_RATE];
15771 intel_dp->lane_count = intel_dp->dpcd[DP_MAX_LANE_COUNT] &
15772 DP_MAX_LANE_COUNT_MASK;
15773
15774 /* CHV does not support HBR2 */
15775 if (intel_dp->link_bw == DP_LINK_BW_5_4)
15776 intel_dp->link_bw = DP_LINK_BW_2_7;
15777
15778 do {
15779 /* Find port clock from link_bw */
15780 crtc->config.port_clock =
15781 drm_dp_bw_code_to_link_rate(intel_dp->link_bw);
15782
15783 /* Enable PLL followed by port */
---
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/990e0bfb/attachment-0001.obj>
More information about the Intel-gfx
mailing list