From patchwork Tue Jul 4 10:37:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9825737 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C3A7F60353 for ; Wed, 5 Jul 2017 01:18:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9804A22AFC for ; Wed, 5 Jul 2017 01:18:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C3C0262AE; Wed, 5 Jul 2017 01:18:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 036EF22AFC for ; Wed, 5 Jul 2017 01:18:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B032E89DBD; Wed, 5 Jul 2017 01:17:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 15491 seconds by postgrey-1.35 at gabe; Tue, 04 Jul 2017 15:10:10 UTC Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10092.outbound.protection.outlook.com [40.107.1.92]) by gabe.freedesktop.org (Postfix) with ESMTPS id 33FF66E347 for ; Tue, 4 Jul 2017 15:10:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentiatech.onmicrosoft.com; s=selector1-axentia-se; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=dnYgYq2zBqsAHl9FMeoBGKrqJukqrbJYpxAqOfNMEZI=; b=cOV0h3Wdg2jp/uoy4ySRMrXOGI+TZqNeV4iraCaBBuHAH6Ij/RjzliEWzyOTTKkAazFupPinlgg6zcZ5DF2maAVBPw6bmux/1JxEpDUMTz7d7fjykxVz3DhJIBkAw507Itxc3eyglRpHKFlJiA15JuUfVeLTof4hzIk0U6aMOEk= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=axentia.se; Received: from orc.lan (81.224.171.159) by HE1PR0202MB2555.eurprd02.prod.outlook.com (2603:10a6:3:90::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Tue, 4 Jul 2017 10:36:34 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v3 13/16] drm: nouveau: remove dead code and pointless local lut storage Date: Tue, 4 Jul 2017 12:37:09 +0200 Message-Id: <1499164632-5582-14-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1499164632-5582-1-git-send-email-peda@axentia.se> References: <1499164632-5582-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: AM5PR0201CA0002.eurprd02.prod.outlook.com (2603:10a6:203:3d::12) To HE1PR0202MB2555.eurprd02.prod.outlook.com (2603:10a6:3:90::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 81f4eede-5abc-4c49-9694-08d4c2c88b7f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:HE1PR0202MB2555; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2555; 3:ApjTjdH3dlZDgwcMFu1Fqyq8n3LkAm+9vF8Gj5LtyQKibqzOiz/lUp8VCO1xaLwg9KrzB601OL1kD7Sj4W7jebnKRpB6EKPDgdGclyhMmdnJQUqX691Vpno/Vu7ATJlnHUwmfmB7/DIgkLMGyHa9p6PGrJh/oUCDoEcKreuKzWB4skwWUezqTJqUIQ1svhIYaDgrKb71C/YCZ7gx9Ds27Db9/k+MKLtsqkj76aZR97meBRHBvRVXft7sd2zmxJJtxDMTngzFnaQ7xCrz0ELcuB+hD2s/PJggSFi9psfgSsNUvpchls01gEiQNLRqJu8KDQA6IW4ijpVjVC/dCk/w49enEt/77tkPZRbRepC2hfB/DcnpMkvU5LXH0zxRyr4ZR1jPj1ZmJjmLApYC0Gww7UU90sFaPGPHW0G6dDUyTm1cBLLdIIxnBZDK/3baMPrb+aGYHRrZPiAVDGg8c2RPz7DU1qcfi3IG7rosf/ak/uRGTzvdaAUCYsxaUfY5PTuMLOEI1rP0b1CjdpCXGADmj5YESUVDBR4LO5AngF5DEfUgHH4nASKTh61Eh73Kj3VwlUnSh38oGGJzcdHbJWmIG8Ko9oBJ5jjc2P3PXdEZs+1ZxD5NhnqQIJiE/T25Dr2Sg0xDROpX/kbQzwn4MIRPwSB0ZWXT8a9DZJNHjZ4SgeGDw4ESYxSDwxqQn5WtjBtCHq+gKPmlwB4xZvfudNyu3A== X-MS-TrafficTypeDiagnostic: HE1PR0202MB2555: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2555; 25:9THrOmdpo2cot4f5ZeBdUbkeYMNH8NixXyql9+nWRc5RW2Ofbyg6fDb3QwDkXlH5SDrFWqsOyEkDVcWlTWVgQrATglokOYpplAz4ic2PPbz4w+9UbAQ7MlYRXjRGnMzJvjeLyYwYYXg+s/tUv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u7UcNc+kFaA3o9hjyI4WUP91XTweEn/1pIxMCt8t7gqaknzf8SY8jPLJxpJ3/0wolfkYY0ciwL2N9utkNX3uEqri23hxdd5Xh8/C7LW2KS0PVtsEQ+N3Y3AJ66UqQn2110LoiHKvYePVRKQyEXKt1Qgec4JDfmAevNYnfsMxCzYGv1t6WyCB4PtohZWxHo3sByvLEw0pyFV7smQ+AU0AGkZUjwunCue20NG3SE78HWpdEl5lb3dSTGZonSJY5hvtzdHeADj4r0M8zWt3Jx9AMhfLGBrKaH0WOeJtF+z6fieY4uNZcjwoG7v4BUdVc4/O7qIaY7dV2PU5izDX8ThoCbFMYvFYiibWcNYqmOO2tdu+i1eE1+Wodddq9btntkRYjfc/g5SHiyHRrLhZtBwzBiz2p2gceZc0OA00TJ4tpu16BkPLghpcbeQn1ZuYa1cPjW1n+6jE/gBWuuwABDpvAadMeGqdwWA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6041248)(2016111802025)(20161123558100)(20161123562025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6043046)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0202MB2555; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0202MB2555; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2555; 4:2BjHxWs2VpJ4eoTRzA4SNrhaU5kOhM+Kyja6jFuB?= =?us-ascii?Q?m+w/gLQRdA/AoBbu8OWCv1dYXZzKXaXTmbU6EBjGCmjl2g7Oe93v1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jCSYh9wZUgPIiUhnS9odq3pHro1AFi/lG5CrWrCf?= =?us-ascii?Q?5reaEO/CGzBr1yyE69qWdro8xn7QKEhGnepbjXQnVmIn4FocTYfY00Dwn+s1?= =?us-ascii?Q?Ur6MK7xftsk/a+cs65dlolSDZERy5Jq0gKyQSG/2weCdlxF+aE71BAUqJ1Xn?= =?us-ascii?Q?kYDSjtljG1P2iQjDhKfiCPf0YgWGCCJaVgbA5RUbqDV7gWOmbtqLQOATObyz?= =?us-ascii?Q?zwA5Ds/8OIVBnuYd6OSQZl6rVzd4AHgXqu3S8pfjHWsN8+OywUP6vj1m6XvY?= =?us-ascii?Q?1C1mwq3IGr5vmi3sh7s=3D?= X-Forefront-PRVS: 0358535363 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39840400002)(39400400002)(39410400002)(39450400003)(8676002)(81166006)(7736002)(47776003)(189998001)(3846002)(36756003)(305945005)(50466002)(6116002)(50226002)(53936002)(86362001)(33646002)(66066001)(2906002)(478600001)(42186005)(2361001)(74482002)(2351001)(38730400002)(110136004)(4326008)(25786009)(6506006)(6512007)(54906002)(5003940100001)(6486002)(6916009)(5660300001)(6666003)(2950100002)(50986999)(76176999)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0202MB2555; H:orc.lan; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2555; 23:jhN+x9H/zfo3p5WcSPisH+BWPvPvMnP/JeWeXbd?= =?us-ascii?Q?M3ip65bHMfXKY4/Zq37ySWxImfqLmFn+xPrwVCglUtp2jV+RNLqRDa0kFczw?= =?us-ascii?Q?CO6S9Eara/oizyZgjrIJKcXyBkYdwqvkqggTEjHMKw16E7bioa8TuWh8Sxuu?= =?us-ascii?Q?ZpeSmw4HGU6yBcMoLgkNLFJMZmuZh8PUHrXTre7roJwZN9SlklhDe1BJHMOh?= =?us-ascii?Q?HQ/6kCAt/PyfA1ORLVXaRyCeJbKr3tnvCTlZ7EEtb3X78WzenVhlX1AL1gwc?= =?us-ascii?Q?N6cbyYEzUFJmHCU728MU7xTHfE7e+88fiCiic22QkFHIxzk0waDhIsM25/MX?= =?us-ascii?Q?E1VyIfDHkSHOPN9XyHT78ClkitjYtvKLaJrUsDd0uHpLHyHCqY9dDOaMuOKe?= =?us-ascii?Q?TBxFmS6KpBosT99nfUV7UhYbuETiHZbB5g3rhop/WX3pkArByuEBtPelURrh?= =?us-ascii?Q?8c6vNKIWvhBk1WwIYxVgI6UyagoQlebD+I9IE90/EqVcu6dRSj+h4vqkvJ9G?= =?us-ascii?Q?C0N+QzROm2s620WHE6bg7zUTkQ/Joe1jBZ45lbjV4ea2we5Z12HkHak7qnUM?= =?us-ascii?Q?ZgjgXEfyGwBg4fg1IgDCHtB6ARcy77DwGlu1LfQh4n2h+8p2nloCMdKqbUp8?= =?us-ascii?Q?bhyg0b88w4r96cMXe8Po5/1uaJOk7tfsY4EQNHTQckh733TMdlEeACYOZQXL?= =?us-ascii?Q?6qQ4UDvUa8BpHKtDHy/6EYOHvtqnXYcSo+u0kl+tyxtICCgCIt+ql/WBmppR?= =?us-ascii?Q?CY7savyDIealA+nXgqWhNQKpzvDPvlFiw9vl7KYqJXSjvV/XBW7Qtx+SyXeY?= =?us-ascii?Q?5foU3DMeqFHMItKi9hWoQUE81gMx/dvRZIDF6R8dIPHk8SKsSHHXFsWWFh40?= =?us-ascii?Q?8mxkTNW+FC+qWPJTXt/JFj5r9D/xlX/skA80A6bpe5KwKZdtMQCPUIB1Jbee?= =?us-ascii?Q?s7rw2GDQuQwNrrm332YgwYebKv9YMootgRll1Ux3IbPAWvz6Q+LwGMQiwMjw?= =?us-ascii?Q?T/BmHWiNB1fGDKfmNYorNxJL3ZaWwoc6f/3KsMsr4DBs8/fVZpsfmbv5XCQK?= =?us-ascii?Q?TnjRNrtRT12msANmLcMJ0Xas9WWKd?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?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TINvlmoXvdsbJ1Vd3?= =?us-ascii?Q?Lm32aFo81CaVaElQBXXrncqrhKzoXC+OtqGQMtQBbxbHa1S3HWHjz51OCYBT?= =?us-ascii?Q?y/eJC80HToVO1bhEkrUb6m6MCsd5M5gR604q9a3iYZH767gQ5vPVbKVleW+H?= =?us-ascii?Q?t5A=3D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2555; 5:gVjNle/Hv06MliYvo0488YEXoNTHy2O8aiGtG32ADbkZOPXkLyfh/l2+ZffUBzYgQaxi8bSxCqyWot4H7nJTO7rwCpw86mrb/9XzYhJeqcPu6VntT0d3XKc4fX/gKdiOHOG0WQgN4S6M4wpdA4vlDlHLaWz+EY7bJ1XjGQuihIZaicYCLIalB+waNxW2KTcimChTsz3CS0EBbKmqyE5isfp2UpuwY8ySKFMoODnxwwacH1gW4o+mvx3/Exlmbbpi2ARUZDdqCTRMFb5XHp3Sp5BJAEdhMGL0AbWKcnpjirhS89+TsVH7fD1XG56L+zck1Lpmh15/A5TEb+PP8s7D8xegmqVadqgibWGTosPveJdzCnt021m4ksaPj41xnDxtW63HtmjeW9qMZoSJC/IqOoXK7bt50eFdUD6OSjbmPR9DTcMGyZ9dL3wd8nhNiIfOXbijfKIf7nkMFJo24RyCA8d+3pZTA52hcPoJeWb4azLcswgP/hEmV4LEpcw1iV2O; 24:IAQSvvQ8B3ZylTR1J2g6DgpzVYeyBvBSUUPT/JYbyO+uHRs7uqVLCPI83cdK5+Ti124blsPG/lGpWnr1oaFAS0Sx0A82v661AnUTogGyciY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2555; 7:bPvY03Fp6QpeUf8Rfied2+3kvj74DooNdzMHiNOQLn2iXtL2QoTOrytuEZwZ7xID1wQOQHTquTX9a1SKOY1e46+wgOfj5/7MN5wTDA4lzCe/8FFWnPDNmJf/19L0kD6cHcTvlHIl9kwSJeO+KCg6utJoNu4qfuHHzxgiuiCsVQVFTn/VGaC9JNgppXWuRmtBIM0/yVqNo4rPzBDxPE1/WOKlU1tcxe7I2BfolrK3WIFf7laiTJZYvH4Ht5nSy8IPZauXu2lI2Yo3oK6qU8OJzthQ7h2N5OtJ309lVLlk1pPGTmiwIbaj2Z9/avOeRUpfdZhBBOTqmfM1TMXlXyB516SvBQWXn3yXY0RlN17IH/Ocn07QSHypxdhdiyegp8vsar9V2W6pORmL50bScZhodzXMZ5SwbmSuMm6P/N11UVpfaAoGBQcK3BQNnHhDT5EZNasN//K4MSRId+/m4PKzey90l1srPWyrG9NfyawudCGV/5KlDG0Y0Y0OYcWMqNL/JklWobXvHwKBan4l2VP0wvnVrxU/7Gd5hj/trtMXlNuj9nccBAfx4zoJHid0UNXIc8ECaMXLhdKlpLIp1j/4w3oUZWBAvsmjAz8FP+K2c16Uf4Zoh9/srt1WWJN3YwKvdZikhnrHD9Tn+Y/dxtBvTA5XUuenYtpkNGRJRPbSfOPmgLyI5vbn9AmHivhkvhduNe7aoUqb9lJXRKQ9OBQmVoqGx1iUoCoCjvc/mSsVzNwOOb4LwwRZmkGsdIyCJzOkUkrIVTOjBfvooZnBAK7Qh2ZRmI5PfwCn1IXXNlAY+r0= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 10:36:34.3693 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0202MB2555 X-Mailman-Approved-At: Wed, 05 Jul 2017 01:17:54 +0000 Cc: Boris Brezillon , nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Ben Skeggs , Daniel Vetter , Peter Rosin X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin --- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 26 ++++++++------------- drivers/gpu/drm/nouveau/nouveau_crtc.h | 3 --- drivers/gpu/drm/nouveau/nouveau_fbcon.c | 22 ------------------ drivers/gpu/drm/nouveau/nv50_display.c | 40 +++++++++++---------------------- 4 files changed, 22 insertions(+), 69 deletions(-) diff --git a/drivers/gpu/drm/nouveau/dispnv04/crtc.c b/drivers/gpu/drm/nouveau/dispnv04/crtc.c index f562824..b233412 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/crtc.c +++ b/drivers/gpu/drm/nouveau/dispnv04/crtc.c @@ -764,13 +764,18 @@ nv_crtc_gamma_load(struct drm_crtc *crtc) struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); struct drm_device *dev = nv_crtc->base.dev; struct rgb { uint8_t r, g, b; } __attribute__((packed)) *rgbs; + u16 *r, *g, *b; int i; rgbs = (struct rgb *)nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index].DAC; + r = crtc->gamma_store; + g = r + crtc->gamma_size; + b = g + crtc->gamma_size; + for (i = 0; i < 256; i++) { - rgbs[i].r = nv_crtc->lut.r[i] >> 8; - rgbs[i].g = nv_crtc->lut.g[i] >> 8; - rgbs[i].b = nv_crtc->lut.b[i] >> 8; + rgbs[i].r = *r++ >> 8; + rgbs[i].g = *g++ >> 8; + rgbs[i].b = *b++ >> 8; } nouveau_hw_load_state_palette(dev, nv_crtc->index, &nv04_display(dev)->mode_reg); @@ -792,13 +797,6 @@ nv_crtc_gamma_set(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b, struct drm_crtc_state *state) { struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); - int i; - - for (i = 0; i < size; i++) { - nv_crtc->lut.r[i] = r[i]; - nv_crtc->lut.g[i] = g[i]; - nv_crtc->lut.b[i] = b[i]; - } /* We need to know the depth before we upload, but it's possible to * get called before a framebuffer is bound. If this is the case, @@ -1095,7 +1093,6 @@ static const struct drm_crtc_helper_funcs nv04_crtc_helper_funcs = { .mode_set = nv_crtc_mode_set, .mode_set_base = nv04_crtc_mode_set_base, .mode_set_base_atomic = nv04_crtc_mode_set_base_atomic, - .load_lut = nv_crtc_gamma_load, .disable = nv_crtc_disable, }; @@ -1103,17 +1100,12 @@ int nv04_crtc_create(struct drm_device *dev, int crtc_num) { struct nouveau_crtc *nv_crtc; - int ret, i; + int ret; nv_crtc = kzalloc(sizeof(*nv_crtc), GFP_KERNEL); if (!nv_crtc) return -ENOMEM; - for (i = 0; i < 256; i++) { - nv_crtc->lut.r[i] = i << 8; - nv_crtc->lut.g[i] = i << 8; - nv_crtc->lut.b[i] = i << 8; - } nv_crtc->lut.depth = 0; nv_crtc->index = crtc_num; diff --git a/drivers/gpu/drm/nouveau/nouveau_crtc.h b/drivers/gpu/drm/nouveau/nouveau_crtc.h index 050fcf3..b7a18fb 100644 --- a/drivers/gpu/drm/nouveau/nouveau_crtc.h +++ b/drivers/gpu/drm/nouveau/nouveau_crtc.h @@ -61,9 +61,6 @@ struct nouveau_crtc { struct { struct nouveau_bo *nvbo; - uint16_t r[256]; - uint16_t g[256]; - uint16_t b[256]; int depth; } lut; diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c index 2665a07..f770784 100644 --- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c @@ -278,26 +278,6 @@ nouveau_fbcon_accel_init(struct drm_device *dev) info->fbops = &nouveau_fbcon_ops; } -static void nouveau_fbcon_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, - u16 blue, int regno) -{ - struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); - - nv_crtc->lut.r[regno] = red; - nv_crtc->lut.g[regno] = green; - nv_crtc->lut.b[regno] = blue; -} - -static void nouveau_fbcon_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, - u16 *blue, int regno) -{ - struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); - - *red = nv_crtc->lut.r[regno]; - *green = nv_crtc->lut.g[regno]; - *blue = nv_crtc->lut.b[regno]; -} - static void nouveau_fbcon_zfill(struct drm_device *dev, struct nouveau_fbdev *fbcon) { @@ -467,8 +447,6 @@ void nouveau_fbcon_gpu_lockup(struct fb_info *info) } static const struct drm_fb_helper_funcs nouveau_fbcon_helper_funcs = { - .gamma_set = nouveau_fbcon_gamma_set, - .gamma_get = nouveau_fbcon_gamma_get, .fb_probe = nouveau_fbcon_create, }; diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index f13fa74..93c66c0 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c @@ -2204,28 +2204,29 @@ nv50_head_lut_load(struct drm_crtc *crtc) struct nv50_disp *disp = nv50_disp(crtc->dev); struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); void __iomem *lut = nvbo_kmap_obj_iovirtual(nv_crtc->lut.nvbo); + u16 *r, *g, *b; int i; - for (i = 0; i < 256; i++) { - u16 r = nv_crtc->lut.r[i] >> 2; - u16 g = nv_crtc->lut.g[i] >> 2; - u16 b = nv_crtc->lut.b[i] >> 2; + r = crtc->gamma_store; + g = r + crtc->gamma_size; + b = g + crtc->gamma_size; + for (i = 0; i < 256; i++) { if (disp->disp->oclass < GF110_DISP) { - writew(r + 0x0000, lut + (i * 0x08) + 0); - writew(g + 0x0000, lut + (i * 0x08) + 2); - writew(b + 0x0000, lut + (i * 0x08) + 4); + writew((*r++ >> 2) + 0x0000, lut + (i * 0x08) + 0); + writew((*g++ >> 2) + 0x0000, lut + (i * 0x08) + 2); + writew((*b++ >> 2) + 0x0000, lut + (i * 0x08) + 4); } else { - writew(r + 0x6000, lut + (i * 0x20) + 0); - writew(g + 0x6000, lut + (i * 0x20) + 2); - writew(b + 0x6000, lut + (i * 0x20) + 4); + /* 0x6000 interferes with the 14-bit color??? */ + writew((*r++ >> 2) + 0x6000, lut + (i * 0x20) + 0); + writew((*g++ >> 2) + 0x6000, lut + (i * 0x20) + 2); + writew((*b++ >> 2) + 0x6000, lut + (i * 0x20) + 4); } } } static const struct drm_crtc_helper_funcs nv50_head_help = { - .load_lut = nv50_head_lut_load, .atomic_check = nv50_head_atomic_check, }; @@ -2234,15 +2235,6 @@ nv50_head_gamma_set(struct drm_crtc *crtc, u16 *r, u16 *g, u16 *b, uint32_t size, struct drm_crtc_state *state) { - struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc); - u32 i; - - for (i = 0; i < size; i++) { - nv_crtc->lut.r[i] = r[i]; - nv_crtc->lut.g[i] = g[i]; - nv_crtc->lut.b[i] = b[i]; - } - nv50_head_lut_load(crtc); return 0; } @@ -2340,19 +2332,13 @@ nv50_head_create(struct drm_device *dev, int index) struct nv50_base *base; struct nv50_curs *curs; struct drm_crtc *crtc; - int ret, i; + int ret; head = kzalloc(sizeof(*head), GFP_KERNEL); if (!head) return -ENOMEM; head->base.index = index; - for (i = 0; i < 256; i++) { - head->base.lut.r[i] = i << 8; - head->base.lut.g[i] = i << 8; - head->base.lut.b[i] = i << 8; - } - ret = nv50_base_new(drm, head, &base); if (ret == 0) ret = nv50_curs_new(drm, head, &curs);