From patchwork Thu Jan 5 04:55:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balbir Singh X-Patchwork-Id: 711231 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.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tvFnb3ZsNz9sQw for ; Thu, 5 Jan 2017 15:58:43 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hVRDpn0E"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3tvFnb2XLqzDqQR for ; Thu, 5 Jan 2017 15:58:43 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hVRDpn0E"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pg0-x242.google.com (mail-pg0-x242.google.com [IPv6:2607:f8b0:400e:c05::242]) (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 3tvFkM5FY3zDqN5 for ; Thu, 5 Jan 2017 15:55:55 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hVRDpn0E"; dkim-atps=neutral Received: by mail-pg0-x242.google.com with SMTP id i5so39423155pgh.2 for ; Wed, 04 Jan 2017 20:55:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Mx/k4axAf42aHGbpafbOzqStTmmkKtF+5EhPLKApXsA=; b=hVRDpn0EjmPkqHx5yt6sLhNBJWuG/YLKe662cxFe6NivPcqmrnDY87tc/+p9rHhVaj 4kP8KEzZixP27g2rHeBiubuYOtMqCN4ymhmjYfdJLoLOBbv8lrMC58H/KfpLBnvsD4kh FTSGtkse95acbmIi4w3W9BugQBNCY063ELpLkEkZh7r9njPLhAsVrVfmOEYWpWkSW51w hnJRDnh5qWvROJQuCKjg29wolWcgJT1qLQU2aVtwxe6h3OoX00DiEjGhV5NTDkpa60nW C8sEoO+Us+JsEPB9PvBvTd1i9VNL1EeTDFzl5Lj2eyRUD70bkR+VQvk7OvKj68ZhrLt6 0DtQ== 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:in-reply-to :references; bh=Mx/k4axAf42aHGbpafbOzqStTmmkKtF+5EhPLKApXsA=; b=TpDlNPBn1LhKjYH8dfN99WwJAC6rcpmqXwv8rv22xJGzfTI3L0cOoZUHkipO6tg+ut Bh/g47FuD4e4ESaaaOZgMRBe5UMlgMnj5ndlqaoqMwrCm6h6M4EHecHckge0sqF0IoiD xdhZtM+3Mdt3Swrt2EkLAWu/dSD/H43hJ2B7UToebHwhFKyIdEDQA/yjjZ906RpgjVRW aZVrhJ1wA6LVJ4Y5eSfKrO9LhCzXOqQOVCYckaUcCkmAnAJqPnhw+MCLNmViwi06NJ86 YsbLU2rN3Oy3X7NhNjGO79PT8Cg2tDUQTsIR2REufE4G2dfQ8jUV+NMvQy4WLYO1q1D3 s6pg== X-Gm-Message-State: AIkVDXJZ5a6DdQXMuJ/rNXPWWkoMy2P350hQNDryU3lg/d7r3EeRxZfPtKjmDNEF+a+m2g== X-Received: by 10.99.154.9 with SMTP id o9mr129742630pge.123.1483592154147; Wed, 04 Jan 2017 20:55:54 -0800 (PST) Received: from MiWiFi-R3-srv.au.ibm.com (14-202-194-140.static.tpgi.com.au. [14.202.194.140]) by smtp.gmail.com with ESMTPSA id r68sm140847096pfk.85.2017.01.04.20.55.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jan 2017 20:55:52 -0800 (PST) From: Balbir Singh To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH v3 1/3] Merge IPI and DEFAULT priorities Date: Thu, 5 Jan 2017 15:55:36 +1100 Message-Id: <20170105045538.32658-2-bsingharora@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170105045538.32658-1-bsingharora@gmail.com> References: <20170105045538.32658-1-bsingharora@gmail.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Mackerras , Nicholas Piggin Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" We merge IPI and DEFAULT priorities to the same value. The idea is to keep interrupts enabled even in lazy soft-disabled mode. Instead of storing the IPI and irq separately, we keep the levels same so that we deal with only one of them Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Nicholas Piggin Signed-off-by: Balbir Singh --- arch/powerpc/include/asm/xics.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/include/asm/xics.h b/arch/powerpc/include/asm/xics.h index f0b2385..d6cb9a0 100644 --- a/arch/powerpc/include/asm/xics.h +++ b/arch/powerpc/include/asm/xics.h @@ -14,17 +14,13 @@ /* Want a priority other than 0. Various HW issues require this. */ #define DEFAULT_PRIORITY 5 -/* - * Mark IPIs as higher priority so we can take them inside interrupts - * FIXME: still true now? - */ -#define IPI_PRIORITY 4 +#define IPI_PRIORITY 5 /* The least favored priority */ #define LOWEST_PRIORITY 0xFF /* The number of priorities defined above */ -#define MAX_NUM_PRIORITIES 3 +#define MAX_NUM_PRIORITIES 2 /* Native ICP */ #ifdef CONFIG_PPC_ICP_NATIVE