From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1626C4338F for ; Mon, 16 Aug 2021 22:06:44 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 963F160F46 for ; Mon, 16 Aug 2021 22:06:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 963F160F46 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F2CC889A62; Mon, 16 Aug 2021 22:06:42 +0000 (UTC) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2083.outbound.protection.outlook.com [40.107.244.83]) by gabe.freedesktop.org (Postfix) with ESMTPS id D4EEA899EA; Mon, 16 Aug 2021 22:06:40 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SSokk+4E84JpRAWu3HnudxTN/yEUQFajaBIpYYjcS/x0/yChuk3Xv3nQImvLgQLwEiLRkySUlV+lM8tPG7WQySky/DMzufasvExsgX1gbB599KAXZmn0bJm98TdbhFCFDVnL2+RJm2FNjxB9SOaR+Zna4i6PaDodHewjKu/MCxVbhufrgknSztAr2yUwZ9kMUlP9ln9Sa7k8SG9gg+Zmt0YJk/9tji2bqydedWe/XsOeN0nIOdQ2bKE0f/prShChd0wnoRXdpjdYfzwlPa+Dkj9F0ku9zhb2Mp/rdtdZ6EBUVyvdOSmVKeLZnF/C9ESvCwGu1hAhmrFJKCWWnM1Y6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Pij3bsL0v+tTo92jymAmxuGdbgRdPhEFYcUOrHl4Jm8=; b=lY+839RcIZsAyEWP/a4U5GS4YNLxAnhArGtamqx/E0f+YlxshmKK+Y5kOtauJCXAJontRmoAcIO7QvJD/zUs2ixcN6NGHH197uf6r/WrXhk1wz4G1645QNxm7He+pL3pCen3mQJghQaE9KQUucipxekjHt/f8kQZL/QY8ETvGpHTICeTny++1kGiuDMHiiFtiS5kS+xl2GLFdFUaK5c56gplM19Z66V2y/UCddz2aTZqavlJBH4GURCRoGj+sfTWaLBzTvE0Xzc3pFBJfykkQiBEsLQbjuhbpFyrxxgHgbkOOWURwTfOpuPN6c1lu8BeueCok8SU9TA62Oh/e+4EzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Pij3bsL0v+tTo92jymAmxuGdbgRdPhEFYcUOrHl4Jm8=; b=Bk1Lnzt4w5habziElx2gBr1CgK9v8WibqsaOIddYfKBZZHCmMYksu72fbgtfsSyK9l6reQsk6cdaQL1596+KrpWwKR2n36fnhYIDla85KaOHjDlZmbJ/i9vG6Jl4sFCc8Lmo0CY7BbsG/gCgcOs40PmI1+f2y9jAbUAnhP26v/c= Received: from DM4PR12MB5374.namprd12.prod.outlook.com (2603:10b6:5:39a::11) by DM6PR12MB5536.namprd12.prod.outlook.com (2603:10b6:5:1ba::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.14; Mon, 16 Aug 2021 22:06:38 +0000 Received: from DM4PR12MB5374.namprd12.prod.outlook.com ([fe80::6958:68e2:61a1:466f]) by DM4PR12MB5374.namprd12.prod.outlook.com ([fe80::6958:68e2:61a1:466f%3]) with mapi id 15.20.4415.023; Mon, 16 Aug 2021 22:06:38 +0000 From: "Zeng, Oak" To: "Sierra Guiza, Alejandro (Alex)" , Christoph Hellwig CC: "akpm@linux-foundation.org" , "Kuehling, Felix" , "linux-mm@kvack.org" , "rcampbell@nvidia.com" , "linux-ext4@vger.kernel.org" , "linux-xfs@vger.kernel.org" , "amd-gfx@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "jgg@nvidia.com" , "jglisse@redhat.com" Subject: Re: [PATCH v6 05/13] drm/amdkfd: generic type as sys mem on migration to ram Thread-Topic: [PATCH v6 05/13] drm/amdkfd: generic type as sys mem on migration to ram Thread-Index: AQHXkAz8GPC8PJLriEeuboq3TY2nI6t0txGAgAHZjAD//+IxgA== Date: Mon, 16 Aug 2021 22:06:38 +0000 Message-ID: <771FC2D4-15CF-464B-96FF-837533A85886@amd.com> References: <20210813063150.2938-1-alex.sierra@amd.com> <20210813063150.2938-6-alex.sierra@amd.com> <20210815153825.GB32384@lst.de> <694ea624-9dc7-7a25-78a6-308ee0debaea@amd.com> In-Reply-To: <694ea624-9dc7-7a25-78a6-308ee0debaea@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/16.49.21050901 authentication-results: amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 60fe9f34-7bdc-4b08-557c-08d961021ecb x-ms-traffictypediagnostic: DM6PR12MB5536: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2N0NGCd007pP6CKpdC8S7jvbbT+hGvQed9ALVNKSfaNQkHaZRbBJYcfWPNTxHcp/NzjU5XABNOiNj/FhvE8816P4wo9kM9nWeKDolgztrx8mISkZYbW+BO8Cm8qpQu34yMNgDsHszyiSylKT36I5kQJJCmm5afXkS5kYc/MlM8dkTY9+y5bEpEJ8kgyWzUFteS57iyzQ4FwqzeNUyVQejgNPN7PSBLwP9Oqzki5WIhxpvk0Aj34F4BjC1ER6aqRCGQYc/zb+CpGcywvy9jpTTc/cJ93f/D7FXmbEUslAPyiuNL5JjOPD2SHwho9y4KkLXThUiyfp0b8ejHXMiMPAprqvud+wWCF2swjc8Xf4j7E//p9mOsp/54YyZvyQprHdUYjF4T4zoaJQcFF+EHYfTFTfldUxcCSpXBSve/mgYeZm+lxFSVqKj/vUa/4t+tNxj/Iiw9M5EtadOg+OOCBCTA/vnDmrHxzBV82sH23iK+Zm9cdFI8P1QZehPRo2nTF6MYmKjqirXOUnOqFjy0OJymkavMfj9bt8l1fJaZazpwz8cWqvQbak2lO0bRSJmytXnhFPGuabUe2qcpYI5eWHS+F5QxXT2A+ggaPX2GeS8K546jw/hXPYE0xRDvoaXMPlfxd5y4NpZw7BOagEuGi4y0H9dnfAMS/X8LpzhkAfCkR6lkmPZhVD0zClziCe+eBbjI+5sTkAE9+cEPRY4LoE3807fKJU2NVOf6ICOSMk5jEGD2WSk2M9FBXFC6Xg41qH x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5374.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(346002)(39860400002)(376002)(136003)(366004)(8676002)(110136005)(66476007)(66446008)(8936002)(64756008)(66556008)(478600001)(6506007)(53546011)(38070700005)(26005)(6486002)(86362001)(54906003)(83380400001)(4326008)(2906002)(33656002)(66946007)(2616005)(122000001)(5660300002)(316002)(76116006)(186003)(91956017)(7416002)(71200400001)(6512007)(38100700002)(36756003)(41533002)(45980500001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?enE4K3hOSUhZeDdOVm9sSFNrang3c1FIb2loUWJQS3lEMUFYU0E3OWpDb01O?= =?utf-8?B?M1hHdDRkQW92bmU5bHFNcmVIaUhqRlR6VU5JZnZVRWltb0xBWUV5Q1lYTFBM?= =?utf-8?B?dEhvT2NRUFE0VDU1SVB4eEMzVFZCRDVmT0Y5M2xEdDM5NDJaekg3Q3lWTk1w?= =?utf-8?B?RUtxS0dCbFo4SnBObE5xRTZJRUpkS083S01uZ0VOMytlK0FkSjZCY21Za0Fj?= =?utf-8?B?NXU2TWc0bVhFUGFhTGQ2VjlPQ1ZSYnkzTWl3eGZkZ1dmRzI5OTNVb2lrTWtQ?= =?utf-8?B?Tmo2bzZQU1hvMHU2ZEZkam1yRGFxNkVFcENzNUZJa0lqQWlxYkRaQjZwOHlQ?= =?utf-8?B?ZGNOWSt2cWNGTGtQTlgrSXBEODBBa2p0cnlpT2dYYk9GNlBpNS9Tc255dWlU?= =?utf-8?B?QUFkbnJpRzRudVM3cUcxb0VjbU0zREFtK1dOaGxQaVdrL0hORmYxTWZQZTh2?= =?utf-8?B?MzJvQmYwT25sUHpuVHVGeVZPZTlvSUh4cjc1cTNIdllhVlVWNlFyZzZXMXhh?= =?utf-8?B?WUdXVENiMGQxZENhU1YzMUw1bTdNK1RxekRBcTN3ZFlEU0phMzhwR3Z1d3J4?= =?utf-8?B?cDR5TURVQlBOc2tOd1ltOEUvTXpvU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9VMW9iVWRHRFdJUDBzRXp2ZWpkOHhWNnRuZng2Yk5vMzY0TWo5WDBXSnZp?= =?utf-8?B?WXBDRmNxVjdJMDhkdGgxUWROTktpbnQrQUd1dUp0WFc5dDNaUTdzRmtQdTlD?= =?utf-8?B?L2NUeC83ZFhZalU1UWdoaW1kdkNSWjhoZkh0NFhRUzd0TFcwR3FweE9jWWhu?= =?utf-8?B?cXI4blN1TE1yZ0xnQVo1c1ZhdUh5bDNGZ2pISG5DTjA5UDJQK1A2NEVmWjNV?= =?utf-8?Q?TgZrh6NByF5A3KmAntQkCPbe4MIYOme+yBeQoNl?= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5374.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 60fe9f34-7bdc-4b08-557c-08d961021ecb X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Aug 2021 22:06:38.2882 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: /OpvEroORl0nVMFxjFoWLx46g76ljWmdv0SBfQKt6iDDgUg/4GxsdXtn2xrAp8Je X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB5536 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 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" DQoNClJlZ2FyZHMsDQpPYWsgDQoNCiANCg0K77u/T24gMjAyMS0wOC0xNiwgMzo1MyBQTSwgImFt ZC1nZnggb24gYmVoYWxmIG9m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