Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp368509pxt; Wed, 11 Aug 2021 23:53:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8p6uvBLdq4AO9RuCxIN61dGEKsqaexnTphvTPzLGIEhK9Jjw2a5zQEDkdZNN42lQeSuW9 X-Received: by 2002:aa7:da19:: with SMTP id r25mr3707845eds.247.1628751183065; Wed, 11 Aug 2021 23:53:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628751183; cv=pass; d=google.com; s=arc-20160816; b=C29XC97V7QrB6uzfhafm8mV7o/iVte7tKFberIw+3rqnMFTql7c5Dvy0j0GJxl1paZ AaanVAO1FobO9liiCf0hTX2HVUmRIagkygHep4rdkx0cCaW4/yDRP7Ws6K/FT9C+Cqli tHHUlBxc2wnOcw1ry37SZ1jS7z+H+RY8b2b2cObxdgYm/fGSvY/henv6mbrAvvG9yPgv VrL7FOfDGzQI69H1wbieN36z0A0JYnNuuQBAFVdpie3eEn2d8AC2APUM2vbq08bJHfSd PvVADgptWwwwBf6+1vD8Qb6CHSoj7SzFcJz7OEZppS1m23zmD2vBCMb2z6ZGKqkCjI3D uKOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sQqct4y+lc691CTi5Wn+sZG3/jsWoy6WSYX4uljx2Ro=; b=eRQ7JSLY/ngp7GZIAvcxp0qJ0UsvvCyPaHTQasOzKUPU6nc8YSKPSCx3DakTgb3j4v RHqBKs5rchmR+eZyBnLJH6hewQ8itoqQtZgAIDN9PvJ3RbAWwJqpwVgOZQPC1F5WOFaE 6wRU4Yx6ZmHKsHg5hRq4151zwGVhGt9/pxgU1khuFaD0n/u+f4qyvWt6jD204S1V98+k gIovKvAj3MuQxNxTNnyDGlTUZP5FfWRY+dvhZRH+cp5IPS35kBqPEYlfhnMLbqjxaQiC hvv+7mIMcB3kl46st3mQLPLTvyYVQX9aJYVQg/1jN5LDjc7UCuMUmJakhjgDfJJZcpIO L6DQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=p4GPBHsD; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co10si1840091edb.200.2021.08.11.23.52.32; Wed, 11 Aug 2021 23:53:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=p4GPBHsD; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234436AbhHLGbx (ORCPT + 99 others); Thu, 12 Aug 2021 02:31:53 -0400 Received: from mail-dm6nam11on2075.outbound.protection.outlook.com ([40.107.223.75]:64897 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230370AbhHLGbr (ORCPT ); Thu, 12 Aug 2021 02:31:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=grivRs59TKQ6upshOKzaAGNYjqWUtgdQtG9x5x/urH+Vxfw6LKCeyfr3EU81kbw4SJq7KEEpwMTyFU1HhchOtLY7+Ebv3JsNCvbrf38/C3bq7VmetoeUtGx47l6iz4X/0/4jmlfdLawpL6TAg5Ajs9KD3/Qww/Z9ZWRRI5EpM63xniCZGqHqGGRo46NcgAmobhsR7nG6/vNWBAIOJmqPWgdP6z4WJWdDkjdN+dD0LQ6/z67RPsc40f3ThGJZWx+Lj36tRSHIBbml5m04LHvoWHSS55SZyLUO2wS++ER8sfRBuMBqQWFvqdSH8WGNq+a6aztADTec2lbx4ng5gb9k4A== 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=sQqct4y+lc691CTi5Wn+sZG3/jsWoy6WSYX4uljx2Ro=; b=TxiqcCHUd6oBq0OKOciljZAtieez33C1SjZOsx4FQwzuoxMUbttCPXwvQBDeIivKgyaoqhM2oS8dB4w0dZOTX+KhZiyo5AYHtQIKQJi/m+jxoNZoibLjD9C4o2H4mvWwKeNcgCyDHohdG9yLaxH3Io1OLPGqQylfvyYUTGt98ieNUtH5KeuGNb2kHs3aGRCxRt2V0i07H6fjv3X1pxOCOIgL8B4PWY9aKm+XOTcQ6FznDoe61uWW00Pq/Lfzjx9jy3YT0HFk6mcAC/uAkJDKLbhD7/O4XQ7clf+PrZxGEQmRO2Bk4+bpPBrDqDRyMa3pqGStGnqrpj0zRUp/pFygnA== 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=sQqct4y+lc691CTi5Wn+sZG3/jsWoy6WSYX4uljx2Ro=; b=p4GPBHsD3a7a3KugzgQnPRn9JJJGF5HTFHmc1hJgKgpE1TXtzkRu4ygXlsAEDqsUdOlIsvOyB/LUeSSfyMGsGI0LlfpyuTYHDiJzgeZcEga7wz6y40OPVTvCTzPuwGmM7ECC7QFZGlMIGZ3QKSReVW35QnqEVaYB9pMWnk5GUvI= Authentication-Results: linux-foundation.org; dkim=none (message not signed) header.d=none;linux-foundation.org; dmarc=none action=none header.from=amd.com; Received: from SA0PR12MB4430.namprd12.prod.outlook.com (2603:10b6:806:70::20) by SN1PR12MB2448.namprd12.prod.outlook.com (2603:10b6:802:28::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.25; Thu, 12 Aug 2021 06:31:21 +0000 Received: from SA0PR12MB4430.namprd12.prod.outlook.com ([fe80::e828:5445:a5aa:94cb]) by SA0PR12MB4430.namprd12.prod.outlook.com ([fe80::e828:5445:a5aa:94cb%5]) with mapi id 15.20.4415.016; Thu, 12 Aug 2021 06:31:21 +0000 From: Alex Sierra 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 v5 03/13] kernel: resource: lookup_resource as exported symbol Date: Thu, 12 Aug 2021 01:30:50 -0500 Message-Id: <20210812063100.31997-4-alex.sierra@amd.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210812063100.31997-1-alex.sierra@amd.com> References: <20210812063100.31997-1-alex.sierra@amd.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SN7PR18CA0026.namprd18.prod.outlook.com (2603:10b6:806:f3::18) 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 SN7PR18CA0026.namprd18.prod.outlook.com (2603:10b6:806:f3::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.17 via Frontend Transport; Thu, 12 Aug 2021 06:31:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d2415ccb-8831-4457-4a8c-08d95d5accc2 X-MS-TrafficTypeDiagnostic: SN1PR12MB2448: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: 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: dRNlp0Dj4Pnl91ya9J/qTvnW8v+rWfYsdTUujIBUyp1VqfQBo3VSzPYCLIXnA8j6RMTGvMJ5pTgHO9R/wycTmmwcCwhiJ3DfchCn5lsjF8xiQXmzf8K7DjWAEt+ovVYPNxVC/v0oxxX1zUMmNr4DNsahXYM6uyxJjb0nZRmnzHXizQDrdZMR6ITdTXtIxGyMvetikVfv0u0IwSFpfEiMWJy6KQ/3DPCEenIzJB9YV4zw94CF95oHEqSei7cJH+pNIqAuK4etdFKflNucp3vN36/ejz6nhyMj4060RwT9UUU+uenU31ixay6xzABpyuEHBC4eUPe8RdNRjanRlOt5prb5pMu6h1FSIn+EeY4YxnRTopGlIt7q5PWxMyuw9L/za6wBoh8DXRpOkHf3stFK6eMlQMBRKl975GwgG+MqwrB9IxXI1NtpLK6hy/irfvmZQhbgt2KIpiO2hWHYkkFfo8cFrV4PGhzyp0tbnBP4NfpifhU7sR5ivIlbiZaouTCI4p/L9hRWatsRd+KTHZpjCEoqLZp124qg6Uncb1HoRnNGnZJxZPQV/I8ZK4ru0IxvVmKG2EA1HbPwlAiazEjUknOPmqfqjbhLRhKUftVLqJCTNSrWxttA9a17FzXlXC8essP6ueLSmltmUp90pXeq65mRQxWP6s1Hwdglb+LnukLCsCCW0KkXV20O71MB0DRxe1g/mqMmeqJECKeA75RA/w== 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)(376002)(39860400002)(396003)(366004)(136003)(346002)(38350700002)(6666004)(186003)(66556008)(66946007)(2616005)(478600001)(83380400001)(38100700002)(8676002)(26005)(44832011)(2906002)(66476007)(956004)(52116002)(7416002)(1076003)(4326008)(4744005)(86362001)(36756003)(6486002)(8936002)(5660300002)(316002)(7696005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?jBnFbCgrApDLP5z+dpQ536Cp55kj/OrJQZuNOZLYgbJTFn9i07rHUOZg55nC?= =?us-ascii?Q?inbf1Lo99OOAU4XOW++wvyHJ2KabgElHwMVTadfblHqQAOH7JAUkV7Y1BfQt?= =?us-ascii?Q?kHgMCNiB6FJn++tdG1jbeVkWtYESfuy84jv5JQig3z+0ORHt0U1Rw6YHw6I8?= =?us-ascii?Q?GFYRAa1DB5uDstf02JLyJARv47JVcTtdCbM7udMzvKV5yIZeZxEB+QvMQmyp?= =?us-ascii?Q?gor7vZMiR+jfskJ2MzzOI9xEGNCWyI4XbOiExsEFb1bG1FsKwk6XjkZS9+Lm?= =?us-ascii?Q?mPr/j00kcPJVdkaes9gKJDzA/h5aP9FhfliOHH5qy+9NALkWodHCtx76M6Ye?= =?us-ascii?Q?y8MUDspSghQdVKlkNdAbYmjNNR7B7Z+vM/L8ls7jexY7crm58ZF+Wqt9kgyh?= =?us-ascii?Q?VBJ9oor+0DIymEt0Fj7v618oS059KWMr0LNEfw9CqZ2bs6rybHyvGAjncjm2?= =?us-ascii?Q?/pTNGV6FryHJ9CUaU52rDERr4XbpN4BJZyUPdY0AqkZwXRKRy0r7vy+JkR6u?= =?us-ascii?Q?qKy3ZF4w6rU+m3jx48JcNASLL13B894zVLDgzGgpox+KVOIgRgAlqs+T4cA4?= =?us-ascii?Q?1SAJViiYL4KMSEvz5WPW4FhvuVKoQIDlNjTLy0Lu8iZWZUvRTN1K8KQI4t3D?= =?us-ascii?Q?W01RnOU54ADZ+cmfxdnT+CtWQOO43FHmT47ca/2lSbMsDoy9Hzu7/6TQ4jSc?= =?us-ascii?Q?bR+KwY6yKCd8te78WehfQXEA8qjWGDjLL9J7rW61ANXjSiBkysS6NZrVx/TU?= =?us-ascii?Q?5fBQtWw7EAEk6CXUJPvQOrRj/5GGOAiIB53W8541kmX3D9rcHEB++CTR/EVl?= =?us-ascii?Q?DpZy5Xt90C3Lk+109BH1MYWsCfhc0q8hX4YJYbypyaEsISRhy2FXN/ZTLtb1?= =?us-ascii?Q?sBPZDSlpDI3o9o+VAbNEQZ0DJ9t8EM98N9vM4zQMDkmCzddMTOTQVVHx+xyX?= =?us-ascii?Q?jqRoXCDfkKfWCRoXEZ82rOuNxAzq3afcQq7ZERgnbL2gPYGbAW5fAEUReR8Y?= =?us-ascii?Q?tVsMiHqNlqB4OY5L95Ou5XlDZkcnMNX8O7kDkB+iOrvVQxUfMfEM5/IXkEbK?= =?us-ascii?Q?BbnOSmeQSru8KfJA7oovBnjXpq9XZyTbfqoi92Uj/NE0QeH1KnSTw98Alzpt?= =?us-ascii?Q?dewdWuX2eDgAoCqF+T4hfyrtrvZeAVasbf+5aNlXZtQNhItGtqUTNDaBWfnO?= =?us-ascii?Q?+GNxdOHXj/a8wXnuspOxeXniR23ahZGeF+TeT/Fn4qBDTTMAvy5AlZyKzFca?= =?us-ascii?Q?kzTJEJVvxu2F1rruJvEOXdcf5k34cmaf8dX2qZxDyHRz6AmIZCaI3zQzfO+K?= =?us-ascii?Q?k48Txk47DnAcfZQDL+yCHIZW?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: d2415ccb-8831-4457-4a8c-08d95d5accc2 X-MS-Exchange-CrossTenant-AuthSource: SA0PR12MB4430.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2021 06:31:21.4739 (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: aUjX4hIj9YRoepM8Y1Eb+16S3kALh1IdrFzwQx0SZkVEdLaFc0KrmcKnG7uhudBzo8BDZ3dQYddp4ZeH97oH1w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2448 Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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 --- kernel/resource.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/resource.c b/kernel/resource.c index 627e61b0c124..2d4abd395c73 100644 --- a/kernel/resource.c +++ b/kernel/resource.c @@ -783,6 +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, -- 2.32.0