Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3096145pxk; Mon, 7 Sep 2020 03:07:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlrSk+Y4iv2Vaip40zIXy+BEO2qB+9ylEKCOINt3Wp2PmFP1ByPjVPfiVqGdMWrtO9MT/4 X-Received: by 2002:a17:906:e0c7:: with SMTP id gl7mr19901026ejb.109.1599473237568; Mon, 07 Sep 2020 03:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599473237; cv=none; d=google.com; s=arc-20160816; b=t0MqueSGwhcVcUg4IvBWDSbPsqkVSKWpRBc9Lpu+ibMI/czTkzX+X4fXrisKS+LKzj PApXEMWwZaGrJ7rBF1W5ZOyZSjDCnA7AdfzznjVn0I5575owrD/+y3AFcYaa2NkmF2QB VayOZ0tZ8IL+ZHXGYlCqIsEdhcYYhPQNykNsZ8InCEdOBa0vRA5M5jOqwJ/D/4DlyEqw 3+YMYaAYbNvNuPZsWUyb3QUZyNBSYCdCCr4/y9p1SClCeZ8t2GCJ+K1Fk7Q4N6nRNngz kpWBjAiVWm90wRBj19lz9J0fQcKIGCxRwlp0KEBfpjxNGCQq9NNpz2U1LH9AGbykjI0S EwxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=v0OvTuxE+/iMswMQTjQb/bjlIs084TlMlRT8WNmVF+Y=; b=dgjBFGXKLCMRQ6lsG0bthhmOh4H9rQvfj29MvcaXUfgGpXEvHLU0LOl6HaZxSYX5OE 7qZwHlmisd6wOTYZEfjtwE2227Eu5GYD+PlMN1F3qp5wBa18WFpfUXilAs9O4wiff2tQ nSFZ5+hGFQtTyrgAIuPVwnfB6MhNqBmuo4iZPHABtM/bucUPUBfMHGRJFTK9bHEHAYu2 IDqF8Fr8KjK5XeIxrrlnSPYujyqDmHJAu5TTLezunUSmY7oRhayoML+YTiig5o6SLObC 2g8PJn2SwNive+EKQ063U5jQDZJYG1DG51VtlJbjvqDkJsegRburVbSIvrNplVHwVCcK nkog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=1NqE+sdR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by20si7870234ejc.134.2020.09.07.03.06.55; Mon, 07 Sep 2020 03:07:17 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=1NqE+sdR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728477AbgIGKGT (ORCPT + 99 others); Mon, 7 Sep 2020 06:06:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728317AbgIGKGP (ORCPT ); Mon, 7 Sep 2020 06:06:15 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBF04C061573 for ; Mon, 7 Sep 2020 03:06:14 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id u6so3504385iow.9 for ; Mon, 07 Sep 2020 03:06:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v0OvTuxE+/iMswMQTjQb/bjlIs084TlMlRT8WNmVF+Y=; b=1NqE+sdR4ONCLnZ5XhFqnlHSfQVFov4iy/cT+yyxmAzy5+YCr/Ul9KigmS858zeHof veerpBJ8XhqPoT84DSedPKvLdYY3GqAGqRsEkjV+NU9bChBpBNA1NZNkxENzA7KPM1cJ YbNZSDGYeZOwNGjxpWRPNef161HXLK7nWTU8e4wLNPz62F/si1Y2ll6mGdGWppAmk1hR XDf6BujzOkpGItyYi/ysU1ESNG0WrA8+8+xAtGfGZlmB8cW9STc/iJZZuljVuRxIfSg+ PhJx7H8iMDclSVWwaOTyu7KmLReNaaaD0MY9P/+s2Gt3YrLzIKH9AUN2tCQZJViElB9G Vc5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=v0OvTuxE+/iMswMQTjQb/bjlIs084TlMlRT8WNmVF+Y=; b=bFCMmbyKSNxkZl2MMGQUd9tYYUMIDPrtlhjH07b04IPwJYA8MfIEi0j8qtGllFqcoJ dRkTGNkrlk0CfCpwzH7ZtRpMBoJD6PAMEuOJN+a09YJVVQjyeyUKtTz1YdwhL5vpE/4y W1FBG8PJUZ+RV1/ynWYiv5MvK4L04YC7hXmMJj0dZXqqn2Hy+s+5E3/V+Wbo4/tMlRS5 fMIax3b7zdW9EhI7+4vWhGq9iLJFRks2uFFdVxtIjV5LIgvUSm1PWLdyyHQa2VhsHXHg v/Se6P+/8b6DRW2ALg3+kfvtQe8T/Ho8AaRpnEhchQ32of5L87pY+WZdPUKJxovRJcXh A4+g== X-Gm-Message-State: AOAM531OLdJyhAgmxv/oHOBKc2bX1/T0GCeZn82EbxbNud4njzUSIigr TbttPb3ebNgfk9fpYpHTow4CiqVX1qEGGSjp+6vp4Q== X-Received: by 2002:a5d:80d6:: with SMTP id h22mr2869058ior.154.1599473174144; Mon, 07 Sep 2020 03:06:14 -0700 (PDT) MIME-Version: 1.0 References: <20200906151928.881209-1-fparent@baylibre.com> <20200906151928.881209-3-fparent@baylibre.com> <1599450232.27773.13.camel@mhfsdcap03> In-Reply-To: <1599450232.27773.13.camel@mhfsdcap03> From: Fabien Parent Date: Mon, 7 Sep 2020 12:06:03 +0200 Message-ID: Subject: Re: [PATCH v3 3/3] iommu/mediatek: add support for MT8167 To: Yong Wu Cc: iommu@lists.linux-foundation.org, DTML , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, joro@8bytes.org, Rob Herring , Matthias Brugger , miles.chen@mediatek.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > +static const struct mtk_iommu_plat_data mt8167_data = { > > + .m4u_plat = M4U_MT8167, > > + .flags = HAS_4GB_MODE | RESET_AXI | HAS_LEGACY_IVRP_PADDR, > > The 4GB mode flow was improved at[1] which has just been applied. > > If you add 4gb_mode flag but don't have "mt8167-infracfg", the probe may > be failed. Looking back at the datasheet I don't think HAS_4GB_MODE should have been enabled for MT8167 anyway. I just removed it and retested the patch. I will fix it in v4. Thanks > [1] > https://lore.kernel.org/linux-iommu/20200904112117.GC16609@8bytes.org/T/#m613e9926735d07ad004fddbbcedaa50b5afacca1