From patchwork Thu Jul 6 12:20:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9829267 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 CA81A60317 for ; Fri, 7 Jul 2017 00:43:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BAAAB1FF82 for ; Fri, 7 Jul 2017 00:43:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD90A28544; Fri, 7 Jul 2017 00:43:24 +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 3F7D01FF82 for ; Fri, 7 Jul 2017 00:43:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0136C6E6C7; Fri, 7 Jul 2017 00:43:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 1977 seconds by postgrey-1.35 at gabe; Thu, 06 Jul 2017 12:52:57 UTC Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0127.outbound.protection.outlook.com [104.47.2.127]) by gabe.freedesktop.org (Postfix) with ESMTPS id E089B6E5E3 for ; Thu, 6 Jul 2017 12:52: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=/I+aTSIA/rSnfiTkmdxhvj45/kWWZf4nE8KLJzNHois=; b=mSAPgSSD/wgdbZAy6LiEgWQyM9GvgN2fpqQnW36Q2nOiJRYbLTr6Gp/scvbcznGYdGgzjJeSPnU9RlenY8ubPD2ETy4GRF/TPTmEq4T7xY0cUfra18k5sipyy6ytVOLlcFcUi55J5oAYg6wXFMSpH0v6w5TbyWmml+3VjYn3dzU= 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:52 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v4 08/14] drm: gma500: remove dead code and pointless local lut storage Date: Thu, 6 Jul 2017 14:20:42 +0200 Message-Id: <1499343648-29695-9-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: f7966edb-5cb6-44ff-d424-08d4c4694ead 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:NmCqyOwSuKZzchkD1Evw7f9uvPQvYpi9zYpj35qd08MuoSGIq53hPQew81j34CaHrGWUBVkMFKInlDvs+9/FKz0XRMC26LT19RUwwWyIlvHOyJ40mWbRUfMaTfFbvjtk8x8rD2AL2b5Tn80yedOb8Bk1IUTTjDms/uJbiTM7KC/KPKnTQJsv+pT3EKVAeSptEqf1DLuy7lDNLsbTVAgc/fn80HlC+3m6L1Tl/cYEnjQkZng6GWvqiT3CknLzncYYact4++BpuL4nYvGkjJap1DhjEtXtAiD/rZ+XERLiL5Z/pwWY7IK56x+3Hulwtfl88MX/G9MBaPuiZet34My2qGmV4KoF+G8UwPecmQ6P15nr1u5K1ZES58fUt9fX5Gg1y4Z3Y8YXDCEsnIjnj8sM9sffnT09zFwy8FqymrG/YvIz4ySySwDRIDGgKakGluKNPpuypyQYo5/3ZxUEeQTKZ41lEUSMg6c3Ikqq71fYBB+TAi0WEASCd2U5GuhO6EuhMrrhE7WukajlUvo2q5RDuyiY6wKVITvX0UfKsFa2352d6JBCp5hDsYPyfAgEyNGgBtNU9VZibfTNkRxOl5EbMU4bLJtpmPbVJTibe02dWAMWVy6w0qAMqgGYo42+Hchfh8Msp3gTZQizvMKtBFdTxDriaq9l6V/MGxfof+EEB8T2XhzOrb0Hjx6n1tjmE2yyzC3MV2dPyPCRtUQovsp0uA== X-MS-TrafficTypeDiagnostic: AM5PR0202MB2548: X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 25:XXQvXutMzTtcVFCYCs3+U7oiG0lylQ4qSX6ww96D+Kk0iXEk0VjO+TGXMPYpv56z4/QSBk9YSYqGWIxWSsCIl9SaA+uDcoChhv5KMPbx15mnYZD5SHjeS+IVI7+ycI+jHAJIrIxH4erEQg156CMdMlahTEC1YuWDRxn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dbP157suT2yiZ5fh9Q/cHD/Iso0EZUG+TJe3hN6MDmVGObKQGnglSnjZOaI/+7u7+UokW0QsS3GtxoRHR0wHZMalRGSu6WFUj50u38bnl0eUW+xUc3WX0GVp+/bmyZWw04+ufeonj3w4SZ7c1UFyw7W4XTIoyoYdnZADvBscjr33yTxlJCKEYIN7+Q/tk6sawS1VPNLYEyhzEiLNhMK3AoD+9DpG2nn+xc9HRjoGxu+muNW+lFAm5BqPbOITK8n0NVZGmZiEZb5KNlGR2mHilIVA76FNYAUnBXXgZGGqD20ZOISOk8GUoScJuXuUVMAiMbD49S/dynUNLfgEyeWQ1gOOnftgRRrMksK0AKyD4rHxUoptzRGjTzE+whuDcdciGrvb3OD2prbCOktR6uA4a+Y= 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:eXBv8UIOnM2DNLJFJy/519kDIMjfN7u67K2bROWE?= =?us-ascii?Q?UXhIzmsEARnBmzv+ZuloHKz4WdGJS4fYlVHK9rEmYJe7rnL3VlAA0aTGJF9x?= =?us-ascii?Q?/rcsM4pW/q5ZkcbejHwn67BnHuroFmuQhOIEbLwmJdeyiqVKWDWYf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JnxGCao5hSRVi7MxVwjaWte/jVrsS?= =?us-ascii?Q?QY8zqcH4xn0Cm7lll+NbDLwXvr9digwSiqJOFC3CfJtUbFi0JJMVWnUqpls/?= =?us-ascii?Q?CYmi3DvXsde+yS3Ds6YlEfNUn9JGYwvSf2cGRdD856jVMCF3DTk+9gIOKgq3?= =?us-ascii?Q?wKaCp5CMPln8Cd0qVGZh4PzczJMAaICpuCeMLHUOY8sLhAKZQLEeNyxQr9Lr?= =?us-ascii?Q?eaA2LZS8LeToPYImOkbBqhnrpEKk9P3sB+unk0s+?= 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)(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:O9peHjqDbMX5gAg3ICGM7ZMGGmfhpLFqWSnNjjW?= =?us-ascii?Q?FBpHBJQDf9YQJhqnKG1hoY3aNHq0UconsbS1KRjWk6f1saWpSNd1nCEOSj1e?= =?us-ascii?Q?r7M1A1uywmnHl3aZ5nCFcM1h7y9Aecg2m6kL7nbcwqTMK5eDGEN/K57R+QUq?= =?us-ascii?Q?r8rDVJnJ+9qrPASIQ/Nqq3zYgBhQgrU58ehqPpgjk749hVH+tjO/h5Er+Xl1?= =?us-ascii?Q?DOccO6d9zQDDXqYZJjskLz2tYFtWqQP2jrlwiZBb2gFdySCw2Tk0uW0zx34E?= =?us-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-ascii?Q?TCBlcBj9oGFc4+K+HAlxfqUOsaInnrbgFvxyHQVWWgcHC8sOP5AWE4Uh3+mq?= =?us-ascii?Q?dnDXI1oS6iB5qEOaWuqaS5eHi5sX7G2J/PQUGpLAeiDi9o3GwaViJeVQ02X7?= =?us-ascii?Q?V4U=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 5:22sm8A8v4HwPJBNtPlg+PijF8H+EuecH7jLdpigb0TMkwQxY0CqCxcqPeANDFJU2nndwk42UJJUuzbrxkICeOIHWdvB6OHOClMcsxgM33XS/lPlLq2KabkDow/2XNUEq4uJmrK7VHpn87n0zNmywf6AU57k7NWd7mT+gGLaTS9YRQUysIzzJt/Rax/B3qC8GZW01RqgdF/nv/24Zn7hPfCFYnscLOFkX4gnhjgknhDzr48Ym/tUDc4zSwbqw0/Wo9Ie+lbAGvzyb3QgDiqYgml/x+0WT9bVWdH03yuLEYBfNUt0rdyy0ixovAOXLoXjueLh0uBboJ3SfX3vEK98Twa18AC+a1yyM8UvISlEWzuWeWayvpYTk3gUkAMj19uVvSQ3NIPO4H3Y6d1GPbxzmkyp41Awb0CA97Kv0L3fffSEJwNYQG61HZBIZh3ahWzSItJ/NEwzOy1KAm9iCforqm+3C0oYVjU0wZ2cOwxbcMw/AexwBhVLqI+InAm+eaZ44; 24:MWjGDulfwShCRKxMjRYXmYBbICMhCRCqtsVPXPP740I4BnatkDx272y54y3Nq1nwTm3EXBeupwiN1/dGgedEME/VISaD+wVjtNye744H/yk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 7:6aUrBuR/SkuQYF/x9DIEIFtQsv5S6Kz8iW8GGWQpxM3bujy+ywCjD9+4TM22FROdzJckHEpbRzwQh3NkiicYniHw9FsSZK2Bs/E7xdywujUhLuAntC64YNEWny2zhKdcRlzMyyZeVFeMs9DLWx9NjhLcDbhXhfHqA+J7Bsb9DHdS0oDJHxssZu+Cfws6NY7w3+2CjMGu/ABOtXy+NDw63pEOI9qHaz7eXkusn15fe+7MYzftyDcD6XLhezahB65ICtGwQ/qRj6aVPj/t7rQ09aWEuyD18JNIk9oNJUoYZlYnK7+mmNQPBNwBsndtewfzNG554iwUkqYd8ORCfaODsw/gchmAR8SQOm9tVl4a6nbISr78ANgcQ9weSIwZ1F964e7KqsvOnhnBjzTa4nCyG4Dti09YeZK0sWSyxTxDwDFSUkMLHt72Kr3F6LMBtjIV5Ki4rIp16rWhsuiI6JagnKasFR3G1dHRReSz6kpIlOduvFD3B7IvRcMv0O9sDnNa0btSejwOHu9WOEWmG/IaP+pHeaWFEKVe6NF/+qcIRaVplCrEREO9eBkevTEJdd2XBoDUeSq4sU4FQIuJGhXQfvlcno8lejA2AzEoKJFMJAwEwTWEhmtbiBSnDpUo72LDi7cUaKJx3hzxn0lUFCYeVdBuBdglSm8nwP6/Pa2W8ro5eOH8XBuvHwhgVjX2L2u5oLb/764+LNeVAXdSNhS4nLaZDJT68XxbutIuhvxpXrR7RupbSUpG53zP42GoeZ7ApcwSPv+0N/7gB7l/qHM2HWnA01k+83XCr4eNydG3U7c= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2017 12:19:52.5769 (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 , 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 .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/gma500/framebuffer.c | 22 -------------------- drivers/gpu/drm/gma500/gma_display.c | 32 ++++++++++-------------------- drivers/gpu/drm/gma500/psb_intel_display.c | 7 +------ drivers/gpu/drm/gma500/psb_intel_drv.h | 1 - 4 files changed, 12 insertions(+), 50 deletions(-) diff --git a/drivers/gpu/drm/gma500/framebuffer.c b/drivers/gpu/drm/gma500/framebuffer.c index 7da70b6..2570c7f 100644 --- a/drivers/gpu/drm/gma500/framebuffer.c +++ b/drivers/gpu/drm/gma500/framebuffer.c @@ -479,26 +479,6 @@ static struct drm_framebuffer *psb_user_framebuffer_create return psb_framebuffer_create(dev, cmd, r); } -static void psbfb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, - u16 blue, int regno) -{ - struct gma_crtc *gma_crtc = to_gma_crtc(crtc); - - gma_crtc->lut_r[regno] = red >> 8; - gma_crtc->lut_g[regno] = green >> 8; - gma_crtc->lut_b[regno] = blue >> 8; -} - -static void psbfb_gamma_get(struct drm_crtc *crtc, u16 *red, - u16 *green, u16 *blue, int regno) -{ - struct gma_crtc *gma_crtc = to_gma_crtc(crtc); - - *red = gma_crtc->lut_r[regno] << 8; - *green = gma_crtc->lut_g[regno] << 8; - *blue = gma_crtc->lut_b[regno] << 8; -} - static int psbfb_probe(struct drm_fb_helper *helper, struct drm_fb_helper_surface_size *sizes) { @@ -525,8 +505,6 @@ static int psbfb_probe(struct drm_fb_helper *helper, } static const struct drm_fb_helper_funcs psb_fb_helper_funcs = { - .gamma_set = psbfb_gamma_set, - .gamma_get = psbfb_gamma_get, .fb_probe = psbfb_probe, }; diff --git a/drivers/gpu/drm/gma500/gma_display.c b/drivers/gpu/drm/gma500/gma_display.c index e7fd356..f3c48a2 100644 --- a/drivers/gpu/drm/gma500/gma_display.c +++ b/drivers/gpu/drm/gma500/gma_display.c @@ -144,33 +144,32 @@ void gma_crtc_load_lut(struct drm_crtc *crtc) struct gma_crtc *gma_crtc = to_gma_crtc(crtc); const struct psb_offset *map = &dev_priv->regmap[gma_crtc->pipe]; int palreg = map->palette; + u16 *r, *g, *b; int i; /* The clocks have to be on to load the palette. */ if (!crtc->enabled) return; + r = crtc->gamma_store; + g = r + crtc->gamma_size; + b = g + crtc->gamma_size; + if (gma_power_begin(dev, false)) { for (i = 0; i < 256; i++) { REG_WRITE(palreg + 4 * i, - ((gma_crtc->lut_r[i] + - gma_crtc->lut_adj[i]) << 16) | - ((gma_crtc->lut_g[i] + - gma_crtc->lut_adj[i]) << 8) | - (gma_crtc->lut_b[i] + - gma_crtc->lut_adj[i])); + (((*r++ >> 8) + gma_crtc->lut_adj[i]) << 16) | + (((*g++ >> 8) + gma_crtc->lut_adj[i]) << 8) | + ((*b++ >> 8) + gma_crtc->lut_adj[i])); } gma_power_end(dev); } else { for (i = 0; i < 256; i++) { /* FIXME: Why pipe[0] and not pipe[..._crtc->pipe]? */ dev_priv->regs.pipe[0].palette[i] = - ((gma_crtc->lut_r[i] + - gma_crtc->lut_adj[i]) << 16) | - ((gma_crtc->lut_g[i] + - gma_crtc->lut_adj[i]) << 8) | - (gma_crtc->lut_b[i] + - gma_crtc->lut_adj[i]); + (((*r++ >> 8) + gma_crtc->lut_adj[i]) << 16) | + (((*g++ >> 8) + gma_crtc->lut_adj[i]) << 8) | + ((*b++ >> 8) + gma_crtc->lut_adj[i]); } } @@ -180,15 +179,6 @@ int gma_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, u16 *blue, u32 size, struct drm_modeset_acquire_ctx *ctx) { - struct gma_crtc *gma_crtc = to_gma_crtc(crtc); - int i; - - for (i = 0; i < size; i++) { - gma_crtc->lut_r[i] = red[i] >> 8; - gma_crtc->lut_g[i] = green[i] >> 8; - gma_crtc->lut_b[i] = blue[i] >> 8; - } - gma_crtc_load_lut(crtc); return 0; diff --git a/drivers/gpu/drm/gma500/psb_intel_display.c b/drivers/gpu/drm/gma500/psb_intel_display.c index 7b6c849..8762efa 100644 --- a/drivers/gpu/drm/gma500/psb_intel_display.c +++ b/drivers/gpu/drm/gma500/psb_intel_display.c @@ -518,13 +518,8 @@ void psb_intel_crtc_init(struct drm_device *dev, int pipe, gma_crtc->pipe = pipe; gma_crtc->plane = pipe; - for (i = 0; i < 256; i++) { - gma_crtc->lut_r[i] = i; - gma_crtc->lut_g[i] = i; - gma_crtc->lut_b[i] = i; - + for (i = 0; i < 256; i++) gma_crtc->lut_adj[i] = 0; - } gma_crtc->mode_dev = mode_dev; gma_crtc->cursor_addr = 0; diff --git a/drivers/gpu/drm/gma500/psb_intel_drv.h b/drivers/gpu/drm/gma500/psb_intel_drv.h index 6a10215..e8e4ea1 100644 --- a/drivers/gpu/drm/gma500/psb_intel_drv.h +++ b/drivers/gpu/drm/gma500/psb_intel_drv.h @@ -172,7 +172,6 @@ struct gma_crtc { int plane; uint32_t cursor_addr; struct gtt_range *cursor_gt; - u8 lut_r[256], lut_g[256], lut_b[256]; u8 lut_adj[256]; struct psb_intel_framebuffer *fbdev_fb; /* a mode_set for fbdev users on this crtc */