Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1201313pxk; Fri, 4 Sep 2020 03:30:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcjtSjvEzKOlQlVLCgB6niALWIjer6Jkns8x1iLL7xId0DuCtfW3Bbiw4thprRbWFPmNzB X-Received: by 2002:a17:906:9245:: with SMTP id c5mr7091880ejx.54.1599215412750; Fri, 04 Sep 2020 03:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599215412; cv=none; d=google.com; s=arc-20160816; b=pyuZmAUiKkxjKoEZa/TWuxIbPutljikfaLJc6tlAn0wV7XaJfqRU+1CbmT2+VRyrSR GTPGLYgVv/2kmWJciEpUjNbtF2q+P/gGtoDM0jKXmRwWnXdgVvoIfZral6hGUXwyvimp RGwN77zmpOAvUkDOHRicr6QzGjKp749Hx0kx5wXf00HHQsFszFBrBpF/TDhsc2HRrFqi lJDQtKeRHryte8azPkaOKZS7pPq7NrQA2gpQtXxn01GsvA3RNOjvY7VOMteSmqM7Au8h SsWhvNJLl5shdWRA6n85mpbSDWIAK/IgklyI6nT62LawPOVRTmoLzbWeofm6zCzZ6iSl oYCw== 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=W6qNdgT4XBpxvM+qKDnHlTrV/BrFHcflzIbO8Gjk/jY=; b=TfSdWJ083plUpgO/bKGJnd6Pms54BTluQyW1US9EPgCv9NDmE/if/tFzEUp9fwWf8G 67QGq2ysAU2eK7irCxT8YnUoPP4/kaN7wK03XsRclXhxTOSiNsCmFc4AkWU31km1nlc1 GF1S67vojWHXQHwUIiN8p90kUFzDZt0yS4NSjV5OjT70lXIX7AAexMT/GJUtU+oG4r5h lckzGpf4wyahpqaSheKmlU//W+cod45SOxKCGnaJxHq8l8twd/rlTsmZwW2wLn/BwW/d dmn6AC1VH3ZIZUw+zH7j3YmplgdKN3p4te18hSHgKPvdbhZjscB9jrJOOEzBkeQSvGxY Vl6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=IN3m1r89; 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 q19si2961966edv.61.2020.09.04.03.29.49; Fri, 04 Sep 2020 03:30:12 -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=IN3m1r89; 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 S1730083AbgIDK3B (ORCPT + 99 others); Fri, 4 Sep 2020 06:29:01 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:15347 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730034AbgIDK2x (ORCPT ); Fri, 4 Sep 2020 06:28:53 -0400 X-UUID: 07771bdf2c1c4ee1ab180633629baa0e-20200904 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=W6qNdgT4XBpxvM+qKDnHlTrV/BrFHcflzIbO8Gjk/jY=; b=IN3m1r89KoswFu3G3q/WjUwnve/HdkYvnt5t2G/75yVvGKnofYrpPUnyXkRaUTzN5ImRXXV9D6MlKN/DeygL95MarB5Awr6OZ9PXCVy0QYOdwTf4B8aHDzb59k7o+7QncEepnOw6xVuReZ1ttVelAKamGzp++oZhReYg/u+kYcY=; X-UUID: 07771bdf2c1c4ee1ab180633629baa0e-20200904 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] 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 1434882807; Fri, 04 Sep 2020 18:28:46 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 4 Sep 2020 18:28:41 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 4 Sep 2020 18:28:42 +0800 Message-ID: <1599215324.29997.1.camel@mtkswgap22> Subject: Re: [PATCH v5] iommu/mediatek: check 4GB mode by reading infracfg From: Miles Chen To: Joerg Roedel CC: Matthias Brugger , Rob Herring , , , , , , Mike Rapoport , David Hildenbrand , Yong Wu , Yingjoe Chen , "Christoph Hellwig" Date: Fri, 4 Sep 2020 18:28:44 +0800 In-Reply-To: <20200904094233.GP6714@8bytes.org> References: <20200831105639.2856-1-miles.chen@mediatek.com> <20200904094233.GP6714@8bytes.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: 8CBC2E51C5EDEC8111200CFC22B3DC832000455B5036BDE4B17C4427343DBDC82000: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 T24gRnJpLCAyMDIwLTA5LTA0IGF0IDExOjQyICswMjAwLCBKb2VyZyBSb2VkZWwgd3Jv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