Message ID | 20210607204226.7743-9-alex.sierra@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=eTUP=LB=kvack.org=owner-linux-mm@kernel.org> 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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 40E03C47094 for <linux-mm@archiver.kernel.org>; Mon, 7 Jun 2021 20:44:35 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E37C961139 for <linux-mm@archiver.kernel.org>; Mon, 7 Jun 2021 20:44:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E37C961139 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 8684B6B006E; Mon, 7 Jun 2021 16:44:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 83ED36B0070; Mon, 7 Jun 2021 16:44:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6B8C06B0071; Mon, 7 Jun 2021 16:44:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0049.hostedemail.com [216.40.44.49]) by kanga.kvack.org (Postfix) with ESMTP id 3CB616B006E for <linux-mm@kvack.org>; Mon, 7 Jun 2021 16:44:34 -0400 (EDT) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id CF47A824C426 for <linux-mm@kvack.org>; Mon, 7 Jun 2021 20:44:33 +0000 (UTC) X-FDA: 78228106026.02.8A8E763 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2087.outbound.protection.outlook.com [40.107.220.87]) by imf24.hostedemail.com (Postfix) with ESMTP id 5A3A2A0049EA for <linux-mm@kvack.org>; Mon, 7 Jun 2021 20:42:45 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bbvudekOZoj762VXfd8U8rvr+eaS083WfrCJjoFZU+gVanDs7xZp4oAhcNJPBehegM2k3IQ0c09eqB/VdJLlqqvAf/1XnRfiPgkXTRNJ9ns1hgfCbO7rfEy99ELAg/DM3EAk5AJ5Zo00KF7VGFJ2TlSgJWQboUxD5i4fSI7lLWTwk2DM3M6H/u2mVsx5GECNEKD5TWvfeaYYo4CCykF/jbudYqEZL47rrzhYFD1bdGeLzfWvJg5QzNnist7edg0sNr3prVOJPCLyl00tfHv4YovoOyraZb/WY5ZNMqaNf9zf24Yjz2CBanTZUnOUWardubJL/MRsNe0fIEJJH7bPgg== 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=fto7oGTXuEchER0GieOzKEfkpiqMw64yv0w2SD6NgAs=; b=grD2EHIkLP8zn1oiO90bTVhjnl0q0tPvA4zfBosTUuQjIxJ3iylqYZWdfRn9Jk4pBqw9/j9TpwNkMONJFf12yzXw+TswwklIIUUGeErEA8iqDBA7lmrvXTlMHXOZEcqscc2zwPnk1CG6z0MAYRkAyPYoBUqXCmi3ME9+85kdQRb6wP1XmpCDv85e08NFdJpow/1SJ5N+Wg++R8eb+8IAMcKiKgmPZd0sbaJO0sUE71+USqhmKkQrgHy6BIafiORaj0EnrzkWQAO82h12XcjgOVRQyHbaSWw2WNj9IeKVb3vQzQmyXcjTTqTc086yUJfD+wVA5Z7YG4Zz/1lesygBiQ== 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=fto7oGTXuEchER0GieOzKEfkpiqMw64yv0w2SD6NgAs=; b=bil8kyODU73wnU7ABfd30JsZY5NPgCy+etLk+JbFlO2J14SFvk7izPKP42vmeLJB72IAwoxHdJN+Ccvwn6BnVPW6dHKPhRkV2Xo5AOEtjW9jVDuW0Qj/DnMiIJyfPWFbyko3OmQcV4fvNBzipe58zg9dwj4JvAlK9Zb24xvoGqc= Received: from SA0PR12MB4430.namprd12.prod.outlook.com (2603:10b6:806:70::20) by SA0PR12MB4382.namprd12.prod.outlook.com (2603:10b6:806:9a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.23; Mon, 7 Jun 2021 20:42:45 +0000 Received: from SA0PR12MB4430.namprd12.prod.outlook.com ([fe80::5ce6:fed4:e00f:27e4]) by SA0PR12MB4430.namprd12.prod.outlook.com ([fe80::5ce6:fed4:e00f:27e4%5]) with mapi id 15.20.4195.030; Mon, 7 Jun 2021 20:42:45 +0000 From: Alex Sierra <alex.sierra@amd.com> To: akpm@linux-foundation.org, Felix.Kuehling@amd.com, linux-mm@kvack.org, rcampbell@nvidia.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, hch@lst.de, jgg@nvidia.com, jglisse@redhat.com Subject: [RFC PATCH v2 8/8] mm: call pgmap->ops->page_free for DEVICE_GENERIC pages Date: Mon, 7 Jun 2021 15:42:26 -0500 Message-Id: <20210607204226.7743-9-alex.sierra@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210607204226.7743-1-alex.sierra@amd.com> References: <20210607204226.7743-1-alex.sierra@amd.com> Content-Type: text/plain X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: SN4PR0601CA0018.namprd06.prod.outlook.com (2603:10b6:803:2f::28) To SA0PR12MB4430.namprd12.prod.outlook.com (2603:10b6:806:70::20) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from alex-MS-7B09.amd.com (165.204.78.1) by SN4PR0601CA0018.namprd06.prod.outlook.com (2603:10b6:803:2f::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.22 via Frontend Transport; Mon, 7 Jun 2021 20:42:44 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4c0df5c0-d618-4759-b7c9-08d929f4cdab X-MS-TrafficTypeDiagnostic: SA0PR12MB4382: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <SA0PR12MB4382E5DD9A454DCF68866112FD389@SA0PR12MB4382.namprd12.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:418; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ln/jdAEv2NcggsdMbtH/oXoU9tF8Qh72Pp04Q9pIZZHkBp8dt8yNLfGlIaJcJ2oBIvm8mCw1neYRKB0Z2CRWEsyDgldmfob7rEaZ91oOfTimR2JXwdTOGG+I8v9b9F8SKpSWSOUBqbuOFmclIoh8wwtZhLNcIkCeTN5Gw5F2N3mdh3zn5A2H3l/9vckI/pjAGZQG1cLbTm3UJtp2OC4kpBLyAqowGpjBQ3U6X9egagqzFxO3SBg36CMimSxQd608iz2jTaVKI/o5789if2pPrtkJBXsH5lg5T/bhG2YN4KaeoEhHI9WD5AuCUP7IxhgJw7AwL/+89dzMu3vaS+y2ocpmCO0RodQXZiXvkQ9qYHUuiZM39pte6nFnIVjYfE6XL40VIx2P7lWLf2RSjbz5AEt/iU1YXSQsQ2YPUhhmbSAxnhUjTbiUEXik1acstdNGbhq+yAm0PrvzjAsmwy6uQXEiDvWVtaAJMfzj5sq4bKjaeGLW52MunB+XdRq3ob5ZUnUw/aeZ0ZbsSdX9RLGSzumY3HArL26/6jalOpsjXiKvxBm95n4y7SK4YKQH+Y6kcsGLVbDp2/mPiHoaChfpvJNxqwGZ9PZPoreL4Uj7IUMbqaZ1psiYf5HABJkMpWF+gLfYBWPN0HlCazQZUWq+hKRpxf/mnsev/5n30/j2PQL3g/OramLzcIyn4ZBYetpE X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA0PR12MB4430.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(376002)(136003)(346002)(366004)(396003)(86362001)(956004)(2616005)(2906002)(52116002)(16526019)(7696005)(4744005)(6486002)(36756003)(186003)(4326008)(478600001)(1076003)(66476007)(83380400001)(66946007)(8936002)(8676002)(26005)(316002)(5660300002)(6666004)(38350700002)(38100700002)(44832011)(66556008)(41533002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: r89GUDAkMeol12U7Id+Ua7o0DSNrJMMIjYmg3GFWVpme8+stbXNsk41vKwQE88SRzfsAZMENOiBeyQdLKWkeD3cvTKRQLktFnLPTAnOWARuHuywMFIALrRoJO9MsMv7YfrLsjAVDKDi3VO9IDbqQAq+02fMxWpVfowhqC8RWM2qQn4Lb+KqJQPE0p8u4h+Swq4NBmG+Wrp7jcxHDL5mC0Lj+wXWPGbi3KTsYpvo2nte2v7tpkJI+dWCf4Vsa+7YMPxqm9ENT9peDg11TVHbCJLjUHXYUonqmlcOkt7fz5Qudxex1r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0df5c0-d618-4759-b7c9-08d929f4cdab X-MS-Exchange-CrossTenant-AuthSource: SA0PR12MB4430.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2021 20:42:45.0102 (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: lYEX2bM6MZo5nS0ruBW3ZtEnlNW6gtKbsXpbng8cMwKyczRcQj/NAeS0qFDbWTmWb/R7n+6zN6U8UPYbiu57Tg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4382 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 5A3A2A0049EA X-Stat-Signature: skgmoqedpkya9f6dd66igp78pjpnm9on Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=bil8kyOD; dmarc=pass (policy=quarantine) header.from=amd.com; spf=pass (imf24.hostedemail.com: domain of Alex.Sierra@amd.com designates 40.107.220.87 as permitted sender) smtp.mailfrom=Alex.Sierra@amd.com X-HE-Tag: 1623098565-211954 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: <linux-mm.kvack.org> |
Series |
Support DEVICE_GENERIC memory in migrate_vma_*
|
expand
|
diff --git a/mm/memremap.c b/mm/memremap.c index 614b3d600e95..6c884e2542a9 100644 --- a/mm/memremap.c +++ b/mm/memremap.c @@ -438,7 +438,7 @@ struct dev_pagemap *get_dev_pagemap(unsigned long pfn, EXPORT_SYMBOL_GPL(get_dev_pagemap); #ifdef CONFIG_DEV_PAGEMAP_OPS -static void free_device_private_page(struct page *page) +static void free_device_page(struct page *page) { __ClearPageWaiters(page); @@ -477,7 +477,8 @@ void free_zone_device_page(struct page *page) wake_up_var(&page->_refcount); return; case MEMORY_DEVICE_PRIVATE: - free_device_private_page(page); + case MEMORY_DEVICE_GENERIC: + free_device_page(page); return; default: return;
Add MEMORY_DEVICE_GENERIC case to free_zone_device_page callback. Device generic type memory case is now able to free its pages properly. Signed-off-by: Alex Sierra <alex.sierra@amd.com> --- mm/memremap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)