From patchwork Wed Dec 13 05:17:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "He, Hongbo" X-Patchwork-Id: 10109215 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 8C638602C2 for ; Wed, 13 Dec 2017 05:18:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BF0A28E01 for ; Wed, 13 Dec 2017 05:18:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70D2128E18; Wed, 13 Dec 2017 05:18: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 0732128E01 for ; Wed, 13 Dec 2017 05:18:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E900B89FDD; Wed, 13 Dec 2017 05:18:25 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0058.outbound.protection.outlook.com [104.47.42.58]) by gabe.freedesktop.org (Postfix) with ESMTPS id 68AE189F2D; Wed, 13 Dec 2017 05:18: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=9NiuNSMALkPWcKUfm0ZP+7FuqgM80HmuDKMUWRv7PQ0=; b=EicudIoVWF4s1hErCj1bDhS5Rvb4e0tp3OMxOHVDIYUS/UmrylYpCl7a5Uzy8MQPEm0glF+9Q7WGvfa3EEbxUtsr3SwWbopbZimcdlU3ok/yrCrPSEnu0yNxr09hQoeppkk9BZfOOWN4fLstHQ8GTSI1nZxH81Fiwha1l+RvqH8= Received: from CY4PR1201CA0008.namprd12.prod.outlook.com (10.172.75.18) by MWHPR1201MB0061.namprd12.prod.outlook.com (10.174.98.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Wed, 13 Dec 2017 05:18:22 +0000 Received: from CO1NAM03FT029.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::202) by CY4PR1201CA0008.outlook.office365.com (2603:10b6:910:16::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.302.9 via Frontend Transport; Wed, 13 Dec 2017 05:18: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 SATLEXCHOV01.amd.com (165.204.84.17) by CO1NAM03FT029.mail.protection.outlook.com (10.152.80.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.302.6 via Frontend Transport; Wed, 13 Dec 2017 05:18:21 +0000 Received: from roger-build-server.amd.com (10.34.1.3) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server id 14.3.361.1; Tue, 12 Dec 2017 23:18:20 -0600 From: Roger He To: , Subject: [PATCH 2/3] drm/amd/amdgpu: init allow_reserved_eviction and resv when create a new bo Date: Wed, 13 Dec 2017 13:17:57 +0800 Message-ID: <1513142278-4294-2-git-send-email-Hongbo.He@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513142278-4294-1-git-send-email-Hongbo.He@amd.com> References: <1513142278-4294-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)(346002)(39860400002)(376002)(2980300002)(428003)(189003)(199004)(316002)(81166006)(53416004)(356003)(76176011)(51416003)(77096006)(106466001)(450100002)(305945005)(53936002)(72206003)(48376002)(5660300001)(105586002)(50466002)(7696005)(68736007)(104016004)(4326008)(47776003)(2950100002)(8936002)(8676002)(81156014)(50226002)(2906002)(575784001)(6666003)(97736004)(86362001)(16586007)(36756003)(478600001)(110136005)(54906003)(59450400001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR1201MB0061; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT029; 1:uRFXROL7Rx4FbJ0rIi+cIEjDnWncW0QN3RMU33ZjbVEuTd88+QJSi9sTko1f0hkU65UxsuvlxujuJi5vhvkXhRr3oJUuwtAmvKfKtpTOsMsFTcQib92b8EeywnW+pXsi X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b3b3aa34-8e91-4ee2-a680-08d541e8edc5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307); SRVR:MWHPR1201MB0061; X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0061; 3:nGeqJf9cxHV09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viFYigiSxk8DrcVBX6qGii5f0HOZQXU5lqd8DYPArY1HsM09GS08SjFkeoEny79LcqCncBqv6+24n6myPJIXWS4C94bo/DF4Jw7oPHyICg3/YOGCMa7QAD1FY5+bLfmBqqWDOW4LuBF8PBCg4BtxydETfZFEiynWBcn72y4eXPH1DiNWUB9dGY+0UFEQabb56zo9f62XkntSgo4SJltXKB3wkK/FrpgP9YNR7erZ3x0XImNMeqqVAPWz75vjcxoftwWQrbx3MrNe+uMTS0uC0CmyNxMuii0TWTDgryGj3sTeVmoCZaPWSZ5/btTT4RS5NOuzCQ0GTO+tG2a/yfhsLl/7375GmoqpYS8uCScBxFHyklw1/Zva560duXKJKdZ+vLtsKhcJuDqHnArhVSl3l/8TJvBvA0/Gywo/OpijAtbbaz8L7fnEfFRigNOtU X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(93006095)(93003095)(3231023)(10201501046)(6055026)(6041248)(20161123562025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(6072148)(201708071742011); SRVR:MWHPR1201MB0061; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR1201MB0061; X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0061; 4:mgvmfmdbfirZH8BMdJFPNUSB3Nei/Xuwq5+aNyNY/0nKCtP2k7wfaMlAqnGPNavfmW5rvLP3oa2Yh/cnmHKTn3iIvskYwEQN1gSL1JmF8KeMH+iFq6aq0KFq0RzuMxw26OCBLweGI5dhrICf7+V0PR0TjIjvzgVbB/Ntvxe8qT1MUZvUgeeahOVzAxJ5hivkbR8sFi2dt79XqNv+YzBApupjd+bWPJ4CtHxWqPO7127sgJhJH56b1mdNDJxUqQ59+KiD2Q8XZwr+OpV52R3XzIHK+HiK3W2EM5mV4gh1xGn3zEGm1I9LIwj2s0HuPO+R X-Forefront-PRVS: 052017CAF1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR1201MB0061; 23:RjCCYhp1+6MPPE5QvGnkDqLFWU0zczshXD36feU?= =?us-ascii?Q?O3hxs5yfUPJKTcOltXgB8eo9xamqojvhycn/35+HDIHiObp3JIs88yZBHB+L?= =?us-ascii?Q?CrOZGPwJSZv2yLk+g2tVFMPVwK8z5/tBx+N7fGzVfsAjhXJvpDTXAHXyk2JA?= =?us-ascii?Q?z2esbh7hJ5HzHGbOkC73sJatpOPJRw4O75/pZzseb+vXcRffm6DIbuOZ5Ur3?= =?us-ascii?Q?m1cbWxijwxWWXyXj58Z1cbY5+f0ULsHAvVEKUGaZWFRe13EYBww1+qVvjuLJ?= =?us-ascii?Q?c+5lGPh1Mwo5HOyft1LBYwmLak8DXhFnfcircQ9ROXbmI908u2VGFRKbGToq?= =?us-ascii?Q?qMDodD6bN7/IZ8KTY+M7n5EfzhYPCEpR0vJx3YFvTWEOLO1ZkFQhF25MRR85?= =?us-ascii?Q?jhecP7jr20PKj4T/HtOHCZwb3eY7AOzdAwsFFzlCPZF7BrpTulPiOT8GlQ0I?= =?us-ascii?Q?x+Hy+sRnNhhbZt1tCXbM4NPpV3qPoFwT6Ghmoob7J0QcCivgCSK/hklp0s7k?= =?us-ascii?Q?b873Um/4I7w7C3XbL9WlUiiJ/oYX6DGW5dezah8nKYDDZBPchRrHpRx7syOV?= =?us-ascii?Q?KQLfyQWq081eO48uTWpBuNlibYf4AGFY6ZF7GTw+x0/VKaA2PmKR4TzLFFEp?= =?us-ascii?Q?/wl8A4QdO4T7QNaTEWaixWxBXjzGiCuFs4O+O0wEDzs/VYnazJP6j2FNLmdz?= =?us-ascii?Q?Liq9sRuUEVm0isxlV1hNlyVrPqTkxsZBYVlEjLvig5XrnsDu1JfqUzJF1lfz?= =?us-ascii?Q?GW8QPZNof6qd6jW1KZelSsDFSnl8VCOY6TMTxb0eEtcFQMXwSg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mn1YT42VfP30xO5y8nKOTY771Y6sqMkKay8yttW0g8pz3jzKdAQFImiWyDiz+Kp/95opBsEaynlXdiJarmnbiiYON2h/RIa0lW6NVWAMv/NLwwIlMX0z97Opv4E150SIDTn7qsxbJxTZA4plVL4BJ1yHUjtuHqz+frPWv4CmxWjpGk23GT4C8EOaZ3Ml33intzMBZUHSgUII8+bkaTtqmFziBu82gKJ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0061; 20:AHbKpom9TLlchwuEhnH6A7ASugt6X+gWwVfzGnNqVU6in0ZUMWXwSpnFtEcOHHeLftlNyM0f3pBoWrru8TJ2EkMvriWrPCNBh5SlofHid5s4DWiU+cIUZHgW/HMDhlg2cEnjNhzDwKSOoVXIU1wsk99JFP+OZjqTf3nrMtspbRFpUkv3e1k4BTNlQcm6TlDi2jwlN6Sls15buWTdDKMshtIhUNTivImP/B1Xa0Xq+NhjkfOsmKJ0F1DcGI5bczU0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2017 05:18:21.8289 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b3b3aa34-8e91-4ee2-a680-08d541e8edc5 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=[SATLEXCHOV01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB0061 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: I0c6571c2a64e6c5bdad80ccbcccb40eba1c20b4e Signed-off-by: Roger He --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index dc0a8be..7c7f56f5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c @@ -327,7 +327,7 @@ static int amdgpu_bo_do_create(struct amdgpu_device *adev, uint64_t init_value, struct amdgpu_bo **bo_ptr) { - struct ttm_operation_ctx ctx = { !kernel, false }; + struct ttm_operation_ctx ctx = { !kernel, false, true, resv }; struct amdgpu_bo *bo; enum ttm_bo_type type; unsigned long page_align;