From patchwork Thu Jul 6 12:20:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9829283 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 795EF60317 for ; Fri, 7 Jul 2017 00:44:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 699AE1FF82 for ; Fri, 7 Jul 2017 00:44:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E78C28549; Fri, 7 Jul 2017 00:44:10 +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 0E0511FF82 for ; Fri, 7 Jul 2017 00:44:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1CF0A6E08A; Fri, 7 Jul 2017 00:43:20 +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-db5eur01on0095.outbound.protection.outlook.com [104.47.2.95]) by gabe.freedesktop.org (Postfix) with ESMTPS id B58486E5E5; Thu, 6 Jul 2017 12:19:57 +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=2yXDhCL5gRELHIx7mXCBTaL+FdDRXvthmcqNCIsHrkc=; b=ndFCBpKT1q8BkEO7iKI4gW0v9OxQN2oOC/M++Q/p+wLoPXaEwmNjDQ4HroIvx1OpaRbr+qWLnU30f2AWr0JnMvypaFcIQKj5uWM3c/j/rFx/8V9+ZPXPt0W7LxHGCaUcaXLuQkplxNUldYEIfFWO1yujGPFAWwuJ7Qtik3dUxgo= 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 AM5PR0202MB2548.eurprd02.prod.outlook.com (2603:10a6:203:6d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Thu, 6 Jul 2017 12:19:54 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v4 09/14] drm: i915: remove dead code and pointless local lut storage Date: Thu, 6 Jul 2017 14:20:43 +0200 Message-Id: <1499343648-29695-10-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1499343648-29695-1-git-send-email-peda@axentia.se> References: <1499343648-29695-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: VI1PR0801CA0084.eurprd08.prod.outlook.com (2603:10a6:800:7d::28) To AM5PR0202MB2548.eurprd02.prod.outlook.com (2603:10a6:203:6d::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fff70dfc-dba7-4813-04ea-08d4c4694fa1 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:AM5PR0202MB2548; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 3:A/wiRm7/D8DkW1Wc0P2+1UzKqYLI72Nw/KEuFVNUn4MmjeQwOD9CP65geVeRgdbt0hzC+7zdJQzWOv07IGrln1MSwPnaN/v7FWK5x3dTJhub2yGyL3EJZmwGEBOIMKItJ3OuU4ph2Mum2uNAJzh0uBD/KGxqFZVYiZZno6JAQnoNo41mfZcVcYeSXOYnppCssVAcPG0i+OHG/VH/YsKjWPbd7vHV5vXTrvo6ZT29Absbwc8emJhgrZ+Al0EJx6puWoubcVESjSk5JcRy4lQm7tVWgrnZbNA7u+1XHrM1/Q23yI1xnj1Iwf23p3Pp7er7XE9fKwTazhRhqZ8unQQtSnhioTQjxBkZHQ8xyAY5vD3h63ezqzwMhViF7hUcU+5dc1m34ZVFU4QvOgdLjKFVbWIAeIR/OD7AVLeqbX1JMmQmLxPVuHS6w7KKuw7p6/Ndz1SAvIiKkzogLao+CDZnndKtqWvpzs7vj17qsErjg2o0nM6aBRhwAUjt0OF6U+C+Glpu7XPn3NCjX0bINbtsY5ytIrxueFzPO3XKkoWT/AQ2YErTDW16459McBCq3BXe1hvojaDAWVK6RfgEnnb4VnUil8qgFthmjw8xQoUuA3N/yAvcTO7QkW7Y/aWuEkYGF1GNWE0d4QPVHfozqG66nGBhCgQecG/z0Fpdau4VMJRWaZjR8JRskwnn8fcKo6H/RSLa1GeGj4fnZBATG2w9Uw== X-MS-TrafficTypeDiagnostic: AM5PR0202MB2548: X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 25:tzLWvIQzx2bkLkOa9/7exttRrUG6/Qpcj0irCodNIuCsr+u0NOIKOhcWYWNyp8uXFatYn/uv/NnFoKBxWAHQUk2T7vaH2L1s6aFsztzj3iWJW2IytOJfmmh6U1iT095RclIPkI1lzqGOVZ4N3NS+eri2PZKV318wdPq39FjBFkB92dY8LkW+HjU1tOseneSo8RviPLs58T0nqQyVb2NBS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4xCivIFjiLQmVk+B6gWOLW5rahWspCsFcOrYK/MomQJ0UB1dwHZDhjiu05hb1MilRowOUWdnfbl+tEmBhpq9j9S4xLeklfQ87A8oQsNzV6OH0e/fzJBXFPl3dKmlqh50qh+JoAJbVxSrxy7j9TOB52LidF+rnMNhh9LA5bfvCzGCZOECM/FPvPz1pzM6T0c4EcXK2hEPbUCtlbaDdU+HO3AaIsDwDPhHfTMrs7IpZo2Qyh9qSWLAOCBSnWFf4OE/JjtelUTVLYPa2adRfXZE22EmtcXHWFKFTfw0j/I0Mifo+cnof42CyR9SXY7iCnrXDVv0DLU+ZyNoYv/F8xlrLtgru35P6wjty51tX9ZCTvqWD9O0o= 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)(2017060910047)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123558100)(2016111802025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(6043046)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM5PR0202MB2548; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM5PR0202MB2548; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0202MB2548; 4:5nugYHABjxE7xrIrRr9qyXDZasOVq3JK2t8SCYr3?= =?us-ascii?Q?YvHYu0l5GTdQUnpdz+yCWgOJsX9EQV8xl+741LT0ZPw+rYwTxQvFxqZwjaKq?= =?us-ascii?Q?I3wVJV6aY4UOUQ9qNgGAzN4XufxaVDaasvqSOqW9/E3PJiQzDalD2fp1D4sH?= =?us-ascii?Q?K8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vj8p1b18sj3TaThOCgOWHikW0l87zq?= =?us-ascii?Q?J3DWQkxGAmCVXBIBGR2sXrqjA1AFLtLgE0DW7kHpHSXMIUY5PV5edQ98SxhX?= =?us-ascii?Q?UvUIaXngy5+vLA/JzvJ6xK7QE/96JDQAFr/vlVU4C/XRHaiAWfshvWQLO7VV?= =?us-ascii?Q?9lqP7hVDPZJl87qxIVYDsAeHvVyBZFuuho1dSV4/v7gClOKlfOFqeKRzWNgM?= =?us-ascii?Q?kvlITPkyJRt/DJMJB4zpc60uXX0v0RVBz1hWH9MovK4rBkk+h3mzpQT7n6Jb?= =?us-ascii?Q?a1xcuUvvyh8G8E/fueWpE0c=3D?= X-Forefront-PRVS: 03607C04F0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39840400002)(39410400002)(39400400002)(39450400003)(6512007)(66066001)(33646002)(5660300001)(2361001)(6916009)(2351001)(478600001)(2950100002)(6666003)(54906002)(5003940100001)(38730400002)(42186005)(50226002)(47776003)(110136004)(6486002)(305945005)(50466002)(189998001)(81166006)(3846002)(76176999)(8676002)(6116002)(575784001)(2906002)(48376002)(50986999)(36756003)(4326008)(7736002)(53936002)(86362001)(6506006)(74482002)(25786009)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0202MB2548; H:orc.lan; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0202MB2548; 23:AdqIi7dLagGWOtQYlYY8chxoM4r2oguTd7waeN3?= =?us-ascii?Q?txQeIoSx2rwYaxTsNLaqPrye9UzHbpMFdSpMSYQ2gPQwVkTKC7BHBWerYP8v?= =?us-ascii?Q?B8NsVQ14bzIoZEovXhawFWef3tD3M4nMKEYZ0ssYBZuTNMEMmd1GrgO52czZ?= =?us-ascii?Q?HxwMFvYybVc3gHk6kt3mctzsMYbTeZvdgRSlqgInVUfAx1m7hK+rdeh0XE9T?= =?us-ascii?Q?QAm9+U2f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=?us-ascii?Q?wLoQ+dnc1Yl8=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0202MB2548; 6:/oEKLDz2jajazhTgw1m6Y0gMkPu3bI1Bndc4UgrH?= =?us-ascii?Q?uXlWnVN1Ne1WvDf8fs+l8VEy2ERnZCvwyzWmngrbm7TtI/Jf2nGtn5EsTxng?= =?us-ascii?Q?HAZh2HmGaoZrggyQnKkrGwpZpTw3UTl8I1y3OsZjr4u4GJFtMd7BistvOGdP?= =?us-ascii?Q?L2BLnDD5AmxymXoSx5RZMojcQoi09CQMXshNYlsmY2stXUy9Rs48aIQ9BFDR?= =?us-ascii?Q?4P+mF/s8tllOelH8g1axpXBatjSaDZKDuhsz4APds31Los+dcvp66Qnoeaoz?= =?us-ascii?Q?xW3+1H2t9Lxy2wokU0lYvl/BqgHlHKyNM2bEzChzGLEachRTDXU1KKylxouu?= =?us-ascii?Q?JUo1msaGASnR/3QwUwt7oTwT/sHIjWjMfCEpNMTiC4BYCDxrAnOA1cthippo?= =?us-ascii?Q?HjGBPjHgrHV1A88KatdxLIDFV9y/falgh/vSWnuOIU9X+wm0logAhvwpCGtY?= =?us-ascii?Q?DH2BYzYsT4LG4FjzIdba5LM3cs0drU3Cb7WfyQg7yIR2E2cAjhbkXNggX5ak?= =?us-ascii?Q?HX3O6SJLxCOoIk1s18Lii7ZilkC8knLiK1pSSk9V7fWVNIIZENiLiPljwiQQ?= =?us-ascii?Q?cKhhKg8bVm3xA+limkfvvPctVfe5NDjC5+hfWa5R1+Bg6af4PMKVTGvPwell?= =?us-ascii?Q?RZjb7BVHMuZGIhsKkBxdfd5VCoEX0QTnv9DeuR5iNzamKOxG5+jOOtyiSRTt?= =?us-ascii?Q?egoWRa+2wyCbDBB55yVfspSfeYOIITrhH8uNcngDfGyMhtB7YqFj9A1XESJv?= =?us-ascii?Q?/frePN6W6d3Pi5P3G+zBtXBlkeKG1NMwNJMvA5wQJthN8GOqCr2OKkLltYbZ?= =?us-ascii?Q?1EozIwcrmzK+fxGUGrgeLQuygflpQYLoKvrWNrHWAm5eJOMO8nOyPVo+ZwN+?= =?us-ascii?Q?8Uq2SpU0lzTHRRK4Ngi3yd3zkBShz+RYnJ8nt058S3tQZKAfZFOAbc7TXfNA?= =?us-ascii?Q?mqXW/DOGPgArSnzZscB3bTihBi+I3GEt7JrfpkmUdhaz15SdvqO5SRUszr4B?= =?us-ascii?Q?cPQ=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 5:x2h2/Evhvyolx4dMN9hLYEiIbklsKy9KIIgj/B2jHaYn/kOp48Eyp+w+Ep6e7cIMwi0yZn5XrBrVtcb/TtXMCcc6I2XTy+z3ljsgAigflHeObSwlKfggPnfLd9Lhk59gPp1USm0kGiriVnYj9EuQ4arBjza1l6zQcrzEechETBdJ6H/OsNE4Anp5+QuOeaQbtfrVzIXLc54XJCVFdzl6MrzbObBPYqmXF1lGRUatR2zsivPJvKuXQIHi1UTAmf0HubiM5hlBYa6RB9Jh8USAC7WpK955mJWKzXAH/ck2JePTyHRaeBvjnkRuJA4vypD8IpoHYNhwjJlS4xOnTJ3Dz18DUdp82VoSxax1Pp3FfPYaurm/zGiJuIdfaB5m8DopRiFwTqFiFsloxEc12Kn6Sclbsaps/jQFWCKodjTO187Lsorp1lbMpuHumDwwhSmdY7ALJkgx6WwWpAFbfaQnKfhWePAfcTFEVQ6Xb5d8d+X1/v0ufMOpRxTQAUvvwDkd; 24:WVuYq3TlSZsJ25xu8M9aUg9bgYnuUKf7j/GDSeQ2URqAMOedAEPLCNVaXBj748XEoXcueRWPtZepDulqIRMwg9QMPL6xZMHSS/0115NS3Vs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 7:xy9iOEqy6Wg2jdJIq5YKYjWqMaUD3yQ6va1cxnbN5cumwBufedd+kIK8V+yoYSAVDCeghQEBTvDKjMAS5VwsSNvG/J+kI1rDqDchPgsBGVH5tGClP5Uk5zyTszkr7E1oLmgUQTqvtcoZAOk870B4UKMgmmjt2Q8sh3nc4UxzdOO/hUZNGaXbxqni0WlFuH64xJuT7CODNxOgNUpsMrhY84djky9Uk3XhJcYcVvlZsyknSxxn2SwAB3k8IznXZRnLICnpZT7j0fUvBPBJjpWlPoNdjha/8M8qypGlyU0viHs+zyTJ3KJMgxPgek8baHtRDoloZo2E3O7BGG1qcgeFaGj4QUctcOrR0diN9bT6ra+2RjZ8G1NRZ9IsCoaJc5mL1biTqtnQYoVS7S3YziW85S3VPH/Uj7sVm4knDdfzp0T0M3DdCNQepPehAKzVIT+epl6/5BLaJ7gvAn6N/TW8vTYbmyEUEaBgQqBTbF+JpE/LOC/hoTvYyYucBDeQzTMCTvS5yXsjC9KFG+33bUn/2zWu0Wf0QhZ+aSSLQmTnu5WQHBJFu9ej8+WrGbPmqgN1kOuJGfPNKVR8FUbdB9hfgPnvUzQ81ycBLfSsNqOFd7EgbDXEcVJM7J3Bt/0skRz8TMLQetg6quYJVLiQq/AsgLT5xQ/dwRwP3FO9jkXElP9bmZ2FKn7yqbBrE6FVsx4Uj/zw+Dsf3rovMOe6bmfIsM1G6tLvWydO5uubvhZNzksIHeHkug3aNGZHdyIDm9FBTBSz8cLYT0KjAVOeQb4SAypqRD3Buvtu8sVigVgAM44= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2017 12:19:54.1863 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0202MB2548 X-Mailman-Approved-At: Fri, 07 Jul 2017 00:43:09 +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 460ca0b..19d650b 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) { @@ -376,7 +355,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; @@ -418,13 +396,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); @@ -527,8 +498,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, };