Received: by 10.223.185.116 with SMTP id b49csp482501wrg; Fri, 23 Feb 2018 01:47:58 -0800 (PST) X-Google-Smtp-Source: AH8x226Mk0WU4aRsJ1iH6PDNpygv55epi+lbWf/QfIa4hGghAufRLcVLDcT4IC5gAHAG2G36lBQg X-Received: by 10.101.80.6 with SMTP id f6mr979254pgo.272.1519379278151; Fri, 23 Feb 2018 01:47:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519379278; cv=none; d=google.com; s=arc-20160816; b=dF5weI4Z5n76JVvzv6dmxr2QQ7RnDL0SVMwtiO4MD7S3c7cJA2NDCRb6gLNr5zl0H0 3zB8pYh104Q/LrZijJ0KxMgRlQmOU6/ZIej752xoEY6tLiCmfEsHD6Cywr6KRKIV1iJV k5iPOXRAHPCqlzgBio+CBLvqKvpEhspdLm/up8eMEc+R6HfFzF4OfHfxNOP+moa+4L3m 5xW2xWA8y+OXDiyqZQLynOef43NKcHa9yH7c8l3g+hg4Jl64M8NwZNJdYZi3PsroIGsR iXnX33heBz1FtpbuZ5ThqQK6QVFj3vzc6sDhg2kLACUlKXdcGQDGGilPsqcw4CgyMhIN CSYA== 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:to:from:dkim-signature :arc-authentication-results; bh=E+YgAwGu3wPKRRHJpBuYLCwisLu9889rH5wL77qFTCQ=; b=CX0tI0bilmuw6AYZJMsI+rQv4Dd7AVEqaTNNODg+XeY6gKfUeWGoOB24giOthI/Wyg uo6oDwn9W0vrIvg2arTOhE1qcNhPuKyy9AKqzoY6uD8tez8PLUF3zBabwv5TXinrPY/x n2YUeZpql6Zu5fcTgIC9WEQDBWX1gfVQEFmkHAXQ5RmBco4FjAeD3hpztCwjOoPuo9mU LHNUn13MRyrvhTKUzlY3RlVTNnaLCZYJEGF/0KzFYAkb9rELkaezTZIQrwhXDnqOEUFC JNpf9P7E+JzHWDSNSBwHJlA9piAKR5WqULtzleKCkyzVeAV/OU4NqYgaLuElaI2AKbI9 TbTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=35axjDQU; 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 s17si1567514pfi.32.2018.02.23.01.47.43; Fri, 23 Feb 2018 01:47:58 -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=35axjDQU; 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 S1751497AbeBWJrE (ORCPT + 99 others); Fri, 23 Feb 2018 04:47:04 -0500 Received: from mail-dm3nam03on0041.outbound.protection.outlook.com ([104.47.41.41]:34352 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750879AbeBWJrD (ORCPT ); Fri, 23 Feb 2018 04:47:03 -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; bh=E+YgAwGu3wPKRRHJpBuYLCwisLu9889rH5wL77qFTCQ=; b=35axjDQUZfDj9NH7cR1vq7Kf2YIJ8ME17zfrbZ0twrGn1W1rUuIUXNL4dhZ4+O4q2mZVhX2WfguYsLaWrKlJ+rOFcs9B8vOhsPXjy/HazbupZrKBn9q+xw0vfBHyD1TKiQebwYt3G8648sCn+uv+Xq4zP9BHR4hj3V1bB1nCvKA= Received: from MWHPR1201MB0127.namprd12.prod.outlook.com (10.174.98.142) by MWHPR1201MB0064.namprd12.prod.outlook.com (10.174.98.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Fri, 23 Feb 2018 09:46:59 +0000 Received: from MWHPR1201MB0127.namprd12.prod.outlook.com ([10.174.98.142]) by MWHPR1201MB0127.namprd12.prod.outlook.com ([10.174.98.142]) with mapi id 15.20.0485.022; Fri, 23 Feb 2018 09:46:59 +0000 From: "He, Roger" To: =?utf-8?B?Q2hyaXN0aWFuIEvDtm5pZw==?= , "amd-gfx@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 3/4] drm/ttm: handle already locked BOs during eviction and swapout. Thread-Topic: [PATCH 3/4] drm/ttm: handle already locked BOs during eviction and swapout. Thread-Index: AQHTqkqJL6PPebjhZ0OJvNgAm33lDqOxvPeg Date: Fri, 23 Feb 2018 09:46:59 +0000 Message-ID: References: <20180220125829.27060-1-christian.koenig@amd.com> <20180220125829.27060-3-christian.koenig@amd.com> In-Reply-To: <20180220125829.27060-3-christian.koenig@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Hongbo.He@amd.com; x-originating-ip: [116.228.147.241] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR1201MB0064;7:Z5ISkjGCCGcZnyX5D05Iw0ZGkQt5KgT+MlWPZi+QW5HC2X54cYKyFXvxNZR/b1cJtP4v7010MhnEkXlLhJbDspZbFRheuzXCpoXjYzOq7U670ITPmBkrQcueN3FhHl1HmEyQkkMObSSBE6aXF714qLDJ5kMvbf2/A4pt+ka1q3++8nWc+ceoDvuA03WeHV8/VOp/t3k0cgADU1FlQ+4Okte35ehXUghjlRPPl/zHTFC+qMYk/GBXGzYq7yalHDN1;20:uQo9mGIDuAlsgyCBA8KRlpYCa/qrdvb+GkKIR+KtlOCogrzOSbrgnUDe0nMRCxRyg0xvmXZinC9sxwAO3G02CGv30DfY6CBWIpyQ0ajUDen6YRnYQ9+YGXQO/dgKQV0PUnQ+wqQGqax6+hn3uSIEtSxSc34LoO5+Hes2VVelEJeJR4fwLWH6/N7W7QoZ9TTHJZx047WR7eMZSdtdwoiWCCuD2+TmgucuZQhqwuVY1aatG5qkB3M1CzQOAsqBkl/s x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 88a4de4c-b321-4e9d-7063-08d57aa26276 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020);SRVR:MWHPR1201MB0064; x-ms-traffictypediagnostic: MWHPR1201MB0064: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(767451399110)(217544274631240); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001082)(6040501)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231101)(944501161)(10201501046)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:MWHPR1201MB0064;BCL:0;PCL:0;RULEID:;SRVR:MWHPR1201MB0064; x-forefront-prvs: 0592A9FDE6 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(366004)(376002)(346002)(39380400002)(189003)(199004)(13464003)(6246003)(25786009)(39060400002)(2501003)(3846002)(6116002)(110136005)(33656002)(2900100001)(97736004)(2906002)(316002)(99286004)(2201001)(86362001)(9686003)(72206003)(77096007)(966005)(74316002)(2950100002)(26005)(7736002)(305945005)(186003)(478600001)(6506007)(59450400001)(68736007)(102836004)(53936002)(5660300001)(8676002)(81156014)(3660700001)(81166006)(6436002)(53546011)(14454004)(8936002)(55016002)(229853002)(6306002)(106356001)(3280700002)(66066001)(76176011)(105586002)(7696005);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR1201MB0064;H:MWHPR1201MB0127.namprd12.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Gja00zneGMdaGLEGendo/CbM6KzXYKbagaMqrybsCfUgUvOYvlrOn9g9fOYdr54R+OnuhWbRmlKWc4uZAOwj+MXaE7wBPeYXYbptFpfNNixkxi5LP+D3C3XliuCKhnxEGrFbumT9tj5xdN7HI+ch+StU14vqEuALg9ufsKfZRw0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 88a4de4c-b321-4e9d-7063-08d57aa26276 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Feb 2018 09:46:59.6606 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB0064 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBkcmktZGV2ZWwgW21haWx0bzpk cmktZGV2ZWwtYm91bmNlc0BsaXN0cy5mcmVlZGVza3RvcC5vcmddIE9uIEJlaGFsZiBPZiBDaHJp c3RpYW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