Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp964924ybh; Wed, 22 Jul 2020 18:45:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiU3N6QTigswvjYTDFi3lrO9u25E+qq8yIZGM/nb+QbAUyKskxy0YK0pcFoAtPZdSHGGvR X-Received: by 2002:a17:906:1394:: with SMTP id f20mr2290868ejc.114.1595468726113; Wed, 22 Jul 2020 18:45:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595468726; cv=none; d=google.com; s=arc-20160816; b=T/aq9A8i69XXsMBGpgH/CInWSZR0ZwhtR2Yjr4YV0j22vh5lqRG2gnRCQhb2f/J9cd hhfp8M3O+j9niGsN4VaITMbt3V9NimizH8pNPiGRNmDlJqI920wW1aBKBW/Yq5BBKO0Y sG3y77JI/OYiAzFI3MeUi7SQhC3GUoqDP2hA/mzY3QZr+dUnGJzdEVTwUW1iSgq1R5gh i//qhZPXSg55oof3lW6U8K5jZEtydcn17Cl+on7qLf9y/MpE+I4D1ioPLuYLCYrzK+8K fyBAdAYPZHTwH1hZhXzlWvMfyYzneAw+o4XGSW+71X1MQgn5PfHGBM3Sz1C/lumiSDv6 iI4A== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=cKmMFK1O+h5dPYD9MsyI3StTIBTg4rxNNGZFhvkWx2U=; b=v1ZLdFCE5wlN3CeeEVu+IvW/kZ8SMX7/m8g05cPqihPwhF/MzZ5K388QGX8wtJQaZ7 CJ8Jkh5q0VwYGgI1Y9Icub8AmY85esCrgighEsOrqEif7djdeRVxCxBwuE7058R5V/0X JJ7jryw/9ilPozS0h90WLlyrUUu6kdDH2oCgoyIhAWkBTlR8gmlwUB/6cF14N1NDJ83t 6lzJClkjKhaD8671gKbaWD95yUbat5rC0eOnAcfnh9XI9XkQY2WgDEI39Q1t8GVjfb1p MEAI3AKOoCoRAWl9J6hW+H2ABuUyxAR1iv5pdhy9c+LwQ0bZmiiWd+fqvgT66doLXomD d4Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=MZ5Ul3xk; 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 dx23si1096579ejb.79.2020.07.22.18.45.03; Wed, 22 Jul 2020 18:45:26 -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=MZ5Ul3xk; 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 S1733270AbgGWBoo (ORCPT + 99 others); Wed, 22 Jul 2020 21:44:44 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:27281 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729198AbgGWBoo (ORCPT ); Wed, 22 Jul 2020 21:44:44 -0400 X-UUID: 737ffbcf37b14de09cd15acb110df036-20200723 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=cKmMFK1O+h5dPYD9MsyI3StTIBTg4rxNNGZFhvkWx2U=; b=MZ5Ul3xkqE8l3RiWKdAExcWkOcYw4+kzaKMGkLCas6Q/r5C6Xma6hsB9fBEmZzW2o2mNEGZpfnUYmKbyF+qfT2hU0VtilBRkmXeMR8+V+O3VGa3JROhrTN3aQeWUnb3hmWy67rl6d67EH7xr7hoNLpdjGyht5iTDvBvjxJ2iJkE=; X-UUID: 737ffbcf37b14de09cd15acb110df036-20200723 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1167492603; Thu, 23 Jul 2020 09:44:36 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 23 Jul 2020 09:44:33 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 23 Jul 2020 09:44:30 +0800 Message-ID: <1595468673.10848.10.camel@mtkswgap22> Subject: Re: [PATCH v3] iommu/mediatek: check 4GB mode by reading infracfg From: Miles Chen To: Matthias Brugger CC: Joerg Roedel , Rob Herring , , , , , , Mike Rapoport , "David Hildenbrand" , Yong Wu , "Yingjoe Chen" , Christoph Hellwig Date: Thu, 23 Jul 2020 09:44:33 +0800 In-Reply-To: References: <20200722141925.14861-1-miles.chen@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 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 T24gV2VkLCAyMDIwLTA3LTIyIGF0IDE3OjE5ICswMjAwLCBNYXR0aGlhcyBCcnVnZ2VyIHdyb3Rl Og0KPiANCj4gT24gMjIvMDcvMjAyMCAxNjoxOSwgTWlsZXMgQ2hlbiB3cm90ZToNCj4gPiBJbiBw cmV2aW91cyBka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