Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp346574pxu; Fri, 23 Oct 2020 02:16:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysbQR1G1a2C8mQL3sdRgHdMZZi1xpMYbm4DbhVcSV1CRnrQuInECCAaE6OrLYSEv4QC5k4 X-Received: by 2002:a05:6402:4cb:: with SMTP id n11mr1237889edw.296.1603444584580; Fri, 23 Oct 2020 02:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603444584; cv=none; d=google.com; s=arc-20160816; b=DYuWqu2iZb5FyrHOOzoK8WWZq6VsDGxY8aw2EI7R4l6ysv28hlGMOM4DF24OhO/Fp4 vhxJhotZe1tCRhrmh8a83O8adhIkJLhH2J/o+XSLvvDR2ha/7zSMQlSnmKU9KP6ImheK nWolWgGDD9Z2EMo0f7/ImD40nyKscwrDLl1kqJchJgaJpMn+V6bJ5fvpAXWPIHeMy3aM NhN0OtAXqQLJYRVXHix1eEv7hSvu1qombnGNBsPOzpsWwkHlbUdBuP31i2X4EDvfK6FD IbDlgxqoQgakKe9UokO1/w3IrDb1uHhb4wGy+P+ds5GSUNNVyVAT7xv1L0HjzHE5EG57 sRFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LFxbOOl0A2kIOyhu8/sycF3YNV75YE/93bSFD6Yl2wM=; b=t6SVh0oXnWp4P0u+tZZrdfbsltZwlPPPcFlNXUTwqabHDpvz+k0/R+j1GL7s6ejIrp HiVRCxyyGpXBdajpPYcq+2chg8ewgaLDSvP2db3kqREzFhp+eHNLLz64ohI/csIpM/Ft 2jxB8LkIMEoHS/UgDRgXtfxenCEuviS0hBE+Ow8JX50rN4GCga3V2pzXFyhTblxCO5k0 Mzj5vW1jKfTDttxYJIZe3CyUFw86bxdmqCXUbDjeQoBn1DEFRQXucD52bA27Za6IsWBd Q+yXRDrAdLgdwF7D3vOOyf/TOfDKJ6EvKnXgr9KD9lU/ScF19pq1NsRndHMt/qyVFP0c 5faA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=X0eZeene; 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 p2si202238edm.186.2020.10.23.02.16.01; Fri, 23 Oct 2020 02:16:24 -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=X0eZeene; 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 S461280AbgJWJPA (ORCPT + 99 others); Fri, 23 Oct 2020 05:15:00 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:47706 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S461185AbgJWJPA (ORCPT ); Fri, 23 Oct 2020 05:15:00 -0400 X-UUID: 735cd852d9564e198c892a295af2239c-20201023 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=LFxbOOl0A2kIOyhu8/sycF3YNV75YE/93bSFD6Yl2wM=; b=X0eZeenexabN2aWMP3jDCm4zRdZkllbZb5g29vC/tu6Byb7PliTqMmr7FjHlOw023xyF9NCNj1PdVLnvdXpGWSWNf1mdwQKhLAQGQAvrM2CV6eQakVS3vlSNovTrNUWRUoFU0BEUblpxjIgrGDx55UmUBtIhpNy05N8vrCA6WSM=; X-UUID: 735cd852d9564e198c892a295af2239c-20201023 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] 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 1917976240; Fri, 23 Oct 2020 17:14:56 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 23 Oct 2020 17:14:54 +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; Fri, 23 Oct 2020 17:14:54 +0800 From: Miles Chen To: Catalin Marinas , Russell King , Minchan Kim CC: , , , , Will Deacon , Steve Capper , Suren Baghdasaryan , Miles Chen Subject: [PATCH v2 3/4] arm: mm: introduce L_PTE_SPECIAL Date: Fri, 23 Oct 2020 17:14:36 +0800 Message-ID: <20201023091437.8225-4-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201023091437.8225-1-miles.chen@mediatek.com> References: <20201023091437.8225-1-miles.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogTWluY2hhbiBLaW0gPG1pbmNoYW5Aa2VybmVsLm9yZz4NCg0KVGhpcyBwYXRjaCBpbnRy b2R1Y2VzIExfUFRFX1NQRUNJQUwgYW5kIHB0ZSBmdW5jdGlvbnMgZm9yIHN1cHBvcnRpbmcNCmdl dF91c2VyX3BhZ2VzX2Zhc3QuDQoNCkNjOiB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