Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7003874imu; Thu, 27 Dec 2018 10:20:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN7mSzah9dLvORxNNAnOtWj+GPKspNsD7F7YwuSWJ+KwWKYnXuKL2NeeI6dK0nn6nUjVIUly X-Received: by 2002:a63:cd11:: with SMTP id i17mr23707357pgg.345.1545934821235; Thu, 27 Dec 2018 10:20:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545934821; cv=none; d=google.com; s=arc-20160816; b=Xm2vGj1rShXF4tDQjTzsHzZD/af4gCH6f1r0lkg67isg2lDJCjFJhLbvznUzujERBq BY2lRt+hhcve7jNFeBmxEEzgeBQzI0iYwOUtLZA5moZxb4Z4De05ndy1fThHLIFyzmiH zVpYl8qw14NXaDhDTfUb090lqzinvqziUshUQ5XnKo/jef8ScsTqX4mvYIOFHCFHXYnZ 0fvPJobvGHqmqUxszRmFp4ClfN3aOheBGQqj/fO4L1ltxA1cpg8CJ3cr5PEarXXUN6yC F6DghWVTpHYN1zuWGpYhN6JjtjkYsaGl5gZiWg5PG3uaLiYQ1wFJaCEpleYMm2gxTOvL SRAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=qgnjVPmKTwJ2mnndFLWPXGAT8/NcXBB712VcDy/YA/g=; b=P2Wno3kMjYsFHT7a34IGQRfnh9V7BPyg7wLnvw+6RvWMtWZzqZuLdAl1X/1C8yr+D6 q5s3JJNwh9ZuhdDzkv0hUm0tOR/Zz4Iqeh7BhShNNd4E/EvGjLyF+JiACe2c9rCSM0vk 0qvewCX1TvEvDMFaj81jBW04MjW7MojWf73a2HhtxbgbioB9vPQi+x3uDEwGy/zniq2h q7oTPOmCiPG+d31tgOP/xGgEK6EbVCcBgzn2VDZpgo25Jl1d0vU9TKbcquHiH3Z9YH6L 6qKeBi+iMuUpyy7/Pv5XUvz4vQW3D4oDbFDUnhatJG3MEyQ7bRoRN+0vZOnGNUl3PjRC 33qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=qlH6udro; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q16si34397645pgh.185.2018.12.27.10.20.06; Thu, 27 Dec 2018 10:20:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=qlH6udro; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730553AbeL0J0d (ORCPT + 99 others); Thu, 27 Dec 2018 04:26:33 -0500 Received: from mail-eopbgr780074.outbound.protection.outlook.com ([40.107.78.74]:4972 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728050AbeL0J0c (ORCPT ); Thu, 27 Dec 2018 04:26:32 -0500 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:X-MS-Exchange-SenderADCheck; bh=qgnjVPmKTwJ2mnndFLWPXGAT8/NcXBB712VcDy/YA/g=; b=qlH6udrotS9oPt9rBaMG1TySe/MNHHm/UrQv4xsFjUNrkBx/EMNaVMk04u2TFhujii1+jn4QeVDEsURFZdXKwfdBUknF4eGq6CrXPZjI9BoQIhEUQVO7t8arVI2XVAue401oUE5KDua0vI3HpfX4K/xr7/321x5Alf3wrVahlxc= Received: from BYAPR12MB2791.namprd12.prod.outlook.com (20.177.126.80) by BYAPR12MB2760.namprd12.prod.outlook.com (20.177.125.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1446.21; Thu, 27 Dec 2018 09:26:28 +0000 Received: from BYAPR12MB2791.namprd12.prod.outlook.com ([fe80::203a:c88d:8f6d:4080]) by BYAPR12MB2791.namprd12.prod.outlook.com ([fe80::203a:c88d:8f6d:4080%6]) with mapi id 15.20.1471.019; Thu, 27 Dec 2018 09:26:26 +0000 From: "Qu, Jim" To: Kangjie Lu CC: "Zhou, David(ChunMing)" , David Airlie , "Xu, Feifei" , "Francis, David" , "linux-kernel@vger.kernel.org" , "amd-gfx@lists.freedesktop.org" , "Huang, Ray" , "dri-devel@lists.freedesktop.org" , Daniel Vetter , "pakki001@umn.edu" , "Deucher, Alexander" , "Gao, Likun" , "Zhu, Rex" , "Koenig, Christian" , "Zhang, Hawking" Subject: =?gb2312?B?tPC4tDogW1BBVENIXSBncHU6IGRybTogZml4IGFuIGltcHJvcGVyIGNoZWNr?= =?gb2312?B?IG9mIGFtZGdwdV9ib19jcmVhdGVfa2VybmVs?= Thread-Topic: [PATCH] gpu: drm: fix an improper check of amdgpu_bo_create_kernel Thread-Index: AQHUnOONEcshgKVKEU2ZwQMEVbCPbaWSSTbJ Date: Thu, 27 Dec 2018 09:26:26 +0000 Message-ID: References: <20181226062348.75519-1-kjlu@umn.edu> In-Reply-To: <20181226062348.75519-1-kjlu@umn.edu> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Jim.Qu@amd.com; x-originating-ip: [116.228.147.241] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BYAPR12MB2760;20:litC8WQ4OT/NdWXcViYmB3BHsgLP8BfNEE/73OLbayBRClB1EDA5Ird9GT8QiKWBBajX8PD8KYIphNwu1G1VLxHX1oydeKIz4ZTyRZgHUqT5nsyLVL+2VbnFxSwzQkH1AHcVM4kC8Ng8LdreW0Q/YSaYNa8DpbNhsZofZwVsDRla6IiUTD6VEN9zh1wUwYF6gBIIL1R9iM7gbB3KRQAX4CULFDDI6CLWLzT+dv+1SecU0GpcWE8xTyQwewi+dUqb x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(396003)(346002)(376002)(39860400002)(366004)(136003)(199004)(189003)(54906003)(106356001)(86362001)(4326008)(8936002)(81166006)(105586002)(99286004)(224303003)(5660300001)(446003)(11346002)(186003)(316002)(25786009)(81156014)(9686003)(68736007)(55016002)(7696005)(72206003)(66066001)(76176011)(102836004)(6506007)(33656002)(97736004)(486006)(476003)(6436002)(966005)(256004)(14454004)(71190400001)(53936002)(6306002)(2906002)(6916009)(478600001)(305945005)(74316002)(2171002)(26005)(3846002)(71200400001)(7736002)(6116002);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR12MB2760;H:BYAPR12MB2791.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; x-ms-office365-filtering-correlation-id: d53b0bb9-c063-4e7f-71fb-08d66bdd605c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:BYAPR12MB2760; x-ms-traffictypediagnostic: BYAPR12MB2760: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(2401047)(8121501046)(3002001)(10201501046)(3231475)(944501520)(52105112)(93006095)(93001095)(6055026)(6041310)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:BYAPR12MB2760;BCL:0;PCL:0;RULEID:;SRVR:BYAPR12MB2760; x-forefront-prvs: 0899B47777 received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: F+SrmYuNerhsTMJENKkUdIQD2KnrDZ1xqjqsajeHprJF8n6auR2dHfQlWxM1YZ30amvzx+wn8q3WOPcuenYnoNlrPhcES/UCZKVNl4RiYGEboJtVb5l/qJZUoEwN6j0qNKJcg/y5PYZeZGqiiwW4hfDQaNvfqSTCw1pFSf/M8U/lXTNYNJP8MgETzCGpIerVj36sFHMTnMJee1b8yViwuwLwEIL7ND8b793jIR3YZOPLUNuiyjYeJc9woSTa+V5Y56znisD/RVUrSXmclaAqoSyD10YHtYkyHG2bLsUJ1GH7fQnE5VnDstCITa7WXf45 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: d53b0bb9-c063-4e7f-71fb-08d66bdd605c X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Dec 2018 09:26:26.6438 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB2760 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQpDb21tZW50cyBpbiBsaW5lLg0KDQpUaGFua3MNCkppbVF1DQpfX19fX19fX19fX19fX19fX19f X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ZhZGV2LT5maXJtd2FyZS5md19idWZfbWMsDQotICAgICAgICAgICAgICAgICAgICAgICAm YWRldi0+ZmlybXdhcmUuZndfYnVmX3B0cik7DQotICAgICAgICAgICAgICAgaWYgKCFhZGV2LT5m aXJtd2FyZS5md19idWYpIHsNCisgICAgICAgICAgICAgICByZXQgPQ0KKyAgICAgICAgICAgICAg ICAgICAgICAgYW1kZ3B1X2JvX2NyZWF0ZV9rZXJuZWwoYWRldiwNCisgICAgICAgICAgICAgICAg ICAgICAgICAgYWRldi0+ZmlybXdhcmUuZndfc2l6ZSwNCisgICAgICAgICAgICAgICAgICAgICAg ICAgUEFHRV9TSVpFLA0KKyAgICAgICAgICAgICAgICAgICAgICAgICBhbWRncHVfc3Jpb3ZfdmYo YWRldikgPyBBTURHUFVfR0VNX0RPTUFJTl9WUkFNIDoNCisgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgQU1ER1BVX0dFTV9ET01BSU5fR1RULA0KKyAgICAgICAgICAgICAgICAgICAgICAg ICAmYWRldi0+ZmlybXdhcmUuZndfYnVmLA0KKyAgICAgICAgICAgICAgICAgICAgICAgICAmYWRl di0+ZmlybXdhcmUuZndfYnVmX21jLA0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAm YWRldi0+ZmlybXdhcmUuZndfYnVmX3B0cik7DQorICAgICAgICAgICAgICAgaWYgKHJldCkgew0K DQpKaW1RdTogTG9vayBpbnRvIGFtZGdwdV9ib19jcmVhdGVfa2VybmVsKCksIG5ldyBibyB3aWxs IGJlIGNyZWF0ZWQgb25seSBpZiAqYm9fcHRyID0gTlVMTCwgU28gaWYgeW91IGVuY291bnRlciB0 aGUgaXNzdWUgdGhlIGFkZXYtPmZpcm13YXJlLmZ3X2J1ZiAhPSBOVUxMIGJ1dCBuZXcgYm8gaXMg bm90IGNyZWF0ZWQsIHRoZSBvbmx5IHByb2JsZW0gSSBjYW4gc2VlIGFyZToNCg0KMS4gdGhlcmUg aXMgYnVnIGluIGFtZGd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