From patchwork Tue Jul 4 10:37:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9827387 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 D052B60351 for ; Thu, 6 Jul 2017 00:59:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BDD8026223 for ; Thu, 6 Jul 2017 00:59:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B091428543; Thu, 6 Jul 2017 00:59:59 +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=unavailable 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 6248526223 for ; Thu, 6 Jul 2017 00:59:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2D77F6E575; Thu, 6 Jul 2017 00:59:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0098.outbound.protection.outlook.com [104.47.2.98]) by gabe.freedesktop.org (Postfix) with ESMTPS id B3BDA89FC3 for ; Wed, 5 Jul 2017 02:04:52 +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=ilwiFSF2jq5fiLIEKYzMgvYWl7lFtJQ+qjZeLaGa+EHgrW++d1HR3UxbFna7QRPOhak0AeRaUjZliV2ooVb3aL0OFFD5uR5Er90sjACcaWZJRS6Fb0PGuxvzhUrcs5blK0R9mFCxySAbmyaJ8omOm7SOVBT/CprTLjk4f4quxEY= 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:31 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v3 11/16] drm: i915: remove dead code and pointless local lut storage Date: Tue, 4 Jul 2017 12:37:07 +0200 Message-Id: <1499164632-5582-12-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: 77143f27-ffbd-4da3-4a48-08d4c2c8898d 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:ptTQCc2L2b0FFUrWayBB8vHNcFGyrLhDSVH20jPGuLXNg8sFtifuPJNz6zXG9G7Fc+RxTPIEqLxIaeTMdmtsYUpMkfy8qsK0A0IZ0iB+bAUhA0TQSkDTj0zSLa6QissWquNBRXxAepqJUufFl1WfoTHAVulq8hUT9YLzNd65qil0NR17pGVYomMJZJEypia/X6+n+xJnfF7Lnif6vja8ofjpj8/6kh94Nky9lOeU1vcSA1Au2kwPT1ToZ8LI6b6z402Qs+wUVMhi0ihLLdcAYVz3COPvPoi+sH7l3exr8e8gMpCUQ83ojvYBuLyRSw0Y00KOOUmczksRMlkAeQ0MOHIOizP5lU76PJkz2o2iFL1dXrQplGESa6+j7xxzXsERyGTMZr73R/Bp8eD/uZVYFy2SrW9vU/yN434U9uZrXByljPiPJSnw73hJfhMAw3bqr+WgX233TpDDVoOU9m92OJldla41fFel9l0mq1+CtRiwK4qSsRqzmd8fAaxDAnsvwvXl/IVZTQDXE9CSeQzPqrCdm2C1XiTvdAOAGH2A8KEsuKxMu3YqfAnI+L6RcFPljgxV6yZlGzr10ZXWM/RKrShm9RUKwA9mClIM7WRAGlhB/YywDAjXWoYn1iYRm6jnLI9X470afr0JhsXH05w+4TrSEH5NUgKHSL8uz2aGR3phIv6FhzVr/YnkGMSjSgfxUYUBVUYE3o/KeYIAqfpPCg== X-MS-TrafficTypeDiagnostic: HE1PR0202MB2555: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2555; 25:CSttnTpOb/r+pE3QwH1IZM58Xz0NlMLQLcqy5khxu0wVUQVOrXfzmZnegpsnt2QFnlpYxI4MNjd6yHSteRCVmlI1C03ORkaNaO45EQh5BmVybzRf3Z3FWiknUYOq5TDRKCYXw3od/GBGWbmCP0rl27sQkBz9LB67BFvK1+anixRU1u2oPY3fx2shx2mXrAaPXhqzIEhf5wHvqIFJ7qdAjVVrKn8EqApn4sgWlKXsII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pyR11geHYll6Jw37lTg9q8Pd9DoV0/2FdSS1dN6/I6t0ekPKcaaU8GcuRx07xOySuIB348hocyCwJSu0xbs9ki8ujALYrOKRrxlRSLgJibOF6Emhfn3ajpS8gUUwerjvH+5j8Cjw27SLjP9wWRfm0zjrV/N6SISOAVax/T0nAc6eADirSZ2fQnLCUpehrT0RmPYsvIbKgpig/oNeIHEhHYkrNa6mzpIhToT2nFXFub1zqwsJAcWphFhvpp7I4cBe4IAgfmW84diSJ/TUJzhbgkQaS/9x8mMSRTpxm5/531jLpZWtoM/in4o6mc8xXPq/Ol48SZCFM6+k3ejTXz4zxDVyq0oYxzxxZheWy+GcI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(148574349560750); 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:3/A/qTw5dLgwXP4Y9mg2p97Vfz2nqYzK63RrKmOO?= =?us-ascii?Q?Axjl7uQuYRrd68U2a9P2C3XhmEIC64/67nDEcar1bdQkJ0xmhEhzoGTJ3XVT?= =?us-ascii?Q?fR6f3cJCsIFZkPnjzEXpJaxzdaXjU3hIpjMo1O3zfR16+PoOZYPVLUKH8zeX?= =?us-ascii?Q?qps19DprqMbt8QwFyK/ME/IP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= =?us-ascii?Q?3eQ0tjhFzHFgFXzeWsjycfvziXUSxEgMk1/5JFedCPLuipPXeTkXZVzXjf/b?= =?us-ascii?Q?/Y6Gs2SaNqosko/zUwORoQlInV2YXw73KpzOM8PF6waxmS8l+Zx6WjTlQkVS?= =?us-ascii?Q?mLUMfEBgJ/6ch1VFgHVW4mrVAgw8TewCF0QvYpdrzEIgOzqF31RT7NNfjR1A?= =?us-ascii?Q?9ftU/luM1YGAPdm0bBiWC7HzESg+ncfrbt46qv4u?= 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:CfC9fO14FRn8ju5RYtd0BY059bzhCUboN2CtNRn?= =?us-ascii?Q?dYA23Uhzwc8HXF3hWvOxLvQUVfUSj0pT/rTn7xZ8fLoW9oGf1FpKGzHB7kE6?= =?us-ascii?Q?eEP8KnlP9rXXefCVUJE6/r7TXPQ4hK4B31QgOpShh7i+EOBvMY4Pn+R4+OxU?= =?us-ascii?Q?Zjxd7HMsOWVCmcTo6TqSwjvN7uJW223Z/vdKCihLtaRTX1aHe08KA6sMJ+4C?= =?us-ascii?Q?W7gboBl0RHILwqCIas0WCUWzAh+jPLB6yiK9PCNj9HSPwqNdT0TEZh7d4GO3?= =?us-ascii?Q?PKkSWmN307A65vD5Z2J0tj3lWhdX0KnB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EJEOfJJB0DdB/lS27pG/Pf?= =?us-ascii?Q?lH/mg+0qK2GiAxZwCSAw0OnUUJSGh9CuB56lk8uCjo9bWJi244XhZppSwtlo?= =?us-ascii?Q?XXI=3D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2555; 5:xceH65fLdqhoRFmqbMLVqVY22r6wcawAjqSZC6AHTSc0NydpR4gLJNX7xh0UB/gz6jjTh9JA8Nm4KZFhs5qEa738ce0n1CZ5b8Lr5Gdzenj2e2nrsXHf7wLXi4FoxtZApGJXTHdnF2DIPdIRcKrmXyuFaTMaHFjlXwLPlqxrLQ06JRHsQLSeKjn3N6OvmM0PzwgCgbDZmBkMrOwszI/x1joCKno4ZPKeM5HEKkMvxorkIaAjCny9OGa5YUq/JAT4Rk2W2cru3HqW98km2v2SGQojMy67/UW9W3mBDr9N7nxhT72/aD5R2lQI8FdRqdy+VX9Vff6/KbpFIq4q86/qDlXonSHrLCk8CIf7pDQFx0tJwU5STg3QETsZMtJI0LA2IlfvEiInoVfumSk5rz+ZWRYGHiIM06jiiUEtxABlhJ12EbYaDCvl280IUm56O71XzYEdTa5keXUS6hy0KGH2jheOuA4M0jaB9q6qLLkVcBqWRgrqkr8cj8If2NafUxrS; 24:eAipiUOcCb0ITgTJv/n/Q2XCRO3l9AIeunaB/48booICEF0Zr4usbtMgOEoxMi/6ZeYrz8fBl1AA/sTsQJ7tUN+m1XoEQFrt+T1Gza2xYbA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2555; 7:h2pWbmVWAiNjyZ+BanBW1rPf2P9Zoley+E0D1Lqr39avRhymAZmAroRJH87fFADaGQst3fGxewzy5/sOC/SxqtQX7RzLAJiHj4nS8g/IzZGQ453EdMxatFnxG3SS5c5esIXfBefIncmC6zzbv1ThWZmMqbG8QtBV8WkUf6MR4D3Bn5WOIFJz/P4V9hteMwZtCaBnKl6twfZ/6JN2Beg3Fsau2Jkh02iH0UnfAhw03f05WmBYp0E+PydKjtfQwdfIe8n5SoBgNJvPgxTfSEaOdVJW62Ej/fuVXasvzySou/x2FbbC7Y13C6iOO8RUV+aDJ+mu9rog75ee6Qq6Zoc6pPxe8ijNxDMKtAllH43ooJ8OSpDNTcBsbxrWo8UtaEkBWXPEOZAxAhyXC0OkCxWLKJvFaSgGedZoamMtIW1Hvo1HgSGR6VBBM+bYvXH48r3lx2GeCF9vt6VT5mjFwaj8HPtCRA7dxpXdiLTgfmG/Igi9kQcr0y7TAQy0E7iUayfr3drYNdQDZi5hFINZ2fiNExrLy098SwCEo8ZPeukpIcAlcq45z10PCn49xinIE6WQpitoE4Y2P4I2sIp8TZTgj5RCkeEFowdB2uOUUsG8b7ESsns2BTj0VwZWK7cIep3l61QPIScxoQNC5fKyI54goQPVsA/wgRh95ke0GqX203AGpp1ajXDHf/wkIUX4CxjDKOnUOB7+1JA1BmNAtN0FVmN3FSPM/zWWFX1sUqPNPhhZTglgaErb4TZirZqJWVPyDPXBm8c1stPg27wEH1fDeXdgQmNsdV/AghAHY+YsV4c= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 10:36:31.2287 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0202MB2555 X-Mailman-Approved-At: Thu, 06 Jul 2017 00:59:55 +0000 Cc: Boris Brezillon , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, 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 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, };