From patchwork Thu Jul 13 16:25:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9839739 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 A702660392 for ; Fri, 14 Jul 2017 01:03:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B281828774 for ; Fri, 14 Jul 2017 01:03:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A718A28769; Fri, 14 Jul 2017 01:03:08 +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 5C2D31FF54 for ; Fri, 14 Jul 2017 01:03:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E00176E718; Fri, 14 Jul 2017 01:03:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 5487 seconds by postgrey-1.35 at gabe; Thu, 13 Jul 2017 17:55:57 UTC Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0101.outbound.protection.outlook.com [104.47.0.101]) by gabe.freedesktop.org (Postfix) with ESMTPS id E48206E6B1 for ; Thu, 13 Jul 2017 17:55: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=eJli1t8V35ZgmK/rIn9Zt2dl5uJEDD2rffeVQylo5tg=; b=SKF57UMZ7BDuE/10ey+Ipgjat4FXOBbhWhsoeqZUazEjF1jDU7qN/I6BngDnnPh06R67X3adnvaiWO2f0TOdoYhDhRW138lLXnFhIy1bdMp6xH0BkdMqFGQjFtbrC8GOO967m9djhl7VJkONP5U3prGI1TX22oK1aeGMSEAqRFE= 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.pedanet (81.224.168.30) 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.1261.13; Thu, 13 Jul 2017 16:24:34 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v5 09/14] drm: i915: remove dead code and pointless local lut storage Date: Thu, 13 Jul 2017 18:25:33 +0200 Message-Id: <20170713162538.22788-10-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170713162538.22788-1-peda@axentia.se> References: <20170713162538.22788-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.168.30] X-ClientProxiedBy: HE1PR09CA0048.eurprd09.prod.outlook.com (2603:10a6:7:3c::16) To HE1PR0202MB2556.eurprd02.prod.outlook.com (2603:10a6:3:90::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: adfcbb2d-ea06-48f1-3b91-08d4ca0ba67e 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:HE1PR0202MB2556; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2556; 3:lWRJIoZDBmAL2kjhEZwC+iRoblDlPamTUrIhOQWIH9jP9NZyWM2Rrz8WOLU9u4UekEzCwrQc9t+ejqTiibdJ0r55jJ21Z877Qbs4ZP16g6N+x9OoVlAFwpetpkBAyNH16hBdvvcSxzeI62KlEZIuTSfiwAiesm/u1xhGiZy+Uw/bJx5WFP3z3yUlZ6B9PWrB2XHiYXfH6+Dvvwra0Fv0T0q2ckfl1n7CfrisTaXvMht68HiBS1iY9JoZVB904UDIgYgyGh85dNTQzPvcwXZ1uLKEh41gVO7MsasWHFNetoIzIrl4SjUtqac+CzLC47g+9m38QmC3Shqe8A6U3fIz+W3GGo1frBjgkvxGag5+uMnK0yIYRr9KvAHdho3Uytcs2GDIIm++ye1qEaVhl0xpvmb7SR8Cy/4V0au0w1COwdda4ekvHNc27AJLQ0At3MYmI1TX4uoJ+6OWHa+sTEw5pBvT+LM+y9cLOuR5KCqzlH/T9Lb5brcJZPyx9t5X2yBZMiA+oNaw2Sv7gSSdEr0edGg9+2G3Ib3bLfNQnJbcJaldkQe2ggewqfbi9fGvIw/ZPEj2tfHwjPJnjgKbnYivjHP/jlRq7XNXFfsmuf46ImhkHmEx5WKfXleA7YAPtDqE232bVDRrRVUC9myk1TtqMDshnqwKI0p3P1QHi5gKUapQmSmhZtRYPrfa1K5x1ktWLI3CRF1sDDI0KnSXsZnGDA== X-MS-TrafficTypeDiagnostic: HE1PR0202MB2556: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2556; 25:yk4JAJypYqEix/GjPXZsgk2MtgLe5PTqZHWpHVxCRoOB20cdawP62R1DPIMZrIIjY15sLKlaPYUNfgZDb4y1UJN6lExIvtHIMKBxASO90PDJfz0Hfn6qh3cdFJ3i5/NPXURC6ud+Sc+PwFshDjUE5uT+hR/7dOeV7WJDSMNx1RnzITQzKAl3xI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TAK9s+iRAFmPIKt+LOpBZrrvb5uVvu8PcO17RffMi8zsP1OV6bmJPjEriMKn4eZqWnKQKvqF5UHSbw/jLBfkLMObSLafCdsJjmlDS62dsl1cD+RobmXpeQC5RHqkTzyYhI+mrl4F+V7QZKs8ToEwweVuarMORNn0eVixWuHJ4zycDpjJ3WxR32+7BYosnSMocNKGleZuA9uz28KyKaga0JghKRk6EDaC5ePfO2qZ88MGJ3pOIgLH7M+THKXKMU1/N2smbg+q2DGy8Ivvt9M/BYY0v9y7yfcf6d29sgqMh63nsd40fZ/LwaSfhinakK8+cYWLW8bK6Ps7V+NXneA0bEpET8m8R8SoOQaf9Lh2i/MxmN/6erYhgbg9vRvsQdLvnswiFDpHlliIH4tTnZv7L3TAU= X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(148574349560750); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123564025)(2016111802025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(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:gxTm2TzieLrSRukJEz6TM06+2jIfsQ5bRyIyGKjH?= =?us-ascii?Q?lvTnhmzwzGAncWmTOcm7k9hbKBXkYD5o0yW+FHdcJRLbCSoi12s6BaBNum8A?= =?us-ascii?Q?zFnYJjmN6FKMgqqvWTwETvxdkH6C/+tEH/CNIUTe9J99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nMg2gNJBdJz02L5PKbnpaMQAamx7/GzhWCBJzwqtVzkybKojr5?= =?us-ascii?Q?uq3Mkts54mjccEyctl+rp1oGtZ6iQG9JHA0yeBRDOt0Kc0sxQRyCFN2LnDKr?= =?us-ascii?Q?ZkRCwzT38i94qSC+ILya1srh7xjnZmLlwKsgdZCPYhUa9Pe4bHJp0KRCQYfA?= =?us-ascii?Q?wDjulmwkWB+rYPPlx8ATpa5d5rdKF9LikNv/WX6wH4DTF8H6TSkoeUgeMcfQ?= =?us-ascii?Q?CoaAKqz8gAjvvv2MjehXU8tontNBCXSPY5do1BNzbDTr2tWHtEtrAuw5u61Y?= =?us-ascii?Q?foGg5GmAOA+vven11vT0E2Y=3D?= X-Forefront-PRVS: 0367A50BB1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(7370300001)(4630300001)(6009001)(39830400002)(39400400002)(39410400002)(39450400003)(54906002)(8676002)(81166006)(5003940100001)(50226002)(6512007)(6506006)(38730400002)(110136004)(7350300001)(53936002)(6486002)(7736002)(189998001)(5660300001)(305945005)(4326008)(25786009)(2361001)(2351001)(33646002)(3846002)(6116002)(74482002)(48376002)(50466002)(36756003)(575784001)(86362001)(76176999)(50986999)(1076002)(42186005)(2950100002)(6916009)(478600001)(66066001)(47776003)(2906002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0202MB2556; H:orc.pedanet; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2556; 23:WI4DGk74L+1XkslTaRYdwWKUDbM2P28sj0n9QYd?= =?us-ascii?Q?/+EVg+89CPDz5dJgHpmkwKdZvYMKxoSSTb+Y5lR6CnVXtsftBZDZlS1oaWYP?= =?us-ascii?Q?tnxPRS1RHIyPaP57C6w7RZcNRho8wHBPqlBPBhlkIo9kjrVex2XkBhw6P4H6?= =?us-ascii?Q?k736L/z9ItzWqdR6gnxmLTw0me27fUSkjToRfA7XQ8nBqU98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-Diagnostics: 1; HE1PR0202MB2556; 7:nEEDkVIYzNeImWTF402kxutnBs6ICxH4RO1CkXepmz4JCHuLrXOBkgqClO0qdYICilIO5zkg8GCerJiXb7L8lsVatXdXirwisvVxaU9RWDe3k3JZ5tKcQpaX+Pmfj9TQfyDjKqYfqxtYPmy3AF2UdGJproK1RxhzlFDAndWbjoed0Z/a7mSX+6zGFQv8Xs2OVVn+z4LD2zRfgDNxlp1JpXH3fGrBe537YdLc0N/N2rk534tSmPlT0Ml6N8QooN5Y4MDAta2enD3zY9Zv2IfJ+rEOd63Eit2gc/mKD3gUwPEvJ9kh1bYjJxSjeAjisq+HyijCosGYrAKOuLleZWR7YtT+zWC7O5yYboTFqTEPLxZFDX6s24bpnvqWLbFpfz68mmc16jxYSM2AkJyGzn0OOXdiQREYXdm7pAIHC3frxlgMa01JIWU/fT1UG7MuJc8sOyTLQyC9KBSThIkFzxtWnWeLcPiE5Bc13eE/LoScD+Q1VrmPMRMbtVT2r1sMHGVr3DLddLWxDKfnOa3dO2Er/DaHWD4am8nvibsecWeyMk4OuNbnPLE+KkJLJ9xnfp+KYE4JhstT0E9g7TEKHqElQMp8ZAmGKpBXFIdu2+0c/Apg5InX3f8SsrlnYvk+5jcDjJwGdJAxLSiP4exNWJTDzp7eDZt5zg1iPVM4rXyHjdO1lISKSW2jBcJKdEdv4djCChDyVCm+pnfZp+HehCgUr+0GjSujkztGV3bYD8s7L3luZiwHVUj9m0HYAKS09Ua0tisZytPecY855AG5JYwGQlZt3HuKbCMQ2ElHn1meYm0= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2017 16:24:34.3605 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0202MB2556 X-Mailman-Approved-At: Fri, 14 Jul 2017 01:03:04 +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. Acked-by: Daniel Vetter 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 d93efb49a2e2..bc7bfa0efdda 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 460ca0b3fb88..19d650b24207 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, };