<div class="zcontentRow"><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;">> This one we could use. For some reason we hardcode it to<br></p><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;">> 1 now, which is correct for our use cases but I don't really<br style="white-space: normal;">> see a reason to hardcode it here. We are supposed to calculate<br style="white-space: normal;">> it correctly after all, and chv_crtc_clock_get() also just blindly<br style="white-space: normal;">> reads it out.<br style="white-space: normal;">> <br style="white-space: normal;">> >      bestm2_frac = crtc_state->dpll.m2 & 0x3fffff;<br style="white-space: normal;">> > -    bestm1 = crtc_state->dpll.m1;<br style="white-space: normal;">> <br style="white-space: normal;">> This one is a bit trickier since I don't think the spec even<br style="white-space: normal;">> gives us other values. But we could assert that it's correct.<br style="white-space: normal;">> <br style="white-space: normal;">> Some something along these lines I think would be best:<br style="white-space: normal;">> + drm_WARN_ON(&dev_priv->drm, bestm1 != 2);<br style="white-space: normal;">>   vlv_dpio_write(dev_priv, pipe, CHV_PLL_DW1(port),<br style="white-space: normal;">>                  DPIO_CHV_M1_DIV_BY_2 |<br style="white-space: normal;">> -          1 << DPIO_CHV_N_DIV_SHIFT);<br style="white-space: normal;">> +          bestn << DPIO_CHV_N_DIV_SHIFT);</p><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;"><br></p><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;">Thanks for your kind response ! Does that means the variable will be</p><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;">used by the hardware?if so as far as I see it, I don't seem to see the</p><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;">relevant interface.</p><p style="font-size:14px;font-family:微软雅黑,Microsoft YaHei;"><br></p></div>