From patchwork Wed Apr 29 06:56:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1279015 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49Bq9V3Zhfz9sSl for ; Wed, 29 Apr 2020 16:58:38 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=iqYNa5E0; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49Bq9V2m96zDr7C for ; Wed, 29 Apr 2020 16:58:38 +1000 (AEST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::543; helo=mail-pg1-x543.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=iqYNa5E0; dkim-atps=neutral Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49Bq7q6XFCzDq6k for ; Wed, 29 Apr 2020 16:57:11 +1000 (AEST) Received: by mail-pg1-x543.google.com with SMTP id s18so574656pgl.12 for ; Tue, 28 Apr 2020 23:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/6JyT2xaRj3teNFbje95z/LRcfHmPJ1SD5MPC090I04=; b=iqYNa5E0zos2zYLWOAA4JDaVUprDTcLm7dbzqBKEwwJ6CJlqdbuWa/8hMfzORE1gUI gYXtvd/ktm2AtXDOiVZVrsXmSNuJfthn/PVtogzcbm/gaTqlzsKAApSswtTTQD0JKcmy TftiRSNl9+o3xt2w1M1cIwyvvGvWmrnWDzUYbIhfht5CHPVuFd3rSe6WI9opsQ8xEZLp D/h2yEtVRdvXO5yEDNFPs+Qy6K78qbF1DmSfHxRJPmB8cABwc2WSwakYubYPCNYw0wP0 I4Cr0uzYli30TzU3ZKrp6YSICe6AUhxnpHbvCfSJxsTa93mo1+6uCsFYnDu3xkuxnaB3 leJQ== 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=/6JyT2xaRj3teNFbje95z/LRcfHmPJ1SD5MPC090I04=; b=Uno5O+wBEB7MWjJHTqPfccRwiFaIJt01qglMMmO+XDtWUb2yd9FQxF1UbgZKVFvG/i xCcZluHLVH3mWxLRANrVCrgpj2Xn8CsEiOdhQgxIS/X4PV29LaC4oZuSfygRgiG19pbP 3c2y5+d9uOrQTBHZMc5VMikOrLNVuvaFpmbiob+3ckll+Lx0obmUoNRkDtRMHZt/+bzP gX9BkT8H24GJX37gyyooB+Jx7xUE7rUgTBRCcOoC9vmpl+EEjF1ILFAXJZCyGFYUv5om STI3pSVcFP0IYqqK6HEES0sn1jvl8v5IIFJ3+g0AnQCi0Ryw+aQ77FltS6YZrFIGM2OJ 6aYw== X-Gm-Message-State: AGi0PuazLpL26pYkpDh03g595fn3Jkh6VT7OUWrYXrCs9plHrCn6+KyM yKW4FshCz3K/Se69Am9KlQ+q1bz6 X-Google-Smtp-Source: APiQypLEurF7kCJkrRatsuC0fK8F2v6kQWdhlW8mwj+iJMk3foYIeG3bHyxdygdOup3D7v3rOIWmfg== X-Received: by 2002:a63:5009:: with SMTP id e9mr30167614pgb.381.1588143427095; Tue, 28 Apr 2020 23:57:07 -0700 (PDT) Received: from bobo.ozlabs.ibm.com ([203.220.177.17]) by smtp.gmail.com with ESMTPSA id a26sm254660pgd.68.2020.04.28.23.57.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2020 23:57:06 -0700 (PDT) From: Nicholas Piggin To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH 0/6] assorted kuap fixes (try again) Date: Wed, 29 Apr 2020 16:56:48 +1000 Message-Id: <20200429065654.1677541-1-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nicholas Piggin Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Well the last series was a disaster, I'll try again sending the patches with proper subject and changelogs written. Nicholas Piggin (6): powerpc/64/kuap: move kuap checks out of MSR[RI]=0 regions of exit code powerpc/64s/kuap: kuap_restore missing isync powerpc/64/kuap: interrupt exit conditionally restore AMR powerpc/64s/kuap: restore AMR in system reset exception powerpc/64s/kuap: restore AMR in fast_interrupt_return powerpc/64s/kuap: conditionally restore AMR in kuap_restore_amr asm .../powerpc/include/asm/book3s/64/kup-radix.h | 45 ++++++++++++++++--- arch/powerpc/kernel/entry_64.S | 10 +++-- arch/powerpc/kernel/exceptions-64s.S | 3 +- arch/powerpc/kernel/syscall_64.c | 26 +++++++---- 4 files changed, 63 insertions(+), 21 deletions(-)