Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3392650ybp; Sun, 6 Oct 2019 10:56:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqztXK4ORRFBtm6IXXqUsnRSyyggOIY3S+NmVmGiU3gWxMUrnpVXZynVka+jzQu/aKFNZBTC X-Received: by 2002:a50:ce53:: with SMTP id k19mr25545747edj.2.1570384609205; Sun, 06 Oct 2019 10:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570384609; cv=none; d=google.com; s=arc-20160816; b=lqg7sE9ZXshfIxwl0dnzeC5rOrxMepZ4rtWOgE+FpB7cSyOsbD9fFhvlDYnlx71HUa synh2VAV+gi8nsw0ELJ8Pl6RB1dpqNKBbY7K4CMa7huyn2DsySD29sNrqk22fA6I2+Gf uVJQ/ezYnsnilTFLTGHlxj0zdiKnDaAfh09DRrbB3ZxfGUZpLlRXTPNtDfpVpXz0VQ7X qDQFtCdSZcFJaNGXPt4V+L9cKfwkcGTSULfaPzZbF+X84Ey8XCB6xoq7rcgMTh8aSccN GHpEJ0XoPqOflD/g2zBUbh/rh8cy8c4ZCNMoTiksw3LDL2ZNKOSDs1MF34k2s7f6qWpD fcpA== 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=4Pjw3Hxqgc+ibGkjKuT1+CXYz22X89ot3LQw+Y3lIzo=; b=l189K8MxZT0YQH2IiuiM1hnkrfDoPXBP0y9Ss85QLkUE28rUwQLl/l5a6yeYmsEgyQ FjLMfzjmMQ8v72TaC2kgvA3TKr1Iv0o9Mcsaw3njEwpoGZnZgc1bzhEZqQYuxUynjQww r1kPSWKiyKrOiTagn/VaSfzlZ9GRV2ayZVVhJa2B/3RGqFZxYPq1cDZv0rBozNpwBIwy 0fuNWzGWhyS63B1JQn9RRNbbGZxjpxyi36aXQFW+Jrlj3EVXe0WW4fQZWuguTWseA1rK QPhAXy0TL4nrjbXCtilWuXm9/gwbLRY+l3V8kwEd6eYtY5Db3kXtsb4q7FCn3IyqU4qF 2KnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wJ3gAGAg; 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 be13si6807774edb.362.2019.10.06.10.56.25; Sun, 06 Oct 2019 10:56:49 -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=wJ3gAGAg; 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 S1729519AbfJFRfg (ORCPT + 99 others); Sun, 6 Oct 2019 13:35:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:34122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730139AbfJFRf1 (ORCPT ); Sun, 6 Oct 2019 13:35: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 034FC2080F; Sun, 6 Oct 2019 17:35:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570383327; bh=GMQqub5xp0/4XAi4fDZg0COcqBv/GhT/CjZ1rK/+jCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wJ3gAGAgWdZI3via41frmM/MVxcBcF/eIBPUy7S/FrKVCa8/bLlq/ZD8djwWio7xS mh2w3nlP3t2XKQ5IWFQz4B0otjjLSEEXm2RQ1leETSnuukBNBHMLeMJeWVdkIpZQPO Otk8yw3ftsmM4QoWYdC9JttxQahkSW9YnlQH9ao4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Skeggs , Sasha Levin Subject: [PATCH 5.2 063/137] drm/nouveau/kms/tu102-: disable input lut when input is already FP16 Date: Sun, 6 Oct 2019 19:20:47 +0200 Message-Id: <20191006171213.981899559@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191006171209.403038733@linuxfoundation.org> References: <20191006171209.403038733@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: Ben Skeggs [ Upstream commit 1e339ab2ac3c769c1b06b9fb7d532f8495ebc56d ] On Turing, an input LUT is required to transform inputs in fixed-point formats to FP16 for the internal display pipe. We provide an identity mapping whenever a window is enabled for this reason. HW has error checks to ensure when the input is already FP16, that the input LUT is also disabled. Signed-off-by: Ben Skeggs Signed-off-by: Sasha Levin --- drivers/gpu/drm/nouveau/dispnv50/wndw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/dispnv50/wndw.c b/drivers/gpu/drm/nouveau/dispnv50/wndw.c index 283ff690350ea..50303ec194bbc 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/wndw.c +++ b/drivers/gpu/drm/nouveau/dispnv50/wndw.c @@ -320,7 +320,9 @@ nv50_wndw_atomic_check_lut(struct nv50_wndw *wndw, asyh->wndw.olut &= ~BIT(wndw->id); } - if (!ilut && wndw->func->ilut_identity) { + if (!ilut && wndw->func->ilut_identity && + asyw->state.fb->format->format != DRM_FORMAT_XBGR16161616F && + asyw->state.fb->format->format != DRM_FORMAT_ABGR16161616F) { static struct drm_property_blob dummy = {}; ilut = &dummy; } -- 2.20.1