Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp544822pxv; Thu, 15 Jul 2021 09:55:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwC+UbAwhAs2BG6u6uPxGrGZuHFtDAsEMr3trohJj7xKk8UrvtdXobiXcUCbB+4KCc+GWe2 X-Received: by 2002:a92:db4c:: with SMTP id w12mr3519691ilq.306.1626368149711; Thu, 15 Jul 2021 09:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626368149; cv=none; d=google.com; s=arc-20160816; b=u6zcxfxnQjpBZocjAQ2wYsVBp9CVstKkypbUOuIizjLUm4WQI2pb3DQqMLSYp9nlsi sEMdRYtbbPioQqgMF5e1y+9MCh7E7xezmFGRkrsF9kMyuLqhHnoVN32jJ4Ub5NJfbN7c JIUQhrfPxohqsu+ODlEpYrmufWVV7sihZV1PrbLGCQnNHi7+9xWIyEuNPj38/dIpiJBC 9E4QSOwlPAcxezIsOU6KD6Np0QwrxsoxMa6FVC6Rsj2Ac62HMrm4Jv+6hCKfGKOedSOT YoTQrVb1pM88AcGjXOVi2PYoGAdu2THk+h8MH5WC8GV8sUKqnodALQzWqFWfeSBsl9/v G/aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6c3zyMYOnu8f5V0VEW0ba+C0gb8GX+p+9qHajQ6vagk=; b=dzyilGhQuOTALbnjjkJYOcmtTMO4ut9ue2EbkGbysGRYnmi5zTu5LouvTfVfPuaRf0 Tz2F+QfgMNW/1iYqxETZVTV1buq3sUQA49uTDl9LFMozcAlKe58uLBI6u1fh6ns0ysnH quavZcgvwLNSMwIm7vlsBt7DgWyQZ/O3mJsieuUXuXOt2x9vhQtxU6yZE+hYLgWkFMho CzBhRDR5UsQGFtR8PC34Jg+D3H3bX69V0ujTmD6jVYQ4BM6/ruhEk5kv1BPfQr+yNEYL gWsnmW0lq7j7AQ4nttHRoFbKPjnT3ovkNLgG4UWvSidQmkA4Q/AY/Ky+7wcc2CQWWizy M3Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ky2omVb7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a24si7371505iol.81.2021.07.15.09.55.37; Thu, 15 Jul 2021 09:55:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ky2omVb7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229666AbhGOQNH (ORCPT + 99 others); Thu, 15 Jul 2021 12:13:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbhGOQNG (ORCPT ); Thu, 15 Jul 2021 12:13:06 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CF82C06175F for ; Thu, 15 Jul 2021 09:10:12 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id e11so4184655oii.9 for ; Thu, 15 Jul 2021 09:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6c3zyMYOnu8f5V0VEW0ba+C0gb8GX+p+9qHajQ6vagk=; b=ky2omVb78fdTIgHSoV6mfHrwbcyGxVRmdbWzk6MLrtzpjB+9YIZzxHelwVAd3LKV+Q UFfn8+ds8zYXDUtMiGqgx84L44tIlAoRVa+N5bFrVFkWHb75GKPrhJ4j8FuZ7lfPnKOH +pg0qcn15QrD/RSLV4aTO1lDeB0xnh/5ly3iKrn/mRauK97lweuJU1NKYaygj+qSpn4P nFMMlBRguz6x3SapXagwLr4hg4RS+OFC0uGStRO3oCLY6ybHJ2Hlk04guFvmj7UDN1av bhMM5oKTtP47NEZGDVj5rgKq+9RbecBcmQMnTknECHpOxLIagKTGkInBHvzAIK1G6Kow QbKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6c3zyMYOnu8f5V0VEW0ba+C0gb8GX+p+9qHajQ6vagk=; b=PnPJgptLSBORD+ESAGZeN+V1ygQ/6ApjdI+cbJvN95+8dFri7AkqQfV8y99pciGveE ngTvjM4n6+2mV5D8cOyaQL7u/nUzQb6y4C4NwJjl1psT5wrOr6og9y+iebl0mhAyxyXc Drwtw4aUfr7QPuzFcXAkynbgE7qyADHhFvb3bFX9BNiXJODj+CMNgeobBRGG1sAupPuD 2dJshBAvzZbuh99giYfafD3o8kIkLAe/dNfXt+KMgVo9sFiS+vHHLGcUcVnr7zhZl0zu JX0JgAD6pNJBBBP8sjiqJjPobf0LOnVFPgHekv6cnjsvl+cQbQJx2T6UAF8ORnI59dkN NcCg== X-Gm-Message-State: AOAM530vfFO1sVPasj3zPv3yQ3lI9bXbIudF2uthKx+5oStYuKaGS2dX AScte7Sfo6Dt0O9OXb8+Xl3i04jZL8zEmN3LDp4= X-Received: by 2002:aca:ac15:: with SMTP id v21mr8249953oie.5.1626365411814; Thu, 15 Jul 2021 09:10:11 -0700 (PDT) MIME-Version: 1.0 References: <20210714080652.113381-1-liviu@dudau.co.uk> In-Reply-To: <20210714080652.113381-1-liviu@dudau.co.uk> From: Alex Deucher Date: Thu, 15 Jul 2021 12:10:01 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: Fix 10bit 4K display on CIK GPUs To: Liviu Dudau Cc: Harry Wentland , Mario Kleiner , Leo Li , "Pan, Xinhui" , LKML , amd-gfx list , Maling list - DRI developers , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 14, 2021 at 4:15 AM Liviu Dudau wrote: > > Commit 72a7cf0aec0c ("drm/amd/display: Keep linebuffer pixel depth at > 30bpp for DCE-11.0.") doesn't seems to have fixed 10bit 4K rendering over > DisplayPort for CIK GPUs. On my machine with a HAWAII GPU I get a broken > image that looks like it has an effective resolution of 1920x1080 but > scaled up in an irregular way. Reverting the commit or applying this > patch fixes the problem on v5.14-rc1. > > Fixes: 72a7cf0aec0c ("drm/amd/display: Keep linebuffer pixel depth at 30bpp for DCE-11.0.") > Signed-off-by: Liviu Dudau Harry or Mario any ideas? Maybe we need finer grained DCE version checking? I don't remember all of the caveats of this stuff. DCE11 and older is getting to be pretty old at this point. I can just apply this if you don't have any insights. Alex > --- > drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c > index a6a67244a322e..1596f6b7fed7c 100644 > --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c > +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c > @@ -1062,7 +1062,7 @@ bool resource_build_scaling_params(struct pipe_ctx *pipe_ctx) > * so use only 30 bpp on DCE_VERSION_11_0. Testing with DCE 11.2 and 8.3 > * did not show such problems, so this seems to be the exception. > */ > - if (plane_state->ctx->dce_version != DCE_VERSION_11_0) > + if (plane_state->ctx->dce_version > DCE_VERSION_11_0) > pipe_ctx->plane_res.scl_data.lb_params.depth = LB_PIXEL_DEPTH_36BPP; > else > pipe_ctx->plane_res.scl_data.lb_params.depth = LB_PIXEL_DEPTH_30BPP; > -- > 2.32.0 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx