drm/nouveau/disp: modify OR allocation policy to account for HDA requirements
authorBen Skeggs <bskeggs@redhat.com>
Wed, 3 Jun 2020 01:43:23 +0000 (11:43 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 4 Jun 2020 04:23:21 +0000 (14:23 +1000)
commite6867ffa34340636252efe8e6b82be625c43d9b1
tree35ad51cd57535d72c8b69b64040f01f79a0c4187
parentf24b6ae19fa257ea9b10a9389d0b7046b3efd97c
drm/nouveau/disp: modify OR allocation policy to account for HDA requirements

Since GM200, SORs are no longer tied to a specific connector, and we
allocate them instead, with the assumption that all SORs are equally
capable.

However, there's a 1<->1 mapping between SOR and HDA pin widget, and
it turns out that it's possible for some widgets to be disabled...

In order to avoid picking a SOR without a valid pin widget, some new
rules need to be added.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c