From patchwork Thu Jul 13 16:25:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9839737 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 9ECB3602A0 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 A974E1FF54 for ; Fri, 14 Jul 2017 01:03:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D96328757; 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=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 78F0428769 for ; Fri, 14 Jul 2017 01:03:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6895A6E715; Fri, 14 Jul 2017 01:03:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0121.outbound.protection.outlook.com [104.47.0.121]) by gabe.freedesktop.org (Postfix) with ESMTPS id CFE2C6E66C for ; Thu, 13 Jul 2017 16:24:34 +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=FVN7PShJDuEKgfk0Gy9v46Is2yP7QczkaBK6yJeZ7YU=; b=CQIPoii79zRqh4iUo9KSzWhoEydX+BXs9GSZUuHcSSrXknQ7+9B06OGmZMgHfIy/uGix6gfa1txrXMwuIkEmGc6DsUXt5zYVYnaEo3HxaNEkZXlDZ2YKKz1jvzkqFHfmI0Vk2NFQSM8+pQq5FXYgV3dpfm38YwGVGVmsphDF/FQ= 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:33 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v5 08/14] drm: gma500: remove dead code and pointless local lut storage Date: Thu, 13 Jul 2017 18:25:32 +0200 Message-Id: <20170713162538.22788-9-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: 1e7e4263-57b6-4d8e-ce31-08d4ca0ba5ae 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:U5eGJnXdYorbram0JlincHHU7Dg2kMIWbavkuojpyzs9htIcod2sPRwypGnYJAggQ5zVELTaOzeChoMJ+cf5IryrBVjNXEMhwnOEKBlzgAGKKwSHHUwgT08IAUvEir0l4XCo8J7ebcm+CZ+iqlp5PNoVuytbCOSLIt05HM44cJkupvNzFB5Azfgs9r0bVPYVE45krFpfaLxzOPeWMxcPqHrFuvoXRDJ6snPsVzx548o59PMPiRPxYgxds8QggZYYix5O89spgbqS9tUVQP5tkZROdRbzWifHGMHAItfEveLYyn65MCs5bmiiuure/CYWC0TYmnWkc1yS1IaCZFHymQYWTcN+laQCmxYjiqR9XbpFEjeNePJtxBbiao6aF/pGUj37Ok186f6+BVOcvt1f2YLMPUqRgw/mRKwlrszgIoDHeQCYRdFaJcZSai9O9A4a3dgWMTLDxA011iACgfcCMnr6oDre/mjkXX3LYhLf9PJimyNub7uplpbdISVp0STF2EuZqYqYPQtQ7BPqMT87IxXdZ5b4qaFTeqIdy067Lt/KhBdX+bq7gQbR0hxBPHvpb6DZPoUTjE2AvWeZ6/C3Ksgp+9D72bX61u2wKAGzuMLbLF62J8LGIxuTg2u7uDaKtMlNAGf6l9n/Dd1RNH6GO2E/8xzWZQcDUFyNgYBh3aHyAniPMYmpSS6EVyfcnw6I9MJ7D7Fn4MyAi49LHbC32g== X-MS-TrafficTypeDiagnostic: HE1PR0202MB2556: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2556; 25:hgJ4P5zORUpkrCH9eRZA6zWXKaRCeDLkR7eg4w4C5ecs3EiTZD+oELHiO0lHtaIqwEPiI3QLgA75/3j8PxirueIh4owyQ//eoZCO/61PyPCmEiLEl38gadmyFigsk5j6TOlK/Zd8tQBk+IC6Y+3yonqxTDXBNFNE+RT68xZLF44bxRYNG5cN4lFjgBhSzPzORsk8NN4W8ApyRbQTjD1HwUuc6zKvOtbAvJP+vQxNnuDA3FziM66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8OPL7HUnRsYVwOobsk7nNZeM7svuFvjdxeYp0xaBKMcXOJmxEefi6+k8KglmOc6sfp9zhQB1Gu9iW2frVGZP6TQEmHRsbSR65mWHQ0hmEpF/SiTjjJ1vWYhzc06XXIcFaU6dqcWM7TkBsMdwfq1WkX157oZDFwewVDJ9f8fyjFx5M7K1uoAhtKpUpgaSFT0FYgtRJftaxdoWwOufecauuF+M8L4v50Cxb8+QzpSr/bzfppO+eJzrua+ylee8xcjBjjPN3IIYWFaL317TpotTHkM6boknoCU6KanXOPRfdWfPXtJ6008Rf7M39DtEHXkwX5IcKiY= X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); 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:lLrRxI4m0RzQ+OB3WDnmfDPr6TNgTUDBeM3LYAGf?= =?us-ascii?Q?FuLzK+jPU8pC68Rkvn+zR8Cftyl3sIqvEayQN1QkiV78PtQJaZzBIFnFUdX+?= =?us-ascii?Q?AI5ipKkFpDvTsb9DFENFSxlFoInhxi4ED684DFgnBLqfgviQVR3OmOh2w8Hv?= =?us-ascii?Q?FyF4eOO9PsKX7wFCZPYcDf/Feu0FCOuefWDVHowsbP2sIVVgsyqJ4yV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3IQmShZpPcQ/mAWSMsjG52fMbJyTcUbiX?= =?us-ascii?Q?Z0UIeeuKdf6ZFlH753M0GV7ohV1MEb4w6OT9uSku2gWKs/EonOOukUuoWp4D?= =?us-ascii?Q?v0vllp8PELC991K46dONM0SM00Wc6pkuO/ElFrmZxfwAoIkDQKVgUaeXpXaL?= =?us-ascii?Q?z1qjYEVlSxokTzjGZEGrcEYcRMOYNuH+q9Ep2Pj6?= 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)(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:IXUy3n44nJRmaJ1azqNEPjTDdwn1zi9RGkkqPwP?= =?us-ascii?Q?72aJiwISqUHAdUWuQ92XSWTq1Qvt1H4pDqYG1xmVoB+dd/I4WCQ23vThV7Qy?= =?us-ascii?Q?pTcCCFgqlrcdnhYdDXOYEB66QcNcKwtQ9Kg4bIaUKqlHXmGB+9JSC3MgGJiQ?= =?us-ascii?Q?MMT52SiIsnI6flxz7DNOy+N96FKG/C5A5UHYkYbix9oFEUOv+qJOC2e9v1Nw?= =?us-ascii?Q?do0hASV8KdxM20IRM+fvNbvtZ7qNOgMu5B8ACQu2InfMMrayjK3cu6jjSPmH?= =?us-ascii?Q?zyy0Cq4pFsc8qFZ2qc1kjzNzcaUM0VlKwvAuyDUywYp6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jgUTHGIwBjF70++i4yBLGuIrmBpPVyVJy0LMiVAngT+tzil++xS+s2Tnz24KMPfDbPWEL5n4ORkhEMfKkqb/tUPq5cCxpYPvHbyNQZlBeLFqUamxmsBDyZESq9mGn6Xwfw1v/1Zs+iS3jhxkJH8m111RkGxtAuaNMVXpvWyRkt90AalVqkEOrfFiE0lU8DrxvjsFBBsAuH06+WW5zAxlLZLoATaaRiRxXSxDTwK/m3ridzWWqMKXANjEjGQWsrfiuEKlj1DyozETU/i7ihpywX4ONr07Zyfh17mu/TRq89yTOTuKWU9cA/5npRRetT0CbS2k79DWjrbKqS36suZHRimodJkXGWveanCVpX1dZqXhpBQuSdQCPNS+lcyvC6xSELCeTETvVl7TVXBTWi4NCw9Bnn+aUSmgubDXQaEl2sJ3hqySdv0Aqf5MyWu7bziarSVgl9w7truA04J4gocDSTw6yVobiBWhh9u538ldFRi5cvc4IVENNUTPo/j51JV2ZSvH0p7hB/7P94Eq9Ep2dKj6R38l9zwJBvEDR7HSQls+k002/F1TCoBS4bW334LCIGQtae32OtaHpGcji+hNPBUKgb9b1Maw8fpiWgZTKJ5voH1PBmVR8X1HqBiAr1fcdMxoQnIyNURXMPv4lfpSCcbaQKCKAM+YMU169wJaTxTTVW4P6wReNp7s= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2017 16:24:33.2355 (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 , 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. Acked-by: Daniel Vetter 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 7da70b6c83f0..2570c7f647a6 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 e7fd356acf2e..f3c48a2be71b 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 7b6c84925098..8762efaef283 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 6a10215fc42d..e8e4ea14b12b 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 */