Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3398217ybp; Sun, 6 Oct 2019 11:03:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcxthA2xVxBfG9p2K17nEV/BI9uFo52u9mDCi336s23ykwBVO8O95EGCkXdYXcidJ9SofO X-Received: by 2002:a05:6402:1202:: with SMTP id c2mr24581971edw.190.1570385010372; Sun, 06 Oct 2019 11:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570385010; cv=none; d=google.com; s=arc-20160816; b=h6x78KPMKqmbWMCGIB61oyTPAJ+aP6RMW5T85c39fwN3YLDLmWefx2/TxAl85pMRfU wyJhWWaxq5eCihq1dm8ACeBeLhMYUuJxyD3U2/xnh9gNyKaDMaqh/7EsFWQg6+088Fll QGwQQE/GJHTk7sivBjDz7wvHpelNP7CrSvJmg43OR5A7IwaTX5nNgQa+W9U9f/y7hnpT k+ZPRVQfMLRTlZdS4QQlHRC7TLlVuG8UZxjbBQwFbr2KUX9O3HRU54UJ/e4yqs+2vK2u 5S8+34jHDF0apZ8Kn5juell30wtOIwYFNLzp6pSTgaqV0LXaNPomFKNKbUQ39ar2Qtzw Wl1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hRcpNZ264p39uEh+tE4C9zYQej1oLQwlkOthGP4dLXs=; b=YWJS6DzJ6ydTZq1BHhhQz55Tq2drdpVa6S5anHW04376lMiqQCbpKiuqs2Wke/x9d0 HFwiE0KiRWvClzkdn7gbtee/T8RIQW6M/CUVU7f3Qls0CSldZex1GyUCt3pu4NduVcJ9 VLEZSsg4jDPNusmWcePOdX1d0K1Ps9qdVGmddjspAFsMfL4mc9reKrjrtH1vSywfLIwG UhjNxd183UULpS16oNNJaO4h3sOD0ItoRKIMgERZPk/C0PmqtSpdY4ItJZ0ZOgbIEBAr sNBbqfN7hUAyPwuDaE8nyR5GfUOKlvW/ttQuzauTBXF5AKiNvyJ75SnrN8pUZ46Ym40p 0mXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qY4tri+o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si7397803edm.316.2019.10.06.11.03.06; Sun, 06 Oct 2019 11:03:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qY4tri+o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728781AbfJFR22 (ORCPT + 99 others); Sun, 6 Oct 2019 13:28:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:54106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728767AbfJFR21 (ORCPT ); Sun, 6 Oct 2019 13:28:27 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3318E217F9; Sun, 6 Oct 2019 17:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570382905; bh=8+Q61p1nO2TGy2yeA+CnpmaJNs2+Q8eCuUlUoLVx6KI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qY4tri+osMuad9EiyHj2KEPkz8BMpZFzc+571U9F8TcaP0m5xJK4LYRmfvYwARqtf XPm0C2pdFP0nfl9yBGvat/1RQMU9zq2lskrFy4RkhlZuAMYj1vYQnopdq38470oJwf bfI9iU9i2eJmPemZ59Ltd+SRw1BRLcqOJqDvfkds= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anthony Koo , Aric Cyr , Leo Li , Alex Deucher , Sasha Levin Subject: [PATCH 4.19 015/106] drm/amd/display: fix issue where 252-255 values are clipped Date: Sun, 6 Oct 2019 19:20:21 +0200 Message-Id: <20191006171131.463239141@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191006171124.641144086@linuxfoundation.org> References: <20191006171124.641144086@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anthony Koo [ Upstream commit 1cbcfc975164f397b449efb17f59d81a703090db ] [Why] When endpoint is at the boundary of a region, such as at 2^0=1 we find that the last segment has a sharp slope and some points are clipped at the top. [How] If end point is 1, which is exactly at the 2^0 region boundary, we need to program an additional region beyond this point. Signed-off-by: Anthony Koo Reviewed-by: Aric Cyr Acked-by: Leo Li Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c index 5d95a997fd9f9..f8904f73f57b0 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c @@ -292,9 +292,10 @@ bool cm_helper_translate_curve_to_hw_format( seg_distr[7] = 4; seg_distr[8] = 4; seg_distr[9] = 4; + seg_distr[10] = 1; region_start = -10; - region_end = 0; + region_end = 1; } for (i = region_end - region_start; i < MAX_REGIONS_NUMBER ; i++) -- 2.20.1