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=-6.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 784BDC43461 for ; Thu, 17 Sep 2020 01:38:18 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E58262076C for ; Thu, 17 Sep 2020 01:38:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JU+j5fdM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E58262076C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=hisilicon.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PYL6/ui/JNDxei1GgsCZUcgE/ddVDymSTVPBCbBRkOw=; b=JU+j5fdMdoXNHlZHqA1/fMYDO or24h+JYGdGfqnS67Q5m4zSTvtFbkDRbcdN7gFrJTlfCzP94PbjgvWgevOzAzsuyg6wh+IljYgRyS wkA+q3oTx73TNCgwfj9pV2n4O4jYDAAc2pW3YSJwf8j3rGmOtVcidWShDSzWA98Rw5meuUHFimZHE zKni+H+LiCyp2Kl0IpHxtEL01siUKNCiagJkcqdTuSD7ooscRhse+M6QophoihL9D5LzJrZ0JYHQE eQmxZb0qFBOUCScjUytUEGs9Yjee7TqWuMFytuXgu1tRth++/zHJVM0Qyoc4X5iTT4vYUMx2gu+zQ Tbwq2hnGA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIiqC-0000b4-Vr; Thu, 17 Sep 2020 01:36:05 +0000 Received: from szxga03-in.huawei.com ([45.249.212.189] helo=huawei.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIiq9-0000SC-81 for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2020 01:36:02 +0000 Received: from DGGEMM403-HUB.china.huawei.com (unknown [172.30.72.57]) by Forcepoint Email with ESMTP id 6F22155F3772399C819D; Thu, 17 Sep 2020 09:35:55 +0800 (CST) Received: from dggemi760-chm.china.huawei.com (10.1.198.146) by DGGEMM403-HUB.china.huawei.com (10.3.20.211) with Microsoft SMTP Server (TLS) id 14.3.487.0; Thu, 17 Sep 2020 09:35:55 +0800 Received: from dggemi761-chm.china.huawei.com (10.1.198.147) by dggemi760-chm.china.huawei.com (10.1.198.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Thu, 17 Sep 2020 09:35:54 +0800 Received: from dggemi761-chm.china.huawei.com ([10.9.49.202]) by dggemi761-chm.china.huawei.com ([10.9.49.202]) with mapi id 15.01.1913.007; Thu, 17 Sep 2020 09:35:54 +0800 From: "Song Bao Hua (Barry Song)" To: Mike Kravetz , Nick Desaulniers Subject: RE: arm64: mm: move dma_contiguous_reserve() to be after paging_init() Thread-Topic: arm64: mm: move dma_contiguous_reserve() to be after paging_init() Thread-Index: AQHWjIg9Vw4ucv/7MkmF/biUUWKaD6lrc2wAgACWRjA= Date: Thu, 17 Sep 2020 01:35:54 +0000 Message-ID: <36697ee55a7348d382c410d776fefc74@hisilicon.com> References: <20200916085933.25220-1-song.bao.hua@hisilicon.com> <20200917001934.2793370-1-ndesaulniers@google.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.126.202.195] MIME-Version: 1.0 X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200916_213601_569372_020D8AB7 X-CRM114-Status: GOOD ( 15.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "sfr@canb.auug.org.au" , "clang-built-linux@googlegroups.com" , Linuxarm , "ardb@kernel.org" , "linux-mm@kvack.org" , "akpm@linux-foundation.org" , "will@kernel.org" , "guro@fb.com" , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > -----Original Message----- > From: Mike Kravetz [mailto:mike.kravetz@oracle.com] > Sent: Thursday, September 17, 2020 12:27 PM > To: Nick Desaulniers ; Song Bao Hua (Barry Song) > > Cc: akpm@linux-foundation.org; guro@fb.com; > linux-arm-kernel@lists.infradead.org; linux-mm@kvack.org; Linuxarm > ; sfr@canb.auug.org.au; will@kernel.org; > ardb@kernel.org; clang-built-linux@googlegroups.com > Subject: Re: arm64: mm: move dma_contiguous_reserve() to be after > paging_init() > > On 9/16/20 5:19 PM, Nick Desaulniers wrote: > > It looks like that change referenced may also break arm32 boots with > > today's next? > > > > The following allows me to boot, but I have no idea if it's incorrect or not. > > Thanks Nick, > > The referenced commit was pulled from Andrew's tree and subsequent > versions of next. > > I'm looking into other architectures as this is dependent on where in arch > specific boot process first cma call is made. Hopefully, there is a some way to > do this without potentially touching a bunch of arch code. The default cma is probably not the only who has been broken. I think the patch to enable the dynamic number of cma areas has also broken fdt-based CMA. For example, early_init_fdt_scan_reserved_mem() is called before paging_init() in arm64. Considering many arch are calling early_init_fdt_scan_reserved_mem(), it seems using memblock_alloc() for cma_area will require lots of test on different platforms. 1. arc 2.arm 3.arm64 4.csky 5.h8300 6.mips 7.nsd32 8.nios32 9.openrise 10.powerpc 11.riscv 12.sh 13.xtensa > -- > Mike Kravetz Thanks Barry _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel