Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5361982pxv; Wed, 28 Jul 2021 09:01:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUxKO3EmVnw5pqNprhECsgPHbhxwqh/kXDmEandi5my+qnkpwEuXbD6ti9N8B68Eq+8nZ0 X-Received: by 2002:a17:906:144e:: with SMTP id q14mr178022ejc.19.1627488083034; Wed, 28 Jul 2021 09:01:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627488083; cv=none; d=google.com; s=arc-20160816; b=HXkqQGuv2R3plpwW5Q1ti6PF0MzT1B4QwlXLlI9+q0SZaV9OTEHRMWqVO/2A+jzcVz w9i1UE9rKkpMcJs+XVj/UZney1Q9CUDidN/wlwWGjamYhAKZPTmP7qrszBmHxLofdxHX HZ4+C8lRtJVZ1Wn5jUuCS9EFKc9qDysTCA0DLnVU85nQ0hII+IxJ7Bcp104Ki24j2k+F opvjboSFtMSbTZae/hzGawxCtfhSpDjnsI4F0JWqej4VocnQl1DdnmBxf+1ajJ1m9lu9 sg5jEJqZoTXjV78Tm7LvzfrW2HD5QDm7z6ALO1oP2PuU0ii1IJyeWm4h3PP41qEpzqf8 WB6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=PpQ6jCnqoIO+TgZL23XuCUmXu/1S5hfauzs0S+DwQQY=; b=zNs7/leo6iUMYdN3B56XAathw5g7uYCz6/pkui+6fnLd2XePgnTVAwETJluET6pzNJ IKfYGci434wX0RJ+JxGrDlXam9x+/gOab1+90R+F/DICKFasPl94mJeq+BwUEt6PxHho 0mgU4NgGUSivtEsWhwWRO2lukglxwn+mVN+1Ul60YF7M51QZjfZoLCthcecdz3GPfCwf PEjndF7syzp/iXOkU8ZQ+aFl+yhNwZkpL2ToQbenKjRT4BjMQCMg9KkfDNQTc/16j8to xqCCjwqWr7bZFEe2gyd1gE3U+QcoUoBEyfLmiSrjFxVm0l7xyalq0RJD0ZSoFmWNh3OY tMYg== 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=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si160985ejx.699.2021.07.28.09.00.58; Wed, 28 Jul 2021 09:01:23 -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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237353AbhG1P7X (ORCPT + 99 others); Wed, 28 Jul 2021 11:59:23 -0400 Received: from foss.arm.com ([217.140.110.172]:59302 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237371AbhG1P7T (ORCPT ); Wed, 28 Jul 2021 11:59:19 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C110BD6E; Wed, 28 Jul 2021 08:59:17 -0700 (PDT) Received: from 010265703453.arm.com (unknown [10.57.36.146]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 291E43F70D; Wed, 28 Jul 2021 08:59:16 -0700 (PDT) From: Robin Murphy To: joro@8bytes.org, will@kernel.org Cc: iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, suravee.suthikulpanit@amd.com, baolu.lu@linux.intel.com, john.garry@huawei.com, dianders@chromium.org, Yong Wu Subject: [PATCH v2 07/24] iommu/mtk: Drop IOVA cookie management Date: Wed, 28 Jul 2021 16:58:28 +0100 Message-Id: <48f8ade0238dddd8570895578c8533fb481bc428.1627468309.git.robin.murphy@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The core code bakes its own cookies now. CC: Yong Wu Signed-off-by: Robin Murphy --- drivers/iommu/mtk_iommu.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c index 6f7c69688ce2..e39a6d1da28d 100644 --- a/drivers/iommu/mtk_iommu.c +++ b/drivers/iommu/mtk_iommu.c @@ -441,17 +441,11 @@ static struct iommu_domain *mtk_iommu_domain_alloc(unsigned type) if (!dom) return NULL; - if (iommu_get_dma_cookie(&dom->domain)) { - kfree(dom); - return NULL; - } - return &dom->domain; } static void mtk_iommu_domain_free(struct iommu_domain *domain) { - iommu_put_dma_cookie(domain); kfree(to_mtk_domain(domain)); } -- 2.25.1