From patchwork Thu Jun 22 06:06:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9805481 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 E297660329 for ; Fri, 23 Jun 2017 01:05:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E81F21FFEB for ; Fri, 23 Jun 2017 01:05:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC76828405; Fri, 23 Jun 2017 01:05:47 +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 4B0081FFEB for ; Fri, 23 Jun 2017 01:05:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CFC9D6E736; Fri, 23 Jun 2017 01:04:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0093.outbound.protection.outlook.com [104.47.1.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4A5866E5D5; Thu, 22 Jun 2017 06:06:19 +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=tDaDhGnfFKJXd8beBjkEvVVB7McZIwLhy8GDHJPRf8Hi5c4bd84oXSi6DhAyiUy5eQtPop9oIeoAAKWzCjZNakh5zQdKX6gzuHotNStTANgSwCrEWPHRmU8LXvkyTcJoH+5GyF5mbdDJDMhAQfIgIW85M3Z4vzJNjzMiBEAG/04= 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 HE1PR0202MB2553.eurprd02.prod.outlook.com (2603:10a6:3:8f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Thu, 22 Jun 2017 06:06:13 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v2 06/14] drm: ast: remove dead code and pointless local lut storage Date: Thu, 22 Jun 2017 08:06:29 +0200 Message-Id: <1498111597-10714-7-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1498111597-10714-1-git-send-email-peda@axentia.se> References: <1498111597-10714-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: DB6P193CA0003.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::13) To HE1PR0202MB2553.eurprd02.prod.outlook.com (2603:10a6:3:8f::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 11cd2eb0-f957-4ed8-9658-08d4b934cb9b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500055)(300135000095)(300000501055)(300135300095)(22001)(300000502055)(300135100095)(300000503055)(300135400095)(201703131423075)(300000504055)(300135200095)(300000505055)(300135600095); SRVR:HE1PR0202MB2553; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2553; 3:3uidqYlzL0vgx3WVtIm4nroo+hQ3v8EaqePKQr4RhJMW+tBbXcOAJBScCKyP048lhVMb0LNft0jzU6lQFIlyLxigwq2o/LoNk53+47qwMFeBJh+8//TaWj1sg35RYBEGeYBHOKG5dpo/jJyjhbXdI8RnKFf6wTJ0+MnKbgnWghybWXPGuMairXHet/bXHm4uZEHYAwfnzAQ+Gm4cHMCXAbPEWbYp70XdQvWFpDvFQX4tfKIQkZEKwiDjaZlF8LZr3abWdrRAGj1cJ82Fl4xKjFljCGkQO+7SakVgdNxmx2C4mD5O8Z+OEMM05sMOT1LBeTjykLDHi4wayLRPx2jEwcGlnq7iu3fl8ez4P3FEeK7DsyEFDFIKtBhLRXzyC8EFFK8c1hVcs35fZiBvU18Sezhscl6rZQ6/UOCBNpJGUz3cg1OQPt3/BfdbJxZPYTBQz+/Jtlp5EKlQ6ASTuoPXRGDrotHtVBRpXLvriNcYwmpy1kSxjx/Cod4vg4QqzyCBjpz11wXbCcJvwypA5O8kmxCavK9dwMQVIcQA0or15HaevIdT7iqikGYVThhlf72sCx9HTGiBL4DMML7vXNR/d3ddzhebEr1E2ZDuoKWgIgTZUInmkO+yBcWX2uKyzqvQYuRqf0kZX9DE8BJqxnLseA== X-MS-TrafficTypeDiagnostic: HE1PR0202MB2553: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2553; 25:m19tf2D03oD8DFMvPkrBB6Jv0VKJKUhmA3mbup7StAvpAK1AK3fs3h8IOOnou9wAEShpmrLuvweYtU9R/A+he20ybK8t4kVOKHSUAB08bec6Y+rJ4rtfiDI5Aa8mmvlF2ucVL2jxUnuGa4ROpC6i1rP7g+GtNPWXTugyBT9w76Kw7VYgsB8xjadZzcd+b6jPRHI/Epgp5OCWQp6CLsTB2OgMzwGvnylGBXJ7KwNonLBZKwr35mAnGFeytIdi5UOkvV0ngKg1heSmmcGjDnW3kOKPC/B0/mEjLyEw+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mDysUOmIXTXfokTjsmUkeC6qrqpgNYaIe9oLUYjcOtYVOkriOr7ldtThf7eBj2dxfotwi10egRHkE7dzrZOe49jZ+9zjp3KwKMGmas9UB0Dl2eqOq4NUx3jV/LfYfrfXJPnS7pVqOUHn+y4wRYlL0EPjwzc55P2tR7LmU6gH7XszgEoxNyg5iMnVf65S3BdeDGOQlbyUR6Sh9fzdFHlpmPvfTV0y1nrKxla8yX7c1JJ0xFM5PqECDjJI7XaC+UyCWWvu2tH46UjU8BI5x5A8s3jr1suwGC7g= 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)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(2016111802025)(20161123560025)(20161123555025)(6043046)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0202MB2553; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0202MB2553; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2553; 4:tfIWiu7d2EnT55MnDQ3RM/cLJAGioeP7dDMsxIyH?= =?us-ascii?Q?pgpbxGxmxc4pivPS8ElDgEVuO+il3HoRQq6LHahhCol3nKch4H8zTX8hLZ8Y?= =?us-ascii?Q?dxoi1n5+E1NoGdoDSIXXB8jYHq4h3CEzPTDxjizHXvLBGIcZOpYbGYN8bBRJ?= =?us-ascii?Q?wW27q8oRJS7bylECLC1o4X7dgAHlC+0/lWHk3F/CvJTloDKDO/bH/z4Hhpl0?= =?us-ascii?Q?V9zqXl7kNbyK15CgStV9xIZ78k3+x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jCXNyxh4rHkmpDTmFCCtTPe2oBINP1GGtpJIZUGDX0nChTdw8mQGYh?= =?us-ascii?Q?8aBt89oUMsqyL1Z1nx9tUXJg1Ptq2EavBjeO?= X-Forefront-PRVS: 03468CBA43 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39400400002)(39410400002)(39450400003)(39840400002)(7416002)(6486002)(5660300001)(3846002)(6116002)(76176999)(36756003)(305945005)(50986999)(2906002)(50466002)(25786009)(478600001)(66066001)(42186005)(33646002)(50226002)(48376002)(2351001)(2361001)(6512007)(54906002)(53936002)(8666007)(6666003)(81166006)(6916009)(2950100002)(47776003)(6506006)(38730400002)(5003940100001)(110136004)(8676002)(575784001)(86362001)(74482002)(7736002)(189998001)(4326008)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0202MB2553; H:orc.lan; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2553; 23:zA/aZM3QEgSD3ctVGbvmkRCxapfsESdQAQalcxu?= =?us-ascii?Q?5IDRmtCsgwLHnAuQM3gI4qhO58do/3+aELxmQnjOD7lld8b7AQfNYCUbyhTs?= =?us-ascii?Q?YtszdzlapnggGaAMmL/u3K3zSAD1lQdHzK+qVxJVLV8LZP0OtVN/P1Zkjhw7?= =?us-ascii?Q?kUv6Du4npuZ+6sgvjLjllqlV58rp84SIx+/FxcBja6+l1kaqjs3rsQVab5t5?= =?us-ascii?Q?oPPbqwV5C2cmJaT4mIOyy/ulKclnOa47z0hQ0xQdgB6KqWCFw6kTsDT+8LuL?= =?us-ascii?Q?Vz81G8Fgt1ZYcKHECnEmVv1UWLm+/6QxP/T0G4bFLyzedqpUQtWxPnPgD5cy?= =?us-ascii?Q?Ji5WsbWsjUxDxkUx61m9x6XrAE0TdEaAGbW1wDrkamj2mDB6tRmGnVESe+8P?= =?us-ascii?Q?jgH+UfwyNI4y8Lziz7h77yE0NLO+TiDq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ra+E42lHHacg0d8RDMNA+kbPZ9k993FUaupDHqiGCkrzjiKOjShcNOf5Z6zIpFYrW/mYB8omR5MNIAuoYZKJK/KmECb3sHEAU5mZvQ6PXQbeJINSpBogM2k9XjnJJkeq6RYF4014YuW5NDqLgOtN9g6AOi1tSfwx2eyQeQ8sNo12yDOcNphoytKHseQajFnuRT36jzzSfGn3eHqgjYCg7gGgpJD6ELzN+yXO2jUcOdr5dSyfdst1XQwDsAUt1/DGM/zKpdmWoGxPC14n269E0hkGctoVq8a7LdmP2988rddGWzRQUhowuA9y1hL+b+bLwzvPyTcHFa3ds4Ce54cPa3A9pSkKiy8i9xbXKXj1gnyP3b8Fv+Y7nKx9sp/KJmBGFP2NOy74Go1J1VKFBi9K3yS4Bx+TlwmqFfHm/JzP0IHgSViYHcZGDnwPZLRwKDzhRN5F8KzpXDj+TuZkAg8Wysaas0kGEiW/399XBmKROr1TsiFwDJBnOHK3uDZdGCZ2iHTEAamO58uVmo6muZniFVeB6kcnBw0d5MGM= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 06:06:13.8443 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0202MB2553 X-Mailman-Approved-At: Fri, 23 Jun 2017 01:03:45 +0000 Cc: nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, amd-gfx@lists.freedesktop.org, Daniel Vetter , Boris Brezillon , Russell King , Ben Skeggs , Dave Airlie , intel-gfx@lists.freedesktop.org, Vincent Abriou , Philippe Cornu , Peter Rosin , Yannick Fertre , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , Gerd Hoffmann 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; }