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.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 9CFE9C12002 for ; Fri, 16 Jul 2021 22:14:11 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1E6CF6115B for ; Fri, 16 Jul 2021 22:14:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E6CF6115B Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 85A268D00F4; Fri, 16 Jul 2021 18:14:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 832A28D00EC; Fri, 16 Jul 2021 18:14:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 65C968D00F4; Fri, 16 Jul 2021 18:14:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0146.hostedemail.com [216.40.44.146]) by kanga.kvack.org (Postfix) with ESMTP id 3EC278D00EC for ; Fri, 16 Jul 2021 18:14:11 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 121DD18297963 for ; Fri, 16 Jul 2021 22:14:10 +0000 (UTC) X-FDA: 78369855060.11.ED292DE Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2067.outbound.protection.outlook.com [40.107.236.67]) by imf04.hostedemail.com (Postfix) with ESMTP id F2F6350000A3 for ; Fri, 16 Jul 2021 22:14:08 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XTKdPjUgHhGYa+SsNBWfbCmgSAzukv+7obl8sKjiBf8j9kaOcnst/tk/7G0gV01EekOXtzGrEfVTyfPJU7yEGtCgI3OLHL/05DDdyQ6sM0V68ZbAMQFGdERkkJOwLkTJ/8ZcospVbm5cPspDiTfnLZt/bCgAgKFyFB6bZ8fcjdwBEEYqoawnFbib5LTXUoi+ZGK/LTx/1io1++Q2gwAG4J7ZEeBEIWlrHATj/plqEDS2BUPjen10gLcGeQ4hEqddZdZXzz5+fAidQ7yZyItEQ7tC9Trenh6G4P3xfP/HpIg1mgaiL5FYTO6T+GAkHAakYSM31g/00xQvjDizK7ddKA== 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=qYwMnvBCCZkyWKZKoK22jlZaog6WNX4MDqTHopYpzuw=; b=O31pX2fsVysShag7/g9OzVx4sn79ctfdGmAfF6PlroNiyKzOoXfIWYRlJFvBGYDcJXcj4VD5puk7FPFWddJ+L9sTMDnypgIwV9ypKLPjnGKPRUtre5+996n8oQLSf35KNIuDJJ3DJ4J5M5IZ4iAV/R5ue3tQkxkjnckvQcyOmEEf3tt6eFftNyT6OKY2QVqX9+/2Wl6wukLvbqWYpcbCX5bv078Zt2F0VH96vMBwH9rLLXdQa9QPce8ZSH0HYuODB3/GEefV8Bb0JjE6jDrZHwCNaQnYyuKhvc+sFKzVxsTanm+9MAO1m4J95CQw6XePO+qSzntahEi70h2vZlvZkw== 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=qYwMnvBCCZkyWKZKoK22jlZaog6WNX4MDqTHopYpzuw=; b=LmYhsG9TEoctKy5nRMT5/YjaXi1aqczPBAvS2Gn0Vak7f8vCUZSIFwo6AUM2NjfCosJqxD9bJhN92gN+FyxC2wz2rLusYppQMSmNOE9SfO5fgevarIdCZWgJgtttpzHgO6LkoinpWHJcUVh1yekNgyrqYESnw1nU3OwqEq/4i28= Received: from BN9PR12MB5129.namprd12.prod.outlook.com (2603:10b6:408:136::12) by BN9PR12MB5292.namprd12.prod.outlook.com (2603:10b6:408:105::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20; Fri, 16 Jul 2021 22:14:07 +0000 Received: from BN9PR12MB5129.namprd12.prod.outlook.com ([fe80::b891:a906:28f0:fdb]) by BN9PR12MB5129.namprd12.prod.outlook.com ([fe80::b891:a906:28f0:fdb%3]) with mapi id 15.20.4331.027; Fri, 16 Jul 2021 22:14:07 +0000 Subject: Re: [PATCH v3 0/8] Support DEVICE_GENERIC memory in migrate_vma_* To: "Theodore Y. Ts'o" Cc: Alex Sierra , akpm@linux-foundation.org, 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, hch@lst.de, jgg@nvidia.com, jglisse@redhat.com References: <20210617151705.15367-1-alex.sierra@amd.com> <905418d1-9099-0ea8-a6e6-84cc8ef3d0b0@amd.com> From: Felix Kuehling Message-ID: Date: Fri, 16 Jul 2021 18:14:05 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US X-ClientProxiedBy: YTOPR0101CA0033.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:15::46) To BN9PR12MB5129.namprd12.prod.outlook.com (2603:10b6:408:136::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.2.100] (142.186.84.51) by YTOPR0101CA0033.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:15::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Fri, 16 Jul 2021 22:14:06 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7a64b23e-a7e4-4f3e-180a-08d948a7078a X-MS-TrafficTypeDiagnostic: BN9PR12MB5292: 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: KTX+PGoNC7agqAp7YhVwHLo+MvK1Zc8PDvJ86dbpuyjCu1G0JdCK681HUX7YWyZpTVF86n/+y/GabqyGh5SFv5VmTw2X5/ElAG1KueOW8vP+L4T/6HZKJzjB/FzK9nvUEzW82jdkd36a9NByK7Xn/u5LnbLgjdfqLfZ2fQP+0mK4LubCFjdKW6zlVJEEzrhAHm5+gdW7hqlfNMTB472HwkeMr0c1o/tWWWvYaF0tAqDnwH+Qscc1LIZcl/I23dWz/k+v/UqeTIGPQQxUpADbfMie5BjtdV6pcZLf3iZVqCZt3OSQ3dt8O2a1hnxtf26A5iZEMkMROOFWmTabjVRxaX2rXf7EdDi+8bTfaIhv1NAQio1eAdUd6yH/BcrKLrnuJT6vakffgUmrehxALiAMRddyBLq5ZfgfqWqFaRdAEiMG1p+QEwhRzKBS6udoohVLtwL0y798ErQGLT55FCviObwv5MI606aB4irkd7O0KyQCpDdid0ZMyhDR4fOQNymRMZQuk/0JDF7RcnxnVGc6nCzTAUVOUOrD3nXjm2XG2wl469NWFxBBd/PkCHbm+rtXpGTsSCjCoo+eKqgel1epHN8khXXwqolkRcrrmO4tsaT341o9zBnZfA2rrrkWHpswptCQsLov2f8EYMS2CcXRdErOYISUahXMnaLogLQUIKL4LKaq3+/xRdLrK/SRk2xMdjzYHC80D21WXWTfV5qQqiEhgoyAJ77dP6+y0vcVfI8osqfOw8QnBDiJhWvTR/+7 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN9PR12MB5129.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(376002)(346002)(396003)(136003)(366004)(186003)(26005)(38100700002)(316002)(5660300002)(4326008)(478600001)(31686004)(8936002)(31696002)(16576012)(6486002)(66946007)(8676002)(66476007)(36756003)(83380400001)(2906002)(7416002)(44832011)(956004)(66556008)(86362001)(2616005)(6916009)(41533002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Q3p0ODg0TlhMTlh6V0FzZVVsMW5rc0wyNFdUNDM5RE9rdnFYNGcxTjE3S0ZV?= =?utf-8?B?Q2EwRlNCeER4UzVFbzR3NnNCUWJXRzBRUkhPMU81QTV1dU1VZHRqK2VQaFJH?= =?utf-8?B?VTNheFRMWGJOMGVjRHdHKzRKV1FqM2pLeE5Fc1pLLzIvdm1wNnlMTUtqL2Zj?= =?utf-8?B?V2gzSTdLNk1HempiYStuaFJkdllyN0pWYXp0cWEwdUY1eEM3OGhrN0lNZmJI?= =?utf-8?B?QTRVQ0Z0YU8xN2lKSFZDNnlJZnlRMUpubWtmSnNyb29xdFB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kk2eXIvY2JucGM2WDZTUzBhZDdycEp0UGcrTXVk?= =?utf-8?B?ZU91ZDJCelEvQ1ZxVFVvVE1rdWJlOUNkRnVzb1hPM2xOcFBZOXRoNGxPT0xM?= =?utf-8?B?cTdsakYyQ3dMWEJ1azVhSEh0dDJxcy9ZcW0vL2h0TmlTQ3BXOWgraEhuTUxQ?= =?utf-8?B?VTR4WkswTjllVDU2QUU4M0FZNmRKK1hhSHVkb1lIU1drUW1zQm9LcnJXK0Mx?= =?utf-8?B?cXo2KzQrRlJMcWFSdjU3NFpDcUlnUERqNm96M25qQ3RYYU1Hd0g3SGFkSG9U?= =?utf-8?B?R2phRjlUY2Z1eG9ZRUFnelhpNkxSc3hqWDg3ZEpNc2Y0RVlRa2RpZThkOEY1?= =?utf-8?B?ZDZackxyRHdFc0dYcmtGRmc0amV2TFNYYTY5RlNUMWlUTWxvcU9tcTMxQWhM?= =?utf-8?B?MWFOVU41R2kxWVh2YkhVcWdLa2N6a2RLUXI2TVBjK3pkcHYyaStjZlRhM1Vk?= =?utf-8?B?K1M4di8wNnBXR3lrOE13SUErR3pxNnliWVRpd2Y5ODJaV1FLT3ZuL3JLb0k4?= =?utf-8?B?L2lWTnNaL1g4VGxRWFNhSGJ2MGxEd21LZ0RsYnRscUFwSms0WStja3JXMjlo?= =?utf-8?Q?JvejKuem3ZEi5T7KR78YH0a27y4xKJ8KkQP3cft?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7a64b23e-a7e4-4f3e-180a-08d948a7078a X-MS-Exchange-CrossTenant-AuthSource: BN9PR12MB5129.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2021 22:14:07.4955 (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: 3JmDmDY2VvhfFXLu38rSRxx4huRKkoVG9gTRr3Il06n3cPiT2cx2AFuCTmJ8c/HILEl08UdU9y8u9bHsu+tTUA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5292 Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=LmYhsG9T; spf=pass (imf04.hostedemail.com: domain of Felix.Kuehling@amd.com designates 40.107.236.67 as permitted sender) smtp.mailfrom=Felix.Kuehling@amd.com; dmarc=pass (policy=quarantine) header.from=amd.com X-Stat-Signature: c8nsq6chmc14tzpg6amqnngjn5mkrdbi X-Rspamd-Queue-Id: F2F6350000A3 X-Rspamd-Server: rspam01 X-HE-Tag: 1626473648-330742 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Am 2021-07-16 um 11:07 a.m. schrieb Theodore Y. Ts'o: > On Wed, Jun 23, 2021 at 05:49:55PM -0400, Felix Kuehling wrote: >> I can think of two ways to test the changes for MEMORY_DEVICE_GENERIC = in >> this patch series in a way that is reproducible without special hardwa= re and >> firmware: >> >> For the reference counting changes we could use the dax driver with hm= em and >> use efi_fake_mem on the kernel command line to create some DEVICE_GENE= RIC >> pages. I'm open to suggestions for good user mode tests to exercise da= x >> functionality on this type of memory. > Sorry for the thread necromancy, but now that the merge window is > past.... No worries. Alejandro should have a new version of this series in a few days, with updates to hmm_test and some fixes. > > Today I test ext4's dax support, without having any $$$ DAX hardware, > by using the kernel command line "memmap=3D4G!9G:memmap=3D9G!14G" which > reserves memory so that creates two pmem device and then I run > xfstests with DAX enabled using qemu or using a Google Compute Engine > VM, using TEST_DEV=3D/dev/pmem0 and SCRATCH_DEV=3D/dev/pmem1. > > If you can give me a recipe for what kernel configs I should enable, > and what magic kernel command line arguments to use, then I'd be able > to test your patch set with ext4. That would be great! Regarding kernel config options, it should be the same as what you're using for DAX testing today. We're not changing or adding any Kconfig options. But let me take a stab: ZONE_DEVICE HMM_MIRROR MMU_NOTIFIER DEVICE_PRIVATE (maybe not needed for your test) FS_DAX I'm not sure what you're looking for in terms of kernel command line, other than the memmap options you already found. There are some more options to run hmm_test with fake SPM (DEVICE_GENERIC) memory, but we're already running that ourselves. That will also be in the next revision of this patch series. If you can run your xfstests with DAX on top of this patch series, that would be very helpful. That's to make sure the ZONE_DEVICE page refcount changes don't break DAX. Regards, =C2=A0 Felix > > Cheers, > > - Ted