tree: git://people.freedesktop.org/~agd5f/linux.git drm-next-4.20-wip
head: 6abc0c8f8cf3e0c47707b01f027f9f9b9aa75646
commit: dd73043534515c1b8bf31f78f0e9945f5d95e0e6 [165/258] drm/amd/display:
implement DPMS DTN test v2
config: i386-randconfig-j3-201835 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout dd73043534515c1b8bf31f78f0e9945f5d95e0e6
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer_debug.c:
In function 'dcn10_get_hubbub_state':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer_debug.c:74:9:
>> warning: missing braces around initializer [-Wmissing-braces]
struct dcn_hubbub_wm wm = {0};
^
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer_debug.c:74:9:
warning: (near initialization for 'wm.sets') [-Wmissing-braces]
vim +74
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer_debug.c
70
71 static unsigned int dcn10_get_hubbub_state(struct dc *dc, char *pBuf,
unsigned int bufSize)
72 {
73 struct dc_context *dc_ctx = dc->ctx;
> 74 struct dcn_hubbub_wm wm = {0};
75 int i;
76
77 unsigned int chars_printed = 0;
78 unsigned int remaining_buffer = bufSize;
79
80 const uint32_t ref_clk_mhz =
dc_ctx->dc->res_pool->ref_clock_inKhz / 1000;
81 static const unsigned int frac = 1000;
82
83 hubbub1_wm_read_state(dc->res_pool->hubbub, &wm);
84
85 chars_printed = snprintf_count(pBuf, remaining_buffer,
"wm_set_index,data_urgent,pte_meta_urgent,sr_enter,sr_exit,dram_clk_chanage\n");
86 remaining_buffer -= chars_printed;
87 pBuf += chars_printed;
88
89 for (i = 0; i < 4; i++) {
90 struct dcn_hubbub_wm_set *s;
91
92 s = &wm.sets[i];
93
94 chars_printed = snprintf_count(pBuf, remaining_buffer,
"%x,%d.%03d,%d.%03d,%d.%03d,%d.%03d,%d.%03d\n",
95 s->wm_set,
96 (s->data_urgent * frac) / ref_clk_mhz / frac,
(s->data_urgent * frac) / ref_clk_mhz % frac,
97 (s->pte_meta_urgent * frac) / ref_clk_mhz /
frac, (s->pte_meta_urgent * frac) / ref_clk_mhz % frac,
98 (s->sr_enter * frac) / ref_clk_mhz / frac,
(s->sr_enter * frac) / ref_clk_mhz % frac,
99 (s->sr_exit * frac) / ref_clk_mhz / frac,
(s->sr_exit * frac) / ref_clk_mhz % frac,
100 (s->dram_clk_chanage * frac) / ref_clk_mhz /
frac, (s->dram_clk_chanage * frac) / ref_clk_mhz % frac);
101 remaining_buffer -= chars_printed;
102 pBuf += chars_printed;
103 }
104
105 return bufSize - remaining_buffer;
106 }
107
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip
_______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
