Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1177080pxk; Fri, 4 Sep 2020 02:43:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtpAFONUQAuYC2E7W80vJQJO50M7YqM/ECuFMgP2a9+AfU2NrCilvIbHDOO8RUhg5E+DnH X-Received: by 2002:a05:6402:515:: with SMTP id m21mr7725309edv.348.1599212618314; Fri, 04 Sep 2020 02:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599212618; cv=none; d=google.com; s=arc-20160816; b=gW/83a/TGYwZiGwCeHr+6ihTsVZoa3CWUyFiUNIvOR6bv8eeQSh09Ibf1Cj1ZNCbly Kk8RzZ8Jo1og5rw0zSryhCs70u0LlBR4Drp0SSgryhjcJ5uHFp4FWYtsGux3WRxWTuN2 McvHBUr9xXoXMsIoylbC4VNufyMUF7Zcu5SEVqf4zqyW9ingKgpLmigFx0hXELrIJhiH +w/Rm2i3/riPFLRWXwp80e4tbCa0fz+xfrm4Gt+DV74Q+6S32yR6Z8whz2VwiFXWuQJL Ol++DvgXlJs29HIwMJzltRSeLOrZdaW3/Pl5zK9tvHbsSFLJ0m5yjcwIVYnlryK6xpKB WoSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=hyYZh4iZ4COMFIF5Dip8hgQm5polH0rO5brltVk5Gg8=; b=IOGGN1HksiAkp9b/rdK4JnoRhQAXi+EbD+PirV9PxazjE0/G/rWV9SQwP+UpdUAzXl xqAtOe+GOZ/wo/+gxPQDqb9ljLR6a0XN5B/gfHN1EOHtprifwxNoWKXmlV4bQI9YYQfN DwmeVs8OyaW+Wm/5aW/fPlG1Tetmn4Gck7kH+x9DspVDbotzTqvta6ZvfCotggXMBR8T 3aVSHa3dXl/bfnrJem49nMUmjVjgj98lJQs6LT1XKRQYre/o4CV2KjOChQHEXHT4cU7b D8Qfj+TWnOE4Oo0Bx/VV2qzH3AMZ8/qvpC8FgK6kIdVh4G/ai+9FIgQdQ0/8QkmYldks xNjg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qx23si3719724ejb.355.2020.09.04.02.43.15; Fri, 04 Sep 2020 02:43:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729875AbgIDJmi (ORCPT + 99 others); Fri, 4 Sep 2020 05:42:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726171AbgIDJmh (ORCPT ); Fri, 4 Sep 2020 05:42:37 -0400 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2DF7C061245 for ; Fri, 4 Sep 2020 02:42:36 -0700 (PDT) Received: by theia.8bytes.org (Postfix, from userid 1000) id CD0339CE; Fri, 4 Sep 2020 11:42:34 +0200 (CEST) Date: Fri, 4 Sep 2020 11:42:33 +0200 From: Joerg Roedel To: Miles Chen Cc: Matthias Brugger , Rob Herring , iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, wsd_upstream@mediatek.com, Mike Rapoport , David Hildenbrand , Yong Wu , Yingjoe Chen , Christoph Hellwig Subject: Re: [PATCH v5] iommu/mediatek: check 4GB mode by reading infracfg Message-ID: <20200904094233.GP6714@8bytes.org> References: <20200831105639.2856-1-miles.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200831105639.2856-1-miles.chen@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 31, 2020 at 06:56:39PM +0800, Miles Chen wrote: > In previous discussion [1] and [2], we found that it is risky to > use max_pfn or totalram_pages to tell if 4GB mode is enabled. > > Check 4GB mode by reading infracfg register, remove the usage > of the un-exported symbol max_pfn. > > This is a step towards building mtk_iommu as a kernel module. > > [1] https://lore.kernel.org/lkml/20200603161132.2441-1-miles.chen@mediatek.com/ > [2] https://lore.kernel.org/lkml/20200604080120.2628-1-miles.chen@mediatek.com/ > [3] https://lore.kernel.org/lkml/20200715205120.GA778876@bogus/ > > Cc: Mike Rapoport > Cc: David Hildenbrand > Cc: Yong Wu > Cc: Yingjoe Chen > Cc: Christoph Hellwig > Cc: Rob Herring > Cc: Matthias Brugger > Signed-off-by: Miles Chen You forgot to add the tags here from v4, at least Matthias' Reviewed-by is missing. Please add the missing tags and resend. Joerg