From patchwork Tue Sep 13 03:08:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 669112 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sY8qK5wW3z9sC3 for ; Tue, 13 Sep 2016 13:12:13 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=zdtCBx+g; dkim-atps=neutral Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3sY8qK4tSczDsW5 for ; Tue, 13 Sep 2016 13:12:13 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=zdtCBx+g; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pf0-x244.google.com (mail-pf0-x244.google.com [IPv6:2607:f8b0:400e:c00::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3sY8lk6ThNzDrp5 for ; Tue, 13 Sep 2016 13:09:06 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=zdtCBx+g; dkim-atps=neutral Received: by mail-pf0-x244.google.com with SMTP id x24so8934306pfa.3 for ; Mon, 12 Sep 2016 20:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Hn6IXHHnc/tJD7xbpRD3nRAQJ64R6eM/Fd2vV4wguaU=; b=zdtCBx+gM3zHiHAS+0kwbf6zT2C3B4oGU08c/o20Vu2SysSlHN83lnMa/dK1++UjH3 Qp1BWHlIG+Qte76kd1p78kwiGFNYmMYkuLT2vefebQkFsWlUQbtA/VyukafjEgIQF2vt XE2u2jhcE+UBBKufB1sArDfefg9g0aPHN5NkaIkjnEnRXCxSE/25KPQeDJQZgvkDk49K YXqpnXCtWHpfgAC0h9nqozinYKWkfWb9uHQABNXF8DV3sJfFDFx0Pv/5uMw0qc0xxWXW oPoMWI/yoJrt8k9gIoW6uBnWnbK3P8Yto0O+oPVpxYepOla2HR6KDz2vNHGr8btB2T6Q xxGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Hn6IXHHnc/tJD7xbpRD3nRAQJ64R6eM/Fd2vV4wguaU=; b=ZNnWDVRRYW3vJjiDPYWDRVHGTERcYoLTwIjsaKwtRLNmLpr2xxGek/62dPLUmzTNlh Eurc0eTUCJ077PTG+SIU4ll/8cO5bRJp/4JNxXlnAtFyri4yEisyUMPFRHBxM48zX6Ap VX0wX/OrPULuDgAFaZke2TYlkZcgS0cILPZBiHAwyQsm4vi4fxvKTviOPI2bpojoOKma afX9d5hm/a+06ukL8Ey3oE7wD9w/XY6BshvPBvITCVRyNAzwsp7iS5tSO0Z0iRzFTqDb EgPg5YkiW/Z0TBiFRrj+WOBRNm7xTPbB5ay/ik1vdMO28+Wsyp5u0opewmNnWOKV4OzJ +EFA== X-Gm-Message-State: AE9vXwPLDz0BLMtF/yfR2+gaFqcvxeSjnOVT5M3FnbcCi28Hd9bJS77soWqTIEnLKO+Eog== X-Received: by 10.98.12.29 with SMTP id u29mr11867677pfi.80.1473736145030; Mon, 12 Sep 2016 20:09:05 -0700 (PDT) Received: from roar.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id q8sm27429315pac.32.2016.09.12.20.09.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Sep 2016 20:09:04 -0700 (PDT) From: Nicholas Piggin To: linuxppc-dev@lists.ozlabs.org, Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras Subject: [PATCH 1/8] powerpc/pseries: hypervisor facility unavailable use correct handler Date: Tue, 13 Sep 2016 13:08:39 +1000 Message-Id: <20160913030846.29790-2-npiggin@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160913030846.29790-1-npiggin@gmail.com> References: <20160913030846.29790-1-npiggin@gmail.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.22 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" The 0xf80 hv_facility_unavailable trampoline branches to the 0xf60 handler. This works because they both do the same thing, but it should be fixed. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index bffec73..4015f71 100644 --- a/arch/powerpc/kernel/exceptions-64s.S +++ b/arch/powerpc/kernel/exceptions-64s.S @@ -355,7 +355,7 @@ facility_unavailable_trampoline: hv_facility_unavailable_trampoline: SET_SCRATCH0(r13) EXCEPTION_PROLOG_0(PACA_EXGEN) - b facility_unavailable_hv + b hv_facility_unavailable_hv #ifdef CONFIG_CBE_RAS STD_EXCEPTION_HV(0x1200, 0x1202, cbe_system_error) @@ -600,7 +600,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_CFAR) KVM_HANDLER(PACA_EXGEN, EXC_STD, 0xf40) STD_EXCEPTION_PSERIES_OOL(0xf60, facility_unavailable) KVM_HANDLER(PACA_EXGEN, EXC_STD, 0xf60) - STD_EXCEPTION_HV_OOL(0xf82, facility_unavailable) + STD_EXCEPTION_HV_OOL(0xf82, hv_facility_unavailable) KVM_HANDLER(PACA_EXGEN, EXC_HV, 0xf82) /*