Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp18762rda; Fri, 20 Oct 2023 18:33:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEoi4Uu4NAmXihogi2ouQ+bA8w3ipyLN3mr3zKyqtu6we+mazmDImyjhUjlX7LOA99acQrv X-Received: by 2002:a05:6214:262e:b0:66d:9ef7:f381 with SMTP id gv14-20020a056214262e00b0066d9ef7f381mr3203813qvb.4.1697851991134; Fri, 20 Oct 2023 18:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697851991; cv=none; d=google.com; s=arc-20160816; b=q1Lq3M4P5e5F6+vbU71sWTwXIKqNz3G6UmsHvmyLTagrBRrYPWl5N2e70hmkYzbmp4 tlz79ZAFnc9rkpfLUtUI14KL5nIj1EtVpiEj5aYJBp+7gRM2YAQnhDCzyvGrJfpe0eAy UrtQCmP0Y10CCl1iQ5R0FbSTKTFtY4OBqq6nhCRSPD4xnJQPVGRVOiMcKlsWwKHYfGJq 64CloLMhALRd/XPhEpyAqfTFR9PO1MEU5nyEP1du+sXHmpzRvnYCKOfkQ0AUqZyK1lBo Z3y3nN7vQZKEBn74jwOUvDPAXj8dGsqnHNogNSkcYw8TgzIcqosoZVxlwpO2kC5rVDY3 hI8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=st7ZpmyUK92QFGMYMY2+puhMNeC1JTPqNuKkjkCe+5g=; fh=w1swM85JoIQrU31VH/c2tqUCi9ZEtnDnJpIizkQvSnU=; b=jhaDGvJiZ9oF7jT7IKayyu4Dy7sHbB+i/WRcM7GPsgv59ACsLUMqW8sL9T1D6kKSb+ kye0keJ/kr+xo4sK3O56QC0VaJnGsN6/lVLwV/wzLr2wPEek/Z9F44LqrPCm2ZHThk/a igOBHBQZv6w9rTua1gWzesOhPctHJnCDxOVV9Sfh/aTx82m857e93OOYm16y/jPsNpaE fGNduqXfksGlCeyPiujgwYGCIpyzwreyIeex/36sJpslqt8mMFrXz2qDw3K/u9cSYQVJ vZwZ71W2AV0rYpZhv+upTStkQCkzbaL9w5l2K20cgGqdDaedg9AlaQBVbuM8jYCRro7e xaLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HQKKfZCg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id w16-20020ac857d0000000b0041983be87b9si2259531qta.629.2023.10.20.18.33.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 18:33:11 -0700 (PDT) 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=@intel.com header.s=Intel header.b=HQKKfZCg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 7525C80AFB9D; Fri, 20 Oct 2023 18:33:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229641AbjJUBco (ORCPT + 99 others); Fri, 20 Oct 2023 21:32:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230318AbjJUBcm (ORCPT ); Fri, 20 Oct 2023 21:32:42 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4902FD68 for ; Fri, 20 Oct 2023 18:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697851957; x=1729387957; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=70i1/C+fbIE2VpSwskddcgtUORM3772WnaPj85EQ9bk=; b=HQKKfZCg4n1MtDsa76TVBtUlgQyI6gcG+Vq1k/3pmASwH0Jxp2lSdMWT 78en9vU2hEIuz+x3yDHb/ZLTErXYNHq1IcMh0YUVRqSk9opKgpMUzreC/ +5UMmnxB54k+U7UeijIor01MalK/CYCWwkZliKBznlM+fo8OdXDnAJc8y qXZ9n446p1Egtm8gZLPkNozl+d+i6A3h8FP49sofPzf2MCQ+hMGLA1Kmg imM67WJrr5gqu6HvBDEJrkrEha9LzJRUWVjTi69LzWakFFLiuZm0xkjqE vO4CqsYBuLsaL/pfvfMdTirIUGaknGcNv8Tt60PSivJZVTyEkQ3syrSu0 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10869"; a="383808087" X-IronPort-AV: E=Sophos;i="6.03,239,1694761200"; d="scan'208";a="383808087" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2023 18:32:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10869"; a="848253825" X-IronPort-AV: E=Sophos;i="6.03,239,1694761200"; d="scan'208";a="848253825" Received: from blu2-mobl.ccr.corp.intel.com (HELO [10.255.30.224]) ([10.255.30.224]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2023 18:32:34 -0700 Message-ID: <2201ae4d-b825-49a5-ba73-c6b310e2969c@linux.intel.com> Date: Sat, 21 Oct 2023 09:32:32 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: baolu.lu@linux.intel.com, joro@8bytes.org, will@kernel.org, robin.murphy@arm.com, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, yi.l.liu@intel.com Subject: Re: [PATCH 0/2] iommufd: Only enforce_cache_coherency when allocating hwpt Content-Language: en-US To: Nicolin Chen , jgg@nvidia.com, kevin.tian@intel.com References: From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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, 20 Oct 2023 18:33:02 -0700 (PDT) On 2023/10/21 8:37, Nicolin Chen wrote: > https://lore.kernel.org/linux-iommu/20231020135501.GG3952@nvidia.com/ > The conversation above concluded that a hwpt should only enforce cache > coherency per device at the stage of its allocation, and it should not > be changed or updated in the attach/replace routines. > > Add two patches dropping the enforce_cache_coherency calls from attach > and replce routines respectively, since they were introduced with two > different commits. > > Nicolin Chen (2): > iommufd/device: Drop enforce_cache_coherency in > iommufd_device_do_replace > iommufd/device: Drop enforce_cache_coherency in > iommufd_hw_pagetable_attach > > drivers/iommu/iommufd/device.c | 19 ++----------------- > drivers/iommu/iommufd/hw_pagetable.c | 2 +- > drivers/iommu/iommufd/iommufd_private.h | 1 - > 3 files changed, 3 insertions(+), 19 deletions(-) Hi Kevin and Jason, With these two fixes, there's no issue in the intel driver any more. Do I understand it right? Best regards, baolu