Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2100336pxa; Mon, 3 Aug 2020 07:30:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKfTU32SgvaxAWsf/vdThulpfrX9m+v6KzwSiTetF2zJdqU/IkU1HlWyRpC+eAIme+S/Tg X-Received: by 2002:a17:906:b2d0:: with SMTP id cf16mr16725124ejb.476.1596465029003; Mon, 03 Aug 2020 07:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596465028; cv=none; d=google.com; s=arc-20160816; b=D831gehOunejes8k46mH/9x/hr96kn2BfnadAnmm89tOWcfgwHmpyOu/zPum1rIFAf VKx3PvLpeO79BLTriDbj7MDtyvGGxDMMunc3hfb2VFgRavdXglKQ2aU2yNMmZy7OpFFR VTKZzLf/z6lmBH8UlXCRRpxO9npkc2dUjhEO1t2I5+k2k2SHMkrikXW/3/oxf3joxr38 FYm64u/U0zg9W1Ylytwug6bJk1xnogBUUTP4uus4Mir5n2oC+WTxIhE4z5/D8/idUM2b eJEQMmgqm/SKvv6ycGp7qt136P5aDTIf9OQDpiKQhk/8nDqhznxeDMGrKIysBFL5i5e+ mbzQ== 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=nsGyLTdk49+hu3aL4BVtR/HEa0bcGywBTHa+PUZ1YqE=; b=Teezi29/TDeRa3Yy47XikggHit6n6Q2xSV8htooCBgAgOJ652o9S5wapq7gqjBWYH7 mn+VW+Op3YKyURg1ZUHM89njI0WKrfARS6Y4N3KkfJabFDIF4869hN2r5MsDXmjOb2Vh DFMrpogwRTQTjifWSqNc/b8OVUWZ9ZGHDsn4dtvTEQLWUsEnZObAe0c3ze7CVrtJVUhT 4AtqQ+3AQdAovUOuCneWdWnNGFtIQqucxqTAEdChveiJlXDQTMd/K4E0X8pjoMuUm265 htZ0bw2cfFb34/mlWVXrVPJosD9OtChCkUXtl4dNtfYJYRKh2Su9aLcok5MLm01Ot+8w ec3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=fFYFvccD; 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 kq1si9615116ejb.246.2020.08.03.07.30.05; Mon, 03 Aug 2020 07:30:28 -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=fFYFvccD; 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 S1727812AbgHCO1A (ORCPT + 99 others); Mon, 3 Aug 2020 10:27:00 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:22471 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726358AbgHCO05 (ORCPT ); Mon, 3 Aug 2020 10:26:57 -0400 X-UUID: 7193e7c75086493c8a7fb88a8c40c227-20200803 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=nsGyLTdk49+hu3aL4BVtR/HEa0bcGywBTHa+PUZ1YqE=; b=fFYFvccDWrq7Lije/hVzXNWnFd6YGcDWHPY0/P2f8vXN3JtHTBA5DRvH6VxVpr6/m7sKXczUtWUb+oJfZS9g0PFeL0hh4YmGDgWCtf3Hj3nEHWOwcVh1aaAWCjI3SlnE7JLd3QICaB+qjrFap0+uN+xXQfQaB6HvG8Hjan36fJ8=; X-UUID: 7193e7c75086493c8a7fb88a8c40c227-20200803 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 208211624; Mon, 03 Aug 2020 22:26:52 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 3 Aug 2020 22:26:50 +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; Mon, 3 Aug 2020 22:26:49 +0800 From: Phil Chang To: CC: Jonathan Corbet , Catalin Marinas , Will Deacon , Andrew Morton , "Paul E . McKenney" , Steve Capper , Mark Rutland , Phil Chang , Alix Wu , YJ Chiang , , , Subject: [PATCH] ARM64: Setup DMA32 zone size by bootargs Date: Mon, 3 Aug 2020 22:26:47 +0800 Message-ID: <20200803142647.16737-1-phil.chang@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 62935B82062BCF856BA87E395D17F26700271321499917426F984D3EA0F62E462000:8 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 dGhpcyBwYXRjaCBhbGxvd2luZyB0aGUgYXJtNjQgRE1BIHpvbmUgYmUgY29uZmlndXJhYmxlLg0K DQpTaWduZWQtb2ZmLWJ5OiBBbGl4IFd1IDxhbGl4Lnd1QG1lZGlhdGVrLmNvbT4NClNpZ25lZC1v ZmYtYnk6IFlKIENoaWFuZyA8eWouY2hpYW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