Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4153862pxf; Tue, 6 Apr 2021 09:08:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvuHi5MiyToVVf116xDIMPIh6pZBJUSmpIXku/cw1DxmOObtcLXwgrbOOMNslM/OG18b8P X-Received: by 2002:a17:907:98c1:: with SMTP id kd1mr11759694ejc.33.1617725292099; Tue, 06 Apr 2021 09:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617725292; cv=none; d=google.com; s=arc-20160816; b=K9hNDbk+XFJrBa+hmahFy7gCWY+Ce6yZ2GQfwkPaiO79s0+Nu4Ixx3qa1shdSRnuLW fjRkOZssPoXeydL7rzmnRssH3wPAPXgjm60/liH4aAfRyO7qSa3WHgx/kMiJoivHwGEw ePfXvLzSaf+HSCKmpk2K002cQd5LOg7QWqRgstLhUkj9C7JWTc1WTnUBrgEvW2mSc/AA zYFYybAOtWrkwsYUGa7o0QIh6pp8MoEfpO+cm5ywL0VRWw4LdmKttQvyLZ/tBYxHOxoC UQdsQKHc5dDE2Tt+/j9ADHx520J//sgIJ9M8O2+l2D0HdTYYgsBSFKfRnPQ9GRAEhKLi eXdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=RcTvxOvcvAcXQYnaOCIdkr+glqnD+FG/GDskBPxnIW4=; b=IMc2IFcuO694ko+b0OlnPaO/qdKzEGpRMPi7Cqp23EpwGhqTHe7wko4X7G57qau5wu PQID+5bQF7/oFrcccQDBIDFuFcGHPGTCx8IvoImLYpiMJkbb9UaygEL+ntV6dHvM/Irj r6IPSJqSnZxTboqjPT6oOrytGlyW+XVOz2U+7s5o6TJN8jL3eIGm4ypei0oe8HzT9qF4 6xINYlWZy12A0/33DG3GMEWAdJx6j/NhcO7r7TxbHgbewDJbdHNXPkZ3lX7Afc5w2/fg H98ocuzeJpCJ6HuEtQCd7QpHx5+J/7JyiP3Za/BhqnnJ+sUhoSHTRPWCP0ImLaPRSEyi 00kw== 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=hisilicon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jx27si7666625ejb.749.2021.04.06.09.07.48; Tue, 06 Apr 2021 09:08:11 -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=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237893AbhDFG5N (ORCPT + 99 others); Tue, 6 Apr 2021 02:57:13 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:15912 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233519AbhDFG5M (ORCPT ); Tue, 6 Apr 2021 02:57:12 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FDyvl3gPFzjYJd; Tue, 6 Apr 2021 14:55:15 +0800 (CST) Received: from [127.0.0.1] (10.40.193.166) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.498.0; Tue, 6 Apr 2021 14:56:54 +0800 Subject: Re: [PATCH] iommu: Add device name to iommu map/unmap trace events To: Joerg Roedel , Sai Prakash Ranjan References: <20210209123620.19993-1-saiprakash.ranjan@codeaurora.org> <20210212105039.GG7302@8bytes.org> CC: Will Deacon , , , , "Robin Murphy" , , From: "chenxiang (M)" Message-ID: <626fbcb8-b84f-1522-4ec3-9c7c1f5f7a93@hisilicon.com> Date: Tue, 6 Apr 2021 14:56:53 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20210212105039.GG7302@8bytes.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.40.193.166] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, 在 2021/2/12 18:50, Joerg Roedel 写道: > On Tue, Feb 09, 2021 at 06:06:20PM +0530, Sai Prakash Ranjan wrote: >> diff --git a/include/linux/iommu.h b/include/linux/iommu.h >> index 5e7fe519430a..6064187d9bb6 100644 >> --- a/include/linux/iommu.h >> +++ b/include/linux/iommu.h >> @@ -87,6 +87,7 @@ struct iommu_domain { >> void *handler_token; >> struct iommu_domain_geometry geometry; >> void *iova_cookie; >> + char dev_name[32]; >> }; > No, definitly not. A domain is a device DMA address space which can be > used by more than one device. Just look at IOMMU groups with more than > one member device, in this case just one device name would be very > misleading. Is it possible to use group id to identify different domains? > > Regards, > > Joerg > _______________________________________________ > iommu mailing list > iommu@lists.linux-foundation.org > https://lists.linuxfoundation.org/mailman/listinfo/iommu > > . >