From patchwork Thu Jun 22 06:06: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: 9805445 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 A5E2460329 for ; Fri, 23 Jun 2017 01:03:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0E4D203B9 for ; Fri, 23 Jun 2017 01:03:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94396262FF; Fri, 23 Jun 2017 01:03:50 +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 69B8A203B9 for ; Fri, 23 Jun 2017 01:03:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C7A186E0CD; Fri, 23 Jun 2017 01:03:45 +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-ve1eur01on0111.outbound.protection.outlook.com [104.47.1.111]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5D29E6E5DB for ; Thu, 22 Jun 2017 06:06: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=QcKV7JPFmLZBeS7SVjBg7henogILTcrK4GwqunJ6YWM=; b=wcsCijQuNziW+qz5cxDPUm4VAowkBNE6hToNwQtDry0W7TPOXF8RVRKif66LdvsyMtJVwZMrVAgzK7V+lsbn4xr7DPPO7Sa7GvQXFXbw0Gp2MwgPE8icHhpfkMg4f9ArXQN+VuYYo7JJKR/8qLhN1n5Ovd4M2kuaaVydwylTw7k= 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:28 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v2 10/14] drm: mgag200: remove dead code and pointless local lut storage Date: Thu, 22 Jun 2017 08:06:33 +0200 Message-Id: <1498111597-10714-11-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: 2d284395-e168-47d4-b0db-08d4b934d474 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:IKq8EJJsXS5RF9vlmehbFWUnA34UkQmWPPAxRnd/YpJ0tXqeCk3yYYR4WMDWTiwmh+SklSR43XsBNhD+F7W9VR4QnB49Eh8hjySV85PFASAScLauAufRFulDpFX2EdW13imBQWG0GbTfp4QJ3n29k1UKK3Non+slNxhCSIHvACNgs1noqXXOZRbqU0SZJwtExZSbunHre30CCAJc1cJEk1gAguiqylElsXvh3z06TetNZIyzQiZdPhcLIbQw/C0yxs3lweq3vjRbI5eZZyBnv49MvnlDDqBbctZRBGxAxSKiKmOseiTfqGq/ogSL2XZOQ9SymtvctelaWScYouOBezhChPtbC/gir5tqDDkWWk/bMqWWI9Zlndd4K+1lfFLIZhYzxClkkWElWDzEHzYEvATIHuKQOeZKYZmx73jsOFI3647IKB2xumh0cZNYh91EEH+4YIvI123t/PRwuK0KaeggBt70e6OaM6xkb4UTax4yA6YIrHELLO9/itosWx5c463ZOMS+SvLbw9ZnP/0SzOvb+qN4XOwwWqXY2CnjvWOoGD7n3Rcmn5mVQrvGTaKXgDAIONw6iTTN/yIp7kZdYRLIFZN0wxhGM/fgEkkq2h+NFvFO4LcOtoxJ2rL03B2+rAGceDlhxSrDbrO0/qooYw== X-MS-TrafficTypeDiagnostic: HE1PR0202MB2553: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2553; 25:lZVeYwcaiF68vUSy4QNhTC2rRehdOjc2dqp42JwDWaXGci3f1bzZMYf0bwcW9mfz+PCH+BsozaDOSYTqtCTQ8FCYKyuDDF35Fbtod5jtpt/nDO4wPMjIr3wmpaHcsiPVA1Nw/ZuzH7TNn01p+JHHKqKgYzLHqk4i6cHeIx0M6WG1cUh+5Kin0G81t95cWK4izkPhWivOVm82y8PM0esFyZFWvD+mUc9m2UsmxIWf/9smzGKUMTC9QXexgibFOFvia0c6n3K8bcslgDzZqpPIOFrGHjnHZiUaqBesLPmwaZmKVz/kZubP/h2qsQgS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tFf3d/yQ9BEVqGJMfVGor6Nylu1Hn5hMrZuAdfvIciMRW7vyNs7XryuZTSkCgkOU1ZdvPX9fhkFYt7hdDlXmm1MJM/Nzlsa1zn7YBjg8rENvh8zuDzdWX60opScmKHm2S45oV0AZTTqFpMfh5ZhWUKdpsozpOxAC36O61T4VBchAyGWOxbvijj3BqOokWKGxoJbqANU/HpNGyKbtWB9nbz3SVZP7iUPged3aIUWZWn7HpI= 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:fhGbWg5jvbqIZ6lft2xKgoDhBsO9q9E2VyxBVg+U?= =?us-ascii?Q?UI2op9JMUaKWbA4xRp0UcSNFQmf7mRseh+f3QFhyiuVtaQB3e8KmJFFr5/JU?= =?us-ascii?Q?Yq4sBg/8FKOGrTas2PXxnqxq5DJ0q5nsm3eP9prX4J2kCkdRrRV1V2WCu2wy?= =?us-ascii?Q?HCK4/5P3XQGqTQA07E6Vr/TMtwFNIpcCPG+AuI4hBoTlc757lv/0BpCq2igP?= =?us-ascii?Q?dAuZm1tY3PBkzd0DtBBsndV8GG0afOqyO6uIRq5Zu6iAV9fTRtaUDaiMx2g0?= =?us-ascii?Q?1o9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SvkYpycG2A9dngrDp?= =?us-ascii?Q?KWr6ahUTr8mi2Vw=3D?= 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)(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:mTob8pxQCUBFTjoTVfHjAoLwOuMz9+7wehdaMFD?= =?us-ascii?Q?XIxX3KPbYvVYQse10/iQ4cVpdvtP2ZNWYeolTDb2cwWOlj0XrzvmaaeO60kx?= =?us-ascii?Q?v0xGZclDhyOCjXMq8jWOxQrivmtqHplFe4IKseiUGcM35j0khxfMb59GEU5Y?= =?us-ascii?Q?/Oe371cKprglXWdd/RW5va1JEKyryJ9tKead3WJDuOL/ZadRJUfPZGIHbOFq?= =?us-ascii?Q?lCpTzVM0UGmFaW9s4DUeHN9Vd4ZIV0xalTzICtlGhf5fjlmhrRSXkAAcb6W+?= =?us-ascii?Q?AfWRRuFkxgqME0suAE69TYCHBhpNC19XJElcDIxT7eehd9maf15XJYbehplr?= =?us-ascii?Q?FYUfK1hOfkk0aDKanNh6D8UsU6H4H43uBdN/I9P3eu5TJN/e2jNI+yOsWCJQ?= =?us-ascii?Q?pCLlvnSt2wldOig7J3fz+O19CqSvlYmC5aFsvhyvpQgc/vAuL6RifoMvySep?= =?us-ascii?Q?RsuYff0mQ1yexx8/+vUGvLWHatVtI3xfKnB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I2sbrm1r2Ml1Kp87htxsohcMaHV/LXmzEJ3QXk5iVDA2Yb1hRPkFHnfd7Lp7bYhn6Dmhp6TYEEO27ikJXTYyxd6aoZFHs/BI1nVfWCJqvTKTG5SkkxzpQlnwyXbMBmMYUaDTwbuQEbQHc8XPgQyFRB9vXjvdu/NsmMy+F4OsZkdRZ6DAi18Z2n7hxLhZYiEXw+HUO82p7NXm5eoF0ilTQ9ZizflQm4costHsvciy4HojEnovNiLd++MQ2SmnFdH0iyS51awyMG9fpNaDi2JQa6I4qAbI9+ZgYCuixO67GrywM0+6Wn4pMD2kvfrnGjAQdaUP4aaTJj18zCD/c54lJNjm1rZeE6waHa6LXsl6nxpubGb6jel66/nCZB4qCnKT1AJodU8+mmTKnFEFy8N3fUkxtQUSICsMOkpqrkmrlON/wBHy8JK8TspseV+Tvee24= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 06:06:28.5918 (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/mgag200/mgag200_drv.h | 5 --- drivers/gpu/drm/mgag200/mgag200_fb.c | 2 -- drivers/gpu/drm/mgag200/mgag200_mode.c | 62 ++++++++-------------------------- 3 files changed, 15 insertions(+), 54 deletions(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.h b/drivers/gpu/drm/mgag200/mgag200_drv.h index c88b6ec..04f1dfb 100644 --- a/drivers/gpu/drm/mgag200/mgag200_drv.h +++ b/drivers/gpu/drm/mgag200/mgag200_drv.h @@ -237,11 +237,6 @@ mgag200_bo(struct ttm_buffer_object *bo) { return container_of(bo, struct mgag200_bo, bo); } - /* mgag200_crtc.c */ -void mga_crtc_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, - u16 blue, int regno); -void mga_crtc_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, - u16 *blue, int regno); /* mgag200_mode.c */ int mgag200_modeset_init(struct mga_device *mdev); diff --git a/drivers/gpu/drm/mgag200/mgag200_fb.c b/drivers/gpu/drm/mgag200/mgag200_fb.c index 5d3b1fa..5cf980a 100644 --- a/drivers/gpu/drm/mgag200/mgag200_fb.c +++ b/drivers/gpu/drm/mgag200/mgag200_fb.c @@ -258,8 +258,6 @@ static int mga_fbdev_destroy(struct drm_device *dev, } static const struct drm_fb_helper_funcs mga_fb_helper_funcs = { - .gamma_set = mga_crtc_fb_gamma_set, - .gamma_get = mga_crtc_fb_gamma_get, .fb_probe = mgag200fb_create, }; diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c index f4b5358..5e9cd4c 100644 --- a/drivers/gpu/drm/mgag200/mgag200_mode.c +++ b/drivers/gpu/drm/mgag200/mgag200_mode.c @@ -27,15 +27,19 @@ static void mga_crtc_load_lut(struct drm_crtc *crtc) { - struct mga_crtc *mga_crtc = to_mga_crtc(crtc); struct drm_device *dev = crtc->dev; struct mga_device *mdev = dev->dev_private; struct drm_framebuffer *fb = crtc->primary->fb; + u16 *r_ptr, *g_ptr, *b_ptr; int i; if (!crtc->enabled) return; + r_ptr = crtc->gamma_store; + g_ptr = r_ptr + crtc->gamma_size; + b_ptr = g_ptr + crtc->gamma_size; + WREG8(DAC_INDEX + MGA1064_INDEX, 0); if (fb && fb->format->cpp[0] * 8 == 16) { @@ -46,25 +50,27 @@ static void mga_crtc_load_lut(struct drm_crtc *crtc) if (i > (MGAG200_LUT_SIZE >> 1)) { r = b = 0; } else { - r = mga_crtc->lut_r[i << 1]; - b = mga_crtc->lut_b[i << 1]; + r = *r_ptr++ >> 8; + b = *b_ptr++ >> 8; + r_ptr++; + b_ptr++; } } else { - r = mga_crtc->lut_r[i]; - b = mga_crtc->lut_b[i]; + r = *r_ptr++ >> 8; + b = *b_ptr++ >> 8; } /* VGA registers */ WREG8(DAC_INDEX + MGA1064_COL_PAL, r); - WREG8(DAC_INDEX + MGA1064_COL_PAL, mga_crtc->lut_g[i]); + WREG8(DAC_INDEX + MGA1064_COL_PAL, *g_ptr++ >> 8); WREG8(DAC_INDEX + MGA1064_COL_PAL, b); } return; } for (i = 0; i < MGAG200_LUT_SIZE; i++) { /* VGA registers */ - WREG8(DAC_INDEX + MGA1064_COL_PAL, mga_crtc->lut_r[i]); - WREG8(DAC_INDEX + MGA1064_COL_PAL, mga_crtc->lut_g[i]); - WREG8(DAC_INDEX + MGA1064_COL_PAL, mga_crtc->lut_b[i]); + WREG8(DAC_INDEX + MGA1064_COL_PAL, *r_ptr++ >> 8); + WREG8(DAC_INDEX + MGA1064_COL_PAL, *g_ptr++ >> 8); + WREG8(DAC_INDEX + MGA1064_COL_PAL, *b_ptr++ >> 8); } } @@ -1399,14 +1405,6 @@ static int mga_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, u16 *blue, uint32_t size, struct drm_modeset_acquire_ctx *ctx) { - struct mga_crtc *mga_crtc = to_mga_crtc(crtc); - int i; - - for (i = 0; i < size; i++) { - mga_crtc->lut_r[i] = red[i] >> 8; - mga_crtc->lut_g[i] = green[i] >> 8; - mga_crtc->lut_b[i] = blue[i] >> 8; - } mga_crtc_load_lut(crtc); return 0; @@ -1455,14 +1453,12 @@ static const struct drm_crtc_helper_funcs mga_helper_funcs = { .mode_set_base = mga_crtc_mode_set_base, .prepare = mga_crtc_prepare, .commit = mga_crtc_commit, - .load_lut = mga_crtc_load_lut, }; /* CRTC setup */ static void mga_crtc_init(struct mga_device *mdev) { struct mga_crtc *mga_crtc; - int i; mga_crtc = kzalloc(sizeof(struct mga_crtc) + (MGAG200FB_CONN_LIMIT * sizeof(struct drm_connector *)), @@ -1476,37 +1472,9 @@ static void mga_crtc_init(struct mga_device *mdev) drm_mode_crtc_set_gamma_size(&mga_crtc->base, MGAG200_LUT_SIZE); mdev->mode_info.crtc = mga_crtc; - for (i = 0; i < MGAG200_LUT_SIZE; i++) { - mga_crtc->lut_r[i] = i; - mga_crtc->lut_g[i] = i; - mga_crtc->lut_b[i] = i; - } - drm_crtc_helper_add(&mga_crtc->base, &mga_helper_funcs); } -/** Sets the color ramps on behalf of fbcon */ -void mga_crtc_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, - u16 blue, int regno) -{ - struct mga_crtc *mga_crtc = to_mga_crtc(crtc); - - mga_crtc->lut_r[regno] = red >> 8; - mga_crtc->lut_g[regno] = green >> 8; - mga_crtc->lut_b[regno] = blue >> 8; -} - -/** Gets the color ramps on behalf of fbcon */ -void mga_crtc_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, - u16 *blue, int regno) -{ - struct mga_crtc *mga_crtc = to_mga_crtc(crtc); - - *red = (u16)mga_crtc->lut_r[regno] << 8; - *green = (u16)mga_crtc->lut_g[regno] << 8; - *blue = (u16)mga_crtc->lut_b[regno] << 8; -} - /* * The encoder comes after the CRTC in the output pipeline, but before * the connector. It's responsible for ensuring that the digital