Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1267864rdb; Fri, 1 Dec 2023 11:14:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJQdnk3353S4ZdelL86jm/1D1pBgnnM/IYklurinr5O/EQcbWuGHmki2Piju5T+76PL6Mo X-Received: by 2002:a05:6a20:3c8b:b0:187:3765:1798 with SMTP id b11-20020a056a203c8b00b0018737651798mr70602pzj.22.1701457998306; Fri, 01 Dec 2023 11:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701457998; cv=none; d=google.com; s=arc-20160816; b=MlgHdeq4fZD5cGrlCVVyUrvBS0KMjka05JT3LIqp1gCoiWEB5QvRWPK9jZ6t5lRyFX cxQlW2KHSxOAf9Z/OixjVl0s5zAU77GKxcEn/OuJhCVTAvFNl3j4nsIAdHNJzsFFqvLr ST+vdVEBUqc8TuRsc4OeRuPMXpAvRiqHDxkm1eNGrB0tetotQCM6WlMMTDAEwjygYfDs t6hTsIdneDBSlw+cXhUU1++UpZMBkVyayFCP+Com9XT8BGrR5Xh+WbrgeuZY6+HULy80 UeG7H9XzzU8P870WFp5LLM0zOKXbCOCJwuNYdgqmos6hLG/xRxdH2Q3ET/yyb7oUSh5C o6gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=I2OeVOQrD9mA7MkxNCDuZeDEn1PaLfVovbPcfbgEPHs=; fh=iqNmYx1CopttWnJsLdVqqYP+fuUoAQlXd5gonjdHrZw=; b=dcIVdJ6vm6Vlja173ZwiXiBaGlKa3gB7gGJXfKQk8gm/ZUIZ/j1WhRtUUHMk7UK/EB jMW4WM9S/bdpZfIbKZSOQQtwkE2W+9fZKDwzMmR0RUnM+SUTh7nw/pc/UTMVGbMIqi5R B49sssY0FvIEtnbV09o9AOf6M46fEKgxBomwQHknKQJAl+UuSlM8dW40ojjqwRCWba4E 0QzkIYHeaQ1DIs7QEVGkO7oNSggo8566aAbrnUh/Z3Oq9g9h6M1OaoLw9G6X7PCur87Q I82WLBfXOo8wY2W1SL1khxFK5jnpiuoLjUjZzNZVbqi2ZkpSi1p9sOetetCt1x7JFUhL 75+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=d+MbPAH1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id m126-20020a632684000000b005be3c09abebsi4043544pgm.225.2023.12.01.11.13.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 11:13:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=d+MbPAH1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id E7D95832CBE4; Fri, 1 Dec 2023 11:13:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379478AbjLATMq (ORCPT + 99 others); Fri, 1 Dec 2023 14:12:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379411AbjLATMp (ORCPT ); Fri, 1 Dec 2023 14:12:45 -0500 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00C3FF7 for ; Fri, 1 Dec 2023 11:12:51 -0800 (PST) Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-3b896a0aee5so418548b6e.1 for ; Fri, 01 Dec 2023 11:12:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1701457971; x=1702062771; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=I2OeVOQrD9mA7MkxNCDuZeDEn1PaLfVovbPcfbgEPHs=; b=d+MbPAH1gv8Opyk4wwzirEoY/dTUvpOTLTvZoFN/frUjcdvyix8EQ0nr2zr4dt5WkU YnyMVLvxYXXwM2GgmAjpMExKFaOd5aN0mtN/g/IEt/oc36sXcQSUgjNkkOiULIYDZ8ji Tu7GT5v1IO/w0gaIflyMlEDYnpJB2StUX+vJrv/lkp83Vx6ad5Nn6DIE+Ygvpc4xKkgs Hy0EGHKxX2iwnRWyhjv9u66dNRM2rz4TplAp+MHzk1bMeEHpsHqt2aRR0EO/tI1I3d6i PPsDy9sNH36DgCwRvGCkCZ0lmhprhJq70j8CD0ZNSDC2xRsjXgp2InDpoJh4O3FzFJ7A uIsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701457971; x=1702062771; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=I2OeVOQrD9mA7MkxNCDuZeDEn1PaLfVovbPcfbgEPHs=; b=exWZ/1roaBvWo2goDzGcl4sL65/QL2VQktiOno5Q8hbdWXHhmDaHkQgE0YG8LzX0cl Doz9ntT3PCxrpmfxvgFzLgFE/Tqp9I18IhrPdsh9KXaapPXnIpLvNp5OEfFaMYq2aqum g4SvVVhYubAjEeb3OGgQfX8dyE/cDJxSiLlfK9FcfXfrt4F2b/VoEdZgwX7FJFkTvyRA CqwVOg1nXWAElvNuNxJoMjaBPh1EnhuB3bkWIdYSrlPfu+LiaJKuEn6jG71JLE/RKgA2 2XkRK4vRfiaL4XrwfBxiOY2WKDfte4Vu9OpV/kew+YE94t+238XWq24rCUnBfAjahFf7 jdlQ== X-Gm-Message-State: AOJu0YxzIw/HFnX62FJHizzxrrcCBO7yD6ZCNW+//OtuDAfp7fGVcAyJ TtK7I3oXEYXl6uVq4drbYhSXZe0br6assWmsW+s= X-Received: by 2002:ac8:7f8c:0:b0:421:b323:bffe with SMTP id z12-20020ac87f8c000000b00421b323bffemr88819qtj.10.1701457750139; Fri, 01 Dec 2023 11:09:10 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-134-23-187.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.134.23.187]) by smtp.gmail.com with ESMTPSA id w2-20020ac87182000000b00423de58d3d8sm1731502qto.40.2023.12.01.11.09.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 11:09:09 -0800 (PST) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1r98sv-006Hqv-2W; Fri, 01 Dec 2023 15:09:09 -0400 Date: Fri, 1 Dec 2023 15:09:09 -0400 From: Jason Gunthorpe To: Lu Baolu Cc: Joerg Roedel , Will Deacon , Robin Murphy , Kevin Tian , Jean-Philippe Brucker , Nicolin Chen , Yi Liu , Jacob Pan , Yan Zhao , iommu@lists.linux.dev, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 07/12] iommu: Merge iommu_fault_event and iopf_fault Message-ID: <20231201190909.GD1489931@ziepe.ca> References: <20231115030226.16700-1-baolu.lu@linux.intel.com> <20231115030226.16700-8-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231115030226.16700-8-baolu.lu@linux.intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 01 Dec 2023 11:13:02 -0800 (PST) On Wed, Nov 15, 2023 at 11:02:21AM +0800, Lu Baolu wrote: > The iommu_fault_event and iopf_fault data structures store the same > information about an iopf fault. They are also used in the same way. > Merge these two data structures into a single one to make the code > more concise and easier to maintain. > > Signed-off-by: Lu Baolu > Reviewed-by: Kevin Tian > Tested-by: Yan Zhao > --- > include/linux/iommu.h | 27 ++++++--------------- > drivers/iommu/intel/iommu.h | 2 +- > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 4 +-- > drivers/iommu/intel/svm.c | 5 ++-- > drivers/iommu/io-pgfault.c | 5 ---- > drivers/iommu/iommu.c | 8 +++--- > 6 files changed, 17 insertions(+), 34 deletions(-) Reviewed-by: Jason Gunthorpe Jason