mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-06 02:24:14 +08:00
drm/nouveau/kms/nv50-: Don't call HEAD_SET_CRC_CONTROL in head907d_mode()
This was a mistake that was present before, but never got noticed until we converted over to using nvidia's class headers for display programming. Luckily though it never caused any problems, since we always end up calling crc907d_set_src() after head907d_mode(). So, let's get rid of this. Signed-off-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
a708d8a7f6
commit
4a05a223e7
@ -322,7 +322,7 @@ head907d_mode(struct nv50_head *head, struct nv50_head_atom *asyh)
|
|||||||
const int i = head->base.index;
|
const int i = head->base.index;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if ((ret = PUSH_WAIT(push, 14)))
|
if ((ret = PUSH_WAIT(push, 13)))
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
PUSH_MTHD(push, NV907D, HEAD_SET_OVERSCAN_COLOR(i),
|
PUSH_MTHD(push, NV907D, HEAD_SET_OVERSCAN_COLOR(i),
|
||||||
@ -353,14 +353,7 @@ head907d_mode(struct nv50_head *head, struct nv50_head_atom *asyh)
|
|||||||
PUSH_MTHD(push, NV907D, HEAD_SET_DEFAULT_BASE_COLOR(i),
|
PUSH_MTHD(push, NV907D, HEAD_SET_DEFAULT_BASE_COLOR(i),
|
||||||
NVVAL(NV907D, HEAD_SET_DEFAULT_BASE_COLOR, RED, 0) |
|
NVVAL(NV907D, HEAD_SET_DEFAULT_BASE_COLOR, RED, 0) |
|
||||||
NVVAL(NV907D, HEAD_SET_DEFAULT_BASE_COLOR, GREEN, 0) |
|
NVVAL(NV907D, HEAD_SET_DEFAULT_BASE_COLOR, GREEN, 0) |
|
||||||
NVVAL(NV907D, HEAD_SET_DEFAULT_BASE_COLOR, BLUE, 0),
|
NVVAL(NV907D, HEAD_SET_DEFAULT_BASE_COLOR, BLUE, 0));
|
||||||
|
|
||||||
HEAD_SET_CRC_CONTROL(i),
|
|
||||||
NVDEF(NV907D, HEAD_SET_CRC_CONTROL, CONTROLLING_CHANNEL, CORE) |
|
|
||||||
NVDEF(NV907D, HEAD_SET_CRC_CONTROL, EXPECT_BUFFER_COLLAPSE, FALSE) |
|
|
||||||
NVDEF(NV907D, HEAD_SET_CRC_CONTROL, TIMESTAMP_MODE, FALSE) |
|
|
||||||
NVDEF(NV907D, HEAD_SET_CRC_CONTROL, PRIMARY_OUTPUT, NONE) |
|
|
||||||
NVDEF(NV907D, HEAD_SET_CRC_CONTROL, SECONDARY_OUTPUT, NONE));
|
|
||||||
|
|
||||||
PUSH_MTHD(push, NV907D, HEAD_SET_PIXEL_CLOCK_FREQUENCY(i),
|
PUSH_MTHD(push, NV907D, HEAD_SET_PIXEL_CLOCK_FREQUENCY(i),
|
||||||
NVVAL(NV907D, HEAD_SET_PIXEL_CLOCK_FREQUENCY, HERTZ, m->clock * 1000) |
|
NVVAL(NV907D, HEAD_SET_PIXEL_CLOCK_FREQUENCY, HERTZ, m->clock * 1000) |
|
||||||
|
Loading…
Reference in New Issue
Block a user