Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp27210iob; Mon, 2 May 2022 12:10:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxctdJDimBtdjrrhUaqRk1oqjqW9v0NlwtM5tDD6lqiQ3jV97lkrkcAWrRsKzl84wY283Yz X-Received: by 2002:a17:903:2281:b0:15e:95f7:37d1 with SMTP id b1-20020a170903228100b0015e95f737d1mr10062479plh.18.1651518611440; Mon, 02 May 2022 12:10:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651518611; cv=none; d=google.com; s=arc-20160816; b=vDoMfdXmpnpu/sPg+Lln+8dPbXE9+vZvnfSUy78PkWxiPcOWyGvqt8vCe5Zf/ThWz5 BE2oG/Lw6ditl1Sm31eM9nlNetBTluHxu4tHdz0t2Zehy4Oek62Wm6A6p4wg/hldmmfh A/YzWQX8Qwv22pjMIh+iZ2sWeyBPVWVpoUbUlpI4YCD6axVAkrpfRnZ9fosH1F2wQKQP XK3qoetP3+pcdBm3YCn/hRseM/2o5SXUPmm/t1gurj/jWiimF66Z+o8pDFI958M1Y0R3 i/ZO9JUFx/zpHIDjY/APPgf2vBTt6ooZuodV0T25CsJxXHaDwJq3FpHfbm83u892XQ1O uKAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=wsQD7cCKeq5VvEbt2v9XBwe0yRxtCK5e+ZsraJH+HLw=; b=shpBf3Ujtgb7zF9VymsNvAxBlxL78QRdRqYOQaL8k9mgjKW+turtlCQKTSm5EHWO5x AcsCEG88dcDv0KqEahR/ztPZ4Q4xNsP2VHz+r7tncMfUssaMQjFWO2/LTIhg7Hj/GBqJ I9iDeq4vFllGPROV5ovDNK7saH/JylIZVLY7lQ2km+rlv6vV1K8qkub9f6zmwdQlYg6i 8bteUaMk51j3CQqpdvNK0zI02c41l694SzTDhAsb25JMDFU37S5ZE6RQ46rNse7Cvdij EloqK2UH1PX7tQWblT3Y4I6j9zw2hEd1ffII/uLl/kgAtylIHp9sXooy25ML+3T4cAFT /cmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n17-20020a637211000000b003a88c036f83si14323955pgc.855.2022.05.02.12.09.18; Mon, 02 May 2022 12:10:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357477AbiD2KYx (ORCPT + 99 others); Fri, 29 Apr 2022 06:24:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239081AbiD2KYu (ORCPT ); Fri, 29 Apr 2022 06:24:50 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EA1F66AD5 for ; Fri, 29 Apr 2022 03:21:33 -0700 (PDT) Received: from dggpemm500023.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4KqT5b0cMczfZfD; Fri, 29 Apr 2022 18:20:35 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500023.china.huawei.com (7.185.36.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 29 Apr 2022 18:21:31 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 29 Apr 2022 18:21:31 +0800 From: Kefeng Wang To: , , , , CC: , , , Kefeng Wang , Christoph Hellwig Subject: [PATCH v2 2/5] mm: ioremap: Setup phys_addr of struct vm_struct Date: Fri, 29 Apr 2022 18:32:22 +0800 Message-ID: <20220429103225.75121-3-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220429103225.75121-1-wangkefeng.wang@huawei.com> References: <20220429103225.75121-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Show physical address of each ioremap in /proc/vmallocinfo. Acked-by: Andrew Morton Reviewed-by: Christoph Hellwig Signed-off-by: Kefeng Wang --- mm/ioremap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/ioremap.c b/mm/ioremap.c index 1f9597fbcc07..7cb9996b0c12 100644 --- a/mm/ioremap.c +++ b/mm/ioremap.c @@ -32,6 +32,7 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size, unsigned long pro if (!area) return NULL; vaddr = (unsigned long)area->addr; + area->phys_addr = phys_addr; if (ioremap_page_range(vaddr, vaddr + size, phys_addr, __pgprot(prot))) { free_vm_area(area); -- 2.35.3