From patchwork Thu Jul 6 12:20:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9829263 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 3007460317 for ; Fri, 7 Jul 2017 00:43:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 209D61FF82 for ; Fri, 7 Jul 2017 00:43:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1558E28544; Fri, 7 Jul 2017 00:43:19 +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 9D0D91FF82 for ; Fri, 7 Jul 2017 00:43:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ACF8B6E6C0; Fri, 7 Jul 2017 00:43:10 +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-db5eur01on0093.outbound.protection.outlook.com [104.47.2.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1257B6E1F0 for ; Thu, 6 Jul 2017 12:19: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=c2+c/dCz8X5o2Q08ZTEKcDSvSyLCeto5v1UF8s71JHs=; b=CkIpwGB6AegA90kF/9xhlnP2DTVl64pKBL35MD/WtD5XVV7BsHLUUKPlTa+F/HQktpcpMAT8awOddWF2xTR0q+4n/22lH9CsF8OeHOGmWzMqiDDw/qeiNMINAMDn2Q+5ClBlbuU01TI+ODOZELi6eSLrxHW2aaisQkKHUtLAcjg= 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:49 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v4 06/14] drm: ast: remove dead code and pointless local lut storage Date: Thu, 6 Jul 2017 14:20:40 +0200 Message-Id: <1499343648-29695-7-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: fa920838-5fe4-499d-35f5-08d4c4694ceb 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);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gh4+J5pjYeuJdn34M+vr4qVgqn32x68vWcu3ddCXawV+7xVE44SHmJiwLFAM1ad6oyIOHazn4sVJVWCeSFr1pF4QRL/ZxjMCmZ4DBeHeBhwB/eDV76ndCUn4Y4/+Feq8+0b3pbLUfyBHSFA07CHpdihJUTDE24bulgRKJHV3xhsr3NMqA2dvXeUFc//mKekjNTydJjIyThvgygDIPBkTVfl/c5kmWrO2J/U79bqrtQ6l1SkaKUiz0HJ6jRIjOg9b0EHutoQPCkEBVdH82JiATx5rzShXn42R/rWvViIebGhVKTK+h328yty2Knotue15z2BcwPn7ZXdcmtqyFeotVyF0GhmHd7AzixrX7fuGu9BzMw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); 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:rAMRi5Lh6ZHmATn+NlkPMQAId9BXXTSaiFsaHG/z?= =?us-ascii?Q?pGkTjw/TorC0m3FfV0GRkf9Bgiyixyp0OqQNkPsnPX0MInfetjDGJvJVbrXV?= =?us-ascii?Q?Jvas+Y8cP7dPn0WarttA4QXeeExziijQmb/QXGMRCqhZRfFDBDpTVSxlfaa7?= =?us-ascii?Q?zWCbBaks2N5zUESRnCXPtcyRx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wToNvK1+jMypnBRfcrOe43EB2svKgjn4QC3ej1ir2HVpJcQ1G/AQJvaPfd?= =?us-ascii?Q?Im4FGelPi8/7Vv0FlC8UEIEEnstJlMXz+K56MDja9taBPL5Q01KjI/39fBzu?= =?us-ascii?Q?4fapI+h40vvsH5qRJjTdJSzrTTuhKjE/aXZWDKQuM/XT/bCvngKNxa1ZEC50?= =?us-ascii?Q?P1VB7jFBMGMJGIUiGLPyA6hLGBN3mn+MD62fY6u5?= X-Forefront-PRVS: 03607C04F0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39410400002)(39400400002)(39830400002)(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:cnxFukIaVp4mtfyVXC5P5M4hzAhScK57RekCtk0?= =?us-ascii?Q?fGLGITK8fCWQJMeT8JOZn4wzJhcW3hCaO5a7lFWRSB5OF+bGKW06KYN+03vD?= =?us-ascii?Q?QNrsNy9S5Zkufuqt8eegM/FJuV1USYOgL8Z1vsSRCU3suxMuIZAhwy79Yd8S?= =?us-ascii?Q?zaJ9itReOMH8lkDii9SZzxThRcGwZHuIwi3TP7gRJrO4KH4rTEhqwz/scojn?= =?us-ascii?Q?vijaUYurIfElWD5Hawq+k5qlgJMrrIbVRBsHL57PIFj6ENr8FydkAt2Xoc+H?= =?us-ascii?Q?JdXnrdUS7caw9KJj9svS2lpN9sNfBGWg6Xov+ovn5PEkkRUuEmWWmaApgba9?= =?us-ascii?Q?TZeMNSl08qBkAVOv0fuelF2EMExj3SeWeOs4e+lJjB/pqPSdIs9yAhPXq968?= =?us-ascii?Q?+xxLLBynqKXp+JN9XcMZW312SWsKueNI7fy1oRLYDXmPPKGXtRawcVo+GfKo?= =?us-ascii?Q?tCSvNldZUEd38BWTR2ls4fTaMvi7Y24NkjaRlrikYA4CAsBcUi4FZRGnH+cj?= =?us-ascii?Q?Iqji+qjWqTfdFX44unA1paV7ju95MAr9sAD632lMG3A8q4icHDeWQfwM146A?= =?us-ascii?Q?6lq94lbneWz2Ivdb4tAjDbrm5U9rvqltwhfajHSNvyPE7KGK0x8kPl7d7irS?= =?us-ascii?Q?0ogA60Yfpgb6lJf8No8NYFnL+tRlj8GhY3IcjNYRbgYiN2za92WVsXPVpBe2?= =?us-ascii?Q?IGZf6bpHLQkCh13R/sakZpHc3+ebE9Naoo1WyluoIFnzFB46C1anCc8EumF9?= =?us-ascii?Q?pwXv/ttZ483KIz+iUVJ7FW9SCPH9DMgQ5wtmdIRVoFjnv77jjQ1s+V1xvwBL?= =?us-ascii?Q?+nOEUEHqj81STz7evlrZgNzLSmRUYKcsIZJ3RUYcvg/uJR44PmN0M51j/qIM?= =?us-ascii?Q?ruDHd3Igog+V2vI7EzRZnE0U+DLe8eWy1XoVVBR3nHniFEHhDtQ2AZFCCEXq?= =?us-ascii?Q?BudBNmODt7OOFphGnCBOhF5uW35iJ/ZdLvz5uUvBwh4XDufkHLWfYzvFvN+t?= =?us-ascii?Q?LMgPNajm9YcgMnCkSNZLpM3QLb3Sh/UPtiTSF7zYXJ5pEhb6TA5ntrr3D/ng?= =?us-ascii?Q?yO/FIZ/kr037IpbMEg7Pk0D5UIoqEr5LiYv0pW6pDzJ2WeZ6i244uCxAPM/f?= =?us-ascii?Q?fEnBQbP6ggsU=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0202MB2548; 6:+fPRJbkLwsRwERBT+0R3WEkSt2W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88HI18tQ9mAKEWOoi0OjNE6twNyO8nQNoGW/x2JZmdxSu?= =?us-ascii?Q?Tw8qNfHaDjbTaSdlmBH8Ble2p0snW1eyGZkE6u+OIrlKeSHF5TUx+KfX01U+?= =?us-ascii?Q?3GI=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 5:IaoICjIG9mwtbKtfwRS5I+4bBz3ILsF23KwB1tlR0QmD6fS1ZuWz5WpcdMDlOGdPRfcdQMSPK6yihI7ubP+278Kotbs45LPL1Xa8WPhjqOcOPUdLBNQBnefDqd4AG6zdOy2qLgju8qAJbgS9bA1I5agTC5hsRVhPOMJFD7nm0BBJub7wzCjIWLaijD8ts2VzLc08OD95K3UL5SWPo+86jORohXoglfBrK2ZUOMGIuGr2kn6KA9h79WFS/ueNUBYGND6naBb/fg7VKXSZfqC6l7esxumE3If0Uy/6zyQ8o0+lrmNr9xFWhowyXu6Mku1U9OpmO1fv+bDxfD17hcd71rlcjyS9nV5Dj4T2LOIeUPuKXBw/VNiEpfIoxjE5p1LIA6fc1sAh3vAOB02MALwTy7QTk0KEaeS1XUayzyBVqfsD3q1wGQ4BO6olsg5T9Hr2CUVotE35cV+Jjru/TFeQHFO86JG2F8QocZn3epSJntbtnv3mI/EUQDTpivLvngg8; 24:36ae3d+8Y1FpakYWOnyGUIMeby0DCtNdRRTm0n1KOyaZaTrrRO7fb79lnXRkI1GaOu07iz43Z7+hBacKYj90WERaHJ0tuxFEt9UuGzzbiNQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 7:hW5U1EnHfNmVCn3H51Rrn3kZC9hkr+OdrIEK8OXdLmm8Iskh2HxO3+nOJ1umrq21yAwvD7qMR1NMGw1LL86N256UOMrfAI1FYDECKIevS/BPg9cCQKH7rgOOKepwDq9PEmJrjaHY+oMHXRpgNrg9ZSeCFpvK4SyUf4Neh4Q9yugIvwB5Bm6AdsE8a59G+Q7cM0FIFhRAwgAMZC2IGrlnY08bOvkfiuUGk6e0i7QFvKGa1Gaf6GvsJtiRhIvD0VCDqic8B5Y0Z8iRlW+5MdJXl4ZKZvw/MCLwBSWuuKZ/LlHhYUj8VlgGFSqRlwpGecfCd2OgvJFxbG9HMkfft+QGpirTEJ/izoe1ynkjer1cEl5W88+hMxmDLOXGH/xGbwTcNybqmAVtuLWjwpLJqTcF2exh3M0gbg5SrzpyopnSW5GFLuhcOJMk9AJj910fO2PbSy2DSwHoIkCQenZ3lV2U76wPVTFLLbPlDXDooum6xdZnPlLqSRPvRNn2pceUitkLN3YNPiNk87msC/8gYWHqYsN/E20UBnl/f5JXlJHy8Z39/CrL8v3aE8sHipXcZSvYvOJZhmgTFwUgdYUnXHAgbylRtQ2ukq0E0RX0TQTsOtMB6ESaa1+z1HLuwotsMkC5D/DUgYbveL3mSLM4s+L5XdPUgGLbubrnuawrv8H4leBncEpVNXJQ1JX6RWFvPlRLQ2lBDfiPXcBw/gPpEUMmSwfh14s3XNgKtcv24SJ60BU8O9SsLIfLbGu1HpsRyyujqRuOsQycEs/SlWQTsn/z4Mu8MsutkUtfTt/vRW1Ts/8= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2017 12:19:49.6238 (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 , dri-devel@lists.freedesktop.org, Daniel Vetter , Dave Airlie , 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 redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin --- drivers/gpu/drm/ast/ast_drv.h | 1 - drivers/gpu/drm/ast/ast_fb.c | 20 -------------------- drivers/gpu/drm/ast/ast_mode.c | 26 ++++++-------------------- 3 files changed, 6 insertions(+), 41 deletions(-) diff --git a/drivers/gpu/drm/ast/ast_drv.h b/drivers/gpu/drm/ast/ast_drv.h index 8880f0b..569a148 100644 --- a/drivers/gpu/drm/ast/ast_drv.h +++ b/drivers/gpu/drm/ast/ast_drv.h @@ -245,7 +245,6 @@ struct ast_connector { struct ast_crtc { struct drm_crtc base; - u8 lut_r[256], lut_g[256], lut_b[256]; struct drm_gem_object *cursor_bo; uint64_t cursor_addr; int cursor_width, cursor_height; diff --git a/drivers/gpu/drm/ast/ast_fb.c b/drivers/gpu/drm/ast/ast_fb.c index 4ad4acd..dbabcac 100644 --- a/drivers/gpu/drm/ast/ast_fb.c +++ b/drivers/gpu/drm/ast/ast_fb.c @@ -255,27 +255,7 @@ static int astfb_create(struct drm_fb_helper *helper, return ret; } -static void ast_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, - u16 blue, int regno) -{ - struct ast_crtc *ast_crtc = to_ast_crtc(crtc); - ast_crtc->lut_r[regno] = red >> 8; - ast_crtc->lut_g[regno] = green >> 8; - ast_crtc->lut_b[regno] = blue >> 8; -} - -static void ast_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, - u16 *blue, int regno) -{ - struct ast_crtc *ast_crtc = to_ast_crtc(crtc); - *red = ast_crtc->lut_r[regno] << 8; - *green = ast_crtc->lut_g[regno] << 8; - *blue = ast_crtc->lut_b[regno] << 8; -} - static const struct drm_fb_helper_funcs ast_fb_helper_funcs = { - .gamma_set = ast_fb_gamma_set, - .gamma_get = ast_fb_gamma_get, .fb_probe = astfb_create, }; diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index aaef0a6..724c16b 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -63,15 +63,18 @@ static inline void ast_load_palette_index(struct ast_private *ast, static void ast_crtc_load_lut(struct drm_crtc *crtc) { struct ast_private *ast = crtc->dev->dev_private; - struct ast_crtc *ast_crtc = to_ast_crtc(crtc); + u16 *r, *g, *b; int i; if (!crtc->enabled) return; + r = crtc->gamma_store; + g = r + crtc->gamma_size; + b = g + crtc->gamma_size; + for (i = 0; i < 256; i++) - ast_load_palette_index(ast, i, ast_crtc->lut_r[i], - ast_crtc->lut_g[i], ast_crtc->lut_b[i]); + ast_load_palette_index(ast, i, *r++ >> 8, *g++ >> 8, *b++ >> 8); } static bool ast_get_vbios_mode_info(struct drm_crtc *crtc, struct drm_display_mode *mode, @@ -633,7 +636,6 @@ static const struct drm_crtc_helper_funcs ast_crtc_helper_funcs = { .mode_set = ast_crtc_mode_set, .mode_set_base = ast_crtc_mode_set_base, .disable = ast_crtc_disable, - .load_lut = ast_crtc_load_lut, .prepare = ast_crtc_prepare, .commit = ast_crtc_commit, @@ -648,15 +650,6 @@ static int ast_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, u16 *blue, uint32_t size, struct drm_modeset_acquire_ctx *ctx) { - struct ast_crtc *ast_crtc = to_ast_crtc(crtc); - int i; - - /* userspace palettes are always correct as is */ - for (i = 0; i < size; i++) { - ast_crtc->lut_r[i] = red[i] >> 8; - ast_crtc->lut_g[i] = green[i] >> 8; - ast_crtc->lut_b[i] = blue[i] >> 8; - } ast_crtc_load_lut(crtc); return 0; @@ -681,7 +674,6 @@ static const struct drm_crtc_funcs ast_crtc_funcs = { static int ast_crtc_init(struct drm_device *dev) { struct ast_crtc *crtc; - int i; crtc = kzalloc(sizeof(struct ast_crtc), GFP_KERNEL); if (!crtc) @@ -690,12 +682,6 @@ static int ast_crtc_init(struct drm_device *dev) drm_crtc_init(dev, &crtc->base, &ast_crtc_funcs); drm_mode_crtc_set_gamma_size(&crtc->base, 256); drm_crtc_helper_add(&crtc->base, &ast_crtc_helper_funcs); - - for (i = 0; i < 256; i++) { - crtc->lut_r[i] = i; - crtc->lut_g[i] = i; - crtc->lut_b[i] = i; - } return 0; }