From patchwork Mon Apr 3 11:10:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kirill A. Shutemov" X-Patchwork-Id: 7629 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2221790vqo; Mon, 3 Apr 2023 04:18:49 -0700 (PDT) X-Google-Smtp-Source: AKy350YMT9TFriZ7HoveVasy2CU2A8o548Vg9ymOICX8CzD/DupDhSD3yZnxsDoicun6dRlKEHh1 X-Received: by 2002:a17:907:d09:b0:930:e634:3d52 with SMTP id gn9-20020a1709070d0900b00930e6343d52mr45333050ejc.24.1680520729555; Mon, 03 Apr 2023 04:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680520729; cv=none; d=google.com; s=arc-20160816; b=zXPmBDpN29qpWEZ+brpI4EzxhSs7+3rJ7wnwbmNegTqYig7gneySr+537GskBTuDpx Hnb1UTG9AB1kfwDrYqcnswsaHKdXm8MkWXb8BvUy4crWTW/I8emGYkFXiBa45ATuU4HF fFfGgXL3mTkUkK6S0PTc+3mNmn4VJmru1HJLtQqCt360codqGJSx+FRfp3I5eNsaTIwh SRqbL6gHVJVInz81te0kXq964aNDGmR2WqNR9mXaCvvsf9SQcijQLiJXr9/l7bIJfgBu +o2b8DJffBnPaHFadqt3b+4LmnWfBuAn7bdSMGRqY/gqO231WFiaSlt29BL81/AOKyX9 LxWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=EkHM10IzopIX7pHXLErDqrhGeNWmDqCXXs4ieDYkauI=; b=X9emzMd3LxzS/6pi8pNJHREL7WPgbUWRwalQgGzR1AbjDQHpNvlR93nsFmToQJ9Cmr kWjxmFeXo+AGFVQQ9ZY1RUQ8wHl0Reh4ZXoZp8Ntxqy3vUPsxYrRosvvQSAgKaZKygkC l+2kqiNHBhgo7Dd1cUn5xpSzB6yhaY3UHKKFEDU30pmWG8Spw6BZSih8eLZ/BLwaIeBu Qoq7VGhCRa0h6EZb3UjKdM5tH/R2LtALgFVXmS/m8+wJOY2umdnVtuKE0j+31Z0kKYXa OMKcK/xlIlO1e4WBNqV2QgVJWPuSGjUh/fOD5UIGx9C+xTmnIGxXxQ5gGYMWHY9+bato LgKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=G4gAwzXE; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m13-20020a50ef0d000000b005020ef37a34si3696001eds.175.2023.04.03.04.18.25; Mon, 03 Apr 2023 04:18:49 -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=G4gAwzXE; 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 S232151AbjDCLLM (ORCPT + 99 others); Mon, 3 Apr 2023 07:11:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231790AbjDCLLK (ORCPT ); Mon, 3 Apr 2023 07:11:10 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4992D30FB for ; Mon, 3 Apr 2023 04:10:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680520232; x=1712056232; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=gXsYvqw9RPVvwxej0jm0sxGMXH6vFybKsaGhd9VshZQ=; b=G4gAwzXEd+ZKEes9tXnF/B+SkN5iol76P+08bJx1Be1Kse7oHFQocFoG jVCdobYesirh3l1kp6YM6QgQ8fW1Y/yDWDItjf3hUzJEVeurUBMkRtpLR /+8zDKEot43QtSeLVxcdWjKO6hA7iWfW66v+8ogP19wqfvMRAjlFtmRRT +A7tW4I8N/5oBvdMGiIWXb6HQcmmWyEgojMBdkJTxedkjhMKj/6VS89eq OmNjW5Aw3DjesOceglH0Nj4XTzLaCvG8ZOQMrSjgf6h1huLNUn/2qGtDR +POspHj3wpqH7g61jzhEqOzZ1LS3l8IkEoNPg+Ym5K5UabYAEsEVUAsay Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10668"; a="330440419" X-IronPort-AV: E=Sophos;i="5.98,314,1673942400"; d="scan'208";a="330440419" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2023 04:10:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10668"; a="860164459" X-IronPort-AV: E=Sophos;i="5.98,314,1673942400"; d="scan'208";a="860164459" Received: from amomin-mobl1.ger.corp.intel.com (HELO box.shutemov.name) ([10.251.210.227]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2023 04:10:26 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id E079A10D7B3; Mon, 3 Apr 2023 14:10:23 +0300 (+03) From: "Kirill A. Shutemov" To: 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, "Kirill A. Shutemov" Subject: [PATCH 0/2] Couple of trivial fixes for LAM vs. SVA interaction Date: Mon, 3 Apr 2023 14:10:18 +0300 Message-Id: <20230403111020.3136-1-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762153704441414430?= X-GMAIL-MSGID: =?utf-8?q?1762153704441414430?= - Do not allow to set FORCE_TAGGED_SVA bit for other process; - Use EINVAL instead of EINTR for LAM enabling failure due to SVA; Kirill A. Shutemov (2): x86/mm/iommu/sva: Fix error code for LAM enabling failure due to SVA x86/mm/iommu/sva: Do not allow to set FORCE_TAGGED_SVA bit from outside arch/x86/kernel/process_64.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)