From patchwork Tue Jun 20 19:25:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9800517 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 336806038C for ; Wed, 21 Jun 2017 01:00:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29A47200F5 for ; Wed, 21 Jun 2017 01:00:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D93926222; Wed, 21 Jun 2017 01:00:18 +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 191F7200F5 for ; Wed, 21 Jun 2017 01:00:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 08B866E419; Wed, 21 Jun 2017 00:59:05 +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-db5eur01on0137.outbound.protection.outlook.com [104.47.2.137]) by gabe.freedesktop.org (Postfix) with ESMTPS id BB7BB89F4F; Tue, 20 Jun 2017 22:58:08 +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=buLc+gEu+HTlkWJtZqf8ek0op4508+5ml7Uyk/LrqpU=; b=s2jY2NZ+dWvjpmvp6mmjA+YzkZjYp6lCWrcdYcJoPVl2rVIDhpWrDQWk7ZXJ5MEmPlTB80XTcnqmFQOC6AsbPtoNZLj5oEd5e1tRuIKNzOKTFodWQX+DklsII5eWSoZaybu5nxPNXaYRT0OlfkysQ/LmMUYfSvC8vEoEZdpqBhk= 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 HE1PR0202MB2556.eurprd02.prod.outlook.com (2603:10a6:3:90::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Tue, 20 Jun 2017 19:25:15 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH 06/11] drm: i915: remove dead code and pointless local lut storage Date: Tue, 20 Jun 2017 21:25:30 +0200 Message-Id: <1497986735-14418-7-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1497986735-14418-1-git-send-email-peda@axentia.se> References: <1497986735-14418-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: DB6PR07CA0081.eurprd07.prod.outlook.com (2603:10a6:6:2b::19) To HE1PR0202MB2556.eurprd02.prod.outlook.com (2603:10a6:3:90::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4c18a985-45fd-4c79-0b37-08d4b812164b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075); SRVR:HE1PR0202MB2556; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2556; 3:4k/PkiuJQNZY41V2Y5tPdC3mwzaP95GNQvj7tt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96JL0= 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)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123555025)(20161123564025)(20161123560025)(20161123562025)(2016111802025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6043046)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0202MB2556; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0202MB2556; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2556; 4:IKnsMZBC3XYbektdeH7b4bwig8PLnK2chbl23DVa?= =?us-ascii?Q?SbMiCmUFLNva0gpSpbebXBX5Gqha7ph1DEIcfoUFvAEA9o7QCRXneWDp+5sF?= =?us-ascii?Q?XPXqGpzwaBmgDpKVFzK9ncQjwZmXGjNSkY4luV++fdUqGwPo2QMu9nkO4Uq5?= =?us-ascii?Q?Xu18OgzNvE09hjlYGdt58k7wBcn1hb7W/rmXnF66v3qEySrexG6yoG2q7g0l?= =?us-ascii?Q?ZiFqJ4gyIFJjzYQVs9P/Myu2kiS3s6S7CVxptrWxj4qcdzI9rJEzoDPjNkI5?= =?us-ascii?Q?FSGOSWy5GZfCBitWApcyveJSF31fInOnsTmOsAp6aFUhXzR0+JCOJh7KYBl0?= =?us-ascii?Q?P3oqjDxrJPeXdsehbyHSQ7Tk9cHenPPZi9VAlmAkCKO+4Lyd/KFx5C0wjN1H?= =?us-ascii?Q?tIi/8VwO3Jwq1zyYbzEF4m/hlyiUptJMYUy7OjqlLfOVFCzJitmyi0lqK9uh?= =?us-ascii?Q?lyXj416OOlv42SHYTUhgPkxeJDEbVUZO/7hx6+C3MKX5nJiXZ5Aul1LEUVdH?= =?us-ascii?Q?d51CNqRnmnedrWAOIVFO1HsgheqK8vlPI/dqkb4VWNNsv48JSISEL775bzJm?= =?us-ascii?Q?cmA7YXfTeW23smzp+NuXE5mO+iyLR7bfrITzUJXrUj553YIs9pLohOjtI88H?= =?us-ascii?Q?pTcKBkBEtW2JdjWqhH6se4q2kawnyErouFDkEq4f3FOPUk3aq6O4dAAIeVoH?= =?us-ascii?Q?lGrcGskZvZqnmyGPU0Bzm2byi0Fl1yB6YmuzOzdfLt3WQwDfhg+GOSZs2CiB?= =?us-ascii?Q?7ZylQbZwiJFEdi9XeGg+W4YP7nG2fcRMQyYUVKWyCdz7U4Ne3NQsogPtTUGZ?= =?us-ascii?Q?ADPuTLxEfxo9KPAC13CTOU4DoAPAEyQFvQX0fG9jC8yXbIF7zkp/jWRGYmlq?= =?us-ascii?Q?XAFIdomkbY4ENMAjaQ0O5kqheod9D5h8Mxq9ZMrh17nWyWIGDXzYxI7H0H8O?= =?us-ascii?Q?hvYVjV3sA/84fdZAZrPDYE1R1OZyKYoonhgboeZA49bt+leHZ/3niesrAQcq?= =?us-ascii?Q?3OFOFd+/ATW5OD6Vg/unnZ75dcYpH8AHU8g7RbZWlwNwe+ePK5VbZ4E3zVgz?= =?us-ascii?Q?hqOuuLdkQnLKfnK4K+NaNJgUXwr5H6310CZRSx9q5+atsfpfcpUqWl+TLpEj?= =?us-ascii?Q?D4Pf53+8aQBD3pgG87LQe4C7gY2Tih+MeS6hyUA/l+xGnSkwXpfIGmPXhjWG?= =?us-ascii?Q?oz9WW9DEOHztd/I=3D?= X-Forefront-PRVS: 03449D5DD1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39410400002)(39400400002)(39450400003)(39840400002)(478600001)(6506006)(8666007)(53936002)(2906002)(8676002)(7736002)(38730400002)(110136004)(6916009)(2950100002)(6666003)(5003940100001)(74482002)(305945005)(81166006)(50226002)(42186005)(76176999)(6116002)(50466002)(50986999)(4326008)(7416002)(25786009)(3846002)(2351001)(2361001)(48376002)(86362001)(54906002)(189998001)(6512007)(5660300001)(6486002)(33646002)(66066001)(36756003)(47776003)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0202MB2556; H:orc.lan; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2556; 23:9lE+hHlOfg027BOiBv/pIIdSrpf9gBXXxOMuz3c?= =?us-ascii?Q?7ra1VTuem2QGV4UCISlZ63Vr7lSIdETJjjvFJ3D/DkdxLvud5aCvsb8cH82B?= =?us-ascii?Q?VKn7BEsN4tYmgwuUQm8OoOyiWUtBrFJxWql3/D7IprCYGqMxKCwdySR0ozJY?= =?us-ascii?Q?2pjaezYWBzi+uuCJ3nhkAqFzRny4BDzNPiFDUVeBy7/2+bBJc9yfmGWarx7f?= =?us-ascii?Q?fEZgEZD4Gb3vn1GYjAxlgS/LTNJf+ilUVloNbXhHa5Geip9Di2cFaqti/hK4?= =?us-ascii?Q?fXYz62yuTta8g765TwWPhtltUVWSkU4smowOQDASj8O+xPc5A8TQHp8sULiQ?= =?us-ascii?Q?ZmVSwmnAUujmKx5JlhKckm+MO1ho3UBlMAo3C9PMFGrBwd/CB094zd2uIqey?= =?us-ascii?Q?ztCg1O+/z0wJ+zot/+/80If6BE1Obnkuehx2Rxa9qSPqDgNKj7IlkS/oGC/4?= =?us-ascii?Q?LHZPXxl1onm1TUrTsDAL5OO9Ait1Ldt49aeuG/3pfam4uq6W2WKmw6emnPnd?= =?us-ascii?Q?yqEelf70tjKwBQcDMeacY25qmyrO9NeHgypJaICVz4yV/wYbnEcLjfTV1vOf?= =?us-ascii?Q?CFZvS0qUH8wNvTQqApJYWg+YByQiThKCCV7xCXl63dMjqIGZVoAUF/19hbZ1?= =?us-ascii?Q?mph6OMTMvPo780/lbBJeQGwNYJI66mFWFcVTxE52oFEiqSscQydQcD+Gsvh9?= =?us-ascii?Q?WgCZPbWhPmT5pL9WefLCWrbfl1J3A875ZgYIgHaazrpBrQRIxc2GdnM9wbja?= =?us-ascii?Q?DS56bzQSWFhiS1g7dllIyCQrhGg+jlnrRoJCj2LLFO7QQFASAlQ8eEfABcN8?= =?us-ascii?Q?TtS5YWIYUmM2as4MHRSHdIHFy7lc3XBktK7HuBGkAfCzf6ZySueZuA6cS90R?= =?us-ascii?Q?kJC26KLB14+CcvFH0rHU1WyCrbT76y7lkXBLtIYrXFsNnmkduTPVAJhX810K?= =?us-ascii?Q?t/qn0OnAaipTT5VbIZAxbR5ijYWkRc1gdhv2QO+I3ElpPIZTCpPPaqLeTK3J?= =?us-ascii?Q?vOIHXKCHbJ0uWoZPx0y6vdTPmEDH+PaD15yphcgpcGuEX44cILvcQAqys1VD?= =?us-ascii?Q?iOWtVibjaYPyFrmFIjuxD2yX1YslkMqLubh+SEjlsjMYVxhciX19Pkr+YC7+?= =?us-ascii?Q?FXKC9rP7qZJXFXITHb+RxETaOohVPEjmR?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2556; 6:s6PooO43V7EcRCNSw+RvgveTd9Wuq+m4QNbG0xni?= =?us-ascii?Q?nIaICMN+OvhHupkveRKpkydQHuiX6hgGiHuRoEkBt/gNsh6CXJus2/42/9dy?= =?us-ascii?Q?03IkJyeVGZfJJJatJBZzhftZw6SmgTiB3jBD1ynAzYOKmgKfFmq5dzL5jo4s?= =?us-ascii?Q?QyWiaV+GGW1FMsaOHXPgCrF4pIHf20aBXHxEBoktG3SWillVTVRzuemm1Dd7?= =?us-ascii?Q?MA7LLCZY9NixC//m7E9XJivgJRVWOFUjFZr0ASDNxd/vGw/14SVjV+BeIL9R?= =?us-ascii?Q?LBkFi0oxvmHAch7IRuaBetyqTYvlEGYT8oCZlAMHEFPX/v5B8Hp4ew/0TXk+?= =?us-ascii?Q?gfcBJfO7Fjef08lNcje/WmNQHBCzl11QqH/j9Q913MXC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1DGFMXiB4BNlti3lajuONJBsiR0pkBlXrlIizVsjzkI76NnkDji6/MtF051S+enIwXMO+JgWgHovw4lQxz/d+YPiHwvjvC3NGFaTSIowf94UUIEs4Y41u0Gg+7y4XcQLxBEEsCGEHyh0UzJS/5BnfZgQkhqBdp/h9FmhWOS2h948svZaCH5/sbs= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2017 19:25:15.5114 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0202MB2556 X-Mailman-Approved-At: Wed, 21 Jun 2017 00:58:52 +0000 Cc: amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Philippe Cornu , =?UTF-8?q?Christian=20K=C3=B6nig?= , Yannick Fertre , Gerd Hoffmann , Daniel Vetter , Alex Deucher , Dave Airlie , virtualization@lists.linux-foundation.org, Vincent Abriou , Peter Rosin , Ben Skeggs 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 helper .gamma_set and .gamma_get are no longer used, just kill the mysterious 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 83dd409..503edf3 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -785,7 +785,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, };