From patchwork Thu Aug 24 10:48:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "StDenis, Tom" X-Patchwork-Id: 9919859 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 AACC760349 for ; Thu, 24 Aug 2017 11:20:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CCFB28B9E for ; Thu, 24 Aug 2017 11:20:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 917B128BD0; Thu, 24 Aug 2017 11:20:18 +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 9A11A28B9E for ; Thu, 24 Aug 2017 11:20:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 249BE6E06F; Thu, 24 Aug 2017 11:20:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 1059 seconds by postgrey-1.35 at gabe; Thu, 24 Aug 2017 11:20:14 UTC Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0068.outbound.protection.outlook.com [104.47.36.68]) by gabe.freedesktop.org (Postfix) with ESMTPS id AFE7B6E06F for ; Thu, 24 Aug 2017 11:20:14 +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=00byor1kq73W898k5h2kANkkPykcOkfOtIUye5vimx0=; b=g03trO/Lj+X8hYY6FNaXFYVXImrCwdU9mcACRN6jeKuwgoAWspvkp5LAr0sqeBnpvCTXLnH/2MkwqUtbl3nozL7FeRZRjAAWvXcqXoSCVMg/yRHUjhuotTqmXc3cLtzFRFFppMTtgEDVF8iCFBLbZJTf+CMMJjfuKPtIgzSpJMY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Tom.StDenis@amd.com; Received: from localhost.localdomain (67.70.69.105) by CY4PR1201MB0072.namprd12.prod.outlook.com (10.172.77.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18; Thu, 24 Aug 2017 10:48:24 +0000 From: Tom St Denis To: amd-gfx@lists.freedesktop.org Subject: [PATCH 1/2] drm/ttm: Add dummy *populate_and_*map_pages() functions Date: Thu, 24 Aug 2017 06:48:17 -0400 Message-Id: <20170824104818.9973-1-tom.stdenis@amd.com> X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 X-Originating-IP: [67.70.69.105] X-ClientProxiedBy: BN3PR03CA0106.namprd03.prod.outlook.com (10.174.66.24) To CY4PR1201MB0072.namprd12.prod.outlook.com (10.172.77.147) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a27516b0-c170-459f-91ce-08d4eadda53b X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR1201MB0072; X-Microsoft-Exchange-Diagnostics: 1; CY4PR1201MB0072; 3:Or41QWZZSWscbg9AS8io9/QIqEJfV2baWNQV18rASOoewpmX9qest5Y7jB5yJSg2UnwL0ZDmeHKiZeEKNqSc/sD3Fyab3cQBwgniRov+gq14kA2BlYUCsf5dLqFxZueFm9KxFag3GcxvwLGxiUeZMBVDmJ0VuNohKCagjZbrS8q8DhYtTDoBdXo0j+12ws+lljQVwY61yFa1GpuKo31Z7zZHXz8fLbK+75FZnUVysJv5Ycueu5Za3zsrR8Zaq+iC; 25:2rWOGVzH9SW+ChpElQGuVVItMXA6sSOvZjqu9uGjfBjMYXqax4UCYeirMeYjEUus9+gvuLlm4AxBvnZ7Gr/+T8p73g9fAJ+nNN+/qeev4UZAWU+sFcfFdS4PC5F4/2mHEmDrDxMthJmQPTDcYPuNqaFWHXBhs6x5MUPA5EU74wqwPEQdRV8WvyYfVRSP1NaTNORrYz1IrWUgM0RRcADBKFwRuFGsB855qE0cRAwlWiQ+OVAdCB5K016XmtTSPToSeR4YzNIGmR+1NefJ2WJltUBDaXI+rTxeautzjVg+2WDW6NpmraHMS+agVHYkPfY7tf4O2i7fIe3gvZAQHnUpGA==; 31:I0oRKFRKIFICjCdCqsfMOsT3j7mepTGI+u6s6OgZmz4yOMM3vyqLagon/uZj7waj33XFezgRzlk4r4OT826Yi7qEf3Str3UVG64sMNOa6/cyzFMIeCW5L46V49SmeYR+ZTdoQojbt7lewpPStQG8TelhUWW5OBEIszah8NpNMVBywxQlnL/SFaXKeR/N+uMcedr92fh0gXPWVorCgpW3CGxXIV0gGO4yCCUzhl5cIos= X-MS-TrafficTypeDiagnostic: CY4PR1201MB0072: X-Microsoft-Exchange-Diagnostics: 1; CY4PR1201MB0072; 20:MHM0uWVcg2XbyBnBAarXsSfhRgYTjZX1/misnAHZzaB5l94lwKKDbNqB4oB7+K++AboB5ZfVsvbQf3rhlGj3FBkxWi1LTRk5aWhtuDyc0aYKsRphCPJdTJsYg51IT8vX5YIQGoy1JbZJ+yXIxY3Y6WQMvaMh48FuZmSPDBHx4JWa3vxFX06g0l2lBtor6ehk9oYQ7hxWUJRUpAdy3KrVq9VKgqu2yRvd0gua1jA6XgGgEzx1o4DhHbwmxz/8+3ZM7iIDWsR+viC4qxeE5DAk7n4W4gGUAfjYJxL/w7MYSJuK+mN+9ZMBGpz2tlg9jiLCfjGI5ONrN/vCcbenYnVclWDgqhRn1IvrE8saWkR6LYCnRQhjSgJ+LztfRBL9oWm63/OGQY8/BTUH4V9jCluINsf7+DqWKkZwD2R00kAOnqVpBlTqx686Wn81yDnCydXGowOF9JNUprDrl70VhpiZzi/IEy7G/RrxG1li5gP0rdJs3rirZNmLuqsJcWUUMJIB; 4:cPHF5UvVMyT9qdxrMnAkcbxJ7ufuxTL6pDq5LK6C57EF9XP24JjAQO0go7bLzoqdaQ1KBcGm9EgpMBjN6PTVhkKMZkAIEQhSHhWh3DKNkT8e25EB/578RuDzyzq7oaY524QEaVxHME6GXjGEqxjPi2Ih1G5MDHCouMSUhAH2kxtLVgFs+n6C+efvY0kmZgFgejvzTWREKCga7yjY8BR1EKymKwaBFQnXkRlYmMU9LjTUapcF74PGKdAhq1ottBcvSw03mD/TltEttvkAIlyNcD/RnSrqKx0e0LEDSsLNSHI= X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR1201MB0072; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR1201MB0072; X-Forefront-PRVS: 04097B7F7F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(6069001)(39860400002)(199003)(189002)(2906002)(50226002)(2351001)(25786009)(450100002)(42186005)(33646002)(2361001)(478600001)(7350300001)(8676002)(5660300001)(50986999)(53936002)(68736007)(81156014)(81166006)(97736004)(6512007)(6666003)(66066001)(3846002)(4326008)(101416001)(47776003)(72206003)(189998001)(110136004)(105586002)(305945005)(7736002)(48376002)(6506006)(6116002)(50466002)(1076002)(106356001)(36756003)(6916009)(86362001)(5003940100001)(6486002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR1201MB0072; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR1201MB0072; 23:hZU5peYoW7wyijJJEdAh0rpnS0NgL9fja7RQfwO?= =?us-ascii?Q?xYlHzL4GYPbM+FFUBE5gURmvHkkeCHMXf9cQnpsW3B6VF3cxPEt0AMc3qVQl?= =?us-ascii?Q?SxfCjMyc/EmzyWcMrYPegMfnB8WnBrkWsGW8aZAA4/2N3wGnvhbnBmIUlB6v?= =?us-ascii?Q?rNx1jz/vDc7qZX6cIfmjBBT87IeS3SHE++WBqQapB2YNa6bCTOliBA58ALBn?= =?us-ascii?Q?ocRor1qMdabeYIFgwUIqxP/T7nEAcj0XHJ1ReFTg+VSy5D8R629KFjhEInwP?= =?us-ascii?Q?KhFLgiGTqnlp8ZcnWS8TyJtM09u3MhmcmaV6996zx7caic3tboY5TwrVfCub?= =?us-ascii?Q?D3IemfP130R58k8nKvhyUjz7O4S/C6Dy2oKwe7zVfcsf7Q/+L8Ndlfc0C0Pu?= =?us-ascii?Q?KCOEEqriFagiyySk+I469OAtKlZMo+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WMyWqz1gkE X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2017 10:48:24.2524 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1201MB0072 Cc: Tom St Denis , dri-devel@lists.freedesktop.org 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 On non IOTLB/IOMMU builds these functions would be undefined. Signed-off-by: Tom St Denis --- include/drm/ttm/ttm_page_alloc.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/drm/ttm/ttm_page_alloc.h b/include/drm/ttm/ttm_page_alloc.h index 8695918ea629..4400c08169cd 100644 --- a/include/drm/ttm/ttm_page_alloc.h +++ b/include/drm/ttm/ttm_page_alloc.h @@ -116,6 +116,16 @@ static inline void ttm_dma_unpopulate(struct ttm_dma_tt *ttm_dma, struct device *dev) { } + +static inline int ttm_populate_and_map_pages(struct device *dev, struct ttm_dma_tt *tt) +{ + return 0; +} + +static inline void ttm_unmap_and_unpopulate_pages(struct device *dev, struct ttm_dma_tt *tt) +{ +} + #endif #endif