Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2314625rwl; Thu, 6 Apr 2023 08:33:49 -0700 (PDT) X-Google-Smtp-Source: AKy350bHvj83DHPBkIkVV7nps6adHGVQnoYQSxYJqK+V2Sh4FJZc99w6aYwUUqbRI7vOgzGkiySm X-Received: by 2002:a17:90a:41:b0:23e:2b3c:d4a7 with SMTP id 1-20020a17090a004100b0023e2b3cd4a7mr10813691pjb.35.1680795228597; Thu, 06 Apr 2023 08:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680795228; cv=none; d=google.com; s=arc-20160816; b=TfOThIzSFyR/B0vzy8CmmtGmqScYKOjcerY7OD/86E2/w+P0BWedaZU6Z4M+S317ce V7l5q8aKPI9RbuVcQz3Zlfa6/LCk1IQrhUrgoGpLLMBXPvmCrQ7RVa0Msd+GkKXC0Zoa dIIetAFSk0+636mjJ3pmrt9XUmyGPpXJJFyH5iIHwFH1GbWsvt4tLAqDvFQTwJGyKWE6 mFLFGBZJwtFU+cieqix/sOF7tIPdrwwxnvccnBS+k7nfkvGEtbCHt9fFPNnTMcMWCt/7 OfikPfQBexMZsX0TFyZQPAqHtokBEfjGhg7UDnoX9rPzmGHBJd9bMv8zd/VZrM5fuojE 65Gw== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=azSveYtsvIrZjoVt1aC8Z5NwZpxVuO7o21DTx0HqGWA=; b=eEv/JbNn/UPPmILboHAp9dSwj3aynVLP/U6KEuJLmLv8ZOMqLXawLwD/XuY62iGFL8 xizaKUaSZ5FQWekljptHJoD6NF4t6IaR5BYMfZeCpCmSkCjqhai8jTVRnJ/pXiIkh5NV q20DQ59zleRnimVvjsX0HLcCD6KJQiFGO9A/VJQTCOH7+5tkYukeXrrwgYMMqPQI3QjF DjHBGkzN7MppE4LfT3aJyAXUJi3mNi7eNgovIbF/JqYOnVHp4knChh6/SFaQXiR7nlPe Cd8A9O35ZhYlcgySmJZNhM7DYLyfa7Lw3YP5R0eO6OzZEGMAbUfu74g9m96Bg5Z+mY1c hLVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N9dH4UgP; 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 rj14-20020a17090b3e8e00b0023f5452b573si4411756pjb.141.2023.04.06.08.33.36; Thu, 06 Apr 2023 08:33:48 -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=@intel.com header.s=Intel header.b=N9dH4UgP; 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 S238743AbjDFPcw (ORCPT + 99 others); Thu, 6 Apr 2023 11:32:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbjDFPcu (ORCPT ); Thu, 6 Apr 2023 11:32:50 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 124BD271E for ; Thu, 6 Apr 2023 08:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680795170; x=1712331170; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Ruqew8xBk5gM/kBHIUBFERD+y/y6oG1MmbVU4HLVKms=; b=N9dH4UgPR/7S2oAwxN2jiCwpRtG70jk0Pcfe/EX8WJSdxzMt9LT0EW/j ZhZKWYh8PGdOLqC20/j2rKbXRuGmGj4gwntT3wpX0w/xGyZJYH4PdhZnR 3vIN0u+PEChrz/Mu7AnlrmT0DZR9dDDrOPJ3vvcbitDt2QC3KGkKVTkCW pRP7uli75y3P5+aEjn49ATfEgQOnz4WUK+dI0Ux4meT+gRASOZoUGLYha uDH5hgxXIjxL2li8ZKHbVByAtp5Jh32p9nuEyLH18jAU1JIiMn6ZTl98t PbofPxYYO7+XW/+MonggTepdxwaRDnbspvyRgBpjgvGxL50IFZ8pdF9js w==; X-IronPort-AV: E=McAfee;i="6600,9927,10672"; a="370596770" X-IronPort-AV: E=Sophos;i="5.98,323,1673942400"; d="scan'208";a="370596770" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2023 08:31:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10672"; a="756397773" X-IronPort-AV: E=Sophos;i="5.98,323,1673942400"; d="scan'208";a="756397773" Received: from mariowei-mobl1.amr.corp.intel.com (HELO [10.209.123.94]) ([10.209.123.94]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2023 08:31:40 -0700 Message-ID: <24661bc4-cc95-5c1b-b88d-94d4ce335d0b@intel.com> Date: Thu, 6 Apr 2023 08:31:40 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 1/2] x86/mm/iommu/sva: Fix error code for LAM enabling failure due to SVA Content-Language: en-US To: "Kirill A. Shutemov" , Dave Hansen , Andy Lutomirski , Peter Zijlstra Cc: x86@kernel.org, Kostya Serebryany , Andrey Ryabinin , Andrey Konovalov , Alexander Potapenko , Taras Madan , Dmitry Vyukov , "H . J . Lu" , Andi Kleen , Rick Edgecombe , Bharata B Rao , Jacob Pan , Ashok Raj , Linus Torvalds , linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20230403111020.3136-1-kirill.shutemov@linux.intel.com> <20230403111020.3136-2-kirill.shutemov@linux.intel.com> From: Dave Hansen In-Reply-To: <20230403111020.3136-2-kirill.shutemov@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 4/3/23 04:10, Kirill A. Shutemov wrote: > Normally, LAM and SVA are mutually exclusive. LAM enabling will fail if > SVA is already in use. > > Correct error code for the failure. EINTR is nonsensical there. > > Signed-off-by: Kirill A. Shutemov > Fixes: 23e5d9ec2bab ("x86/mm/iommu/sva: Make LAM and SVA mutually exclusive") > Reported-by: Dmitry Vyukov Hi Kirill, These look fine. But in the future, Link:'s for Reported-by's would be very appreciated if the discussion happened in public.