Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3054643pxk; Tue, 15 Sep 2020 08:59:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzD9YaaPLGUM1nswehH7ODHFqY/vNiETpfPloNR2/qFVo7yBZueyH8rb1KX89pz01cftTXB X-Received: by 2002:a17:906:a45a:: with SMTP id cb26mr4964155ejb.387.1600185563528; Tue, 15 Sep 2020 08:59:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600185563; cv=none; d=google.com; s=arc-20160816; b=bFT6rcOdOKy7Bxjj1JLg+GPKergcii6bPT6gfjnHJcVDoJmQ5siVW+AJukTPrYs58B NdYpLYGZeZg2+2cPj/Xbt+XHKll7HhtYnl4JZpIUnMLemFQ7M+vRPKcmaWCn/jX+N38j CyabG/2h81PCTTDqOxbpssp5flBtd/S4nN9hyQVeFtX55Ljdxpd/yJQE/GPfnNLJBdXQ DozqXabScP4QsXHI1JeaVDkkvtqr0jXm6OjToeh/Kcs5fQmckCKu65XRq9L92UOOejRv qK2vVHIT2RQaozFxAr2kLWYNVSqHQNrgmzRQlOni+DxFYi8m6pOhdWm97f60TlclOSub W9/w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=jhf6yLptTYEHUoTCMmm0pLT8bnD4HjopGFob8vx8D34=; b=Mev4enpctfVAM+ztLFcOMugnNdTcALAcbN3qDlfU7zJmEDC7LGpSRJeMpXKtgChZG6 IgznEJurzaKMR6JRsE7bXRa29GHWEBmjaQ8qoHg+biLiGJt2GZsIBcrbuywin1L8kWBA G7z9GFoyrSH2E5z8pikvsUlUEVFGn9vLXqpy0MhehfPBwK8gAjKCU2oqgxdKiDKroizA 0h41I0W37Nbi0hnBYvNL2TBDGFhyrJHxKR8R4dWQy57mKvdujndSjtlFwo9Z/Q2X89YR NKF1+rqsEj4UdhZ52IK9Exw24h2MQNoPXQ9N3b6eMQ8vGPhw+/4LFNy3Zc6sxgapeFCh j6og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=r0H9WV05; 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 rl11si7873883ejb.701.2020.09.15.08.58.59; Tue, 15 Sep 2020 08:59:23 -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=r0H9WV05; 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 S1727036AbgIOPxx (ORCPT + 99 others); Tue, 15 Sep 2020 11:53:53 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:53714 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727390AbgIOPJG (ORCPT ); Tue, 15 Sep 2020 11:09:06 -0400 X-UUID: 0a065e74896c4de8b3203126e03023b7-20200915 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:Message-ID:Date:Subject:CC:To:From; bh=jhf6yLptTYEHUoTCMmm0pLT8bnD4HjopGFob8vx8D34=; b=r0H9WV05fqstPy5tnEhxxDtrkJe9nFEtQMIUMkfWVFxfl+s3E7CnRUaB3INALycochkhKlCEMT23bOrM93yVviQgLtRGtuCjIB84CHyI3anHbSPM2dTmwSeydXqxUbjB08vARaWhiIYlAyllm8tp46K9PpICE1jpvgepI8M8wfk=; X-UUID: 0a065e74896c4de8b3203126e03023b7-20200915 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.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 943115847; Tue, 15 Sep 2020 23:09:00 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 15 Sep 2020 23:08:59 +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; Tue, 15 Sep 2020 23:08:56 +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: Tue, 15 Sep 2020 23:08:55 +0800 Message-ID: <20200915150855.24825-1-phil.chang@mediatek.com> X-Mailer: git-send-email 2.18.0 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 QWxsb3dpbmcgdGhlIERNQTMyIHpvbmUgYmUgY29uZmlndXJhYmxlIGluIEFSTTY0IGJ1dCBhdCBt b3N0IDRHYi4NCg0KU2lnbmVkLW9mZi1ieTogQWxpeCBXdSA8YWxpeC53dUBtZWRpYXRlay5jb20+ DQpTaWduZWQtb2ZmLWJ5OiBZSiBDaGlhbmcgPHlqLmNoaWFuZ0BtZWRpYXRlay5jb20+DQpTaWd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