Message ID | 1526014680-4644-1-git-send-email-Jerry.Zhang@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 A3F51602B1 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 11 May 2018 04:57:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B30B28C78 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 11 May 2018 04:57:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D3DB28DCE; Fri, 11 May 2018 04:57:54 +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.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, MAILING_LIST_MULTI, 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 B388D28C78 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 11 May 2018 04:57:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7D5376F017; Fri, 11 May 2018 04:57:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0066.outbound.protection.outlook.com [104.47.32.66]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9956E6F017; Fri, 11 May 2018 04:57:49 +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=lGAPQb/V51ZB+GRB5VbpXm6Ed8KxRJDX72ImDDgtHcI=; b=fVZLSAK2FKrApGCcOUe6TJnsB0KwTYilhB1q2nYjXxzFGAEmEYaybfo4QBbxOmxqQ94UMMRL+YI4sTpF/d2PfhqvkZbDcOcFZYyhLPdWownr0NxLXA2jZ52FRBaSuClaSBx95mql7sn8UqPFw66AvUZrHk3XcgYPbp4HSCpdd44= Received: from BN6PR1201CA0024.namprd12.prod.outlook.com (2603:10b6:405:4c::34) by SN1PR12MB0335.namprd12.prod.outlook.com (2a01:111:e400:5146::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.16; Fri, 11 May 2018 04:57:47 +0000 Received: from BY2NAM03FT029.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::209) by BN6PR1201CA0024.outlook.office365.com (2603:10b6:405:4c::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.755.16 via Frontend Transport; Fri, 11 May 2018 04:57:47 +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 BY2NAM03FT029.mail.protection.outlook.com (10.152.84.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.735.16 via Frontend Transport; Fri, 11 May 2018 04:57:46 +0000 Received: from junwei-u1404.amd.com (10.34.1.3) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server id 14.3.382.0; Thu, 10 May 2018 23:57:45 -0500 From: Junwei Zhang <Jerry.Zhang@amd.com> To: <amd-gfx@lists.freedesktop.org>, <dri-devel@lists.freedesktop.org> Subject: [PATCH 1/2] drm/ttm: remove priority hard code when initializing ttm bo Date: Fri, 11 May 2018 12:57:59 +0800 Message-ID: <1526014680-4644-1-git-send-email-Jerry.Zhang@amd.com> X-Mailer: git-send-email 1.9.1 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)(376002)(396003)(39860400002)(39380400002)(346002)(2980300002)(428003)(199004)(189003)(486006)(126002)(5660300001)(104016004)(97736004)(50466002)(48376002)(336012)(2906002)(305945005)(476003)(110136005)(54906003)(186003)(86362001)(16586007)(2616005)(316002)(450100002)(8936002)(81156014)(81166006)(426003)(50226002)(8676002)(356003)(26005)(6666003)(53936002)(105586002)(72206003)(4326008)(106466001)(77096007)(478600001)(59450400001)(53416004)(47776003)(68736007)(7696005)(51416003)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0335; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; BY2NAM03FT029; 1:gAKUmHKaO76zlPcbZLaoSorglt2bnc8aHmQ5tinZIyIiLfXON0tzJvbiHRaLXWapvZkWp5HKr0QA4cC0rUiHjTXSxhxFoyAM178ltxfdrY6uRV89dQjDUudNRCot1HLh X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060); SRVR:SN1PR12MB0335; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0335; 3:ftdNY8DwBkR6AzWo7d9KdGLjFdqWYZcfGPLob3PNHJTyPKFWXTr/kRLUETgT3bVXiciY2LLHToTohCY9gsj9ey9g8p3Cprs7OZBBvBSUd2AWFmJ3sdqsAMO0DaCGm5OnZID3bA5/Q4GZAMEv1RGztdv1iHW0AEriYXiQX08sdSYh3HdbvGWlF41X1HJWg4uE3S04L/wXo0OoNrwGRZI1vO465qxk89075AriMuRIGf5rkktsOQVcaxIiSljB6aw6vAcoVSKFpPosYxteoM2lGMKKllQQhRVMyWEKIpK2+P06oANFg1C42TWYCyetcvoI9EkAlJd5QyCZfURyfKxft2Se334u9v3tjy+7t0ZnSWU=; 25:fEwXqJUftngdVk52+5T9iX9pv78k6YoXhPxFBLDmibdf6RtAcxu0H7ueCS47slnVdiocpPPfPRhsyQI5j9+xwDrrtTFtSPETw+yeOudGkV/usy732z7rUkJi2btA3bnpDBZNF5aE3DTuE6z/bATEckKYo3m2MzC8ubHttwYraMjpAgokO5Xx66d76E4sXAKE1D7WRvt6O4ivNXWnXMoN8tS0YiuCrso0pKXvYV/km/2XJPPAQvPpdmeWs/Mm1uzSFmQxni+dd3/j7HML5UwksbUbDxJZxLJPchH1SmqZSrPOYi7iUYaQFx93THS9UzDyqKdwU2J+MACEqAaeigZRCg== X-MS-TrafficTypeDiagnostic: SN1PR12MB0335: X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0335; 31:a805A4Pke+UjZRJMEhyHXk3jRv0c1So90PL7U902IYsXYV8dIr9sBLlTALwduN7CXV2R2hCaGMvHBt6D5jgYnPqywpcPl+hNSSbttxDiq8GvTPqX+U27uL8KOinC3ADmV2hMgZhHKK8Zyb+6zGEpn3xfvH9JSgi+JP5HSVvW6/IPfBE2kxXgQ1WxMssD7sfKhoAbyEppPShp7ZoDCzOhT+gthK2wGvdpd9iP7LoDOWY=; 20:gQcKqZgBhQyxktE2BjsYebNS4AlcwOGjiaR4h0aisJlfVczGmZt+6N3LmiPdRg8wYHiS25ldOjjuvI3s46/da+Aw1OZkRiethWmQ9r6shv8Qj7VpY/6Si/VmciIGYuktWwnunpA3qWWpBhU18BJ3bcGHsujZ5EKZrAc92obxy1uCuh9e37UWCNdJd7T6N/uaXDiSndNtXnj/OPaHjyrBNjh+3PNg/jCHjhHKtXcneir9pxZn+4bYM7kvFlInXkKucBvffafGMVewNnODc7cIRdojcY3s07YYmtv09nwUpQ32+UCb9gyoAdUdj2GTcmL/5h76zze9ftsadunlLNK5z/LQsW93cUUFgnQZ+2CR4QLz+cuapjJ2sJdk+1uiWRrvPqe1lMRSIhP6lxlvwIKSeZmqEV+Ygws5LcYzC5+w9TTS4+fd5olQbApNOVZ75+Y/SgNTb8nT+dF0Cja1bjivsCO092999Erwk3Bs3Xl6BMzILrLoQtCeKgth0nTj7j28 X-Microsoft-Antispam-PRVS: <SN1PR12MB0335AE3D10D05FA02DB9CF70FF9F0@SN1PR12MB0335.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93003095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:SN1PR12MB0335; BCL:0; PCL:0; RULEID:; SRVR:SN1PR12MB0335; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0335; 4:l6P0dDdo6rquE79cS17vxLoDB/reoNBK9jI6ukqyQY2RA57MjtYphRd7S9uxDHciZoTkj6Udzl1pxWQpzhloraoC0IWjBCxWKYy6/Gl4xfbEjL7B9O8Lv6aK6zGopVeUedev0fLqzqAEwFCONVeZOq9iUk6+i8TdLMKJG5tz0puL4mRu4q/sHVE67/D5oqqM3OXTvNY5CBzY2My6zVooReLu/dOhIpBBh/uvwqOrEwgFrx9kpmIJXbfAWXqb7hB7NdWASb8TGPqb1KxH8Wxrz6pR//af6Oop+yyoUYm8Hz+G0Cdwoic6EU4lVrfpuQZ8 X-Forefront-PRVS: 06691A4183 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR12MB0335; 23:gF3GmTqEzQvGVKQN5Z+nOavKwZN2G1Wcu3WnMzHW0?= =?us-ascii?Q?Y15WK/HpcR1F0r6TMDCnFibbX4E94tKEkfm98/9jRhTTeItVx0x+0LFKlxY8?= =?us-ascii?Q?L6cMx67NGRl3mDxVR44iKDzcG0cUPULnPO00Nm5ZDus1lBokGOyianKD9t4C?= =?us-ascii?Q?J8mhHi8GZK1tk/04UBBPyjp7gI7ujtiHm6eTlBmU/2102GnHxCEyhC95BEcD?= =?us-ascii?Q?FiBnYYy9BjE7Hg9TFjctOjpOx/Jzy4gkavNVjnu3pt3YdTfQd/P8/ANyMbav?= =?us-ascii?Q?YaPr4nyGnu9VMw4H9/c9viIXKx4Vrupqivye4JsO7YVmSGyRqStBmFkELXZW?= =?us-ascii?Q?drSjAlrDC+rchkL7sFEuDSEYc3JsJi1SYCaN8glzOdXztV7d6WRKKamn52oF?= =?us-ascii?Q?9+kYS6J5/0kmWeb5mY0QZjtrTPaVs+69uJGbCjx7gwlfa8qvsAN0odO8b8ri?= =?us-ascii?Q?mLuf4Sa09A3wSJvm1AAkV5zSQZppwE+ihvO40avu11HPWOKKB/+HSzs1uLYS?= =?us-ascii?Q?TcFISiHD0Wbygh3Mn4NyzAC5rfx0ZZdsN0EqYgTiD7u4fCuW8yTxCghmlh49?= =?us-ascii?Q?Zgad1dPvB5TUt5AygW0CJHZP3GrAeOKP+ZXGxOEmEdGgm03igU6Ng613CiBP?= =?us-ascii?Q?rnGqHHGXfBRJghC0FhxdoZWzK1CehXuOwgUT96x6mivB3L/CMrgpsGFy5SJW?= =?us-ascii?Q?x29p7J1aCLOVCUO5eDTSb6qSa0vikbvZsUsr9NPFIXLmc8HZErUarorcVu2M?=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5pUpRTOcKl0CmYHlTntLAFGkGi3F9kguFB+IYPmKboiQyyJo/z9EJU2bmeGB9eCo7LXMuGTF8/PstFkhx5/I3nm0dbm3bMoA5sq154ALcd8GqjDVBoYSWuLq8wbUOITR+UpKVN6zJAMB2BV3hQBlNCN2X7mZF+zXNgrh4/Bwzpe+K6Uew==; 5:qW0Am3I6xBXkA5yEYXXvWnsaCNjKz5Vjb0H4NyvIuHgsFtlvAn6EyA0hS6WkjDOgqTrmL+1bWfWr4GWe50E6XCWQFxk/OpwGOL/4k5qDkqFndqtStWVV9mzJcRo0KA4p466zxqnzGp+Zycb/Hr5Thoh/bKIXOaYryvGF7oTeAQY=; 24:gMFoWuICJXDafo4WkClqxhzRnU1N1upMggYwViXENl7kkaq82c4jkcwP37ugkL0KK3JTZdsHUroEiyzoKhEHAK5uVnUv8JRFCI1PekLLAEQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0335; 7:HaKUvA2F0X/8l7Q8GwzX83x/A054apq7O1G6/NNFOX9GUP35OKJnKsubD/sdw4134TwqsEXw05WFLco37P+zW3L92G88vOGtdptCTWd7s/2lUh9IB+1Mrn2roWByhJysK9lh4Ecz6P2bPoJh/sI+zsT8plVyazlOhDbLm3QSQaWfHclB8GQl5Wg1UKH1URK+vPvpbhtBBF4i3Wec5kKvVkHYzEoX0KtAUnIcYWh2xpGJsti07C0NBh+STouSMprE; 20:ODE0j38f5FeDvykmw7sVDTAHGjGcU359pdytHKik/BfEArFKmHJ9hJJM+INcjlCHlzzY69StgT8HZsosfLuKW2y9jBv7IqkTipzeIRVFPB4UYI4pqNFZwo+ehj+BIl/1lYHa0bAN72yL7bD2c7J3Un4afAAS0ruxJBS2ZaGirqa5gke8qWLaoQOi6kkWvkVmtfOgV8M7pGXykZZuxplTbPAXb5APFpFlA4S/oX5jOJUOJBkBQE+lvucm7etd4XGM X-MS-Office365-Filtering-Correlation-Id: 93b6e505-47ad-4657-35c4-08d5b6fbbd47 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2018 04:57:46.9212 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 93b6e505-47ad-4657-35c4-08d5b6fbbd47 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: SN1PR12MB0335 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 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> Cc: Junwei Zhang <Jerry.Zhang@amd.com>, christian.koenig@amd.com 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_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 98e06f8..cba5015 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -1175,7 +1175,6 @@ int ttm_bo_init_reserved(struct ttm_bo_device *bdev, reservation_object_init(&bo->ttm_resv); atomic_inc(&bo->bdev->glob->bo_count); drm_vma_node_reset(&bo->vma_node); - bo->priority = 0; /* * For ttm_bo_type_device buffers, allocate
Then priority could be set before initialization. By default, it requires to kzalloc ttm bo. In fact, we always do so. Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com> --- drivers/gpu/drm/ttm/ttm_bo.c | 1 - 1 file changed, 1 deletion(-)