Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp249583rwb; Fri, 13 Jan 2023 23:11:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXtjrUFGEMYQvDwFdMIomzo26wFujBIRhykf6I0iwGE0j/mDgqEq2kUgkKVjRRZ7IsVLiLox X-Received: by 2002:a17:90a:6fe1:b0:223:7910:95f8 with SMTP id e88-20020a17090a6fe100b00223791095f8mr14483635pjk.36.1673680292000; Fri, 13 Jan 2023 23:11:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673680291; cv=none; d=google.com; s=arc-20160816; b=pqmPdzMQGz7w9uSAjp24tGUnM+Aa619bBUHEMymuCNS1C5bECppfoiRtOEUeGRZFrw YKqeQxAf+H9OWA+tw6zEVVQnX8pBdkD0V0Uw3l6xZbBAumRhCWQ4SuW+Ry8nC7kOU/2I LTWA5kpZuGNG6RM8pJqQELCPhdn6fNfSqyDzcFN3pOZVqnhHoBdNW2r4dbhJ0408EtuS ohvEfZERY2X51w/XieL9px9SHHVQECCKV+B/CWv9m9SOeF3Ky5CB+3FJ0loDpgQBwl36 Lcy0v/uuN0ejyszGQjMt2NUFLIGl3yho9e8zS21BzajPV+1Zz3Lqdg6ddH7H9B+lMv2s qRqQ== 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=MsUZDGL1EFf0CutgVm6rDjGxemDX+rdvrAyMQ/mAubI=; b=GF1Po+1X+FtVSQwnStel3Zrab4Pz+9cD5n3LIfoPtymOlz1FHzI3balOeQ1LhArJBR 48mOGG3LDlx5UE+xvEzcBh1ATbxZrG7Y/HsZ8TPXUafrZipHDc4btlD7uAq17FEaGw7L 047PpoMtRWXBY6iqmdPUpX0e+cUx8/0K3WS+PCKkcdYaHRV22vOPQ4FbPF4Nw3Sb/gPS t/5usstScEOYAKDKqR281b3jlozI2BqT+qdUsVrMgcca34HG7Urk6FF89xyi3CtqnITz 8Ed3/k/82uhWkexLcNGuuFL/X3XH34k1rVUjujAhOwpHFn45mEdS8NtHd5l53zoqEnXL boNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PgCkeAjR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i11-20020a63e44b000000b0048e225a6e16si22821895pgk.199.2023.01.13.23.11.25; Fri, 13 Jan 2023 23:11:31 -0800 (PST) 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=@intel.com header.s=Intel header.b=PgCkeAjR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229636AbjANGtB (ORCPT + 51 others); Sat, 14 Jan 2023 01:49:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbjANGsl (ORCPT ); Sat, 14 Jan 2023 01:48:41 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE06046AB for ; Fri, 13 Jan 2023 22:48:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673678920; x=1705214920; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=XsM/vRhs05DLA99A717nlC82ZdpLOZNvxrsRWsZdQNY=; b=PgCkeAjRkvB0DYZAGpyjPtVMm3f/m3oR0b7yogJFe8QfIYSZln1DJ/8h e/8OHi63I98mAqVXijHTKgN4agclgrUhjyvlqjtzMSsUPSP7Y4YPbNa+i 4FPsApThgpKzh5wQGBg7KLB5rP5oEo7l6hElWABJvptWIqsEfV2wcWA4O 5Ul6tg4RT2eKeiTLtT4ZfXtYIBdFsNGiK/Y5j0virrK08+SiwJWn7DYrY P0Jyy9/8i5XRu4IacFySfogGKu39H2R984YVD9BkUUpbr/pVGQ5CqSgEC oKACImzkPrz9W7qi6gMf1mOSGpkdPsSnqYnQLuaqUZFsW3r9eZrPg2gBX g==; X-IronPort-AV: E=McAfee;i="6500,9779,10589"; a="326226135" X-IronPort-AV: E=Sophos;i="5.97,216,1669104000"; d="scan'208";a="326226135" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2023 22:48:40 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10589"; a="721762716" X-IronPort-AV: E=Sophos;i="5.97,216,1669104000"; d="scan'208";a="721762716" Received: from blu2-mobl.ccr.corp.intel.com (HELO [10.252.184.153]) ([10.252.184.153]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2023 22:48:37 -0800 Message-ID: <2d49a943-09f5-5479-2f71-cc2051155f70@linux.intel.com> Date: Sat, 14 Jan 2023 14:48:35 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Cc: baolu.lu@linux.intel.com, Will Deacon , Robin Murphy , Vasant Hegde , Chunyan Zhang , Sven Peter , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Joerg Roedel Subject: Re: [PATCH] iommu/ipmmu-vmsa: Remove ipmmu_utlb_disable() Content-Language: en-US To: Joerg Roedel , Jason Gunthorpe References: <20230113185640.8050-1-joro@8bytes.org> From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 2023/1/14 5:29, Joerg Roedel wrote: > On Fri, Jan 13, 2023 at 03:45:46PM -0400, Jason Gunthorpe wrote: >> On Fri, Jan 13, 2023 at 08:25:17PM +0100, Joerg Roedel wrote: >>> In general it is a good idea to at least compile-test every file that is >>> changed in a patch-set before sending it out and not rely on 0-day bot >>> for that. >> Against every arch combination? This is why we have automation bots ???? > No, not every combination. But if possible please compile-test each > changed file with a .config that pulls that source file in. Lots of > drivers can be enabled just with COMPILE_TEST on x86 or be catched with > a generic ARM/ARM64 config which enables all IOMMU drivers. PAMU is a > bit more difficult as it requires a PPC-32 bit config, but that is the > exception. > > A full kernel build is usually also not necessary, often a 'make > drivers/iommu/' with a given config is enough. > > That is also how I compile-test the IOMMU tree before I push changes > out. There are per-arch configurations which select all IOMMU drivers on > that arch. Only for X86 I do the full allnoconfig, defconfig, > allmodconfig and allyesconfig cycle (each for 32 and 64 bit). > > That certainly does not catch everything, but a lot of compile issues can be > found that way. And for patch-sets only touching, for example, VT-d it > is still enough to only compile-test on x86. A patch-set touching that > much drivers is rather the exception. This one as well. Thank you for your feedback on 0-day. -- Best regards, baolu