Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2346249rwl; Thu, 6 Apr 2023 09:01:17 -0700 (PDT) X-Google-Smtp-Source: AKy350YMB2n0eq9x3wOox2KgDCZNtjD3qBFJbc21vbmgc0f+JtR2D8bXAJfVAnw5C1Yd2ckLjxd2 X-Received: by 2002:a17:906:3917:b0:8b1:7ae9:647 with SMTP id f23-20020a170906391700b008b17ae90647mr6730585eje.76.1680796876957; Thu, 06 Apr 2023 09:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680796876; cv=none; d=google.com; s=arc-20160816; b=IGMEZyFBk/12/bWOPZN1kQQF7+x1CoXbTyTWGnIRlt5H/EzQ3tygWkhzaENFLi3Xme VvPfB/vqlvQrHJSXolhihiOtMvBACvcNpmLbOhZvhPjoiwtIB+BKrn8Nb13rrLQdisEU M/XRRxzvmKEGwucNsjfxBEv/61hx8GZWHJaaDSevG4Iodj3Y4eWFRNe4nzwVzrb3faDf j2OfWorzkNxZVwJ+2f7EnQmx5Wr2KmASZBUjpH7/TrKnBZEiWhfipTPwCp/32rXcGFjK h4C8NbQQdajOa6dFkvDFim33+tjKnwPcUBhCtKxa4Z/5RSdnb6KC/w0aaoqNDMWG+Al1 yZmg== 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:feedback-id :dkim-signature:dkim-signature; bh=trO8jc03FJLvTQr9TJ/mrkQxrmA3NZ7pQ+cjfH4ljHA=; b=myxc5P70L/3GfWQhtMFVLdqUTI86NOVeyRoxVWVP4X1VFtYn4wafdxhDrvt3mSMPE5 m/dgBt5uWK1psqJ5ltXm85LZLBJbRiGz+MJzfJ5yEEHDgkvV23JEJXx4zTxvjY0VcNIz BYtAhv8XAHvxrk3j6K2rTELOHr3TIVAT7Aq93KNJu+09ufCIHq8mVSFnGkN1JLdIjchS PrjbwV6dT+EzHjXnWqa2VaIYuOF5/JX9m0Aqzv5yLzA50gWWF0d1tbi+dV7dD5Ru3yR4 bhSL8N2UKhoohyx+qOeLioKHy/jwOQUxX0XykzACGfZsPf6PUFnXkOjaWzDUymt54h4F DFYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov.name header.s=fm1 header.b=DdqEV9U0; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=pVWYKPCw; 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 kq13-20020a170906abcd00b00948b9888fcfsi763646ejb.381.2023.04.06.09.00.45; Thu, 06 Apr 2023 09:01:16 -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=@shutemov.name header.s=fm1 header.b=DdqEV9U0; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=pVWYKPCw; 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 S239704AbjDFQAD (ORCPT + 99 others); Thu, 6 Apr 2023 12:00:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239658AbjDFP74 (ORCPT ); Thu, 6 Apr 2023 11:59:56 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3F06A27A for ; Thu, 6 Apr 2023 08:59:54 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 7283F5C00FB; Thu, 6 Apr 2023 11:59:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 06 Apr 2023 11:59:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov.name; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1680796791; x= 1680883191; bh=trO8jc03FJLvTQr9TJ/mrkQxrmA3NZ7pQ+cjfH4ljHA=; b=D dqEV9U0jb0GbAcy+Z+YHa9vWqDcOdV11TU5V3txMnnIIP/5vEB/EV2TeqaYRqUp7 O+do7wxJwzR7J/3JEqfHu4EgpTMFhEOC/lPN/RWakbh5xgkNK22zvCQ7TPe64fRP 9IGy/0C+rB6l954EP+bkQg0WIzCWHx6GyPwQHu3jIRohFqwkpIx1Jc+Nz7IswKxu CL/oYYxIb4os9svlgXjpF4iKyF4f0kYxFuCoHqC2ahtMQe923nFOQBb3DojjpyjN oCX64nG1Gyo1gWIcUTr5y6wWe4wBqJoq6JAcaq4j44DqeMYf0f1HNN5ZcrPnoV4d tzTboTMYUMoD+DS56fbIA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1680796791; x=1680883191; bh=trO8jc03FJLvT Qr9TJ/mrkQxrmA3NZ7pQ+cjfH4ljHA=; b=pVWYKPCweySGyFodQ6stjV6Orskps S7oJXvI2shkOWIEovlHJFRiFkQfHb0YTEWY3C2pvDbKp55W17Zas4Jg40lv2Pe+u QOxUbsSeJMhOSG549C1WvdfU8INOnYKan6gTN/HzhhIKn7mRGHnqxCp5/IfyOk2x w4EsV4p49OqaDs6qeA9P+oj0A/mSJQSBrsE8KfSko3HetmPKDEz3aK9ImQ82WBKA nZxOofj9FwGWum+FeFiNdtHRPeEHSuNxdakoG5liGZUzlD+nY/0KarBj1Afo/PLd XiIm11qskilbFiB+NuPDlU2tDmfSGP808fBwBggLNSB3GIEKDD32aqhIQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdejfedgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepfdfmihhr ihhllhcutedrucfuhhhuthgvmhhovhdfuceokhhirhhilhhlsehshhhuthgvmhhovhdrnh grmhgvqeenucggtffrrghtthgvrhhnpeffhedvveeuheeljedtkedtkeeiieekgedtveeu tdejkeevudffudfgveeggfduvdenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepkhhirhhilhhl sehshhhuthgvmhhovhdrnhgrmhgv X-ME-Proxy: Feedback-ID: ie3994620:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Apr 2023 11:59:50 -0400 (EDT) Received: by box.shutemov.name (Postfix, from userid 1000) id 311BB109B00; Thu, 6 Apr 2023 18:59:48 +0300 (+03) Date: Thu, 6 Apr 2023 18:59:48 +0300 From: "Kirill A. Shutemov" To: Dave Hansen Cc: "Kirill A. Shutemov" , Dave Hansen , Andy Lutomirski , Peter Zijlstra , 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 Subject: Re: [PATCH 1/2] x86/mm/iommu/sva: Fix error code for LAM enabling failure due to SVA Message-ID: <20230406155948.hlhb53xb3plq6sh5@box> References: <20230403111020.3136-1-kirill.shutemov@linux.intel.com> <20230403111020.3136-2-kirill.shutemov@linux.intel.com> <24661bc4-cc95-5c1b-b88d-94d4ce335d0b@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24661bc4-cc95-5c1b-b88d-94d4ce335d0b@intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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 Thu, Apr 06, 2023 at 08:31:40AM -0700, Dave Hansen wrote: > 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. Got it. For this one it is: Link: https://lore.kernel.org/all/CACT4Y+YfqSMsZArhh25TESmG-U4jO5Hjphz87wKSnTiaw2Wrfw@mail.gmail.com -- Kiryl Shutsemau / Kirill A. Shutemov