From patchwork Wed Jun 9 08:32:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen (ThunderTown)" X-Patchwork-Id: 12309371 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 AB760C47095 for ; Wed, 9 Jun 2021 09:21:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 7AD856120F for ; Wed, 9 Jun 2021 09:21:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7AD856120F Authentication-Results: mail.kernel.org; dmarc=fail (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=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5XZ0ksV635oyb3U8CI+0iuKsl6UZaJ2FU1lNhDajsYQ=; b=NT1qZzuTnqNL5l LRjiKx+/LOfC3jYazoB0DaKijvX38D+O0I//3SI2EHVBN5XE2zrH3bwDlcIBu7hXdDLbBnEjIYSVr GusajHPkI0yTJUKBAlfELfT8fLbnGLd3LIU6pHLrZV0FkxuSCZGBO6YBMPFZahsSP6MvFp9zib1K/ zuGzyohjbT/Lc6NivU6aLAbCR1KfJo8FAG5YoPpBEPs73yGWdLZCK2PNGeNx/6TIa4MVCNOWekhgI RXqk0ebZtxnqhOBafJQN5PKfMdETVzPUrF3hTyQ2+odkjDP0KFSy2lD0xG51AsaQLUKoU2fHg9Zmd vs9qr3We+GfCkJ4EUrgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lquMH-00CcRt-5g; Wed, 09 Jun 2021 09:18:45 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqteB-00COKZ-17; Wed, 09 Jun 2021 08:33:15 +0000 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G0KxT4QSNzWtMs; Wed, 9 Jun 2021 16:28:13 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 9 Jun 2021 16:33:05 +0800 Received: from thunder-town.china.huawei.com (10.174.177.72) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 9 Jun 2021 16:33:04 +0800 From: Zhen Lei To: Joerg Roedel , Will Deacon , "Robin Murphy" , David Woodhouse , "Lu Baolu" , Yong Wu , "Matthias Brugger" , Maxime Ripard , "Chen-Yu Tsai" , Jernej Skrabec , iommu , linux-arm-kernel , linux-mediatek , linux-sunxi CC: Zhen Lei Subject: [PATCH v3 1/2] iommu/iova: Fix spelling mistakes Date: Wed, 9 Jun 2021 16:32:50 +0800 Message-ID: <20210609083251.13827-2-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20210609083251.13827-1-thunder.leizhen@huawei.com> References: <20210609083251.13827-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210609_013311_514777_E48AD089 X-CRM114-Status: GOOD ( 14.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix some spelling mistakes in comments found by "codespell": detroyed ==> destroyed defered ==> deferred entrie ==> entry alloced ==> allocated regularily ==> regularly Signed-off-by: Zhen Lei --- drivers/iommu/iova.c | 2 +- include/linux/iova.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/iommu/iova.c b/drivers/iommu/iova.c index b6cf5f16123b..cce4571548c4 100644 --- a/drivers/iommu/iova.c +++ b/drivers/iommu/iova.c @@ -594,7 +594,7 @@ static void fq_destroy_all_entries(struct iova_domain *iovad) int cpu; /* - * This code runs when the iova_domain is being detroyed, so don't + * This code runs when the iova_domain is being destroyed, so don't * bother to free iovas, just call the entry_dtor on all remaining * entries. */ diff --git a/include/linux/iova.h b/include/linux/iova.h index 71d8a2de6635..16f671b04a37 100644 --- a/include/linux/iova.h +++ b/include/linux/iova.h @@ -49,12 +49,12 @@ typedef void (* iova_entry_dtor)(unsigned long data); /* Timeout (in ms) after which entries are flushed from the Flush-Queue */ #define IOVA_FQ_TIMEOUT 10 -/* Flush Queue entry for defered flushing */ +/* Flush Queue entry for deferred flushing */ struct iova_fq_entry { unsigned long iova_pfn; unsigned long pages; unsigned long data; - u64 counter; /* Flush counter when this entrie was added */ + u64 counter; /* Flush counter when this entry was added */ }; /* Per-CPU Flush Queue structure */ @@ -68,8 +68,8 @@ struct iova_fq { struct iova_domain { spinlock_t iova_rbtree_lock; /* Lock to protect update of rbtree */ struct rb_root rbroot; /* iova domain rbtree root */ - struct rb_node *cached_node; /* Save last alloced node */ - struct rb_node *cached32_node; /* Save last 32-bit alloced node */ + struct rb_node *cached_node; /* Save last allocated node */ + struct rb_node *cached32_node; /* Save last 32-bit allocated node */ unsigned long granule; /* pfn granularity for this domain */ unsigned long start_pfn; /* Lower limit for this domain */ unsigned long dma_32bit_pfn; @@ -91,7 +91,7 @@ struct iova_domain { iova_entry_dtor entry_dtor; /* IOMMU driver specific destructor for iova entry */ - struct timer_list fq_timer; /* Timer to regularily empty the + struct timer_list fq_timer; /* Timer to regularly empty the flush-queues */ atomic_t fq_timer_on; /* 1 when timer is active, 0 when not */