From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C203C433DF for ; Fri, 16 Oct 2020 07:36:02 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D9FE920829 for ; Fri, 16 Oct 2020 07:36:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WNRRvFk7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D9FE920829 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:References: To:From:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6kSAXCsluJFcZ5BUmnXjIunJbK8HWM2EiEkmHBt56AY=; b=WNRRvFk76uBwqJHPxDwuQb4s3 741uYJfPa/FvyyFURCZ3v0rJApsUmxUPHBQlgo5aMmgTa+krep8lZvWrvKaqCsCZAa8aIm4rBBlx0 Ng0p96T8qQn5BlehKZdETVlPnGZKnC3c3TEgqSdk4Q5HieYpToVvbE2qSOF3agch0tjRwJfLyN4tm g8plSqTg9fN7mXy1yQte6mzcWSEWEeyCQspYMUQcioN525oYjHF0Cj8pYOPFyLtaaMesniSifOTmJ 1Ns5n55tSgw5gROg3XZ3+Sn0h/du7cUs3JGmM7qU5et4HLjaXcQ9AdaTOasHLudc78F5foquOxsHd TB2IJPhLA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kTKFz-00062b-Ip; Fri, 16 Oct 2020 07:34:31 +0000 Received: from szxga07-in.huawei.com ([45.249.212.35] helo=huawei.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kTKFx-00061c-3A; Fri, 16 Oct 2020 07:34:30 +0000 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id C7DCF20730CFDFF190F3; Fri, 16 Oct 2020 15:34:21 +0800 (CST) Received: from [10.174.179.182] (10.174.179.182) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Fri, 16 Oct 2020 15:34:11 +0800 Subject: Re: [PATCH v3 7/8] arm64: mm: Set ZONE_DMA size based on early IORT scan From: Hanjun Guo To: Ard Biesheuvel References: <20201014191211.27029-1-nsaenzjulienne@suse.de> <20201014191211.27029-8-nsaenzjulienne@suse.de> <1a3df60a-4568-cb72-db62-36127d0ffb7e@huawei.com> <20201015180340.GB2624@gaia> <35faab1c-5c32-6cd3-0a14-77057dd223f5@huawei.com> <89ed58a5-b3ca-e361-94d8-b6754ce5eb34@huawei.com> Message-ID: <6efd3623-e758-30a7-b798-c06a624bed4e@huawei.com> Date: Fri, 16 Oct 2020 15:34:11 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <89ed58a5-b3ca-e361-94d8-b6754ce5eb34@huawei.com> Content-Language: en-GB X-Originating-IP: [10.174.179.182] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201016_033429_384137_344F82D1 X-CRM114-Status: GOOD ( 13.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:BROADCOM BCM2835 ARM ARCHITECTURE" , Lorenzo Pieralisi , Anshuman Khandual , Catalin Marinas , "Rafael J. Wysocki" , Linux Kernel Mailing List , Jeremy Linton , Linuxarm , ACPI Devel Maling List , Linux IOMMU , Rob Herring , Nicolas Saenz Julienne , Sudeep Holla , Robin Murphy , Will Deacon , Christoph Hellwig , Linux ARM , Len Brown Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2020/10/16 15:27, Hanjun Guo wrote: >> The patch only takes the address limit field into account if its value >> > 0. > > Sorry I missed the if (*->memory_address_limit) check, thanks > for the reminding. > >> >> Also, before commit 7fb89e1d44cb6aec ("ACPI/IORT: take _DMA methods >> into account for named components"), the _DMA method was not taken >> into account for named components at all, and only the IORT limit was >> used, so I do not anticipate any problems with that. > > Then this patch is fine to me. Certainly we need to address Lorenzo's comments. Thanks Hanjun _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel