Message ID | 1511337997-26698-2-git-send-email-Hongbo.He@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> 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 1FDFB60353 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 22 Nov 2017 08:07:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12C6228236 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 22 Nov 2017 08:07:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 07880294EC; Wed, 22 Nov 2017 08:07:10 +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 8F25128236 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 22 Nov 2017 08:07:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9F2E76E5F7; Wed, 22 Nov 2017 08:07:08 +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-cys01nam02on0056.outbound.protection.outlook.com [104.47.37.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id E9B626E5ED; Wed, 22 Nov 2017 08:07:06 +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=wYQ+4NT69fNSqvVfNqtU4FE88W3Qgv5jcmDYP8D76Rs=; b=bDALlRwsvR5aaTPqqPWUA5UsaLEIoXVsZ1sVBgoEuuVt3j7qHIwSERsrQChUisdm/suL6StlN1vZ4TsxvRs20bujrcI4eiU3O8hzBIKNsrRTXxA6xb1Bflc3sFKG1GfHlh3knv9wRaqXLyFGotXO6g0Clp6ApT1h5spzfFYwmjU= Received: from MWHPR12CA0049.namprd12.prod.outlook.com (10.175.47.139) by MWHPR1201MB0064.namprd12.prod.outlook.com (10.174.98.15) 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 08:07:04 +0000 Received: from DM3NAM03FT018.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::208) by MWHPR12CA0049.outlook.office365.com (2603:10b6:300:103::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.260.4 via Frontend Transport; Wed, 22 Nov 2017 08:07:04 +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 DM3NAM03FT018.mail.protection.outlook.com (10.152.82.200) 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:07:04 +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:07:03 -0600 From: Roger He <Hongbo.He@amd.com> To: <amd-gfx@lists.freedesktop.org>, <dri-devel@lists.freedesktop.org> Subject: [PATCH 2/5] drm/ttm: add set_pages_wb for handling page order more than zero Date: Wed, 22 Nov 2017 16:06:34 +0800 Message-ID: <1511337997-26698-2-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)(376002)(346002)(2980300002)(428002)(199003)(189002)(77096006)(104016004)(450100002)(36756003)(4326008)(72206003)(478600001)(2906002)(6666003)(2950100002)(5660300001)(16586007)(316002)(97736004)(110136005)(54906003)(76176999)(356003)(305945005)(50986999)(86362001)(105586002)(50226002)(189998001)(68736007)(8936002)(106466001)(47776003)(101416001)(53416004)(48376002)(50466002)(53936002)(8676002)(5003940100001)(81166006)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR1201MB0064; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT018; 1:/8cUsMFT+Y5giR/pnkpBG5Hwqdfb0Xiy601/c+jRDcU2vclUMvXsKr/n+jRcb7vmbyJWzvCzfWOH6WR4I4L3Vp/ST4dC9vWEeM6PgexmSToJujE7k3VMlBkwnF2hyOz2 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 72ca89ae-0c39-4ddb-9054-08d531800490 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199); SRVR:MWHPR1201MB0064; X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0064; 3:cv0Kxopi34s4ktZCdFFQBzw+TCu6OK2kNx/213r5WzNDOn7D430NTJAo7i/JAHpYDkLnx3c+16EGXPxLq4zNOXGCD8xOrDggYwhaySGWkxqKrAIgUfGXVA0cXMJbjlN0c9bT1FGtlyRPrGopt2/KjpU+xkdr1QcSyPc5QGTFIsnLk6l3asPKGMPdUnqvYFzMe11m/eZQ/+qLUOsxGXv9pKwLB7CxfcFZSqBe91rL3MY6BUXC8kXEmTKKrvL0IgzPlhAFW1bX5ff1is40e0bsv1Y9IGXYA6KaviFT8XaZ5v5NEQ0sWc4iXFyIDOIv8Ja3xiWJVu7pK6Ex1dljhfZanoUCRrJeiT7+xTtvt+EExIM=; 25:J4+2utRwoWTDetCrKfe3ugadW5Ww5RnYmGL859zWPhFf1l0F8/kZ9+MZjItuFviBq95CVfbU91MHYiYJ1hcWXZTpzmuYZB1ZmWGT9iWUvMpEkQnu+dfjWL29fWz5xUTYz0IpCx9gx/gT8hNEGxb6Dmk5ZQmOtHQiAB6qDuMeUs8S7972FCSpe2fKWS8HIfVsVP5mLstXisUUbYv7pU6l4BEmSoF1ashtx/PMp/0KAbd379b1hWgu523lC5/W3AaAx5D8OXInMMHsQBgRDH6TPV3WZSB0NvcH5NCD+vBE6lcxb6hQrgjDShuwTHtYBpv9ZTHrO8mIG9EtUCUgNGZFvw== X-MS-TrafficTypeDiagnostic: MWHPR1201MB0064: X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0064; 31:u3k1vefyHweZjpjpGZ7d67r7Dpv65i5jmNS7puuu7cgj2WhNRHzn3eaMbyfnVnhyZ+lpSkYV/rLdS/6JaZYF2xS1SGLUwbRGWBTAFiOitdBLrETSzwVlaq9n2jYnHJsz0BMpHDx1fPUWp6Ez0yXDyp7prqabGE6n8CXOSzk+vOmJMw5tGZ8lEnsG2XHn6l/IKgcB5PhMMmpl6prwAbH0WpqF5WG1ZasOPkyzmn6azG0=; 20:5iBZzyxjn1rDQlPnnMq6opKh5e4V0E0Kk2VuETy2QnzxuC4wF2+lBh1AzehhYJit6qC9nzeXsNur3GnG3XiJ4J7PDF1onGqaFh0Lc7PQzIUZRGUgXqWkA8sgl8IUQNbd1EY6z/Zst9+i7tpzEERbIIOBV78xF8yZz9gPR6sr5pEuYgLcRHlIhaJKQOsuXg25iG7M1XuItGgFiz+Oo57WquOgQezfZTAu8HGHbTfejm0cvPDkGpjGCbu1W3lqEOv6yYrlWiLtQF7ymOHaJBrOq0SandAfYPENdKoCyeytYfaZx+Lm2oiiXJO+unj1EOky+royHlT7QMHrt7JpaP9+89B5wuLtPpYC6QQ9OgtH9Q2u1Qm798dxPgOTbvMV8Qfa9NfIHCz7OGnp2NE9LQQhbUaM0p7izrdQKumPe/dBgElV0pDl+QtnHs/hxIAoRc17/ArTHU4TgKB7dwE3GvifR+wvpqasdHFQKEUyfaHuNmvfzBgsbrHch3/wfb2yWldp X-Microsoft-Antispam-PRVS: <MWHPR1201MB0064958B4A51E3400EA8B299FD200@MWHPR1201MB0064.namprd12.prod.outlook.com> 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)(3002001)(100000703101)(100105400095)(93006095)(93003095)(10201501046)(3231022)(6055026)(6041248)(20161123560025)(20161123555025)(20161123562025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR1201MB0064; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR1201MB0064; X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0064; 4:XvpVQW4gUrNkQ3cfNjM5wOCZjKoKlQux70IVdty4IDea/4nbU+wzPclRUG0DrouYzWVL+LT5UKGXrbCFalFzfw9IAy8HliaGF9Yq5fULQcim2OOk/LJqwa/uSwF3LqQliNLYCuv3IzwrOu3TCrfohF472gG2l0rfbcNk/LpqRr3pDSPn/XeDhip0ftJRB8mPuxy25/tuzdL9z0PjywlBeydA4mOCKBQZcoAFSI966YMCV4u1xSJkR+dTl8FYbY/fPGh2HhAvhGXKRd0hVa9lAYTGSddb/EAQ27frLWviHbzqhUbGlVUC/zD+40S5wRKG X-Forefront-PRVS: 0499DAF22A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR1201MB0064; 23:7gXwB+shBiXKajLgyleeRenpjQIgzy61TP7Q+0v?= =?us-ascii?Q?UQsuWaNTnKDPUYme9hQzUtG6fKU0iRy6jI6ta7SIBB3oleAG8jQeoxbJUYrq?= =?us-ascii?Q?R57l++S4rgKi0Nw8Xo64GUG4RIAr4ba3Maw9bUWAKw2SP7oh053OkQ0wr/7l?= =?us-ascii?Q?it3x7D2AdG5SKuwpfnBgX708fELrQbyZLUi/AXY71bk1GVCxxbInjAo88bQL?= =?us-ascii?Q?eDFwjTnlRfcW5yRatenYk7DeW3QtLMqj3DIYlcRqdbUpH3jCIlJei5LGbNNm?= =?us-ascii?Q?OC1LeMqx9/b4d55xh8Be12BllLPkm1ABEebMFhs/1bFW2lqUwTNCOItKD1M+?= =?us-ascii?Q?sNJTPwK1Pom60grPRMfPK0458SR7WwsFXKCiKyHd4BU8974ddvXn6nBa5oHn?= =?us-ascii?Q?ssfoTabjn/duH25NMzNPWWTxjYKm2n0nBCoHzS8wOBNeFT8BD1KgLRYrvTWc?= =?us-ascii?Q?X28qE2mzHTrpVAW4t9krDhzm9x+Q6EgzJSkFxFAo0opt7JTlK4UAz9/pAl0e?= =?us-ascii?Q?MNBfJpmrZhc5ZuM3WbE9NcPaTAGOkINGKlj507Z3Qd9XXE3jW23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3/DAuyo7tOtYK7C3peag1x19Gw3EF1hNnhRzxoR0nluULKh48/+jf5flddvHXL2BGdzbxMvFC1j6nIjpBlvqh0KQvOJumQDdTAwipMnUCcocaZXo1NqCG7wgAdDmi3ZbGJok1hzNrtUubrPH9uw6s=; 24:ET+ceaA7sib7riH5jzLo6iY78TN0KILhAh1x43OY/crjMB7RVT8ymfc/87ME2Bc/mpfqnXZg7yZZ+HCUQ+w1HxLLfRpe2iu0SWVKHf8eu20=; 7:FlsEl9aYxgqjeWwgHy4v0KwoCHZ2Kv3Atp5biAxg7FcKvNZc3mwJmDb/PfnUSvju8NnZPPbztCIPjGx/d2la/DtAjvB8UGh6Ax38irwri8EfMk1+fXWJ1kCQ0RNEJBXzWDuMD1IrfTK6rwB4f7E1ODJOJcxZIDqNtQidUZbwg/LL9fyAfHEnQqdASQqh2z/Hknhp9V6eZBByJfU/xDQI7knTi/0mK4g2og3U6n0vTPyztMSOeRJ57GIG5pXLSdMc SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0064; 20:/nm9J7i2aiR68Ug70MzdX0ckuSIvQzAmY1mqmYCiMdI9suc6mu7M7mMkkDo7EQbMSRWgBbvJsYZgpLwQmPcql1SXEETXfEvu1Hy92X9DfJUm3b+Xfho3b0c52tBmSNfBlpcQNSont+1WSJYPzD0koYx1uLBhtayIKSXaXe6qcoXgh2vo6PiXow3xMAHm1iO/oZEdlAnXfDfyjh5NrwiDOjum9Q/XvE97n5p21oUpQBGN85u7sz1bfrMzzxN94JHq X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2017 08:07:04.3701 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 72ca89ae-0c39-4ddb-9054-08d531800490 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: MWHPR1201MB0064 Cc: Roger He <Hongbo.He@amd.com>, 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 <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c b/drivers/gpu/drm/ttm/ttm_page_alloc.c index 2db551f..fabb082 100644 --- a/drivers/gpu/drm/ttm/ttm_page_alloc.c +++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c @@ -226,6 +226,17 @@ static struct kobj_type ttm_pool_kobj_type = { static struct ttm_pool_manager *_manager; #ifndef CONFIG_X86 +static int set_pages_wb(struct page *page, int numpages) +{ +#if IS_ENABLED(CONFIG_AGP) + int i; + + for (i = 0; i < numpages; i++) + unmap_page_from_agp(page++); +#endif + return 0; +} + static int set_pages_array_wb(struct page **pages, int addrinarray) { #if IS_ENABLED(CONFIG_AGP)
Change-Id: Idf5ccb579d264b343199d8b8344bddeec2c0019f Signed-off-by: Roger He <Hongbo.He@amd.com> --- drivers/gpu/drm/ttm/ttm_page_alloc.c | 11 +++++++++++ 1 file changed, 11 insertions(+)