From patchwork Tue Jul 4 10:37:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9825739 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 58C3060353 for ; Wed, 5 Jul 2017 01:18:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E82B22AFC for ; Wed, 5 Jul 2017 01:18:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 232352623C; Wed, 5 Jul 2017 01:18:02 +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 B1A9122AFC for ; Wed, 5 Jul 2017 01:18:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 09B4689DC7; Wed, 5 Jul 2017 01:17:55 +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-ve1eur01on0109.outbound.protection.outlook.com [104.47.1.109]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4939D89FF9 for ; Tue, 4 Jul 2017 16:08:18 +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=KtB7Pa2x1tdQUGRPqG0m/pwL9lnRCDN0pbBx/wqHCMg=; b=bbV2zE+IiCW8BewcpOGwCc4dnL/csU6u5YU4dFxed0sU5PdFHNpp3DwW52JheWc91wGUEQPPqdGvY26ticeFVAD1oo61HwZBA+jcEVYb9sYwcO3jPaJfZzZCY9n6vkPqbImIWweTOQ+t3+OaqmFkMsiv84EXD4bjefap3S1XuxM= 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 HE1PR0202MB2555.eurprd02.prod.outlook.com (2603:10a6:3:90::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Tue, 4 Jul 2017 10:36:26 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v3 08/16] drm: ast: remove dead code and pointless local lut storage Date: Tue, 4 Jul 2017 12:37:04 +0200 Message-Id: <1499164632-5582-9-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1499164632-5582-1-git-send-email-peda@axentia.se> References: <1499164632-5582-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: AM5PR0201CA0002.eurprd02.prod.outlook.com (2603:10a6:203:3d::12) To HE1PR0202MB2555.eurprd02.prod.outlook.com (2603:10a6:3:90::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fa8c1c27-3e91-486a-7e34-08d4c2c886b8 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); SR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MsdqQsbl/eaBAesXW/2G3kmc8hM+IjwiVSBOvpAy8JVcJyOJHRYcohISk8CVUXlobQNtTbV0iQv1KhAkb5WmvZDmFwZds5gUj4GBW9vojmd68xidizyfvCmdl0S3ica+owk7fXnW/s+2naBChOCQHvhbsR3qF0BnH8H7XydV39uMhw5T1BFYPbWR0xVUA3SpvJltRZxxlwV4nNFL2vOaEeLwdphdIyDDczXkLOKlqu7Rhop9MGxVNjOAL+fi5fE3sqZEX4gzfo5qot11NMj6ReNPeGjctXPJJzoQedocCTZD/lN9kFJqdGASRIwq/K6EYAHR09F2EJ4q9/i/o56lpuomVIFay+Sthsa3n56GZN8= 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)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6041248)(2016111802025)(20161123558100)(20161123562025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6043046)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0202MB2555; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0202MB2555; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2555; 4:Jf/r1IFY1bgi72u2G4CJnkekuSRP1JDrSXKL7n+B?= =?us-ascii?Q?Ou5LVf2Tpw+GL7ym04aa1Rc2TrXsljHoOw4jbxmO3O50ltrA4zS1uhkXhd/8?= =?us-ascii?Q?x47oiP28ebDeR/zhzL3WZm6C6fOFpMU881CW58HMeo0iAkICIiKRvi2icpKY?= =?us-ascii?Q?TwgCdAvgKwRbuZkyz8Tb/men6dGfpOXRg9ACV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S2R2Ubuah7h7YUw/fPTy/Uf02GPXsuoRNSv5B2UmLDm0/BENq?= =?us-ascii?Q?XJeUuwxw45vdjAGV9293B00kuCL4QQHy1aW7LveMok8sFAxcbgM8Ljh+/O+X?= =?us-ascii?Q?u0O7NGiw5tb1VwqF99GuW2cLMIsIa9LZ2KrPnuPrbzEH+tQj0qxSkQV6TL2l?= =?us-ascii?Q?VjHwWmP1U1RSmUanCbU=3D?= X-Forefront-PRVS: 0358535363 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39840400002)(39400400002)(39410400002)(39450400003)(8676002)(81166006)(7736002)(47776003)(189998001)(3846002)(36756003)(305945005)(50466002)(6116002)(50226002)(53936002)(86362001)(575784001)(33646002)(66066001)(2906002)(478600001)(42186005)(2361001)(74482002)(2351001)(38730400002)(110136004)(4326008)(25786009)(6506006)(6512007)(54906002)(5003940100001)(6486002)(6916009)(5660300001)(6666003)(2950100002)(50986999)(76176999)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0202MB2555; H:orc.lan; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2555; 23:B+hvrCLw2jnVHKKQDgoZIuo2bp2LHArAgbTCaHl?= =?us-ascii?Q?8Vl6x/s7iqxmiikvf642Ix1cUEStSSXt/nOqI3EK+uEpL/hD6sKU4h5iQEP0?= =?us-ascii?Q?g3xNw7/2pKEXG3ruXE7iFYCzTzEzh27xfJ36yuVW1j6WmgEZNeU8mi2t97GM?= =?us-ascii?Q?e0EwtMU3BATlbg30JFOkRvr6votndwUWWRQm9LfdHM7HomJ+mdn66oH8dk/Q?= =?us-ascii?Q?7Y02xE8c7Zs3vnCa9QqIyehhcUgxGMA3qbsdeIgtmsUlWzhcALGUQRxfbf+d?= =?us-ascii?Q?vxvDSC1ICXH3atDyN9H33k9Ku3hulDe7ryX2hQw4p+I0D4UBCTJf9st0Qh4k?= =?us-ascii?Q?Uf7gX0q4XET/Edc5qpw2zGZ6/R28xZCbyz+4erkL7drr/nmAz/1nKTuptK4U?= =?us-ascii?Q?THc86IXeFzmgb3SN6r9m+pTKj0+mK1FxHwgh9BPWmh2RkxeZaKiheYXlkKL7?= =?us-ascii?Q?caFgt+W2Olm0ANmcPuSmlP4JqVaetMSPfHipeusPRO2C7mge011uRQeiCLPa?= =?us-ascii?Q?lkAi41ov0TA8oTnW3PEv7tkmEq2CNONIB9phvUqrw4TbjCCIHTvHQd4TgTZi?= =?us-ascii?Q?lJk7C8PwCy9cNKcSL+Au3vPU/jNn6o3aNJKUsHZT68YMEEQTsVj4UvU2YTUE?= =?us-ascii?Q?l8DYH3TjU0sEhI07QWvWlCnS4BlSyO5irItCIJuDEHUG6zS+P7xaGSyZhofH?= =?us-ascii?Q?D7/diKBzHLkldHPtA7rIAvmARSAV6yxhRQ16TNNhRxXiBvjh0Qoli4CtDpYF?= =?us-ascii?Q?7QoU4IgUhH1NmCdMoKKYHW5WhFB+5FqBtlC//KQg2DBIHxvLBrgUhebsxB2y?= =?us-ascii?Q?00YNrhTHHd74Jb1VGol7lQdzPhWSgl0KxhpUl6WKnOdLYLyaypbHk1ayP2M4?= =?us-ascii?Q?CMWm2LZRHNpbWjg9AeeR4oHEK543Z94IDUEeYL4pcXq69WINgO9/5taRGgE3?= =?us-ascii?Q?/RSxHuPh71ljsCU5POqcUUz9OM1UwGrjOK8PKRQ3iU/4MHNM/fHt00ZkOLjq?= =?us-ascii?Q?AW1181Wm3tP6jJEevPEN/Jv1STdye7gDaejyGYbgQbH9pGHeohjKeFoQESke?= =?us-ascii?Q?SBWXUmBMGEVK8uwOgwZFlF1tudAaltTStW/knUg+ABCsEOf0a2Q=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2555; 6:trVgerO9LkXcQtkWdN0aGJ/8TNJZ0rc9gMlv1qOc?= =?us-ascii?Q?cJfpiKQtDb/P7ts+BfbpvArPrr030xl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8/DsyTIm2PKjdX9mJR2/EXwruFeyC8ccX2ycqV6uqP7QiXelL2?= =?us-ascii?Q?gqI=3D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2555; 5:Fok6YKvOvboCrj4jmartfdL/T/cK40znhKI2FRH7BeaCvEeQKePXuyHk1tn8x4R9Vu/Qk/mZO5bPT+AwP1H5+U5jZQq6hAImO1CdvdEpVhTsozO3YLrOp6kGzjH2skHGewZ1tO2jujfRIgyXQKtVAiidwXYTZBfKYT33VponeUxVHGEfvt2Bi4/lcnRF6rV9MF301+DaLgDN+r/+XG3pGucbXBYX9HzGkLUCBpwFQKU6bk55gvcehVKG6elQa81iIQaSkMNm6QOuWOAplctTr9pQwz/toqzlYc9tjwScDLasq2oxcC/0dxMBgz/RbeiSOkAVGupclvpioClUscB8q18ObTeWhJGFgoaASlmpjwAbseLVwQ5Ej3KdPCGvfsdpL059BznMSE1+r5aCFT9ZtjSeEBDNQp4ErgoalIJ8zkIho4BoaCdo58jPCEKxErithVUlACrgWUBRiHQX76fh6hwMq4o86dGb6RURfF8AX5MK3MtS3mEnfJDFUaOQCUvF; 24:hpX6n2QIPYVx62iBgd90L2eX/CkP8z707Vqjtpz2RHTP034Mi5H8ismuwwGIKfMUR2h+QKmb2vxLy+sWO3xzxrVVCq3Unbyb10LqMCkc5Bg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2555; 7:iNxD/asImL7THpLgf4RFC6/WyVLGaXoB8RTfCdZo4KEjQF7vap7gN1Ex4WCPBjslZEJwEwmTphIgFnzj0CIrM5Q6K53wml79qZbHVEg/STKHL5ZdXGYS2rlmv17yQQ0FrPd8hYRPWehr570Pcu/YtZFuq0T5rDKF0sIu0jT0Vb6ym5BX+erHJewOZ8LfR0SMKp9Z5v6J56alO4J9oIwJ8SlTwiS18KkSDGTXJLgZ/GlGlSu7FiwatlolKNGtXacKkXNd8Vxv5Oy4Bkl7tyW36WLGhuPaJwIJ7ST3eLQTI0b4Q/TW5hx+n/ocX4UBEsibvXIWhKxpBHnYAsvialOElS8BFqKkcEvDpmHwrkSIMoJolvcC2TP7unbXaspmSEqQbSosJ71ORp2m1JNVXFVxIQgqLuVB4r4tolbyEOg7EVgOLuIWeNS5dX6pSJ9i9NZLqYRx1rJebHYIiSFcMNvwZFMNE8Wutqu9hst8wHfrxpMoKCe8Q92oERO4RuoA3kueEj4DxZqjGVW6unLI2Az+gWJtlhfldMys0m3V7G3YjqtmO+gnkT7ZDNUGKizhTo4RfFtEQ5D/10xtv3jjPpbSASL3DfuIEyBKyQYmPTGgBMAnNbUfZoTstf30u80CDTZy/8TYmP77YR7m54Bj5iLi0A0DyKTICRZk2uADLhxnPTDM04juOyxoSBwNzZb6nBZIc/XAl2Q2oBDyci9Pqmh25ApA8yOeJd1FL2k3dE+lT5uo07UHwv6R7UCceFWdnYfYjKFWCeVKYS/qNekuzZuG3cbVN42yhZn1uh3NZrrBjbU= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 10:36:26.4786 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0202MB2555 X-Mailman-Approved-At: Wed, 05 Jul 2017 01:17:54 +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 6f0335b..e686072 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_crtc_state *state) { - 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; }