Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4844206rwb; Tue, 8 Aug 2023 15:05:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFbI8Hm3/fEdYLX/5rQkljU4JJT5wlD/AagEqL6qHGRIuWkxFjCydbG1hhNvkX74ozwyOiZ X-Received: by 2002:a05:6e02:b22:b0:349:851b:3e48 with SMTP id e2-20020a056e020b2200b00349851b3e48mr502785ilu.28.1691532336322; Tue, 08 Aug 2023 15:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691532335; cv=none; d=google.com; s=arc-20160816; b=oclJL2h4Dk3g8dFCTWzHYYT6MpRHP9YYv07u4TLuvhkjMabIpdVDfjxZ53JRoWH+aE +GCUJAWhcTD2RqrZG4R/aYnAftQ0rCVi9oeZooiwI6LHnAbTIwv7aFXTEx6gR9aUAXRG zbSnxFGZdbVXTaLPjf5w01qIL3Q8+jnwG8X6I58VOuaF1WskVAML8zbovSGkNY2kWjRT 732yBPiwZbv9YRqZbiCrvEpVO0bDrHU6dXlWC3ddgLjxRTcRTEstZPJevj8XrwcYR/05 +VPjvI9jAOglVE0L/i34CVnYCYvac3EoOxiBUluWtah1xYhpo95FGIhtnmfEYLhShsv9 snGw== 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=64QCZ+lCjqLCLgWqPm6Im36kRBI6O73TOOo0qu3TAc4=; fh=mwuNplU12/3uzzBRw9ABrlUmxnVl0SppNMDFdwp958Y=; b=xnBZrGmnijXk/cicRzAtyMIZzv7eRpcTr31hU9sJN/Lx1CGGCttYqdnlOUv9bq1KRX mMs1vNGO107nKm9RLhBhQGuTsU36OfEgUfGu7tNSLnropDwgxAm4ES9ciVVHCHV1c11e o0uafQWZ2YBFXEHElYkBazbpWu8Qw8uRL9oQASvGGmUSBTwwklUKdt3AZ4NPy9KkaSt3 E8MLJMbMZTmyLJH77GctFaFmMsReMRI/mW+zuLkbLBeJgyOkZtiZG7RKhF30LH2hrpmb A7b7R68BJ3ZjiqQ4MvYr4eiDqnbuUui1wFvY8i494dfbGz/LJhwDDUjiIwu0ENhQfRTw jTSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=ngl7ca+d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 11-20020a630e4b000000b005649974da2csi6878536pgo.259.2023.08.08.15.04.40; Tue, 08 Aug 2023 15:05:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=ngl7ca+d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234494AbjHHUKP (ORCPT + 99 others); Tue, 8 Aug 2023 16:10:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232126AbjHHUJ7 (ORCPT ); Tue, 8 Aug 2023 16:09:59 -0400 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8795444F47 for ; Tue, 8 Aug 2023 11:39:40 -0700 (PDT) Received: by mail-qt1-x82e.google.com with SMTP id d75a77b69052e-403e7472b28so39620051cf.2 for ; Tue, 08 Aug 2023 11:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1691519979; x=1692124779; 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=64QCZ+lCjqLCLgWqPm6Im36kRBI6O73TOOo0qu3TAc4=; b=ngl7ca+dDeOo1NbtsDWD3hb35GubXAE9bW4YU+Q9ZeNQiYlwws2AP21vm1W9mce/Yx 6ip0BJ/dz8OEdvpusCgK0uEuMiptwij0mmqFChb/mPzoZnydcBzqCj/wld2p+OPVf6aA 94cg94q9bQBcUj9Shjbi2ywkjakp+/Iuhhg8yF14oxRyg67JuNY8DDoIdat+Bb7WNm31 W6hOXXt1M8Bj4UHq743YLSzvXXeU4X/bf5rjjn1XoYfXfkxTdDqEX+zEwcLdcBisuwd8 Y3ls3blTbOZaIN0WkgM2lPu6FUW3roESHOhBLzCk9y44Sc2qYJBZ3qim4dVFt2ny3ReI /GQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691519979; x=1692124779; 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=64QCZ+lCjqLCLgWqPm6Im36kRBI6O73TOOo0qu3TAc4=; b=Dlh1nREExJbvft/ag6JYseDjHgLfTdm8BESOAWkHNufTYu6h0I/ThFKDwzuGY7Qdwq a64tF9bHGQHSIKoq+mWRGVZ3GjXzHVo2socjOeDSYZI1NH3+TLZtdqahYVmq3E1pX6BT Xek1WdaIPegrOCuabe5JTqfsr32mZdD+IvE/fO6dfGtWmPQCfQDuH6xjmG1x74sBYcBG lVpqB1lOezN3L714IZKv3SIgpnzUNbb7B3GmWLIhT8Sr6bFK75eYEsx/snk9B3w6KYyr gPtHzuB6weBPzOEmrtFmLmOzgPRnXSRPkiOoBAjhWD4bwjLx7GM9iq+hvd/7V6gicBXl kUuw== X-Gm-Message-State: AOJu0YwINBRInxSnSupsfxQlLyrc4xsnUzAl1bCM9m5K7eLtoyPZwCyk CfTPG/HqxJcqPbx5AlTDApQq0A== X-Received: by 2002:a05:622a:1a9e:b0:405:45e2:39f9 with SMTP id s30-20020a05622a1a9e00b0040545e239f9mr682152qtc.15.1691519979699; Tue, 08 Aug 2023 11:39:39 -0700 (PDT) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id 16-20020a05620a071000b00765ab6d3e81sm3457218qkc.122.2023.08.08.11.39.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 11:39:39 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qTRcI-004vXr-3a; Tue, 08 Aug 2023 15:39:38 -0300 Date: Tue, 8 Aug 2023 15:39:38 -0300 From: Jason Gunthorpe To: "Tian, Kevin" Cc: Baolu Lu , Joerg Roedel , Will Deacon , Robin Murphy , Jean-Philippe Brucker , Nicolin Chen , "Liu, Yi L" , Jacob Pan , "iommu@lists.linux.dev" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 03/12] iommu: Remove unrecoverable fault data Message-ID: References: <20230727054837.147050-1-baolu.lu@linux.intel.com> <20230727054837.147050-4-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 04, 2023 at 03:51:30AM +0000, Tian, Kevin wrote: > > From: Baolu Lu > > Sent: Friday, August 4, 2023 10:59 AM > > > > On 2023/8/3 15:54, Tian, Kevin wrote: > > >> From: Lu Baolu > > >> Sent: Thursday, July 27, 2023 1:48 PM > > >> > > >> struct iommu_fault { > > >> __u32 type; > > >> - __u32 padding; > > > this padding should be kept. > > > > > > > To keep above 64-bit aligned, right? > > > > yes If it is not uapi we should not explicitly document padding (and __u32 should be u32). The compiler will add it if it is necessary. If the compiler isn't right for some reason then something else has gone wrong. Jason