Message ID | 1449210353-24082-1-git-send-email-David1.Zhou@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 45D709F350 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 4 Dec 2015 06:31:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 721DF205E4 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 4 Dec 2015 06:31:33 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id B4B9E20489 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 4 Dec 2015 06:31:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 57B616EDAE; Thu, 3 Dec 2015 22:31:29 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0092.outbound.protection.outlook.com [157.56.111.92]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7824C6EDAE for <dri-devel@lists.freedesktop.org>; Thu, 3 Dec 2015 22:31:26 -0800 (PST) Received: from CY1PR1201CA0011.namprd12.prod.outlook.com (10.169.17.149) by CY1PR12MB0716.namprd12.prod.outlook.com (10.163.238.22) with Microsoft SMTP Server (TLS) id 15.1.337.19; Fri, 4 Dec 2015 06:31:24 +0000 Received: from CO1NAM03FT015.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::203) by CY1PR1201CA0011.outlook.office365.com (2a01:111:e400:5b9a::21) with Microsoft SMTP Server (TLS) id 15.1.337.19 via Frontend Transport; Fri, 4 Dec 2015 06:31:24 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.222) 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 atltwp02.amd.com (165.204.84.222) by CO1NAM03FT015.mail.protection.outlook.com (10.152.80.167) with Microsoft SMTP Server id 15.1.346.13 via Frontend Transport; Fri, 4 Dec 2015 06:31:24 +0000 X-WSS-ID: 0NYTM48-08-JB7-02 X-M-MSG: Received: from satlvexedge01.amd.com (satlvexedge01.amd.com [10.177.96.28]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by atltwp02.amd.com (Axway MailGate 5.3.1) with ESMTPS id 26C0FD1A550 for <dri-devel@lists.freedesktop.org>; Fri, 4 Dec 2015 01:31:20 -0500 (EST) Received: from SATLEXDAG01.amd.com (10.181.40.3) by satlvexedge01.amd.com (10.177.96.28) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 4 Dec 2015 00:31:41 -0600 Received: from SCYBEXDAG02.amd.com (10.34.11.12) by SATLEXDAG01.amd.com (10.181.40.3) with Microsoft SMTP Server (TLS) id 14.3.266.1; Fri, 4 Dec 2015 01:31:21 -0500 Received: from zhoucm1.amd.com (10.237.74.94) by SCYBEXDAG02.amd.com (10.34.11.12) with Microsoft SMTP Server id 14.3.266.1; Fri, 4 Dec 2015 14:31:17 +0800 From: Chunming Zhou <David1.Zhou@amd.com> To: <dri-devel@lists.freedesktop.org> Subject: [PATCH 1/2] amdgpu: add bo handle to hash table when cpu mapping Date: Fri, 4 Dec 2015 14:25:51 +0800 Message-ID: <1449210353-24082-1-git-send-email-David1.Zhou@amd.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:165.204.84.222; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(428002)(189002)(199003)(106466001)(36756003)(2351001)(229853001)(105586002)(97736004)(92566002)(87936001)(189998001)(50986999)(47776003)(110136002)(77096005)(586003)(86362001)(23676002)(1096002)(5008740100001)(5003600100002)(1220700001)(450100001)(19580405001)(50226001)(19580395003)(5820100001)(575784001)(53416004)(11100500001)(50466002)(101416001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR12MB0716; H:atltwp02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0716; 2:+7Zyn7UuPW5JlKku69J9ZvRae1CJ2PipMNBFFQpdfg7AWUimAT0nEtQYs3xMNUFPW0c7wP0JaqBV0AJaceO59LV6HWW4RDcncWowarBXE8maqJAuTGv8ZVR9Q8Ch0iucDH2UlJPXKuK9NBWWzmkDeg==; 3:M6DkBSqJRq5iVgMbQNdD+okYCLbk/ewjqVbnV964GOrU4GxDanWsmkSFDyIcs4/P4KjxQBXq5zxcWfzj8IO517apd6JI2khC7StMj5Vq4KziXgszxiGRmOgTObw9qbLUSE4WtOY3caA96o9D29vMiJuKCtsGUUBjhl+Ptw4CwgYYBnDXDbrL+7Ru6rZVL1u35uc3bEnDpESnbbZkK/joeaStQRk6PbNeLhbNs2vuDps=; 25:GR3tBELHS2AaFdYzhJMmF8Qfh/OnEgsUtCjzlj+rWOk11vzH11y08vGOe1KgjMZlRCSiovnsLTmgsN+irDj4N3DWUUvYVNwsHiYz+nf9msfJAU6zuOFQuRA9DA+e6y3Bp+ikvCaYwvfgNimdMo8P1OMVepmw0xqJcHhBn+pRy3H+U4ARr0HA6DJ8nolwxSqgMT4eWnW1JxXEp/NAV2iuiPNooYhDJR69IiVgDAkkymHRi3US/LLziChy3azVGkovc5j1OxUYKZATVPRBFG1Sog== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR12MB0716; X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0716; 20:AzrXBEhrTINNNADo/T9H6oWVFMQrPvtyaGSwoxbV708v+aaK/Jkve8nAlKEmc9Cgt0LI9NVSfW3cJm4IdPG8jj8miBqO5jMZxuk8iD8PPukDkkoMP4G6YxFB11h8SZ1GWpeRowlZ4o1W+chH8PZ3uI2YVuAH2kISDQJtfJDXfZU6WE/v9xQhLxBXOLosuzNRkA2D0tEIt1JV2PDSXaq4woRSxrJOE/x3F2C6x5WP9l3rGfSxHeQ3Y3DX40iVn9Zvyd86+TawdHTVcqR4witCboUYn6R2H2PW2Ps9kAQkxeDOByZJViHzxu8ADBJKUYsWoSAWRDGyWiLFaoWIf1a5HHCkkZQ9yp7ur27Yt2UhtK750Y7FZgwZhpNRjY5jjVH+n+x6low/2WOz7IhpGBwiEukUV9iC3XrNCPp0MUT0LE2f6iOzSb146b8skrCqvlgy8XWG3F4C1p1JtwKvBjDfSEJaoqnvI8Lk2m4YRdjoC+7JIbcTARB6WtHFGDEtzazg; 4:MIghjWHjX0JIx/m7p/TkcUIYUc7ZBK4d0CUv/GoZYwIIBCy8WCZbuH/UGm4tzUGpdrp53OEt+OIuuXUCtBg70+qBY6hQZ1ywppggAD+sDKBuI3p4O2W2JxsaIeOvUyz4/XuuMy6qk7++xi/VKKQziSpd3ktQ+y/XFSB9AZq30hRWBC/F5sBTkP2399jm03Cx4SsWkGB0+//kA9KKluRXEAI+EvAf79KxVijP4ZnWBZnEpQgYNfjXbZwi0kWNobHVWZ821VYb681gwm8S28NI2r+bvmDoBv+Z1m1FyZULUt8VA/55Cbi8rbJIWwe/cN+C5cZ7UvtkTVF73ohEGob+D6aoPvoljPeNuynaFljFwa2Rs5vl3/mheavGZ8UVDElj1hPP2QlrFvUilUbLtj4KCmk7QM49s34OvOK5oUKdFZ0= X-Microsoft-Antispam-PRVS: <CY1PR12MB07163C621E5CAE581CAA779AB40C0@CY1PR12MB0716.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(520078)(10201501046)(3002001); SRVR:CY1PR12MB0716; BCL:0; PCL:0; RULEID:; SRVR:CY1PR12MB0716; X-Forefront-PRVS: 07807C55DC X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0716; 23:5kq+tOy6bOQQ41APywIZXjORzfcGssUM5qtANoOK6FqUycetgjI5m/83hBHHIdI/LusDWJqP1dGRsYu9KCQlL6VADj4u0QTpJsny6HHV6dZuKITTERg50LUzhaxJJ6ru9brbXVM4xAUn7jSfeT3D2bKPrMTBJvQ49KFZ8wlxf2Zt4k2nbeWv2c8SyWzGtBKC4ZbJhIY0GhEMllGYmarpP1rfqrPNQdRzeBS6lHBQAzsIHISmUPFnmPH40Nf7Fg+E8VPodPm9UOnGmDvAydgFrYXVq3+8yY/j/L/ijFZ+/NCZtcrI9kNsBEq76Ihg1iu8Q5hnaeG7MjrApVRkkCNpC2XbhEQZrgHvSaQ3lGWII2nih9a2SfJT3G3HCeiNf80VhD66v/yWirwYXHct68OY+MAosmKqFGoBe9weOOBIC8rKbju2ZVa1ytS1AJGQXs66FigPD95aL/nAmYYTqH0UT0af5Qi3ec0b0dwH3Ua7lncssau/Nok7OqjVXir6s19PY3kL3rVxrxrLwhHhEskC4IJlxTcvpzeqr495DDD0b23QqpZiZ4GfZoSpXLCS1riFNv9tW3YdJd2BOSZvdJRy+uEtcm8QSOWq+WSpgcJ4R9DTKnmvmNz8iOJlk3lojeMhr6JEPN2gmqlg80ClrQX5oBq/0JrfcmVv2Qiz81YESed6Vt8nQGnBJM84I6ksJu8+2i01dVziFRawMGI+ZAVH3ZJK5KCBKJEbgvG5dOow2EXGD8nybV8K1H5AJUqOQl+fCLQxCsOjNZX91onAEXiJYl0h7osMdN/NGmzzljkmiv5s8r5Z60PlUqqKWQsXdKjEjO/u6iMvm1zGuLD7HwO5Mn7gniewOaqRfYiUUzrQC4cD095jEsqpEKZo6Lj2ewXidgQ5O8puGnXCksMTtC6MUsPjSNYXIXI/XLA0Om7b4sWgb7mqUGJpBypxHkITXRpD X-Microsoft-Exchange-Diagnostics: 1; CY1PR12MB0716; 5:00ZwEOl3cE/yYLyF1mhPhFg379u59CPHkfpjjCGAymMCxssCv9SYQFFMeVEgXKDw0YWTwxJoW7JzkHpAQ8I4qqBwpUt200/RboYyKRsSRAv4W/jHhmEVfMvKC3HG2y6+99oXF1GEr7NtKLAhTwZnLg==; 24:CN8HIMPHsHnJAslqlTVSOqwrfdKUXf8yq0xHpq6bQoXAOIXEKkarxa/PdjwUeUjIvE4zcJQOwVIuO73bl5Rb7Dgm25Xda3OSLEHpYuRFB7A=; 20:OB0vFMvap7tfGKDSyBjbjwuDBviJqh7N36YcCh8jX54UsWU0Up4rBDusa55k+kpWjgfyVHK5pOrxo7mgjRK/1ru0fogB3Td34ZzLegNxVp9VOK+QXK0c9o0VkwBVSurnwRhwMQRstn6TC6cV9MdJfqvdgk4tzz8YgD/lhec1q/X26NjItpQ4qlooqro8i39lar76tqYRPyDyZHHJ+ZrsFcoct9w/cxbhQjwPir+RQLO6gUVjrDD6BzMdqi1bwhCt SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2015 06:31:24.2553 (UTC) 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.222]; Helo=[atltwp02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB0716 Cc: 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 <dri-devel.lists.freedesktop.org> List-Unsubscribe: <http://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <http://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: <http://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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c index e47410c..5a0f4ac 100644 --- a/amdgpu/amdgpu_bo.c +++ b/amdgpu/amdgpu_bo.c @@ -462,7 +462,7 @@ int amdgpu_bo_cpu_map(amdgpu_bo_handle bo, void **cpu) pthread_mutex_unlock(&bo->cpu_access_mutex); return -errno; } - + amdgpu_add_handle_to_table(bo); bo->cpu_ptr = ptr; bo->cpu_map_count = 1; pthread_mutex_unlock(&bo->cpu_access_mutex);