From patchwork Thu Jun 22 06:06:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9805499 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 BB21B60329 for ; Fri, 23 Jun 2017 01:06:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C23D026E3A for ; Fri, 23 Jun 2017 01:06:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B68982846A; Fri, 23 Jun 2017 01:06:55 +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 5945726E3A for ; Fri, 23 Jun 2017 01:06:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 254516E74B; Fri, 23 Jun 2017 01:04:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 1855 seconds by postgrey-1.35 at gabe; Thu, 22 Jun 2017 06:06:30 UTC Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0135.outbound.protection.outlook.com [104.47.1.135]) by gabe.freedesktop.org (Postfix) with ESMTPS id 575956E5D5 for ; Thu, 22 Jun 2017 06:06:30 +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=cPr4HeXjvfpvhds7ESB7Y+YpvJos/McG7aJ/bSIyFk4=; b=poFuu1tZBzf4AeJLmP89AhNX/xRNej72DStazPTiTHLHbrO789sfQBrMKpYECfeD86tpFqiRiYpW5dI76971jVlaJk65Fg/pQFyth/QWp6inT2KpgVNFO46jtr5IwPwLxWczzQ3o3mXbaAKx/2tfuJ790/NZ7TQSkmlEby68OEI= 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 HE1PR0202MB2553.eurprd02.prod.outlook.com (2603:10a6:3:8f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Thu, 22 Jun 2017 06:06:24 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v2 09/14] drm: i915: remove dead code and pointless local lut storage Date: Thu, 22 Jun 2017 08:06:32 +0200 Message-Id: <1498111597-10714-10-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1498111597-10714-1-git-send-email-peda@axentia.se> References: <1498111597-10714-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: DB6P193CA0003.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::13) To HE1PR0202MB2553.eurprd02.prod.outlook.com (2603:10a6:3:8f::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 737009ad-e3a5-4e55-238d-08d4b934d23a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500055)(300135000095)(300000501055)(300135300095)(22001)(300000502055)(300135100095)(300000503055)(300135400095)(201703131423075)(300000504055)(300135200095)(300000505055)(300135600095); SRVR:HE1PR0202MB2553; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2553; 3:MlvEIdoAYnRZdj+VxmqqcQv5YlgBipkeZb0oPUA58AIyJn3qApG/Ao1Au/d3Ul9pGtwZgscUrtCG7Bm2mBgc77DAo0E8NedLv/0bAY/ySMvPirntziwwHLcwmM4nX21+yn7X086hvsnIBuYX79z+caAG13MQf1MqBDv93gO0pGwUSbGreQr/5CKxrhOZb/L1WtKfXILxFq+emIPqnOK682rADjtcUK8N+97feO7O0S1z5tINzwn226+DyShhPDQdgL04q3E6VyZcvFxJOssq18jvx+qNHundshx/YdSuQM7gja9S6HZiPk1yIDvYylm1Yn7TQelIdL6hvWwouPhSsnAlv2x5p/MY+sPGhCIY4MW6XbsBfMMgAGyX8HrkRsuS966isXaAIaIzt+VVxV99OJcj6aX+Ei5Blb7H/+x0qkqVgJ/OZlTSzK1aDfa3Xgirvk49AB/2ePYQS1rOeE6z7CR4X59o9HALMmEeIuG/GRcUIP+ioxLHsCq25s9J77XZyEDNUK7SbVE/1eqzVSgGQB+ICZdI4aeCpXr812Iy8eyO/WxgEoUWcH4xUDxBQ2M13RHMd41eS7aWnUPWC9b/ozEaKLF8j2WihbmKhT8qdGOUnIxVjuSGBKXZCkb4Yy4yH6vbjGXLFhhzzPuxlQkb3A== X-MS-TrafficTypeDiagnostic: HE1PR0202MB2553: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2553; 25:I75N6WW3Nxg6YTPK3F72E5tXQdaJCwidreCsMG+jtd9zGgWp/ZggsB0o95gMQVjD8cUlFR/IL+eCUHk1pNhZqH+IR1BZ9pJhU2xeJOWjeX7jKmO33IIOMfkimrcYi9aZvg6Kmh19xAEwWzc2BgycoEltgqsjmo/JoFdxJXDwDv4TzIydc3eWSAAjRgtuqLT6wIfyOcGlKJkmFDwzWBGH+9DvCFXKyT+5/AG5xIq56qYQlzfDawvMN3ys1xCkDfV6TNfOk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RvM+4Bbld4tBYneKj/qHAA8qj4UJLvdDvHcOANTJAuAVxoCMeAoCjpo8btjYGjfQnCcUYVutBkHxnmRiVjO+upXnaNaYtE70/WLJ2CIIXubuHWyzvIuremrUnIUlR1BtHaHzwAAGU9RP1tWSSS2JZLCh9UVgKEZqLTyta7ny5ZrfzN+mpOJyl8BBLUpEDPDrN/2extzEqpZ/8gW1tWgGQabDHLhcgMq/gQXdfOEsvj3RzQ0FRdSAdPYeZP+njC//wMs0X+gutTiLC64WyGqPnmTiI5+Eg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(2016111802025)(20161123560025)(20161123555025)(6043046)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0202MB2553; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0202MB2553; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2553; 4:03Nwr6X2P6c7uDCNGAMl9eGPVzv0nREb4LJ9vdnG?= =?us-ascii?Q?GfBmnM9FxbHC6uLRLv+FxJYZXoslmaZhSwVweadnYAQkyDHcq0tt8qgbS30+?= =?us-ascii?Q?81GfREefFES9ZRF35tWXXiTKopPw6yM00eeXs40Kofubprng7/sQiyX9dbJ5?= =?us-ascii?Q?uaREvuD4rrFrw9+cCS6OASy9vA+0/is18jGkivYIjh+KnNn4g3CmtnS3eGZU?= =?us-ascii?Q?oU8eaaS3nlqNSPaCmL+DcGRv1lJ9nAqw5H6A5eGj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VRoe7/jvx+eaUqZ6YjqsuTk7OiumNBYJcAnDpyJu/mlMOrYh/rkZC?= =?us-ascii?Q?AK2hV6fIKRg0mOA=3D?= X-Forefront-PRVS: 03468CBA43 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39400400002)(39410400002)(39450400003)(39840400002)(7416002)(6486002)(5660300001)(3846002)(6116002)(76176999)(36756003)(305945005)(50986999)(2906002)(50466002)(25786009)(478600001)(66066001)(42186005)(33646002)(50226002)(48376002)(2351001)(2361001)(6512007)(54906002)(53936002)(8666007)(6666003)(81166006)(6916009)(2950100002)(47776003)(6506006)(38730400002)(5003940100001)(110136004)(8676002)(86362001)(74482002)(7736002)(189998001)(4326008)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0202MB2553; H:orc.lan; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2553; 23:DPIJs5Cbhta8n7pKuVMPKvk1yO+RvS0O91X3Jkm?= =?us-ascii?Q?QRiawsy3hP92Q+3AvLnH3jIiumWAfuXBI+RDXB82delpvx08ZhwEmhgqCMKo?= =?us-ascii?Q?zN2Xy+H8r23a2J5t9U/Xbqo/3NVhcQB5o0Wvj5pVHEnsQfHc68yAhX9EEgim?= =?us-ascii?Q?dv++/YF8n9D9NMg4sN80vg3XssG8r5y+IHtRnIvm95xcQE4MlLxI9yOSnJE9?= =?us-ascii?Q?ShJCaxCKPqXfRQBBcyuLk8q23pTf6pAC0cw/ClaqOumkKCEjNlChvK2aW3jr?= =?us-ascii?Q?o2Ve+0W8vUsgz1rRDI9e2rlXK1jZ6tvq70GZzJa2z1eGdg8+lMUh2MphprSi?= =?us-ascii?Q?ScAYEieb2cVoa399+I/vp0JJ6riL24cufpsku0zh2iLYEzJBjSe71nfKZVG5?= =?us-ascii?Q?E8sWx+U4d1MG81VZb2pVxh3liKbmE5K6ljGBRvExWH7lcM/zEUZW641rrLYI?= =?us-ascii?Q?hBqKMaCPEyPycWOz9KS+yuN/XWj3nnNBy00FNCo6eWl1tfSwo+ii2HR8bREQ?= =?us-ascii?Q?i/9iUemALLnD05erUlLvf3ldfp0tUeBTVDV//Kl/WdxBzik9U81l69jaT/Zw?= =?us-ascii?Q?acfcyLYFOZF/isRkszIEGdba7MX0R5zaUv3hx6ee24m1I/W+A5VdZsT19dZV?= =?us-ascii?Q?T5gTsAP+sszbAhyQJxJUaGt0JNp04oIraDGj9+8O06sxkH6QKHAmUiEQbP5w?= =?us-ascii?Q?wohsxPVuPGEwWGmD7oVCllL76HOpGkvtdqPPFbQSF4XHm/Qu3OlTB5Uabq0C?= =?us-ascii?Q?NLmZIIl40HLc8FhCyx7oXYZ6TaWH65rt9OFkCXaf3n/PzXko/92dNL5htkaR?= =?us-ascii?Q?zVGPoRqfGx3e8+Ec9hG1f7SvfhfFxS3bcnDkow1DxEWlUwxYS71IWjfy0Ze2?= =?us-ascii?Q?iXElZmYe+q0cEz6fwE4r8p6LZBJI50UiR6ejCm1s9XpYdyiZ+euXMeP9FjBI?= =?us-ascii?Q?N+nZym2rur3tHZ38jbPVKnbaDS4CzbLBfMx84DsK3nNVRDNgxqJehxKIwvcj?= =?us-ascii?Q?v/2Ba4ZBwiGz04lxxQex3+edBKdjbj/XMvN03BQVel+iKvPXks4X7sPWFTT6?= =?us-ascii?Q?zcTXHxyL6qdYY/2NO+5YtopYJgpsx4cs/McbTT1FttNqUDS9t95pf6geaRSF?= =?us-ascii?Q?VmOtyoHfjWvpZ+ZKKVvQohzUcMCV8jxbm?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2553; 6:gv8FaDy4OUMXdEcxpaUfQb4+E0ySOG5mE11XT4dy?= =?us-ascii?Q?lD0hL2yel14xAg1UmIahAtVZyUPNSCqbzee9O8NuTJgfpYkIDohzyeccBoht?= =?us-ascii?Q?OZ9tcz//i3LxzF7f66vGamkg9uaf31a33lqH/8WjowfBPMalqfCf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nostics: 1; HE1PR0202MB2553; 5:VH5vfxeZWz+CgPqnaA+kqmEg95C9UnnfAMjczAWeFMplnM81YRUDC2YfY3vpFGJhhAX3FF8cmgkAYSwA+FmUa//OmVdDlFJ/BKmF+HuiEAzZViI7HoV3J7ylNOX4zDx0Wuhed3RjQKvDFx0Uql51w6HD/010pfs1McKGuoKPuAuudtwozxBxKCYDSKd84MbxZBCwG2ffVjytfOrFX7BD7Z+esfl4FRojnlpmDeWWEyaKdSq2lxqmdWsKCcTkY2NrFwH/5u7IJsUjsguQxGt8Izju8p38aPOSWKqOKVVefN+nWqQKYKcUYuZwz71N3H6H32EKpKCpWaKhIW7lKBQhWeJx/kYHKvVr/w2NAHWP6MxhX1cCDgqMsx/A25B6ETcYyrpTPgrWQUHYE5k8O8K5heCOTuh9B+Ho/tM/2uRDFABr7F6jqOJj63GCg3bBttBespz1U7Tmnpqh7kYPdVW04GrgzN8lp9A6qQVVWzdJnyCoojcozApj/+WlSHFY/g2i; 24:Bz1NnH+27lfe4mcIcbPM1i3QHHzAdAP6qrAwU5G/M/J43KIaBJT9GKbPSBT2T0Fxhm72GYAz6WU62jFSXX7eA6DaWV0529t9vC40BzZ2nys= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2553; 7:DxlhqDRuK25Dek01hNgK2V6f69R90b9fdajEb+t1KqPFmxgbLAhpUDnNZh5yesKmZRJYAyyfaOFI13qgrleS1dZp8m5upaN7TVznTDAPVt01CrwZ+LmdI5gWwJ4BqzOa/wfLFrKZDb6VBQkFDqhU8FmzgWgQjqqGr51GA06ZWd+Ja+LchzcM84M9n7L9X7HcJA8m0DxivT1uyz43uczSOmRYdmCB21efmjoDTjFhaZdUw3iiz2wRDIfZBf8RZtYQhDVVUeH1vYymo6JhauiTMPJ8TnFUoopWTpKuh/Syab+bHsaMtWR37iJXYkyZk9yn0aXSVXjYJwnrdKCj9Y0ZgavQDKnNZvguQxVzana51kWYKt6JmNOzzqXM4X14jchg/pCrF6hq6aKq5ZG61udNSkMUIHp2ur23KJ12Lqmyta0X/iFEbSw6UDhpg+0QATIfZd07iBm+HGK9LLVZbyOFhe/bgfzoLcpr+LPLdBT0Nr0uP90HZhi9o3VuOWgGakfJU28isWaGopLfkHu1oAhfWJWun6BWryTSdr16jYyd/cp808F3knAZiKbGJMSExzT/wiQfvEHI6+/yDk0eg7PStg/q2Vnu26TTUDAT0yJTfTwmgMMaTubnmhgW5L8EG7rOr07Gp2kwcfNvhbcbeXdK4Mirv4VV9cMHsidBsoGnw/xch2kAJ0JEVeXeqxEW56F6OPDQvZ7Cmyke7o8s/nFJaBJK/kseMEocE31kARDxyT6KRkwmpXlxbC+BgavBQQif/cLyXRLWhAx8U/0zTsosxFfY0Y8v2MsbQoK/HqKTyNM= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 06:06:24.9528 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0202MB2553 X-Mailman-Approved-At: Fri, 23 Jun 2017 01:03:45 +0000 Cc: nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, amd-gfx@lists.freedesktop.org, Daniel Vetter , Boris Brezillon , Russell King , Ben Skeggs , Dave Airlie , intel-gfx@lists.freedesktop.org, Vincent Abriou , Philippe Cornu , Peter Rosin , Yannick Fertre , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , Gerd Hoffmann 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 driver stores lut values from the fbdev interface, and is able to give them back, but does not appear to do anything with these lut values. The generic fb helpers have replaced this function, and may even have made the driver work for the C8 mode from the fbdev interface. But that is untested. Since the fb helpers .gamma_set and .gamma_get are obsolete, remove the dead code. Signed-off-by: Peter Rosin --- drivers/gpu/drm/i915/intel_drv.h | 1 - drivers/gpu/drm/i915/intel_fbdev.c | 31 ------------------------------- 2 files changed, 32 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index d93efb4..bc7bfa0 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -786,7 +786,6 @@ struct intel_crtc { struct drm_crtc base; enum pipe pipe; enum plane plane; - u8 lut_r[256], lut_g[256], lut_b[256]; /* * Whether the crtc and the connected output pipeline is active. Implies * that crtc->enabled is set, i.e. the current mode configuration has diff --git a/drivers/gpu/drm/i915/intel_fbdev.c b/drivers/gpu/drm/i915/intel_fbdev.c index 03347c6..5bac953 100644 --- a/drivers/gpu/drm/i915/intel_fbdev.c +++ b/drivers/gpu/drm/i915/intel_fbdev.c @@ -281,27 +281,6 @@ static int intelfb_create(struct drm_fb_helper *helper, return ret; } -/** Sets the color ramps on behalf of RandR */ -static void intel_crtc_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, - u16 blue, int regno) -{ - struct intel_crtc *intel_crtc = to_intel_crtc(crtc); - - intel_crtc->lut_r[regno] = red >> 8; - intel_crtc->lut_g[regno] = green >> 8; - intel_crtc->lut_b[regno] = blue >> 8; -} - -static void intel_crtc_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, - u16 *blue, int regno) -{ - struct intel_crtc *intel_crtc = to_intel_crtc(crtc); - - *red = intel_crtc->lut_r[regno] << 8; - *green = intel_crtc->lut_g[regno] << 8; - *blue = intel_crtc->lut_b[regno] << 8; -} - static struct drm_fb_helper_crtc * intel_fb_helper_crtc(struct drm_fb_helper *fb_helper, struct drm_crtc *crtc) { @@ -370,7 +349,6 @@ static bool intel_fb_initial_config(struct drm_fb_helper *fb_helper, struct drm_connector *connector; struct drm_encoder *encoder; struct drm_fb_helper_crtc *new_crtc; - struct intel_crtc *intel_crtc; fb_conn = fb_helper->connector_info[i]; connector = fb_conn->connector; @@ -412,13 +390,6 @@ static bool intel_fb_initial_config(struct drm_fb_helper *fb_helper, num_connectors_enabled++; - intel_crtc = to_intel_crtc(connector->state->crtc); - for (j = 0; j < 256; j++) { - intel_crtc->lut_r[j] = j; - intel_crtc->lut_g[j] = j; - intel_crtc->lut_b[j] = j; - } - new_crtc = intel_fb_helper_crtc(fb_helper, connector->state->crtc); @@ -519,8 +490,6 @@ static bool intel_fb_initial_config(struct drm_fb_helper *fb_helper, static const struct drm_fb_helper_funcs intel_fb_helper_funcs = { .initial_config = intel_fb_initial_config, - .gamma_set = intel_crtc_fb_gamma_set, - .gamma_get = intel_crtc_fb_gamma_get, .fb_probe = intelfb_create, };