Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1667068pxa; Sun, 16 Aug 2020 06:54:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwx7O7VFmiDQuqpcJ+4biSqyGXWaewoDWJi9Eraob9bytAWzbmU/B2sQt0tF7oqE6MuDMSc X-Received: by 2002:a17:906:6696:: with SMTP id z22mr10630896ejo.159.1597586092031; Sun, 16 Aug 2020 06:54:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597586092; cv=none; d=google.com; s=arc-20160816; b=jS2kS/cAf8mS74hleM9A1GiFyl0JLRWavxysNooYOO7hPih1q4yLE1dhGCZjhmvfmN GKfjiLc7CMn4peXr/aQarUJYwMFznVWdJOxTK1y8OqtqMePyawdsj8ACpDT6b2IhlRye aCB5xzksS8ON8HXYXfZbAfUBlJRzVcrvEt+cEEOSVNhdS+wKY/5qk40JmDNWguWdIUJV P0acWfbRHNMqCqBQ60YScPmEVeTJ7soqlDXkm1vSoH3hM4ybeRUJPlmJOiaOuVYVkVTV genkQm2JPVqL8PzeFwK2lSAFX80CamL+Q6iiq1SmSSLvSIfe9/8dvwK6aHQleBg1oqHf b7bw== 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=tnCvM0ehaNufpV7eQrvwPu1Df01rjGmSfmECzsOP8Xk=; b=ecimy5ylUhLCN8KDDsxfXh0koj6FHxbF0rK0Q9C4hm49LNNe/1Bn0dM6HTRLX72XDf 0fcSuE/d2JBeyEeGdVFBqWHHtVGPs67GQU4FFs5YLX7GGEOvWwcDOyAWh443QI3o9VYZ zYzTECnBqzmT9R7QMfJrqomnNJ2gpHHt5Jb+utuiCv2qPLy1HB+kb7FHHCEWkriHIytV j224PCe8cE6NAeM2aS5iuNAcYBKWb1TJzO+WempUdcGWx2xgOGbs7d+2IvdPurfUUZhX cjaZ92L3ZALaNy8LMJR8yTDS7NyjRqGsrV6VBg0QEUJGr9lJviqHIGmZ2uQ23l5mFqYi CMrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=dPd2NzNq; 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 d5si9130312ejb.58.2020.08.16.06.53.55; Sun, 16 Aug 2020 06:54:52 -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=dPd2NzNq; 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 S1727946AbgHPMwc (ORCPT + 99 others); Sun, 16 Aug 2020 08:52:32 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:6858 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725843AbgHPMw3 (ORCPT ); Sun, 16 Aug 2020 08:52:29 -0400 X-UUID: 4a5fdee5eef341928f4ac76df0d9ce6f-20200816 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=tnCvM0ehaNufpV7eQrvwPu1Df01rjGmSfmECzsOP8Xk=; b=dPd2NzNqCk06Q6vL8lwQei8ZKDIU9IxQNa8kVF4YMFyBDSPKuNmzGsABCm86ZMRD8E4EKkWEh+y9AaVNzByiKWZp11vj5LEG9irkZQKS/UCw7u9EpjvzIuLly9ooFR1fvs/YAhjI9dIN0BogUk6GWJzu3Jhtpn6QBEN2Df/1oYI=; X-UUID: 4a5fdee5eef341928f4ac76df0d9ce6f-20200816 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 115726227; Sun, 16 Aug 2020 20:52:24 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 16 Aug 2020 20:52:23 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 16 Aug 2020 20:52:22 +0800 From: Phil Chang To: CC: , , , , , , Subject: Re: Re: [PATCH] ARM64: Setup DMA32 zone size by bootargs Date: Sun, 16 Aug 2020 20:50:34 +0800 Message-ID: <20200816125033.4565-1-phil.chang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: 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 Pj4gdGhpcyBwYXRjaCBhbGxvd2luZyB0aGUgYXJtNjQgRE1BIHpvbmUgYmUgY29uZmlndXJhYmxl Lg0KPj4gDQo+PiBTaWduZWQtb2ZmLWJ5OiBBbGl4IFd1IDxhbGl4Lnd1QG1lZGlhdGVrLmNvbT4N Cj4+IFNpZ25lZC1vZmYtYnk6IFlKIENoaWFuZyA8eWouY2hpYW5nQG1lZGlhdGVrLmNvbT4NCj4+ IFNpZ25lZC1vZmYtYnk6IFBoaWwgQ2hhbmcg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