summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/amd
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-06-22 10:00:29 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-06-22 10:00:29 +0000
commitfa9d193357a905974b7c45634fb6293cddf622ec (patch)
treed5c009313fdd277d5860d3ec0980037099b2b892 /sys/dev/pci/drm/amd
parent49ee897cd6d056ed7f9f3f0e659ae062bddabb45 (diff)
drm/amd/display: Correct updating logic of dcn21's pipe VM flags
From Dale Zhao 21b7c6033823d3888a195a24271cbea34279dd62 in linux 5.7.y/5.7.5 2a28fe92220a116735ef45939b7edcfee83cc6b0 in mainline linux
Diffstat (limited to 'sys/dev/pci/drm/amd')
-rw-r--r--sys/dev/pci/drm/amd/display/dc/dcn21/dcn21_resource.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/dcn21/dcn21_resource.c b/sys/dev/pci/drm/amd/display/dc/dcn21/dcn21_resource.c
index a721bb401ef..6d1736cf5c1 100644
--- a/sys/dev/pci/drm/amd/display/dc/dcn21/dcn21_resource.c
+++ b/sys/dev/pci/drm/amd/display/dc/dcn21/dcn21_resource.c
@@ -1694,12 +1694,8 @@ static int dcn21_populate_dml_pipes_from_context(
{
uint32_t pipe_cnt = dcn20_populate_dml_pipes_from_context(dc, context, pipes);
int i;
- struct resource_context *res_ctx = &context->res_ctx;
- for (i = 0; i < dc->res_pool->pipe_count; i++) {
-
- if (!res_ctx->pipe_ctx[i].stream)
- continue;
+ for (i = 0; i < pipe_cnt; i++) {
pipes[i].pipe.src.hostvm = 1;
pipes[i].pipe.src.gpuvm = 1;