Message ID | 20210717192135.9030-4-alex.sierra@amd.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=bdLU=MJ=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=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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=ham 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 367ADC636CD for <linux-mm@archiver.kernel.org>; Sat, 17 Jul 2021 19:22:00 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B175D6115C for <linux-mm@archiver.kernel.org>; Sat, 17 Jul 2021 19:21:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B175D6115C 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 EFA3F8D00EC; Sat, 17 Jul 2021 15:21:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EA4F98D00F6; Sat, 17 Jul 2021 15:21:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CF9C78D00EC; Sat, 17 Jul 2021 15:21:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0194.hostedemail.com [216.40.44.194]) by kanga.kvack.org (Postfix) with ESMTP id AB6F08D00F5 for <linux-mm@kvack.org>; Sat, 17 Jul 2021 15:21:58 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 62C0B235A5 for <linux-mm@kvack.org>; Sat, 17 Jul 2021 19:21:57 +0000 (UTC) X-FDA: 78373049874.27.975BB3D Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2088.outbound.protection.outlook.com [40.107.212.88]) by imf26.hostedemail.com (Postfix) with ESMTP id C4A352001713 for <linux-mm@kvack.org>; Sat, 17 Jul 2021 19:21:56 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PAzu27loPkSlPJH3bEN3cFJWEFWLTJs29IHZ/QHMf/rCS+oy2ncLVeBMVLzAteB8yEaVJQZhH//eTSn/Q2d8/LphwI3ImIBAff42JUyzSduWD2eiulhdW8Qm60OBTqDxW/BrW0wbLlqGFWWgMdaiAqoLOiY6AcvKfbTBQ2se9g2Rx48s2Edawcaj2qqHwpAm5bichbmWwTcD573YV685PHfm+cs/E7oaqy5vl93QbkGvQd2sE8D6XgVuskVR1q5/46kxSHmKS7GWh+sTPfd1EYygM/bHmCPoOXhUgM9/AjNSO3Y2XYSHq5sJC6YqJmgex6OEDzdI1XRDw1KGTKd3aQ== 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=vr2ksBJta8l7uq6fRDppZyPAgRDq7rGlCaJ8JfjVcec=; b=Lxkmxsi23mdzlbDmyXd+M37sKul71ygni2BF+u6Bn2X7q24bogOD+2DLz385ZTBxtHWYQSngN5E0QuedU4N29rqwoXRvq4GgLYRk7bfTE16sdHNZvFJMYG5Ix/3oCQxKCGZmHApDHFOgKpVyuyxd+eADWChJjuGagI84y13O15C6wc1yMm6MO55qpYX+bMEMtmxzkRCoRDOs6q/W+8nBK25JCvLw0P1FYfN5Prbgg/qfJ6I26ZF9Zr4HfLGICuWtr339cZUOpNfnR9dYx5pBDZejmnBUoWfAq5NE1AVwTR+4RuCuWiLNSN4lFXkkp47pRvTXrdw1YDT8NbG2YCdm0w== 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=vr2ksBJta8l7uq6fRDppZyPAgRDq7rGlCaJ8JfjVcec=; b=cAJAVz3Yo4V+I+L7tKW0d6+Am7dyZtoidPembVrhqFNJb4FMq6iU8vg5SrKz+jMJj5ATSzZFhUKJAIrrdeZElcbKqqiGRrVTvLeGRaiJK3rkayWoDqcuntiTraFxhd5JIsT17jcEasVudicbExAGkhqKlrdBr7BaAatB8tu3gIY= Received: from SA0PR12MB4430.namprd12.prod.outlook.com (2603:10b6:806:70::20) by SN6PR12MB4670.namprd12.prod.outlook.com (2603:10b6:805:11::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.22; Sat, 17 Jul 2021 19:21:55 +0000 Received: from SA0PR12MB4430.namprd12.prod.outlook.com ([fe80::d0d3:a97e:6b7f:ab39]) by SA0PR12MB4430.namprd12.prod.outlook.com ([fe80::d0d3:a97e:6b7f:ab39%7]) with mapi id 15.20.4331.029; Sat, 17 Jul 2021 19:21:55 +0000 From: Alex Sierra <alex.sierra@amd.com> To: akpm@linux-foundation.org, Felix.Kuehling@amd.com, linux-mm@kvack.org, rcampbell@nvidia.com, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, hch@lst.de, jgg@nvidia.com, jglisse@redhat.com Subject: [PATCH v4 03/13] kernel: resource: lookup_resource as exported symbol Date: Sat, 17 Jul 2021 14:21:25 -0500 Message-Id: <20210717192135.9030-4-alex.sierra@amd.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210717192135.9030-1-alex.sierra@amd.com> References: <20210717192135.9030-1-alex.sierra@amd.com> Content-Type: text/plain X-ClientProxiedBy: SN4PR0201CA0067.namprd02.prod.outlook.com (2603:10b6:803:20::29) 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 SN4PR0201CA0067.namprd02.prod.outlook.com (2603:10b6:803:20::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.22 via Frontend Transport; Sat, 17 Jul 2021 19:21:47 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a55bbd7a-32e6-485a-a134-08d949581f29 X-MS-TrafficTypeDiagnostic: SN6PR12MB4670: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <SN6PR12MB467094D1958A5B755ACFC0B6FD109@SN6PR12MB4670.namprd12.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ys50DDNocS/FyRk/bC/1wv7zu1EBEl9cqhKE8HpHm5HDO3dAmaEdqy2OQ33P1Qh3iHlAawQ27c+cAwmcMZzIPpmy18rNba74YYwDK9mqHOnSjllKxRcgCz4vzlKYUPs6DWbLRbsrM8iGA0EzQvAJDpWkQfRxhV4kUPNdt0MyeTS0MrlboyDCBoqNFt/NXoDNoKjfQqRRPCNmdk2dl4Ajkymogftu3CBIaJlQjDH1Xf2ksj6dc2SgrF43bX/iItytzmVKANhwfylFAJ1cD1SW7txwVMkEhMXwAGGPSlKsni8g8Lptxkp9hhJzeiQDgolmr7PiETAQH9DI13CBmZ4zGcOPYwSwhYzz9vyDW8yZ/3nO7blmBjt9fGv341GspVLNwjyYQTvb5aqHyjOKuEtoyWqodLBrbklQN29cRyuXLZebzOFWF6GhxE/g/NpQWUmIuvEijApuGdqkHgAGyI7Ea4Vrlwq4GznFvbQPNwA1g+BLjiZF2lzJ9ELHENkEaUBzrSmXThTsyfMn9Ahtg8b8EBzcIoQljEwe9RPDhusbYSCcdjw0fakuQkMt89+cVoWyFQjercLii8TLNRJQdNt6HkriPeg7hS/yIwHqxF0vcjGUlSrpailIEI/Y4gp8K0D6I1c75X8lxmSlS9OLIH70XlQL9kwOX9SeDgY38A7q5Q9PDkhtUlYlOix4HwuCvQ14yCCE9EINc5eiOTX3IOUBxA== 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)(366004)(52116002)(2616005)(26005)(5660300002)(2906002)(7696005)(7416002)(1076003)(4326008)(6486002)(6666004)(186003)(8676002)(4744005)(956004)(66946007)(86362001)(316002)(36756003)(44832011)(8936002)(38350700002)(38100700002)(66476007)(83380400001)(508600001)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dKPxX61qhxBC2Z8tjRViJZWe/Nk8URmLMGKMgwu70S/grkbXyNByZzy2h2Vbng+eQO0gbisPQ09YBf/MLY4IoAcQEkbpL2LRTfPj64hbx0etBZ6Lve0yNen+3AqJteL2UKJUKwx2w/GLHjNg7Uwi0JYSfPE6JG8ZgdNXEbgHlbA0Pg6EmXsa0SMFmTnNx26fGYTtReoUu9t2ME4EF/SbfAWhm36VCmzZF+Hwi5GWx2SEoVR7z+J+HpVF/rJS76kpRr+6fmfNG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8rErB1FLXFpY5 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: a55bbd7a-32e6-485a-a134-08d949581f29 X-MS-Exchange-CrossTenant-AuthSource: SA0PR12MB4430.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2021 19:21:47.9801 (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: vIFs0G4bk6mMasObfMBbRMcmLW6P3+tOdhllSRBgnkCE18CiR4Lsabng9+svC8oV86mrlrg49f6NBVergYCZlA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB4670 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: C4A352001713 X-Stat-Signature: ayq3uoyhmj78cgkheitrj44m6cmwh7ep Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=cAJAVz3Y; spf=pass (imf26.hostedemail.com: domain of Alex.Sierra@amd.com designates 40.107.212.88 as permitted sender) smtp.mailfrom=Alex.Sierra@amd.com; dmarc=pass (policy=quarantine) header.from=amd.com X-HE-Tag: 1626549716-705999 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: <linux-mm.kvack.org> |
Series |
Support DEVICE_GENERIC memory in migrate_vma_*
|
expand
|
On Sat, Jul 17, 2021 at 02:21:25PM -0500, Alex Sierra wrote: > return res; > } > - > +EXPORT_SYMBOL_GPL(lookup_resource); > /* Please keep this empty line (after the EXPORT_SYMBOL).
diff --git a/kernel/resource.c b/kernel/resource.c index 627e61b0c124..269489bb7097 100644 --- a/kernel/resource.c +++ b/kernel/resource.c @@ -783,7 +783,7 @@ struct resource *lookup_resource(struct resource *root, resource_size_t start) return res; } - +EXPORT_SYMBOL_GPL(lookup_resource); /* * Insert a resource into the resource tree. If successful, return NULL, * otherwise return the conflicting resource (compare to __request_resource())
The AMD architecture for the Frontier supercomputer will have device memory which can be coherently accessed by the CPU. The system BIOS advertises this memory as SPM (special purpose memory) in the UEFI system address map. The AMDGPU driver needs to be able to lookup this resource in order to claim it as MEMORY_DEVICE_GENERIC using devm_memremap_pages. Signed-off-by: Alex Sierra <alex.sierra@amd.com> --- kernel/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)