Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp493886pxk; Wed, 16 Sep 2020 09:08:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbeiNi4A5slX9Smm4NwCLdxNBOXiLYzw2RViAX9nI8n2xzR/7bzfw3XaN6wlZqGfuQeoEa X-Received: by 2002:a17:906:eb11:: with SMTP id mb17mr25666482ejb.255.1600272487305; Wed, 16 Sep 2020 09:08:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600272487; cv=none; d=google.com; s=arc-20160816; b=RF84iCrg67q6RdX7y8xYxY260HW/SPCF4VpyAoWoQil2Qgery90qfEBjG0UryLYjZp cT0DdIHjdKfh44F+KSRYoArRsb4j/OLocPVFg5d9/E108hqXSZ5tW/4nuueJ7Ue4tEOk mKskEXcjhRZs+QrCKph/EvRy1Rb3xTA4u2YFkeEJu+duphE2flTSYXMulHcC+Ru2tgWP bozRqulrNe9zUfz8RQrMfXgt18zHJFZIw5KjxBfkGoSIIwzk2TKqixpUs1kDpZjJugrF i4I1j10B6IwgUTXyfiAb13DrttS8mS6QmORogWoTQyuU4rzY8tiD4IWuyyHcKE+ZP7RA hfxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BkNbMfMCtHSTLPIRTXVMYgSBeI9NJYXxpzZromyW7mk=; b=DaZHDf7K32DKIuMd0YChMCZkg4c1BovoV5rOSkGLHmHejThXIPt716INf7j1MzQGG4 sMcleRp/frwvBN4vbZ9Oz+NYd+5H+p5AMo7vkLgT78FL3R0W2YjQi7PqcyDXt5j7RYp1 pH78pS7reGjIRlLxgeDA53sMkL+hDsfDCR+dWSz/UGvGOG591Vz7NpDJGuFHTkbambGB 2MS5zKgNSeWwqUxAdmAfEx0PXHgr++PEbL6c3HKX9woFlSXLB5AEOZ/lqqGZgvOCXdPn gyqWd6sN/uLr1V/k4V79MGxUmJt+DcOoJWd+O3jf38n3vzROrNaoQTI5L+QKTbPbKGRt Qn9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rqDzMdvM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr18si11981692ejb.45.2020.09.16.09.07.35; Wed, 16 Sep 2020 09:08:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@mediatek.com header.s=dk header.b=rqDzMdvM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726302AbgIPQF2 (ORCPT + 99 others); Wed, 16 Sep 2020 12:05:28 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:46719 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726371AbgIPP4Z (ORCPT ); Wed, 16 Sep 2020 11:56:25 -0400 X-UUID: d2110814cbb24b79a459f60e98f4e196-20200916 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=BkNbMfMCtHSTLPIRTXVMYgSBeI9NJYXxpzZromyW7mk=; b=rqDzMdvMvW33ALb+nABu0BKwEwQeTu7aWk4hXvWnRpZCs2ikdCQ5C1YNjrZmAFy9DoOyOaJdGUNPhGMATbPtuZQDYiSYCgXGBvHHX3HYJt3QgQHtVHP6Y036wbsALfnoJgiSiiiRvZxwD2OqMY2b/sL/VPEdtL5sq4bDHf2UY7A=; X-UUID: d2110814cbb24b79a459f60e98f4e196-20200916 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1687154270; Wed, 16 Sep 2020 21:33:30 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 16 Sep 2020 21:33:23 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 16 Sep 2020 21:33:24 +0800 From: Phil Chang To: CC: Jonathan Corbet , Catalin Marinas , Will Deacon , Mauro Carvalho Chehab , Mark Rutland , Anshuman Khandual , Phil Chang , YJ Chiang , Alix Wu , Mike Rapoport , , , Subject: [PATCH] [PATCH] ARM64: Setup DMA32 zone size by bootargs Date: Wed, 16 Sep 2020 21:33:24 +0800 Message-ID: <20200916133324.6280-1-phil.chang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200916083703.GA26411@infradead.org> References: <20200916083703.GA26411@infradead.org> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dGhpcyBwYXRjaCBhbGxvd2luZyB0aGUgRE1BMzIgem9uZSBiZSBjb25maWd1cmFibGUgaW4gQVJN NjQuDQpGb3Igc29tZSBkZXZpY2VzLCB0aGUgbWFpbiBtZW1vcnkgc3BsaXQ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