From patchwork Thu Jun 22 06:06:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9805497 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 9E51260329 for ; Fri, 23 Jun 2017 01:06:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A33D226E3A for ; Fri, 23 Jun 2017 01:06:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97A552846A; Fri, 23 Jun 2017 01:06: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 D1CA626E3A for ; Fri, 23 Jun 2017 01:06:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E8B236E718; Fri, 23 Jun 2017 01:04:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 2040 seconds by postgrey-1.35 at gabe; Thu, 22 Jun 2017 06:40:40 UTC Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0114.outbound.protection.outlook.com [104.47.1.114]) by gabe.freedesktop.org (Postfix) with ESMTPS id 73485898A4; Thu, 22 Jun 2017 06:40:40 +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=7fdY2OnDvU+MMXbfR57xSoXsJOBbr3WpTVQ6qHuY9oU=; b=pfEgFvkTooIPuE9RBReqDxXKMSGc/tJHT14o3ie+CDjbNFPwggcz9fE2OKh/Hp4s9PVmTTxDK3FtyNBPzPvT8PtE9+2/TkAS+68OeYCdEPxK9t7LnkH/z3s6Mkt0xoHLgjaR7z2t+m8KUsljSffvMmGkdwCOuHneORkwvCsVHCE= 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:36 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v2 12/14] drm: radeon: remove dead code and pointless local lut storage Date: Thu, 22 Jun 2017 08:06:35 +0200 Message-Id: <1498111597-10714-13-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: 17bd4bd4-eef7-4129-ed47-08d4b934d8d7 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:JmgD2hbXLINpXoTSJkPJbHZFMpuvpeip7Qvndg7mOh37S036RpGdkvsVo6RNsgnLSXY39tQShfAsvG9GBjiHBGWw0XBqaCVy6jMP7mNNu5bV+oBspI+OQB7ONd5nmlQgDbJi8ULojDIoP/oBt9Aw+6TL5Qbnq/OQJUT2kW+5AW5pNTMufdXVuwlcuVVpb/SizZ8ow2DdPGTq8lfQsB4a/sLsC8tjXHrWiJWys2MkC1pnHtNqo7ITvcOCg1xGoCWukSWObxcbvkjYAxsokeZ+9Jusxy3HjBOco0VOUhtFSaQKw00sjc9t4jON7MnaQWichHq/2heDi+BPENSgyTXyzfjr9nSE43QIF+58rQajELeneYuv7+K0lJBBRmEz4OaWdqndMLP7dUXXcOV+t7WMA0U2+nGAmuQuavAzcpiU7qU2ydIfbNJhpIFJiNh6JtETPlIwJXH8FrTMeZLKtl7QxWKAP9QeE7k+L/PM20nMGoX4Gv94Z1Bk2C8c1BLOeU9VjfoOJlGaSKo90ekcz9rre9lqwxHYUS/WDYq0qApclOZQF2pWOCLCPBZlnIbaccbW7nbWdISztGUH3cm9IpcGQkiR26XwMICA89TlqBZNJwj9tT77VDVtIOm6xaoUsZwI819oQ0lof86va0OiaDzUdQ== X-MS-TrafficTypeDiagnostic: HE1PR0202MB2553: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2553; 25:dU7Q/uFQzI7PCJbGR68oWx6tJPuwqbCCv/Z9+zQ5Qp+sXQZ2CSeh1ea2CDI/GQlWSWIE/nawiWYpGcKikEbNgQXYh+5+iTqUPO4UiQ8anVj4JyK4HSeihBp1YpbX7xfzy+YDPLtrzqWVhSRot/5a2UrhCxGwe1bnxStUB/NxHq4IVSNp0aOkgdyUX0gQXlIUisxLVsx9+qkFYFYv6/P9uUBNIGojZlgMEPxFe+FhaZH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LmSpiWIPuHbXMe5xOAaEBWE8BrLrpdFirgpvXiFYOQbkXwa9mazbvv+ZSNe2+75fnI2cVECPpGH7G/bGhmITv4dMYoqNsXKuWtkTS36epRgBZBg4owmP3TU4qYDm3deUKVZwDB2rTMlPyCyzlbJ9+lbTmLlA4eQ/9Qf/VxLP99+L6KtEnGN34OowmFwS7yGdRQK5gyRNp6X0tBjWdOBj8EqUaSFNrALEglqMZ//RsE7+1ey8/eogLYkeXTh/8vScDXJ1XCcCHlSo69eXZcCancreOP83SLhAeMifDnncUunaM6VfOznsnBhhe9ECgv4RImm7DACMis82adeGVadv9cdtL3jmRzhcauSgH2ouka/FXIpRwfk1xsWv7ad/EGwRyFIfFAosqe5A== 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:wh5EF6HGU2HY2GtvHtb99ExlTxjxL9HmNR5/RmD1?= =?us-ascii?Q?2fl3eVZGQ08a8a26tc7qcf+t4iPBn7KiJgpDt87OefI0K/MIPdlqcdft8aZQ?= =?us-ascii?Q?jEZ9rK1OM89nyUhV2k0ABZkqoY96JaG2YHjRE/G0IJiaj2omxh5qmrbF2K4l?= =?us-ascii?Q?s5sCOX6C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9EMlA/EEK0?= =?us-ascii?Q?YBdZEocu/Gk07h7EWywKGS2bFmdx4gtN+BPqnqD5QY18Zj2s13rSjFr6mth+?= =?us-ascii?Q?oz/ns+sRCoF3wqYAf/1XaGXeELS2CdtAHxK39g71jom3pVQKz3VfiMlBWNJu?= =?us-ascii?Q?m9JA9WWlgCFFLj9/A/SRWjqalmB9BkDK8Iaj?= 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)(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:tRiJr83vzyGYp5bG7hmMTQIDwic46WZPNPzKux8?= =?us-ascii?Q?9exKfcIM3Kq/azvkO01WtOShpU1P67oI4tEnej7d0y7UziAjO6dyVOls/eZd?= =?us-ascii?Q?T78OX+k7c+jAMyO8n0ypMTfxVmdZBx1bc4qHJmuO48akeRquKkIGbOsUOhjM?= =?us-ascii?Q?lFAlA0rMWwWPsJwiWcHwjYmtCKej5LDERgfZ+3z2Ig8g5unV/EgHUoMawh8E?= =?us-ascii?Q?p/xhmVhKEmamdAW53j0tRSjwsvUs4PrWs6eJ/UuAIDPeVa2NkOd5GAFIRO5T?= =?us-ascii?Q?h6nsVQRlvA/bgFJX7pBaNajW7Bvt1cPFkhYtmkgvCztAF42wI65oO6O0RWE5?= =?us-ascii?Q?+yB+aq+CseleBYrppLXgGod/vRkGiTKR8NsszPlMJGRruIuQM/hfgefScyvv?= =?us-ascii?Q?s+4P6pZZf45PWnKvCDoNg2LMnP7gVLbwcg9zgF8tKsF3LNEUFXI9U+wy8ima?= =?us-ascii?Q?nX1ueBYP5hjA+K7h6tDez9Mz9tuaILX0Fc4h2jpsjlFL5yxBI/8UWcJHHjZe?= =?us-ascii?Q?SfEgHvrA52Ao0VsCOLfmrdDg709Byj+eQmvRK7CI9F1U/52LiYJ1VptAuBAG?= =?us-ascii?Q?Mwp62z4bZh+VCZu+2uq1h1iM3wYHJ1iD6dRxcekROaFZGkv39pF2y6ABs6RV?= =?us-ascii?Q?0dxyB9YQhZ1oGWfiKTOpkFxLnF8e7iMj9eDRMSxlAeke7+P1sgduu17YRhM3?= =?us-ascii?Q?fl4quLII5agtx45rENcdhAe55maxoU7TYFb78c6lHo3Cg2SW1PqZw5HPPI4O?= =?us-ascii?Q?ZnOFvjt8ZszSILUdUEwz8QBOwDZ4lwNHRcFOA0fXfJOS3wOaCP6gl6iTFFo0?= =?us-ascii?Q?q4DvWxkD7vedy3N7CSiVoSVYqx8G5kWRt3nVtAjJVryTIG5wGq6Ehg/easid?= =?us-ascii?Q?CRAm1sk3t4WwBVP0X+gaGc2Aykr49SkrtqNQ9VBmEaOBM1uYddt5MFpvUKLz?= =?us-ascii?Q?0Mo04RYG88rJjEgmrWlPVdMQeWBASOIM7E1jvyB5gCaE0dymZWbwxI1YOM9T?= =?us-ascii?Q?vi5vnOtL+EoBtwGmlnKpn8J7X4DYbY+phqUlr5MpsJVm/y7/2PuZjJ5Pr10d?= =?us-ascii?Q?1lw9gODTHoJK+ENVmhH+CNuSnzdLYhchDugKBnbyc1JOuGzylkZG11y4yHlH?= =?us-ascii?Q?qkUVflBK8+60=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2553; 6:8SkJ+6UhDVBASlefLfsJWdcK9LZKZo9v+flPJ7pM?= =?us-ascii?Q?VYykfUVkyxeKehwKZihClic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/J2zSQsu0ACVeqY9UaHC7+q0tkp4cOymnbgiXFPucBLYmGtP8311j+klM0Vy?= =?us-ascii?Q?YuQ=3D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2553; 5:tQkmlBlM6GAEbq+GY0NZFmEnyZy6IvIOypXY4Jc5h1cDLpxhA+PRKjIU6cg876JzEE/3XKnHJJh3/D21einSq6D7TxLdv9rWiH7dBmdBZVjajg5A43jajuF3fUgmvBzrOHc2RumFzOmtTsa8YfJ8no/0/cFtc7R/6yVQmRKEajuHKN0NhyUhen1sG8BFcedoKjSkJNkm+atnwrbyZvO399evI0TasNeycw1n5rQaFFeGViUK14MMItofdOcsW9AgR9ACaKS1obgD3vJVTyO/gBaiVGnpby4hRmt7Ft+4V4Yd6w2y5R+ETfZTa5GQHw1Nt0YRVpt3J+4bTS5Ibp5a+d4Hb8mFRp2v0dycyWd6WIfQ1fP6xmq5oVVoxqzVyIhv2wtzbf/OyZapT/aZqd4jkTdhRN4Je/L3izb6NmE2GuZUuCerYVfHFyleme4NQ8Hfr5z80Cbwe+k3JMpm8gf0WRvZvlQebspgiTf7k83I9ZvttgSQFDOw/gar8fG3z5uU; 24:cbx5KPwTXyIWXu2DL5X+i6LA9kDTZpBty97ZdwYnl3aNgeQ55/JoELKxr652/oYbAl9sXTmUP6VNveJa5+dwEPfaQCY0cqaX+PE95OjUDZo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2553; 7:cdD+GOzhYNHXIcab+7BYKrGJvBNdvwQfqzyqBKKC5QY8BrLa/eCOCFs6sH/Y0K7ymjjRewuRnCw+KEj5hIKalak8VXwbpYsXcq9nATu0gGvxVEkmilyzE0ah6LnskYJe+e0LwjbtUAejb7R7B9kbADu/zjIjoubc4YZJUfT3+8DmFu31qer1BtF7VvAFJcNQ8KCmLhyeJ3s8vBvjehoGOEi87dYnxeg206Fo7mv9kzK4xGQS5r63euzIsThkv003Vuvdc4c6icT+cmH2U9Rwl0aRMRgl76UblOwQTNy7a/TyC+Ld776zIMSKsqe/98q46XfRGNMlSDXTW11uxQXwgXS3JdyL09nN7Sd3FvEkYjoaDNq4wrN3APJ236Rtqo9kWLApF08OgjQB4BVG8b1xiQxamhPIhMkg+TEFuz/KZx1DtgC2HyHkpKIShwWkjGOyJo6e4cUYX7JwbDxeq3XU6vWfgMvawIS/IQAc6Pq+dzr22thArAEkMrrmroK+NtpHyzAfhIwgECd29zIBLjFWv1HieTBODilleE0V2qnxYOQqKGtziD9Q+eelkrtFDejPKzVbeED0myzba3ODwTQx61D/3/dWfiCXo/xmhbRg11m8nlqgHsG+QyxOuyQRMyrZQ2A4IyNFo9ky7LdCzKB/deOymbm4/70iUWBeCVVXZ4J2SH6VxuE8P1HumR96YCvXA2VQUJW+vMEMPUXHa4xwbSSprdhLkBms50x9oFA9jrTWK2nx6Hz2KmUOgzNeKtBywHq/Iar1WlvdUAsVk/7OTj2F5NCErSE2A7/DPmthouY= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 06:06:36.0171 (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/radeon/atombios_crtc.c | 1 - drivers/gpu/drm/radeon/radeon_connectors.c | 7 ++- drivers/gpu/drm/radeon/radeon_display.c | 71 ++++++++++++----------------- drivers/gpu/drm/radeon/radeon_fb.c | 2 - drivers/gpu/drm/radeon/radeon_legacy_crtc.c | 1 - drivers/gpu/drm/radeon/radeon_mode.h | 4 -- 6 files changed, 33 insertions(+), 53 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index 3c492a0..02baaaf 100644 --- a/drivers/gpu/drm/radeon/atombios_crtc.c +++ b/drivers/gpu/drm/radeon/atombios_crtc.c @@ -2217,7 +2217,6 @@ static const struct drm_crtc_helper_funcs atombios_helper_funcs = { .mode_set_base_atomic = atombios_crtc_set_base_atomic, .prepare = atombios_crtc_prepare, .commit = atombios_crtc_commit, - .load_lut = radeon_crtc_load_lut, .disable = atombios_crtc_disable, }; diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c index 27affbd..2f642cb 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c @@ -773,12 +773,15 @@ static int radeon_connector_set_property(struct drm_connector *connector, struct if (connector->encoder->crtc) { struct drm_crtc *crtc = connector->encoder->crtc; - const struct drm_crtc_helper_funcs *crtc_funcs = crtc->helper_private; struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); radeon_crtc->output_csc = radeon_encoder->output_csc; - (*crtc_funcs->load_lut)(crtc); + /* + * Our .gamma_set assumes the .gamma_store has been + * prefilled and don't care about its arguments. + */ + crtc->funcs->gamma_set(crtc, NULL, NULL, NULL, 0, NULL); } } diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index 17d3daf..8b7d7a0 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -42,6 +42,7 @@ static void avivo_crtc_load_lut(struct drm_crtc *crtc) struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); struct drm_device *dev = crtc->dev; struct radeon_device *rdev = dev->dev_private; + u16 *r, *g, *b; int i; DRM_DEBUG_KMS("%d\n", radeon_crtc->crtc_id); @@ -60,11 +61,14 @@ static void avivo_crtc_load_lut(struct drm_crtc *crtc) WREG32(AVIVO_DC_LUT_WRITE_EN_MASK, 0x0000003f); WREG8(AVIVO_DC_LUT_RW_INDEX, 0); + r = crtc->gamma_store; + g = r + crtc->gamma_size; + b = g + crtc->gamma_size; for (i = 0; i < 256; i++) { WREG32(AVIVO_DC_LUT_30_COLOR, - (radeon_crtc->lut_r[i] << 20) | - (radeon_crtc->lut_g[i] << 10) | - (radeon_crtc->lut_b[i] << 0)); + ((*r++ & 0xffc0) << 14) | + ((*g++ & 0xffc0) << 4) | + (*b++ >> 6)); } /* Only change bit 0 of LUT_SEL, other bits are set elsewhere */ @@ -76,6 +80,7 @@ static void dce4_crtc_load_lut(struct drm_crtc *crtc) struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); struct drm_device *dev = crtc->dev; struct radeon_device *rdev = dev->dev_private; + u16 *r, *g, *b; int i; DRM_DEBUG_KMS("%d\n", radeon_crtc->crtc_id); @@ -93,11 +98,14 @@ static void dce4_crtc_load_lut(struct drm_crtc *crtc) WREG32(EVERGREEN_DC_LUT_WRITE_EN_MASK + radeon_crtc->crtc_offset, 0x00000007); WREG32(EVERGREEN_DC_LUT_RW_INDEX + radeon_crtc->crtc_offset, 0); + r = crtc->gamma_store; + g = r + crtc->gamma_size; + b = g + crtc->gamma_size; for (i = 0; i < 256; i++) { WREG32(EVERGREEN_DC_LUT_30_COLOR + radeon_crtc->crtc_offset, - (radeon_crtc->lut_r[i] << 20) | - (radeon_crtc->lut_g[i] << 10) | - (radeon_crtc->lut_b[i] << 0)); + ((*r++ & 0xffc0) << 14) | + ((*g++ & 0xffc0) << 4) | + (*b++ >> 6)); } } @@ -106,6 +114,7 @@ static void dce5_crtc_load_lut(struct drm_crtc *crtc) struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); struct drm_device *dev = crtc->dev; struct radeon_device *rdev = dev->dev_private; + u16 *r, *g, *b; int i; DRM_DEBUG_KMS("%d\n", radeon_crtc->crtc_id); @@ -135,11 +144,14 @@ static void dce5_crtc_load_lut(struct drm_crtc *crtc) WREG32(EVERGREEN_DC_LUT_WRITE_EN_MASK + radeon_crtc->crtc_offset, 0x00000007); WREG32(EVERGREEN_DC_LUT_RW_INDEX + radeon_crtc->crtc_offset, 0); + r = crtc->gamma_store; + g = r + crtc->gamma_size; + b = g + crtc->gamma_size; for (i = 0; i < 256; i++) { WREG32(EVERGREEN_DC_LUT_30_COLOR + radeon_crtc->crtc_offset, - (radeon_crtc->lut_r[i] << 20) | - (radeon_crtc->lut_g[i] << 10) | - (radeon_crtc->lut_b[i] << 0)); + ((*r++ & 0xffc0) << 14) | + ((*g++ & 0xffc0) << 4) | + (*b++ >> 6)); } WREG32(NI_DEGAMMA_CONTROL + radeon_crtc->crtc_offset, @@ -172,6 +184,7 @@ static void legacy_crtc_load_lut(struct drm_crtc *crtc) struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); struct drm_device *dev = crtc->dev; struct radeon_device *rdev = dev->dev_private; + u16 *r, *g, *b; int i; uint32_t dac2_cntl; @@ -183,11 +196,14 @@ static void legacy_crtc_load_lut(struct drm_crtc *crtc) WREG32(RADEON_DAC_CNTL2, dac2_cntl); WREG8(RADEON_PALETTE_INDEX, 0); + r = crtc->gamma_store; + g = r + crtc->gamma_size; + b = g + crtc->gamma_size; for (i = 0; i < 256; i++) { WREG32(RADEON_PALETTE_30_DATA, - (radeon_crtc->lut_r[i] << 20) | - (radeon_crtc->lut_g[i] << 10) | - (radeon_crtc->lut_b[i] << 0)); + ((*r++ & 0xffc0) << 14) | + ((*g++ & 0xffc0) << 4) | + (*b++ >> 6)); } } @@ -209,41 +225,10 @@ void radeon_crtc_load_lut(struct drm_crtc *crtc) legacy_crtc_load_lut(crtc); } -/** Sets the color ramps on behalf of fbcon */ -void radeon_crtc_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, - u16 blue, int regno) -{ - struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); - - radeon_crtc->lut_r[regno] = red >> 6; - radeon_crtc->lut_g[regno] = green >> 6; - radeon_crtc->lut_b[regno] = blue >> 6; -} - -/** Gets the color ramps on behalf of fbcon */ -void radeon_crtc_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, - u16 *blue, int regno) -{ - struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); - - *red = radeon_crtc->lut_r[regno] << 6; - *green = radeon_crtc->lut_g[regno] << 6; - *blue = radeon_crtc->lut_b[regno] << 6; -} - static int radeon_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, u16 *blue, uint32_t size, struct drm_modeset_acquire_ctx *ctx) { - struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); - int i; - - /* userspace palettes are always correct as is */ - for (i = 0; i < size; i++) { - radeon_crtc->lut_r[i] = red[i] >> 6; - radeon_crtc->lut_g[i] = green[i] >> 6; - radeon_crtc->lut_b[i] = blue[i] >> 6; - } radeon_crtc_load_lut(crtc); return 0; diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c index 356ad90..638bcb55 100644 --- a/drivers/gpu/drm/radeon/radeon_fb.c +++ b/drivers/gpu/drm/radeon/radeon_fb.c @@ -332,8 +332,6 @@ static int radeon_fbdev_destroy(struct drm_device *dev, struct radeon_fbdev *rfb } static const struct drm_fb_helper_funcs radeon_fb_helper_funcs = { - .gamma_set = radeon_crtc_fb_gamma_set, - .gamma_get = radeon_crtc_fb_gamma_get, .fb_probe = radeonfb_create, }; diff --git a/drivers/gpu/drm/radeon/radeon_legacy_crtc.c b/drivers/gpu/drm/radeon/radeon_legacy_crtc.c index ce6cb66..1f1856e 100644 --- a/drivers/gpu/drm/radeon/radeon_legacy_crtc.c +++ b/drivers/gpu/drm/radeon/radeon_legacy_crtc.c @@ -1116,7 +1116,6 @@ static const struct drm_crtc_helper_funcs legacy_helper_funcs = { .mode_set_base_atomic = radeon_crtc_set_base_atomic, .prepare = radeon_crtc_prepare, .commit = radeon_crtc_commit, - .load_lut = radeon_crtc_load_lut, .disable = radeon_crtc_disable }; diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index 00f5ec5..da44ac2 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h @@ -935,10 +935,6 @@ extern void radeon_combios_encoder_crtc_scratch_regs(struct drm_encoder *encoder, int crtc); extern void radeon_combios_encoder_dpms_scratch_regs(struct drm_encoder *encoder, bool on); -extern void radeon_crtc_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, - u16 blue, int regno); -extern void radeon_crtc_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, - u16 *blue, int regno); int radeon_framebuffer_init(struct drm_device *dev, struct radeon_framebuffer *rfb, const struct drm_mode_fb_cmd2 *mode_cmd,