From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 867BDC433E1 for ; Fri, 17 Jul 2020 20:52:40 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id 34F832070E for ; Fri, 17 Jul 2020 20:52:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 34F832070E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvmarm-bounces@lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id A36A74B15A; Fri, 17 Jul 2020 16:52:39 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id guAgtayvBxG7; Fri, 17 Jul 2020 16:52:38 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 9B8674B15C; Fri, 17 Jul 2020 16:52:38 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id C26254B13C for ; Fri, 17 Jul 2020 16:52:36 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v1kQ5gYpFjUO for ; Fri, 17 Jul 2020 16:52:35 -0400 (EDT) Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id B64444B146 for ; Fri, 17 Jul 2020 16:52:35 -0400 (EDT) Received: by mail-io1-f66.google.com with SMTP id v8so11801461iox.2 for ; Fri, 17 Jul 2020 13:52:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mhs5FFai87Ig296v3TqrQxrtuK3e2ENuVof1kjV7dWA=; b=hWIDvpTcnL4RwR5P8D9LJvdIg26ZyAUrjAyn8D3vJKh+uB22q8TnuE+mGGsVGUdBu9 wec/pq+Hzxm+ra4tKWO8qhQGlxB3aUe7d5f+1Hn9v2mDsxhg833Jc++RoSqzR7OdkONE Ag3WHkpLGVjU1LxiUYJ4AsQO5ugv4F83GGbEEee3bwmW675TahVuILMNRpLfUUWPsVhk LVkQpEun+WlR3ULGpXl/Ofz/vnzAVTpgJreG6crnq9j0qXYNc7+bkM/j0U+85syMpIZx FquJ5fHP/aPH7+MFyzeeksq8S9sXzhM6fzlGnzLhg94VsNNxuxCwDPhcjys2mTSpUBAs PA+w== X-Gm-Message-State: AOAM5303yfcczVqWvzEQY8QSigHk7DepeJlk1wncPlqC7nhBwU+cQdKO +k9sdEsT5NX2+7sbHpT2jw== X-Google-Smtp-Source: ABdhPJykbjET3b/SbtFLSHBP8S5wWN1jyjxTFrVnyhE4WKqweYLocoTBilT3/POJRVbrAlfFyG5H7A== X-Received: by 2002:a05:6602:2c08:: with SMTP id w8mr9219239iov.129.1595019155142; Fri, 17 Jul 2020 13:52:35 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.252]) by smtp.googlemail.com with ESMTPSA id 136sm4737492iou.50.2020.07.17.13.52.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 13:52:34 -0700 (PDT) From: Rob Herring To: Catalin Marinas , Will Deacon , Marc Zyngier Subject: [PATCH v3 0/3] Cortex-A77 erratum 1508412 workaround Date: Fri, 17 Jul 2020 14:52:30 -0600 Message-Id: <20200717205233.903344-1-robh@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Cc: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu This series implements the work-around for Cortex-A77 erratum 1508412. KVM guests which don't implement the workaround can still deadlock the system. This is also the case with the existing Cortex-A57 erratum 832075, so we add a warning message if an erratum can cause deadlock. Changes detailed in patches. Rob v2: https://lore.kernel.org/linux-arm-kernel/20200701215308.3715856-1-robh@kernel.org/ v1: https://lore.kernel.org/linux-arm-kernel/20200629213321.2953022-1-robh@kernel.org/ Rob Herring (3): KVM: arm64: Print warning when cpu erratum can cause guests to deadlock arm64: Add part number for Arm Cortex-A77 arm64: Add workaround for Arm Cortex-A77 erratum 1508412 Documentation/arm64/silicon-errata.rst | 2 ++ arch/arm64/Kconfig | 19 +++++++++++++++++++ arch/arm64/include/asm/cpucaps.h | 3 ++- arch/arm64/include/asm/cputype.h | 2 ++ arch/arm64/include/asm/kvm_hyp.h | 11 +++++++++++ arch/arm64/kernel/cpu_errata.c | 10 ++++++++++ arch/arm64/kvm/arm.c | 5 +++++ arch/arm64/kvm/hyp/switch.c | 7 ++++--- arch/arm64/kvm/hyp/sysreg-sr.c | 2 +- arch/arm64/kvm/sys_regs.c | 8 +++++++- arch/arm64/mm/fault.c | 10 ++++++++++ 11 files changed, 73 insertions(+), 6 deletions(-) -- 2.25.1 _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46C70C433DF for ; Fri, 17 Jul 2020 20:54:10 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 13B772070E for ; Fri, 17 Jul 2020 20:54:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="VBoMBFg+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 13B772070E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=NbbfKY4kCwNmvWdU4nBc5GAsG9fZaoFLkY7qDvzvyN8=; b=VBoMBFg+cBZQ2dH+sKzFTiVwoj VzQ3e6gjLgSZW84HAfoFd+Mf7LpG6kC/AgXjIQuRhwj98aD5ZFbMHoCy/MnLSx4vP4+AxvgabuDQU EtJougCYs2hGaQ4ECp2+cGymo0DIzbvCa2knRqxmuJBw/jEQsQKwF5FYOe/Mlc6TxclHRoc1HBbmB pAB/VZAJ9HYvNkx2EwV4Ql+UIh9dntYdqY0f1kJp/mkeFhFuQ5/htR8As0T2WIqfJTEkORdje7gHF RDu0BzqINuR02XqkPUN6QkzsDaU345bGr8xeY2DqDG7furw90/IVGOGv8I9y5hb/OY4VHXo0QscRy 29U/BSww==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwXLX-0002er-FE; Fri, 17 Jul 2020 20:52:43 +0000 Received: from mail-io1-f66.google.com ([209.85.166.66]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwXLS-0002dH-AW for linux-arm-kernel@lists.infradead.org; Fri, 17 Jul 2020 20:52:39 +0000 Received: by mail-io1-f66.google.com with SMTP id y2so11813565ioy.3 for ; Fri, 17 Jul 2020 13:52:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mhs5FFai87Ig296v3TqrQxrtuK3e2ENuVof1kjV7dWA=; b=kIBWwqrK/A1dzgdc37X373Gc/c3bQbqyK/xUysrAYTxEXq/I3H9OIFhLRbVgYq4h6Z /UWNp1O/TiMKHTjzlaO/xdohKYXtA+gLtNVsyxiHuC1jmZ2YqdiDuGSLtTAWBal2JcSy UTgn1Qap45Bc2i5PNBPlIyWFE/9nCqwuDMXSrKwmQkiEvU6jo5RV3r3LbOnxhUgoPz0L Z7uBK3q6/BpEuV6LJsvUyLg8WzirI7ZXfDsjcFKQKSFoSdHQk65oqgITFnzn9f5Q2+1/ Hcy9mfuM7nGPe64FEcVUQERjI6K5xUp4intmCUHn/2e8FOPFS/6Xoc4b7XY1u3D6tMM+ 2mGg== X-Gm-Message-State: AOAM532VUWu5uXEcfasgPNB+y4SMZ8GBY/IYyJj1fRkPlyBsmrFGrRmU pHichIxdLxJdDFY7QP0Z4A== X-Google-Smtp-Source: ABdhPJykbjET3b/SbtFLSHBP8S5wWN1jyjxTFrVnyhE4WKqweYLocoTBilT3/POJRVbrAlfFyG5H7A== X-Received: by 2002:a05:6602:2c08:: with SMTP id w8mr9219239iov.129.1595019155142; Fri, 17 Jul 2020 13:52:35 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.252]) by smtp.googlemail.com with ESMTPSA id 136sm4737492iou.50.2020.07.17.13.52.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 13:52:34 -0700 (PDT) From: Rob Herring To: Catalin Marinas , Will Deacon , Marc Zyngier Subject: [PATCH v3 0/3] Cortex-A77 erratum 1508412 workaround Date: Fri, 17 Jul 2020 14:52:30 -0600 Message-Id: <20200717205233.903344-1-robh@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200717_165238_424989_3CBCA9BD X-CRM114-Status: UNSURE ( 8.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kvmarm@lists.cs.columbia.edu, James Morse , Julien Thierry , linux-arm-kernel@lists.infradead.org, Suzuki K Poulose Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series implements the work-around for Cortex-A77 erratum 1508412. KVM guests which don't implement the workaround can still deadlock the system. This is also the case with the existing Cortex-A57 erratum 832075, so we add a warning message if an erratum can cause deadlock. Changes detailed in patches. Rob v2: https://lore.kernel.org/linux-arm-kernel/20200701215308.3715856-1-robh@kernel.org/ v1: https://lore.kernel.org/linux-arm-kernel/20200629213321.2953022-1-robh@kernel.org/ Rob Herring (3): KVM: arm64: Print warning when cpu erratum can cause guests to deadlock arm64: Add part number for Arm Cortex-A77 arm64: Add workaround for Arm Cortex-A77 erratum 1508412 Documentation/arm64/silicon-errata.rst | 2 ++ arch/arm64/Kconfig | 19 +++++++++++++++++++ arch/arm64/include/asm/cpucaps.h | 3 ++- arch/arm64/include/asm/cputype.h | 2 ++ arch/arm64/include/asm/kvm_hyp.h | 11 +++++++++++ arch/arm64/kernel/cpu_errata.c | 10 ++++++++++ arch/arm64/kvm/arm.c | 5 +++++ arch/arm64/kvm/hyp/switch.c | 7 ++++--- arch/arm64/kvm/hyp/sysreg-sr.c | 2 +- arch/arm64/kvm/sys_regs.c | 8 +++++++- arch/arm64/mm/fault.c | 10 ++++++++++ 11 files changed, 73 insertions(+), 6 deletions(-) -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel