From patchwork Wed Nov 22 08:06:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "He, Hongbo" X-Patchwork-Id: 10069895 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 4C01460353 for ; Wed, 22 Nov 2017 08:08:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F88228236 for ; Wed, 22 Nov 2017 08:08:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34741294EC; Wed, 22 Nov 2017 08:08:27 +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 CD07728236 for ; Wed, 22 Nov 2017 08:08:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EA3426E5F8; Wed, 22 Nov 2017 08:08:25 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0088.outbound.protection.outlook.com [104.47.41.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id B05476E5F6; Wed, 22 Nov 2017 08:08:24 +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=UPrvWxxeh7m7Oe4Cxvvm8S5Jl50lyqBjL+aMRpGUbkQ=; b=qCcC2y7aSx+8/9Ep3jlPZBovxOcN7VT3xxqceVzx5s/yQy2W1OGf+QFceqioY7H08Ou1iQ4KpJuwy/U0QbqvF1QKKmA9QNMMdsTBkzJ8li8EpbHEXmmy3yALk2Xe3HVnYsq3nCFRe6xSefXkHjkVoPYctxekaudbytylOvBR2Zo= Received: from MWHPR1201CA0009.namprd12.prod.outlook.com (10.174.253.19) by DM5PR12MB1451.namprd12.prod.outlook.com (10.172.38.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.239.5; Wed, 22 Nov 2017 08:08:23 +0000 Received: from DM3NAM03FT054.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::201) by MWHPR1201CA0009.outlook.office365.com (2603:10b6:301:4a::19) 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 08:08:22 +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 DM3NAM03FT054.mail.protection.outlook.com (10.152.83.223) 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 08:08:22 +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 02:08:21 -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 16:06:37 +0800 Message-ID: <1511337997-26698-5-git-send-email-Hongbo.He@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511337997-26698-1-git-send-email-Hongbo.He@amd.com> References: <1511337997-26698-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)(346002)(376002)(2980300002)(428002)(189002)(199003)(86362001)(575784001)(50226002)(101416001)(4326008)(189998001)(50466002)(68736007)(72206003)(478600001)(450100002)(53936002)(5003940100001)(105586002)(77096006)(106466001)(97736004)(48376002)(53416004)(54906003)(76176999)(316002)(2950100002)(110136005)(6666003)(50986999)(16586007)(81166006)(81156014)(36756003)(8676002)(8936002)(305945005)(2906002)(47776003)(5660300001)(104016004)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1451; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT054; 1:RkviHQdNaGbSNB+l/eAcGgAK8tmPwNhdcURhqXBi3IFfKxXeYwrRD+2nwLq1LrNZNo+t8Gxkoz9A0AiZ0m0XI/MBDpsRY25ZC9Hje/39YXqEc8zr4tpUsIdtk55iSQP2 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3343c4a0-b99f-46b8-f634-08d531803348 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600022)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603258); SRVR:DM5PR12MB1451; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1451; 3:GEKtTccIdlh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WplZmCiuERw0FNMX6QYO8fFnh0YzomeFQ7O7pHHHqhHTd1CYj//HkkV3Hrrb2RiTktPl/CWZDUZCxuXpz54V/vK7qAqhptQUWp7iVC3Hoyr4TXQoG6s/OFX8gkVa2e3Hkuw/DNDASkH1Knc0qzZlzk8CjeDPlZ/6jIMTvMRq90iaZwbrbe1ghmDNMiI6hquhDVE1DxAUP3Y7UQluqkPxyjtxLQJaNEjVB9uHz2li55Mr8ks7FoeHysrOYGuKZncGoTd360gcOpGZ54sNsClvBjBagdHEdkbchyLn27L4USRJh/EKB4nZqZV2YAgS875T1UQEhb3ZzGV6ri4Vk34T7zLuI8rO0te/wgXa/4i/YRIbLsnCUFzjIyPUgFi0oUoyXWUxxasEXTD99sUhQim1iqxZIssq12rEkJf+oDBMjZkW+9KoVjiHCwZzz2b/r3kFMH 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)(5005006)(8121501046)(100000703101)(100105400095)(10201501046)(3231022)(3002001)(93006095)(93003095)(6055026)(6041248)(20161123558100)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR12MB1451; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR12MB1451; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1451; 4:aJE4jUXP46HFaWWthz3G6fUujRbi2iWGKSmmnB+vHng7P0GE4EFFET6EncJEua37t1JtSEnFgktRBOWtWq88WUhcefc5oZvSaRpNhtDutd8jDVuinZNB715YQ0vmjP5r8neROxGdIWUk4L9AojC8TWM/d3JyP2OM3ihYVfBXEo+P+OT//IDXamW/1Ifrbzpm5ssSqWcWK5ytGzAnNXNCbAzVC5ndju6hA15gUCML5KZP4R7OYOVIpJlYFqLSgBTpYC8S+gextTIhL2CFfj8twJLj79WWQctVOOXv+3TC71z6qm/cYvoevO4SesVeXx6H X-Forefront-PRVS: 0499DAF22A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB1451; 23:2ASL66nwt0JNSXP0hmU6IAQiHPEUv9kf9gf4AW45w?= =?us-ascii?Q?ClAijmfRYZzfdunPlbBAchJ9f66puQwJd0/2I4Rg1XMYan/rp312MUSbKhpy?= =?us-ascii?Q?8/ar2zHKIPl9ek3XL/h20Uh0nU0Xb3CjAVEAC4b4jJ/D1omTOlcMGyRBM2O7?= =?us-ascii?Q?jOMjAstIvHC7NBDKqLL61FGlK9jxcO4Yv9ZqobO5LvY6aM3Mb7WYIrNGOwm/?= =?us-ascii?Q?13F9px1Y9mJJbTJNtEz7hDGEtkSOidBRcBSYkEUVnXgoDIQEuL3ImsUeAFnH?= =?us-ascii?Q?BylSkqg9Vvu3mfMVu813YONNuHhMeFu4i6edEtAWcI7hJXzaoNfhwxuAKn/C?= =?us-ascii?Q?QrBSYfledEa1uPMUCumjJFuHb6wTqY0NfmchWp0VKi4hvsmEtrYsdoMixC4C?= =?us-ascii?Q?rzWQ0S9wKKU0yXx+27QC0rNCux6WNiWk06MBUNYtT1tHk4FZpHeNQwRPmQK6?= =?us-ascii?Q?YgpnQ8h3iKPmLiHDEJfOtVebAlHOjLtkZmFhjSgRSIdfztdUm9cZVZ28IRTF?= =?us-ascii?Q?DMcK17SlUyVaq7gf1Pl/jhfUY4vPuZjuGAS1IJtK5WR06l9FNyVnurY+JkGO?= =?us-ascii?Q?JYT7tmkkoavGbUscYcX3nL4xzARm1inzuXQjPg+j5AqUWmXT0RshiimZM739?= =?us-ascii?Q?Nlme/Rz9Cn7oeU9oAZAy/beyHTBJeQwv5m7o0iEGOxqEOZjJ5pBYPElx2uoA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Tqn9QrZsh4A3f0SAkKlQN4=; 24:mwHlf70elgDd0rSJRfrVrMc8H/qluhNIe4MsbeKbLjygdqAf66y/OJ8dsNHfDjH597nJpT8Vad0aDFbMydfjJ9HYDOUntuJwPC+O/tVbApw=; 7:oZb2gBpY0xEUhKAP8X21AD2FTlPXHAdixOh5gw6h6J22tytNRz5CIUVC9mK8fSyYk2g/V7p8j5ARl+kw2nFxQQAGyUTlj1nWc09rR/vmasNudeqgz2uJtlt3hTiJYzwf8dXsHVkCXDH1IB519cR8gNZ0uQZoYtEoNlE6dBqWO9hOpE6SfGwBACGixBgPll0IxAbNWMEqEvMuCOInDLdOCuDEGKTn8Qg4Uu9Ia8VClYomXfQfKZg6wdIHnHePFsG5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1451; 20:IBFOCngboflupt0+wJaoQJWz0NHB1SXM+60eZ/fRfOIYchDt7uVVhunvwNoyQe3DFCdqXaQRgTtwTw0DCCV07j832Tfx1hMEcb2lgcacQ3GlU0aFPGIZWE+PjvUPP7ke3j+gRh9tsU+s0LwkhiwUDgMgvhNKHkWBy07O0BxXARth5fQLqO1DEMYoqR6Diay6GYAGZWfktyxRn2XTgAoMvQd1g584rULOE0x/+JiE9cnxvS8Mhij5fIPM/D+S1khk X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2017 08:08:22.7537 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3343c4a0-b99f-46b8-f634-08d531803348 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: DM5PR12MB1451 Cc: Roger He , Christian.Koenig@amd.com 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 82d40c6..53fd8e9 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)