Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2844520pxb; Fri, 12 Feb 2021 02:54:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxCrURta9zJeYpyLrX2aYs6MR+vkqFfFcf0UROTtrdqnmL81qkY+dJWTa7frEmsxK+jppnt X-Received: by 2002:a17:907:10c1:: with SMTP id rv1mr2486851ejb.74.1613127293166; Fri, 12 Feb 2021 02:54:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613127293; cv=none; d=google.com; s=arc-20160816; b=MN02FBsQpBNJBPOQqvd5Ff796hUifMNzp9tiw9hoyZB3YUEYhLUML+qzlzilPSzAeQ T034ArqWzoftQMpZtEK9Epmfoa+9T5yf8iqWn1lPaNbLp56720JOT7BVKDqQK5Z9FgP9 Xocx8fEW9ooF8pZOVQcoDAL9GCWgm0OHjwmf2rwsaM1rAUVXyptExd3S+aOMXsvjifyF r+IEAkSFYWWdqI4npthESRlI8fiS/tEo6KUYENu6JWDebdi1PSYUIYnNJ4TLyUopaFVr dr9cEmhziyRzuOEEcYVpe2tjczgQv5pYpLpBG2KAdVDIU/FcPhUOgpBGUC/DbUR20Yzr Aaog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=GftDlzuu2nRFrL613P4De2gJ1Hn7n7TuNiannKXi/fo=; b=BI1CZvAtLcUmHDEf2Pwp8SL3xnCR6jYYST1lIug8gCro0I2R0shIaaPyc2x6zaimFv wvfsOfWVk9Wt4qwlelh/itHoraPKXVriCO/dCrEWBslQM3S/gR3HATFyBv3KfoxPlxwC fHJwTWyej+/FtQp2VELIdwNLY7o5dPAymge7/wFwta8wc0ZZn4G+STTq+oGn4IAbT/0A BqqTyqws5UB67xC8D1eNPzIFD98kUL9e27vHnROQmTNewGkCkohbzEKZtVLALknuiMBW xeAwn+bqTWHEmZ4XgoA2lr2HipEvM9XpAcX8yUi8j/cCyScvuR8ww85MTI77LStO5jSk 4QLQ== 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 dd3si204044ejb.435.2021.02.12.02.54.29; Fri, 12 Feb 2021 02:54:53 -0800 (PST) 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 S230318AbhBLKvY (ORCPT + 99 others); Fri, 12 Feb 2021 05:51:24 -0500 Received: from 8bytes.org ([81.169.241.247]:55646 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230023AbhBLKvW (ORCPT ); Fri, 12 Feb 2021 05:51:22 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id D2EDC310; Fri, 12 Feb 2021 11:50:40 +0100 (CET) Date: Fri, 12 Feb 2021 11:50:39 +0100 From: Joerg Roedel To: Sai Prakash Ranjan Cc: Will Deacon , Robin Murphy , iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH] iommu: Add device name to iommu map/unmap trace events Message-ID: <20210212105039.GG7302@8bytes.org> References: <20210209123620.19993-1-saiprakash.ranjan@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210209123620.19993-1-saiprakash.ranjan@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Regards, Joerg