From patchwork Wed Nov 22 09:17:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "He, Hongbo" X-Patchwork-Id: 10069965 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 A9AE0601D5 for ; Wed, 22 Nov 2017 09:19:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FB4F29BF6 for ; Wed, 22 Nov 2017 09:19:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9466829C20; Wed, 22 Nov 2017 09:19:01 +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 3804629BF6 for ; Wed, 22 Nov 2017 09:19:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AF20B6E60D; Wed, 22 Nov 2017 09:19:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0051.outbound.protection.outlook.com [104.47.37.51]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6AC916E60D; Wed, 22 Nov 2017 09:18:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/kj5vgLk9Uv1O4EPP8c5h9i4KTHanhohdYkjGSwirCs=; b=uiravs7SDFUkvoA5rXgfgPhrAvwepq+HHC0iINEQ0UeQRyJYrQ58LjxRwLqEA8HVf+WicL9WcqQDw0A/x8uCZ6STeze0Vid04foJyG1hTqe1HtuIfwyV65n4I+mo+HDMJdLsTXvCC0ku8H0veOWKokZ3HJRY43+IdK08aFqww3c= Received: from MWHPR1201CA0014.namprd12.prod.outlook.com (10.174.253.24) by BN6PR1201MB0049.namprd12.prod.outlook.com (10.174.114.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Wed, 22 Nov 2017 09:18:57 +0000 Received: from CO1NAM03FT039.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::206) by MWHPR1201CA0014.outlook.office365.com (2603:10b6:301:4a::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.239.5 via Frontend Transport; Wed, 22 Nov 2017 09:18:56 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by CO1NAM03FT039.mail.protection.outlook.com (10.152.81.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.239.4 via Frontend Transport; Wed, 22 Nov 2017 09:18:55 +0000 Received: from roger-build-server.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.361.1; Wed, 22 Nov 2017 03:18:54 -0600 From: Roger He To: , Subject: [PATCH 5/5] drm/ttm: delete set_pages_array_wb since no one use it anymore Date: Wed, 22 Nov 2017 17:17:14 +0800 Message-ID: <1511342234-18570-5-git-send-email-Hongbo.He@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511342234-18570-1-git-send-email-Hongbo.He@amd.com> References: <1511342234-18570-1-git-send-email-Hongbo.He@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(376002)(346002)(2980300002)(428002)(189002)(199003)(47776003)(478600001)(50466002)(97736004)(77096006)(48376002)(450100002)(81166006)(81156014)(68736007)(72206003)(8676002)(105586002)(106466001)(4326008)(53416004)(36756003)(5660300001)(575784001)(16586007)(305945005)(101416001)(2906002)(104016004)(86362001)(76176999)(53936002)(50986999)(5003940100001)(316002)(189998001)(6666003)(2950100002)(50226002)(356003)(8936002)(110136005); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1201MB0049; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT039; 1:nKqxM1VP0Oi6dJeSIndmvy7JJ6Yioa64+nho6z6riV/AanH4b69hqsdIXoko5wjoXDZSbQ1zPqewRmggTg6/XRfDx35UEI6rFmq14HLYp8X8HBte2YTtmFbrm7/aZH/x X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 42c8746e-0d01-45d0-e799-08d5318a0e5c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600022)(4604075)(2017052603258); SRVR:BN6PR1201MB0049; X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB0049; 3:7ezlJPaIMSUGDM0Nighh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NSHcVq1W9jQGDo0RkEA0gi1UZcdntJDkaOBY9ONnZP9S/w/J8cG1Ub2yHB+K9e9s2uRrkBLQBDFtOEPUGJxtVtd0PQaHKdFZdx/mxi+tNLyGvRUc/vyfZLLCDKpRp9UiqnSuqgGmoWoUjtF5AO6N43FQ8TM+RZAJT45xAGnzwOTha+xQ25FMKCiaMknPWS81ePwn5se2a5ghm5s8fjlrLaR+wYez1M5FrEkhbjSI+cpIp1XlIxjeL2aGfjM2NSxsoNfXNnb5djKxLy6JwbQPOHxwb+v+2vMajlSA6f48z0G7J05KyhcQirQPstE+R8/SQrmJ1Kenxdtd/mlJOcbQILXTHlYBZg3K+uLF8ar0cs3X/FYi2AI/K3TaPfapwhbUuZ6K3wiQ9LOhpe1fKWp6wzIjS3FVYGjEEyJHwQLwEj0uA6nM0xH X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(93006095)(93003095)(3002001)(3231022)(6055026)(6041248)(20161123555025)(20161123560025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR1201MB0049; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR1201MB0049; X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB0049; 4:g2yNMl2kRxrpgkxqRHwDHGX+rGYzu3sRjX8/D+yDhSRcNinOcUKr5k4vFbDlx0IvBIu1+F2hQr95iO56yySdi1jby0GXp+4T2d6JUDXlPl+nHMj9w0vRUcgrqnXkhjYcz5KZMu207gsUmlwOJq4xTNIvjbSfdnugf5EgfLr067AjZTe94DjHkEKkI/pmoKlP271NW3xAWTRNeEGm6QXKm3AQZNFsZABM4gR/kwDECOgbsuQpPgZLPTCcM/mhSIIb/IhejnKnzm6QEdz9YnL3eoQo/mRUemzFuCRbMpwb70Wz8TrLtSghI5LWN+8yZ/Tw X-Forefront-PRVS: 0499DAF22A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR1201MB0049; 23:bwO637OCneqp9jBAo3kR60aYmgkPP+rmd+qVo8v?= =?us-ascii?Q?ta7omHzdh8pBgclomQPLtqvYGL77devgk/BiKKN3+55ZP2iZQaJ1a3qiIMna?= =?us-ascii?Q?x/QtXAFFTnXnuZADTSH4xnZU4NDC11eDjIL+v3UKpRTdcE21R3cH44yiXfDq?= =?us-ascii?Q?z8/IPPf80d76syl/vXyecYYJr4VzPNWx2zIfzcX8ntAnuhbKpU6u+EyDFcSA?= =?us-ascii?Q?0T9tyTGkmkE0dy467zAWRNQML+abipgfyNGIWlMY57LTyfDBSoi+PHIVUsR1?= =?us-ascii?Q?RHZHTQ8WbC+rFaRJOZza+vAgeQAwFSOehNrk321RpATcC1opc9Casmkxvk24?= =?us-ascii?Q?3OtgqUd5jJdOy2HDObwlyZnuZzVlb+05g9EyxTCfOMzB1NInM3rhsbO/QcCi?= =?us-ascii?Q?If6bnJXFMFPlQOVsJIlw8iLd/6Wr8Pzz7CnpXj24YUlQKDTMENa+J1BBCcU1?= =?us-ascii?Q?wc3xF8TXyn6F1NWlvFVGA/uFGL5WzoZQhlJl6Vj9B34+UF75yii9yOdHckQ2?= =?us-ascii?Q?VBRw02545Ro0zoGEHHGV+7e55I4oJERJ4W257a3sqbZ4Zrsdi2Q0p3yw5ut+?= =?us-ascii?Q?Ebkq1HbmikwbusFl+8WRoFsPpwhDPq0F0wikcJLzTWUMyS9BmM2EZ+oOkjps?= =?us-ascii?Q?8F4nO7kFXm63fKspHCeysoKQJUr19FrO2QgdwnSsxu6yaFABPkNooVy/NaD5?= =?us-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OT9tG+vU5Z+bdmKAdRp97m3XRwBzP5sF+jS/Q9EENAqDiKRfyH5MRFuhKd7A3IixxfQoBPiXompVYfdS5E6MBraTrzl/LoaJ28=; 7:KP0PGSDwMTwMuuWRiRG8F5qC9gC7Zze6vxqb62+Mv7lLQRXE+6DxsIUuupA+skl5WpEs/iPWZtmU3XUH+ga973USJcZBGq6UEauj2fv4JI1wum6qPgmdxx98LgEOhNrxo/NvMn4SLIg5VSZ4IE3ul5bTRRu3ZeEkBb8SK8VpG4Qsc6r4ybNy457Rq/eK811E3dVRTw8sT0JIKH3FpFyAHVXqhPNiWJNwwS0hHvW2/uDqanjS8haQW0BZFcvUEO4N SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB0049; 20:ECmt2NCr0LIwwNJjnGtyT+VU4oKCH2n4YuN7R6e0FdDb8mi7EZgS6F1htqDCA7nCk5jqH6u8Xj1DP6rirvRfZwFVbALOAHWKeMOOykDdpKoy+/Kr58ucdYnMAISvMWMMt7TCNwUpkjGwBkpnzBP6gdjfTGy3ZiHrLHm+L0xH6CrJuGhDrqY1JgrbNbDrVlB5x+pUHtHsHx/UOeAnCtfSEmnZA5+NK+uv37XCzExEwsdRIUYN/VjfXTSqzhtVHziS X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2017 09:18:55.6958 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 42c8746e-0d01-45d0-e799-08d5318a0e5c X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0049 Cc: Roger He 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 Change-Id: I9fa45af447c3c78d0b7b2b8958081e584c560120 Signed-off-by: Roger He --- drivers/gpu/drm/ttm/ttm_page_alloc.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c b/drivers/gpu/drm/ttm/ttm_page_alloc.c index a710d9e..388c5b1 100644 --- a/drivers/gpu/drm/ttm/ttm_page_alloc.c +++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c @@ -237,17 +237,6 @@ static int set_pages_wb(struct page *page, int numpages) return 0; } -static int set_pages_array_wb(struct page **pages, int addrinarray) -{ -#if IS_ENABLED(CONFIG_AGP) - int i; - - for (i = 0; i < addrinarray; i++) - unmap_page_from_agp(pages[i]); -#endif - return 0; -} - static int set_pages_array_wc(struct page **pages, int addrinarray) { #if IS_ENABLED(CONFIG_AGP)