Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5794130rwb; Wed, 9 Aug 2023 09:10:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZjeMihpBqxw1MA48QWip8L3kaROUsMDX6pNRss7t/leAnmxZY+aNLboD3v9+DR/DW/juc X-Received: by 2002:a17:902:c106:b0:1bb:dbec:40ba with SMTP id 6-20020a170902c10600b001bbdbec40bamr3171493pli.16.1691597445416; Wed, 09 Aug 2023 09:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691597445; cv=none; d=google.com; s=arc-20160816; b=NUNMsNrXJTGBWpMnUUrzql6GykwDVwLPeB1QZtsndlTnfx3/I+/EKBIX/NVS037aat VD9gRidzbclPbF1UXXHMCWyj+KLgGHmim+97AO9yN4AHXfD7QtHH+pC8mZOX5xa7uuC0 NuZu/ZPwt7nyTJ27tORtu+AKlf6SdwXyXg9gA2u3duD6o1qeHtkhHnC4udvBiDV6zrZZ aPdc6RIp7Lyu/XcUFq2xcGbo7Bz3A3Gu2GWJxhAuuiS833Em9+QEdIYJ6RX6uiYRsqfl p1yGQyfJRDlrchYCsEUV/CQkIyjxU5LlzBGwXg3fBtm2z6bUjFPJ5l9k/7929rV6rAwR fIXg== 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=Os5sLDeFoJgDXLzdefgu9SaTWkLJ6QLGY9rFMdBUmEE=; fh=mwuNplU12/3uzzBRw9ABrlUmxnVl0SppNMDFdwp958Y=; b=YHH7u66TlW4hSBqpXklMcJ13srdCDgAsWQNzbnJ0KR6luhcz4LxZZpPkmnv8RVgc9T DGCXFilwfKgdoXg7DUTPosBQk9hvFwq+c3xYjJh5ybX5HurcHTvs/+Xv+GFNQjdw5PWk uLhA6wM8sQZ7q18pcFN1gcBXTL6uzP+8TD/gMhCRUtkpLmEntFu5by+ag+jjlgtTMuEH 5lCOgGlU3MwT9UX1QjkpyQGb220JUmsFmlH+EL84LgtcwPACPVTXVf0KkIe0+PWiIDpa k2oXRB8lh5yqXXdLewql1OaRZp0x6GXMMcQXWZ1xkz/pi0nG2ouH2wKhn8F2xBz2gPfj hDEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Xu6bR3LQ; 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 b12-20020a170903228c00b001bc7d717ac4si3971390plh.104.2023.08.09.09.09.56; Wed, 09 Aug 2023 09:10:45 -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=Xu6bR3LQ; 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 S233089AbjHIOFM (ORCPT + 99 others); Wed, 9 Aug 2023 10:05:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229722AbjHIOFL (ORCPT ); Wed, 9 Aug 2023 10:05:11 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B874E7E for ; Wed, 9 Aug 2023 07:05:10 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id d75a77b69052e-40398ccdaeeso35189931cf.3 for ; Wed, 09 Aug 2023 07:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1691589909; x=1692194709; 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=Os5sLDeFoJgDXLzdefgu9SaTWkLJ6QLGY9rFMdBUmEE=; b=Xu6bR3LQqWohb3H3pLYSmoX1OTdMouJycfbvXiceZMoEJm13T4C5o9HrtpwtJuUsak 9jd8egMjXygRZvye5u9t8lF+ZjmvY3VTDV5EbbMo1A0WhFH9IX96K8EL0xR+YYfMqA4D VjrKUANVKJIrwz0iYUycCoRbqLZbAbMJpictaxGWvBpxMH0l7WjnMzgQFecDJwrDjdGl ODuZAyPidZ4iphNfjMkoy31dJQvHQKQlxB7q9DEIY1okH95rZQHIQS9JW7erjHLkAcbQ PxJy29aNSrntCqvmLc+xvwGrrgzzKcBTAFFDIto0PD3jTBN6qfZiQRLI7113zkOuJ4UG uehg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691589909; x=1692194709; 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=Os5sLDeFoJgDXLzdefgu9SaTWkLJ6QLGY9rFMdBUmEE=; b=ZeoC8odFa0S96t9gHOyA9H4OiavwfoQFshf+7LLFVvwc+qrltSfpC8Ly3UAvBsPssA OlAmBxS2ULk3i5uDFfldCzNGDWtPIcnfoMD9uFbe/tEGf0CLIlfq1NEQtY8U9105xvme aPcuOYj1OBsp65ysJzALZCNznVqJC24x8ohtcJW2vWsBiIB6+RhO2PoLSc1pqSvfgK/v hQJ5H0muI6ixWluWYAWpkiKPVREWub06jwV6J/wTs4zEeT4gZDrFuK0CdLxDKEcXb4Ql aoZu2/bmPi6YHuxLHefCiU74ldjamxe54f76dsFuHTnFBwtCz8R3/lc+JVItbq8ndoTQ UhnA== X-Gm-Message-State: AOJu0YwRsDrKDMY0voonf68oA7vCzDuWNVfDhLW+Avh5TgF06snwu8xX ugp/aR92EjILDqmHINRgaVI3Hg== X-Received: by 2002:ac8:7f81:0:b0:400:a2b8:1c97 with SMTP id z1-20020ac87f81000000b00400a2b81c97mr3666633qtj.17.1691589909295; Wed, 09 Aug 2023 07:05:09 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-25-194.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.25.194]) by smtp.gmail.com with ESMTPSA id e7-20020ac84147000000b00403c82c609asm4136670qtm.14.2023.08.09.07.05.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 07:05:07 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qTjoA-0052Z0-Ku; Wed, 09 Aug 2023 11:05:06 -0300 Date: Wed, 9 Aug 2023 11:05:06 -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_NONE, 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 Wed, Aug 09, 2023 at 12:01:52AM +0000, Tian, Kevin wrote: > > From: Jason Gunthorpe > > Sent: Wednesday, August 9, 2023 2:40 AM > > > > 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. > > > > I thought this will be used as uAPI later. I'm fine to leave it be and > add the padding when the uAPI is introduced. Yes Jason