Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1006919rda; Sun, 22 Oct 2023 21:56:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEud5LJbV+7jLUmCRjI85LJCaoktjPot1w+cc50RWUHHH96E55wbxoWZT0u7gEc7dUgj3cF X-Received: by 2002:a05:6358:8807:b0:134:eb97:ea01 with SMTP id hv7-20020a056358880700b00134eb97ea01mr9295309rwb.27.1698036980449; Sun, 22 Oct 2023 21:56:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698036980; cv=none; d=google.com; s=arc-20160816; b=OXCwQemKx/PBO3ZvVDSBaY67N30CB0a4EQ+RTXPycTkQk8z2KGPAzUjaH0oWsWr5Ii mY0Wirj4pe6GrfuCiYXEUs+ERRia/7hDKxKgBLAfvoEoYyJIOr6fIdBdjbnBGd0f8GW8 h7bAFloCvLI7SkXyYb1R4gM+YEkkNfFLHAwZH9dRCjcdJNVC7dzAi0caTVyXDTOCjlbu UQPuI3e0ks0LN2igPaxmMTSbcdL1asAefgdujQX+kCkLxJqnKtk28HBaTuQmYsAuXHbP PbmPIincz+iRahFLLo7zn/yGcnpU3NH0WnwbNbHo0R1P8oeh8K3aCFbdvlxkBxTKoAcb 7Vcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=Ke4ba6atseiCGvNMRr/6znd5xtFRbtHUZz7Nfd0RhdA=; fh=RTW/LC8HGgdtf4f1VRB2cz6sP79Ide1I9of3IfUTqwI=; b=jTW/W/0ooyrAH/W2UZ8AdkhdMSeSlHuhNSpdREgOI+eoXnOMEDCL05ertpNBDT+JU6 /aAl3Kx5c++MW/uT624661YoUbCdbyEQsLMqd0RrXjjsepVV1mE9F0zCGUko8Ny/QiBK lmi0NlDvWen4MhyrQCdl6fbg3AWfQgXOVSBkY2z4cA+m/Cpl26Z/Q4xj4/fQ7mrHUbh2 ADDa+iKEpb5/zzd7tdgZmmspmqZTMFvAgP0W1VBZJWBYuyvd7f8SgnM4B+gPf2BP2oTq 0KHhaRVNE3mUAKEeBED5uzN1xZ4QleMpEwiqQk7tAP5+mr4x40OV0YEtKs5yMGjkIZCS gFqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=LLO7UO65; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id i70-20020a638749000000b005b33c54df10si5573986pge.482.2023.10.22.21.56.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 21:56:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=LLO7UO65; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 39B408097890; Sun, 22 Oct 2023 21:56:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229540AbjJWE4Q (ORCPT + 99 others); Mon, 23 Oct 2023 00:56:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjJWE4O (ORCPT ); Mon, 23 Oct 2023 00:56:14 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EAC0E8; Sun, 22 Oct 2023 21:56:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1698036971; bh=Ke4ba6atseiCGvNMRr/6znd5xtFRbtHUZz7Nfd0RhdA=; h=Date:From:To:Cc:Subject:From; b=LLO7UO65CQSyEzJX1LilTBbq237FrMpbkgF4VAnw07wbiFcUpFESRACMoy//fZSH0 CDUyM5y9il2yconpoCpwR7YGEktpMn0lxbs6Mt304gTFNmId/ZEEml9ApLPQLEv1ww C2A0/wEOZ7u0vM5oUpHGp2HGXqjzWl6Zw9O7zNpppPGlAjtPAgnWUfHvWMCWprkYHx kwp2Ohji9ldBpEjtdrsQXC4X0xNcEm2hS940mRtro7S21if/ziPWD3SmhOY98vHzen pO85SMgYKK22EtlZllljJ0zicgHJzKbahkABNFy3vgF82QiPqDLs3T2LLmf7woUWBA //ff/B+PpmZLg== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4SDNF44qKcz4wcN; Mon, 23 Oct 2023 15:56:08 +1100 (AEDT) Date: Mon, 23 Oct 2023 15:56:06 +1100 From: Stephen Rothwell To: Jason Gunthorpe , Joerg Roedel Cc: Jason Gunthorpe , Jiapeng Chong , Joao Martins , Joerg Roedel , Linux Kernel Mailing List , Linux Next Mailing List , Lu Baolu Subject: linux-next: manual merge of the iommufd tree with the iommu tree Message-ID: <20231023155606.247fa998@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/i8kNvNtmyJ2frJSNEGZqtf8"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 22 Oct 2023 21:56:19 -0700 (PDT) --Sig_/i8kNvNtmyJ2frJSNEGZqtf8 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the iommufd tree got a conflict in: drivers/iommu/intel/pasid.c between commit: c61c255e114c ("iommu/vt-d: Remove unused function") from the iommu tree and commit: 3c576c995219 ("iommu/intel: Access/Dirty bit support for SL domains") from the iommufd tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. --=20 Cheers, Stephen Rothwell diff --cc drivers/iommu/intel/pasid.c index 06ddb3c927f5,b9264b9174e8..000000000000 --- a/drivers/iommu/intel/pasid.c +++ b/drivers/iommu/intel/pasid.c @@@ -335,6 -340,45 +340,36 @@@ static inline void pasid_set_fault_enab pasid_set_bits(&pe->val[0], 1 << 1, 0); } =20 + /* + * Enable second level A/D bits by setting the SLADE (Second Level + * Access Dirty Enable) field (Bit 9) of a scalable mode PASID + * entry. + */ + static inline void pasid_set_ssade(struct pasid_entry *pe) + { + pasid_set_bits(&pe->val[0], 1 << 9, 1 << 9); + } +=20 + /* + * Disable second level A/D bits by clearing the SLADE (Second Level + * Access Dirty Enable) field (Bit 9) of a scalable mode PASID + * entry. + */ + static inline void pasid_clear_ssade(struct pasid_entry *pe) + { + pasid_set_bits(&pe->val[0], 1 << 9, 0); + } +=20 + /* + * Checks if second level A/D bits specifically the SLADE (Second Level + * Access Dirty Enable) field (Bit 9) of a scalable mode PASID + * entry is set. + */ + static inline bool pasid_get_ssade(struct pasid_entry *pe) + { + return pasid_get_bits(&pe->val[0]) & (1 << 9); + } +=20 -/* - * Setup the WPE(Write Protect Enable) field (Bit 132) of a - * scalable mode PASID entry. - */ -static inline void pasid_set_wpe(struct pasid_entry *pe) -{ - pasid_set_bits(&pe->val[2], 1 << 4, 1 << 4); -} - /* * Setup the P(Present) field (Bit 0) of a scalable mode PASID * entry. --Sig_/i8kNvNtmyJ2frJSNEGZqtf8 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmU1/OYACgkQAVBC80lX 0Gz9ggf+PsOZQoqj/mYWFO5ZRm/XgJfvS9W5hSatw5MHZVabtn54FtLG1WNlp3+V FFA/wGFRouJ/4W0F6MSU2kgjQvvzFQh/dxsBLtCm/VUORM/Qg5+cRrxV4sdfdsIf Zy9JeIXqYnzkYWeY8X9o9e2XioTb82qWNkMv4zJC8gesUAlbnIN32WyvMaP8y4VU VFbHTWZSbxa/3fYTPQ5wQEHDlvzwASpiIO3Lhrphqup0J0X1Cph8wYx0oIUv7vS/ eCroqqLp/NN79fHZVbzQdV5kTGP7qDSlxJOLG1xoA+gfQ88psIWzhMu1QVXmyGhd rBrvf6WKSxRBqlwtycl3xF7pu+iiHQ== =5G2a -----END PGP SIGNATURE----- --Sig_/i8kNvNtmyJ2frJSNEGZqtf8--