Message ID | 1511342234-18570-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 E660A601D5 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 22 Nov 2017 09:17:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC14629BF6 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 22 Nov 2017 09:17:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0F0729C20; Wed, 22 Nov 2017 09:17:49 +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 7137529BF6 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 22 Nov 2017 09:17:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 95D946E2ED; Wed, 22 Nov 2017 09:17:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0073.outbound.protection.outlook.com [104.47.40.73]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7961D6E2ED; Wed, 22 Nov 2017 09:17:47 +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=T/660nOGRRVIqOssnVmi3KgzQwLglsQloTkvbxMiDiw=; b=NpLlIihBVdYcwsKh1xzslqb4iK81IUMWUdxGWhUg8svPDLe+Z/PpkYSODy3NJTXNl5y3FnBMhcKA6yYb0j8G7WkePmvaBpDEHtLXq9zIZptVfbdJToHshlyuKPjPrkSyis5/koaShuOLKnX5rySpB3EKzPdd7xh4H5LKJTmSq6g= Received: from CY4PR12CA0030.namprd12.prod.outlook.com (10.175.82.144) by MWHPR1201MB0063.namprd12.prod.outlook.com (10.174.98.14) 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 09:17:46 +0000 Received: from CO1NAM03FT019.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::203) by CY4PR12CA0030.outlook.office365.com (2603:10b6:903:129::16) 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:17:45 +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 CO1NAM03FT019.mail.protection.outlook.com (10.152.80.176) 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:17:44 +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:17:43 -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 17:17:11 +0800 Message-ID: <1511342234-18570-2-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)(346002)(376002)(2980300002)(428002)(189002)(199003)(53936002)(2906002)(48376002)(86362001)(50226002)(4326008)(105586002)(5003940100001)(450100002)(50466002)(106466001)(8936002)(478600001)(101416001)(6666003)(72206003)(53416004)(104016004)(110136005)(2950100002)(5660300001)(47776003)(50986999)(76176999)(316002)(16586007)(97736004)(68736007)(81156014)(81166006)(8676002)(189998001)(36756003)(356003)(305945005)(77096006); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR1201MB0063; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT019; 1:c+xyYWNdPTrMoGdcGGYDl/4facowfwBFk7bbPRf4DQnLMsSRp7RiIDb+OXxzTPPGCeRNH2TOYWPI9A/gXmJTxz93rpUaz5PjO8pTF4GoOedkeUqnOX+M+o6+c56/fv/z X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fd293bcb-a18e-449b-af01-08d53189e410 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600022)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603258); SRVR:MWHPR1201MB0063; X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0063; 3:d4CH2f9zZ8jYLXL/TQWV3dTyS39ZTq7mJE4I82L4Qj9EYF0SLhNMPk64yAEUkP/msrc5c4bfvJ9xgLIcYkK885EsEX34+eKF7FJVl1FDW29PktnWsx7JpzMqlbwFhuRdsHjFgb5T7gFmb9ym6Thrd+IZwLPWKJDvtUVELIodWacos2eL/94SzBECWtH4aDyEXAd3Zey+p+sOEgi1pW1Bj4ztRa6jqiacL7+nhogCClE+dRAJAlU10m01wHVeNpMy0CPnrPWA+KqVjyHHxjCmPNHo4zvKlnfJT4ZivKnb5hA6uZkubj3uv3RmHfgrIc2hEjRjcaWNgfEqX1Q2xoeUuNNkfNxNPJenq9ND471YiRM=; 25:Ux6lK53CIjJ4uM1+BHIEwDr7V+PWXrwON9pjC/XNt688DGzWjaJVJD9AfdyMJgrRqhCfgRNTm/pjHS772aYli8qLmSJlE8BAui6aQ44D2/AZQRtlPRP/eNVVbpXnciuyUcOxqAJML+9gj5AUmm4RkkRyewqaZdmMFUU2O83DNv5zyp/R6wZtv5D8JoXSVEb8uBzrF6p8HGSaeKud01ND2mODuIjVp169MrNeA2FP0+tBdm3WMasS3lE6m3IOQMsBw3J60VMASU53LedSA0Ofw9TsdjwR4rXXktZhI/1U6vRpyWICM1VTMiCj1LDuQjDXtFr657aYD9ppFlqn+vdCjw== X-MS-TrafficTypeDiagnostic: MWHPR1201MB0063: X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0063; 31:JDA/hBn9KMYx/wBbdWbUR3vDZdgLoiEvhn8LErEGpzSyhwjKFQpyERzh1cRsSeKSHHd3rtO2cZrr7O1Jho47/RNISbCPL21da/mhSYlUgxhjA6LKPzKCqzu9EM42hB11pztvEkWuOwkIKIof0bmJNGE+Lg1WMwH0G1z5UIW74lFhZnQBLsBOorSxsXi/7dCGv2RQduhpNDCJCYGepxZ9OWCsBbQjo45n+kTVEXceTpg=; 20:4WDWwtPZgkQdKVjYAByoUJOA97ukmlTsYvdGAfPlf+8AQVU0TN7DiQzUNh/0tvfK9rS1WCP7xJbgxyehPXEK48wH9QgEYHuuHbzOpYlIfG3Q40EM6MggQCZIrmSWxznZQvzL8KirF62JDgohgUGauwdtJDCNtsYMhJHx3ExzC4cupUJX2mlnjPffAuJ2Vyn7OX4YAdGDNCtwPpECWzqqBdxZwoahDZALi09EODecwDhNdTFg61pytQmo7Snj6HOoh5HLAQcBC6fDwQL38hgmQw8VyBw0Yei2YfmnDmqEgmVL25H4HIDtCE6RrrJoPId63pAXiq1uDG6cNGC2FPVK1d7RdPFGIyMInVqtc3X2nmanXezatvJ9f7132nQ4ol8Esy2lKOedEghKnqyoPwvpjR/OT2HWYBHlnJzSQKqEPlPfaWAxFZlnDCr5JwSMReTVNvyuGJRVvk4+29me9/q6TBhMeXglggTMyOzdpOsP7SztwEU5rFYEEWH411U2P6LR X-Microsoft-Antispam-PRVS: <MWHPR1201MB00637C53C1505C2C07BB6A0CFD200@MWHPR1201MB0063.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)(3231022)(3002001)(10201501046)(93006095)(93003095)(100000703101)(100105400095)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123555025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR1201MB0063; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR1201MB0063; X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0063; 4:0BLCZ4lmV2JH4gQIsKESalGlQrCxBZX/yuCorI8usFZ78tImJCsC7MOGpC9g47x8ax8sQO5FPhbvzoIQbYq5U6/VCkDReRMtvdiHjUawWveqB0VtUWp/tL6ny+x05g1SkDInwdPmAcFBcquooTAOvgNLUU4o6GGoFgPAZ5u0YoOanAalcgZI5rN7T4+PaCXlgZDcWgw0aE+mB1YkXKIKDNLXBw01ykdXsflP08G7gqta9YPjn3GKBwyanfJi1B0JzmR68IhI72UM2ClwW7ZndrTtqj1w30I2kUChU9O6iedYGVoe3Y3Kc0D0CDwjMRhS X-Forefront-PRVS: 0499DAF22A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR1201MB0063; 23:8rZHzmrAtIkR4b0ZBUuFO+M0zpKR9TURiDHKOR+?= =?us-ascii?Q?7mqZOvPVDpnFAUcU4QD/lsC6OWE8vFiE2Exygcms7/wC62S+x22g9Vmz9wAq?= =?us-ascii?Q?+vpUi7W1ZgbzERu95o5bWywMzgqmCK23wRCcH4yc4QLfsrapCUdxn2ZxXhyw?= =?us-ascii?Q?7szG7YVpz7BEZuXVQNNdyzLeb9lI/fE6dx3TBNAnxmoSG4y3X3Wbqkgcnlob?= =?us-ascii?Q?DfiMmBfihzYaI9Z3mOz1758c15e1wIdzHeIk104/3r6pe/Knc9PBT9XfNibN?= =?us-ascii?Q?lXvHJkaaUh37st1TY68gOGb8fxg1DOySQ0RLybIQ7fApN0lKvvXiOc1wFo63?= =?us-ascii?Q?lXqLRVKLh/ED6XmJqsp1s1MGbL1SvmiyfyEVXLuJngBNIZNtFBusapRLoSR7?= =?us-ascii?Q?5Cog9Myoh1vwqPw+O5Pvb+rXFJrEl+iKq+0CbNJEA+sDaoU8RfGZ5FSrd0s3?= =?us-ascii?Q?B554lrGze3NZ28SYIH4KTxd+SNfoA/8dRPVmqPvmkPAj3YcPatirGtbajWXR?= =?us-ascii?Q?HjcqS1kx821XDaP1LcXyEKM3QXpq8I3dNqCwiORowG50oOa4GQZpgP+9RUW+?= =?us-ascii?Q?r1vGtEVbn/0UjORwMhskos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fyrYDi7KxZSmjTgBtQ+wW6V0mW5lVQKIm4u+EhiXalIVdDz5sxzqk1FiUEDNJNxCHy63Tw6UrW7/Xb97/LmFk=; 24:4uEGSGnzexs3yL+ym6/96dopbvXA/CYHHv6mA+ibg/URROeaNclFfXusbV3MJ2CiGEJAgABfY2Ng5K9hT+ljXOMHVb5pDmu9O+6bVeoX3HQ=; 7:csqK+neuF5TuDZRKB98kKV+fDNZDfSB7BlIczH++FJQGk9rxV9AJ1oBEwv86NeFNFOa1z70XCq7jBTFWAf6KtsMwV04r5HS2inacBEJw4tpbunqIGwURq7Ph0b9RjlQTLuoGgSHKoRsMkm2YDaKB/0isBi7/tzKCZSrHXxYgvzZos+snE0l75JYTZQjAoTCmXXlbkZFOsZDdPW7dnrkoNOWL7Qi9wS0A7trUXREJc1EICSNRjfdmOVYfWI//ilyb SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0063; 20:g0pumCsS160dQfSADg1HER8mgfFk3RLokdbTc2kb35v4xx1AKscUyfG67+NY8EhSQHidOwaCE8fKKRCoHjUx3gzfiWTfKn2NZloRQTTsb+ROZyTPIVitludZ4k++MFfJlofSw6NdaLN22Fj+kSSHZIERp5/T4Ne8VVrLHwzlwqWy9a0aveS7A9ZcoNsAc7Df5tGflz9XiXoC9Trvsxqqyr/INMdHEB1+WJMqtSstKTI2kJAvlKJL9UIZgb2oorLm X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2017 09:17:44.7326 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fd293bcb-a18e-449b-af01-08d53189e410 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: MWHPR1201MB0063 Cc: Roger He <Hongbo.He@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 a02bd65..9b48b93 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(+)