From patchwork Thu Jul 26 09:29:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huang Rui X-Patchwork-Id: 10545479 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B33B314BC for ; Thu, 26 Jul 2018 09:31:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2E182AF18 for ; Thu, 26 Jul 2018 09:31:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 976312AF48; Thu, 26 Jul 2018 09:31:00 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 541512AF3D for ; Thu, 26 Jul 2018 09:30:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EB2E36E6F1; Thu, 26 Jul 2018 09:30:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-eopbgr690063.outbound.protection.outlook.com [40.107.69.63]) by gabe.freedesktop.org (Postfix) with ESMTPS id 107B66E6F1; Thu, 26 Jul 2018 09:30:57 +0000 (UTC) Received: from CY4PR12CA0031.namprd12.prod.outlook.com (2603:10b6:903:129::17) by DM3PR12MB0826.namprd12.prod.outlook.com (2a01:111:e400:5985::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.21; Thu, 26 Jul 2018 09:30:53 +0000 Received: from CO1NAM03FT049.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::202) by CY4PR12CA0031.outlook.office365.com (2603:10b6:903:129::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.995.16 via Frontend Transport; Thu, 26 Jul 2018 09:30:53 +0000 Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by CO1NAM03FT049.mail.protection.outlook.com (10.152.81.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.995.12 via Frontend Transport; Thu, 26 Jul 2018 09:30:53 +0000 Received: from hr-intel.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.389.1; Thu, 26 Jul 2018 04:30:51 -0500 From: Huang Rui To: , Subject: [PATCH 0/5] drm/ttm: move non-x86 definitions to the common header Date: Thu, 26 Jul 2018 17:29:14 +0800 Message-ID: <1532597359-18191-1-git-send-email-ray.huang@amd.com> X-Mailer: git-send-email 2.7.4 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)(346002)(39850400004)(136003)(396003)(376002)(2980300002)(428003)(189003)(199004)(6666003)(104016004)(5660300001)(106466001)(86362001)(478600001)(72206003)(97736004)(4326008)(105586002)(53936002)(53416004)(2906002)(316002)(54906003)(110136005)(26005)(77096007)(186003)(36756003)(8936002)(8676002)(81156014)(356003)(68736007)(2870700001)(5820100001)(81166006)(50226002)(2616005)(476003)(126002)(305945005)(50466002)(23676004)(47776003)(426003)(7696005)(486006)(336012); DIR:OUT; SFP:1101; SCL:1; SRVR:DM3PR12MB0826; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT049; 1:yyragsTFp6iMImuPTW7kQQyWcS6FWUg/1faYxLWpmYcbuOfvK+En3YOgKCp84U3jGyGs8TVepmqPaNvHVqfeC8gxAkKe9+/LWMfF6NCZA3UPXXRtmTBoen4LP2QROiGu X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 49f6e0b1-63f8-48be-cdd7-08d5f2da7bb3 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600073)(711020)(2017052603328)(7153060); SRVR:DM3PR12MB0826; X-Microsoft-Exchange-Diagnostics: 1; DM3PR12MB0826; 3:obS245SGMsIGIMNkKik+k4FjMh38fP08/Sa9yhiaAO2o5jXwv5vIe8eAQ19Nvm+umeF/ZqAwPeqPfDzeyoqfnj6q4BWDqMgpRJqp16g4ZxfWglTlVw7/zEOlirk4oCFmyrDrPHAwvtjaQM+0FgJ82AOfO4OYyJ8HNW9Q3AcF1sDkncjl2HCkV9l/82QWvV09H9pkrJFL2QSE8+x+z+EObI0jtjyL8RYv7dVhrlEQqApLnM4Qi/1GJMypuc0xvf6dFNGgAitFnoZbk6G+Wa8O4zbqaKqEqVIg12K3yz59w7n4N95kjcdtLRuQ3TDtZJ3amQMLDdcJ98is0uQ9tyPrm7Sl7QTtLzxO3yiwfpPGKfo=; 25:VLR1abKIx1TAOt2cEPBxS3slO4kTjEe6W6mPzEqTwc60tybr3+/l6e4aa8OIqyEzEQ/drgLcSGHB1I8phcuQSyxzpRzTIi4mYk0HeQLu6bVVu5OxDkHg5HFbjBtNXu+s3NmkofNJks12xTOTusiTE0xnifEXi4WXLTAt1JUdeIfrBOXDc/1q9EakBCbIeCNgTIYetPBesisGzzLAZtv5OUFf1OBtyM655szzbHomENHnEBsspjwDJZXC6ykO6RUY7bMj4v7/mwfRqX7l0Ub6HMbl/RdDGBigwq6dd7OkvaOWhJBtgTU90lMEWs1VLFvFGcsdQg1U5O56ysBXK+Yfwg== X-MS-TrafficTypeDiagnostic: DM3PR12MB0826: X-Microsoft-Exchange-Diagnostics: 1; DM3PR12MB0826; 31:kYnx/ixowGOdf9S8F/3BWo5ED4ShZx8WzMb5+5bjB4e4LUZcvyPui0M1MTaKWWIooLB65YFZ4PmILheZ6uLlw0X5JjhtkGwFXBvgyunz4BR8oGnO4RnqTbg1saCiEVuWzW1vGu7gmlai7Hu7E/SZHOWlPF5RKffSEESazdHKfhy2Haf9oBKpLsC9WnybCWEF91yFittBd2XZyjuJql03H1oJDdZU9lIsGmKSuaGEdBw=; 20:j9cxDW9Qk26dtxyAl4ApV8w7SXGTNxxHxDFZ+opBT51jYV179+PszT8mpdjsLN3dvAdPYvyYlkxxOnoYAkKKnPxfNj5dVWYeOoWXMUbcOHbfJOPx87I1HojoVZRSTTu07U3oGxjq/6+TzJ9Mzhyq454PlAXVBEC2jk/Rc3AGJBH+cdk5+kMuF4hIXjeNtelJ/XazCUK4MArkZ22wGkd7X2YX/A5Ev4Bh1TnAR8UIC2bAmNAiG4HNB5GXYOwWbuJnMo974fa4+6R1QD4euMWjDdk+1HxJPX9oMD3YGK7KP0wQTySPAzyJdRTcPsF1WvTIFq1/5Y5pwW4eWZuqSmPTOgIOHGLY0gzMiCJOMAQazAk5MiPca5FOfD4V7yzqs+RjxvisyFSa4MHFjuPas0cEQTzPpreD/KutAgXR7btEIMhAjyS1+Px6uy0P/BsYFRMyw05HzZj9z0Paa+a6FUg2SCdyHuAxhf9OI9U2dRZlIi5k0Ah5V3HOGZNKKAiB+JlI X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231311)(944501410)(52105095)(93006095)(93003095)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:DM3PR12MB0826; BCL:0; PCL:0; RULEID:; SRVR:DM3PR12MB0826; X-Microsoft-Exchange-Diagnostics: 1; DM3PR12MB0826; 4:AcTf9U3l8LkJJbzmUnt3VkbFEWJPNVEi52BLU7ao2/TjpPxn4sHrAUCgFgg52pHT1CxXNHQ4GWWOCb1XVr8oh7SG0TbHSFCH8Bh+tpclu1PX3nH+UPg6zJE05AWvvWJM4+Ftz6iMboESxCbjCXbUPJqj3mFNCsjdm8zT0SOqsUyUxKe/vGqHhAf1wAV5DwRkmT+N0Wu01n5RO56I1iK2rTwbtLDZiR9JdBih5v4XK++WytOvea/o38ImG6wfgJegOh67d+/U+MSD4Gcmmmtzzg== X-Forefront-PRVS: 07459438AA X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BDM3PR12MB0826=3B23=3AJ26fa8B?= =?utf-8?q?me5S0W3pZ9A5CJ6vRxTeYnVvq1hhKD6N4ga+R9VYuUeiNzqhfLAjHO52CACvg9G1E?= =?utf-8?q?Rx5K2VQSdOEWWe2AkFLk0NcKRkHpWt6sh5vJ+8YGXLLIImGr4zJjdq+mxUzv0XOm1?= =?utf-8?q?jd4fGVRLQNkEOSqgqvjBZ48UzTr/Ex6a5SBbhAqMuggvChcsriSIglN16l4g9YbYs?= =?utf-8?q?kiXX/9+DOFt+SyNkebZlL2QO9mUgdMc+FBMQWnTc/c+B48PHIcqWATR6I/IIx7Gd0?= =?utf-8?q?IPNInv4+CABIla6oyv0D5XOrZoERtSaXGhngzNgV0PBC5stk87OcnNZtrYdrZEbtt?= =?utf-8?q?BigwzIMMG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uGjDvhpFsCLEZASpSg3EJDE3luDDXKKYvZcZO9LPLl3XIYdmdqEzJi3/wrwlItzd1H9v7kwdVGTEya0S/dUgOP8YYjMh78t/gic7II32BuEzagQsxKfdSOe/ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM3PR12MB0826; 20:thLncd/yH6e3FydWssAbwUcZaC2Kq7PIv91i1RwfIxwzZIoOie4QK0upTD1mRHoNfE+33FHUWVQ43lRU4WxTUWzv8LTZ4ChsFpgRXvgMhO45KSR8XgtdYDmKe191VpWnGO+6CuJP3CBzdkC+E2LOKTL/9c8jjuY+8h/wgnfZy+bGaINgSOkoZXlG9PY2l9S+VKy8uafmn2brL59AslZ+64JhYzySkoUkf7hJxasbl3WCj4Zb7OCgeC6xCC94TtFy X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2018 09:30:53.2622 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 49f6e0b1-63f8-48be-cdd7-08d5f2da7bb3 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: DM3PR12MB0826 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bas Nieuwenhuizen , Huang Rui , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi, As suggested by Christian, we should move non-x86 definitions into one common header, and it will make the codes readable. They are based on the improvement fix of Bas (already rebase Bas's patch to drm-next). Thanks, Ray Bas Nieuwenhuizen (1): drm/ttm: Merge hugepage attr changes in ttm_dma_page_put. Huang Rui (4): drm/ttm: add ttm_set_memory header drm/ttm: clean up non-x86 definitions on ttm_page_alloc_dma drm/ttm: clean up non-x86 definitions on ttm_page_alloc drm/ttm: use set_pages_wb instead of set_memory_wb drivers/gpu/drm/ttm/ttm_page_alloc.c | 54 +------------ drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 53 ++----------- include/drm/ttm/ttm_set_memory.h | 127 +++++++++++++++++++++++++++++++ 3 files changed, 133 insertions(+), 101 deletions(-) create mode 100644 include/drm/ttm/ttm_set_memory.h