Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5606926img; Wed, 27 Mar 2019 11:34:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWkEDRQEsneKVEWFiZKSdhrds6rOQbUSE9ALABTszrGef04QEVD4PxtJcliU4sTQceazvz X-Received: by 2002:a65:538b:: with SMTP id x11mr35028850pgq.35.1553711696004; Wed, 27 Mar 2019 11:34:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553711695; cv=none; d=google.com; s=arc-20160816; b=ihQXwjnbkrXcFk2UwDn1SQ8IdnQPY31vDRuxeyU5L0h8O1lSfjp5KoYEdRRvF3YuNC oGdPj3SHtdklmR0wv2tLp7EffT/EfywGblYnN9gpXC+2o8C+yxHjqSuWR5oJocM82b9O wBpu5lTtL/qnyJKTzrLKY/4oG4lawIY1vjemp8IhnvvcIx02yP/w9cfBwUaynmbk4pbB zouMpYYfDUD2R6o19o8FzHpHKyIG1/RYakLZHR49rSBK0M2yTfKcKiOlnTE6aa+KDVOT 0N6sEi9M0b3PUnT3kpEP/HTrci0FLDDUhjEEo4zHS73aWLQ6OYOVZn17e7bJeIO+3oQL oQUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8Mt1nk0wH1mswOzyi2KPIFcoE+y5we3O8ABgw946Qdk=; b=NaT+6tNuPGKwB10kHuXZvuWCfVfOXilosQl7KbuDiriy1Hz7SOJfygUEMHI2GQOZHi BbA10hu5wmhet9bE9OrdqIgizMm19gKXs5cB5dCq5rCENW8clAtEs8KrCObr4LUETSGn LalX9XoHuX62dFqwEAk5qkvonvQF9ES6iLZAWBQPQiY14c42aBJnhnWZFCS/PrhAltpA y3c+N7O9TtfcUzkF2ACLj7WEKTM4a7aNLCr0rYpVIsUKFemcJ47oH2j+m1Erb6Ql+ZH/ 6N1Af5K8ZrGOTohpqbxlgAk2/bVbtCDlsiEFT/usSi2i+vYlqNc7AynwYXTZh8GosBR4 WCIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o90si1140451pfi.161.2019.03.27.11.34.40; Wed, 27 Mar 2019 11:34:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391957AbfC0SdS (ORCPT + 99 others); Wed, 27 Mar 2019 14:33:18 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:51484 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390945AbfC0SdQ (ORCPT ); Wed, 27 Mar 2019 14:33:16 -0400 Received: from localhost ([127.0.0.1] helo=flow.W.breakpoint.cc) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1h9DMO-0004Tc-RQ; Wed, 27 Mar 2019 19:33:13 +0100 From: Sebastian Andrzej Siewior To: LKML , linux-rt-users Cc: Thomas Gleixner , Steven Rostedt Subject: [PATCH 4/4] powerpc: reshuffle TIF bits Date: Wed, 27 Mar 2019 19:33:10 +0100 Message-Id: <20190327183310.1015-4-bigeasy@linutronix.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190327183310.1015-1-bigeasy@linutronix.de> References: <20190320171511.icjhdlulgal2yeho@linutronix.de> <20190327183310.1015-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Powerpc32/64 does not compile because TIF_SYSCALL_TRACE's bit is higher than 15 and the assembly instructions don't expect that. Move TIF_RESTOREALL, TIF_NOERROR to the higher bits and keep TIF_NEED_RESCHED_LAZY in the lower range. As a result one split load is needed and otherwise we can use immediates. Signed-off-by: Sebastian Andrzej Siewior --- arch/powerpc/include/asm/thread_info.h | 13 ++++++++----- arch/powerpc/kernel/entry_32.S | 12 +++++++----- arch/powerpc/kernel/entry_64.S | 12 +++++++----- 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/arch/powerpc/include/asm/thread_info.h b/arch/powerpc/include/asm/thread_info.h index 7e542e729f131..f9132398566d9 100644 --- a/arch/powerpc/include/asm/thread_info.h +++ b/arch/powerpc/include/asm/thread_info.h @@ -90,7 +90,7 @@ void arch_setup_new_exec(void); /* * thread information flag bit numbers */ -#define TIF_NEED_RESCHED_LAZY 0 /* lazy rescheduling necessary */ +#define TIF_SYSCALL_TRACE 0 /* syscall trace active */ #define TIF_SIGPENDING 1 /* signal pending */ #define TIF_NEED_RESCHED 2 /* rescheduling necessary */ #define TIF_FSCHECK 3 /* Check FS is USER_DS on return */ @@ -101,11 +101,12 @@ void arch_setup_new_exec(void); #define TIF_SINGLESTEP 8 /* singlestepping active */ #define TIF_NOHZ 9 /* in adaptive nohz mode */ #define TIF_SECCOMP 10 /* secure computing */ -#define TIF_RESTOREALL 11 /* Restore all regs (implies NOERROR) */ -#define TIF_NOERROR 12 /* Force successful syscall return */ + +#define TIF_NEED_RESCHED_LAZY 11 /* lazy rescheduling necessary */ +#define TIF_SYSCALL_TRACEPOINT 12 /* syscall tracepoint instrumentation */ + #define TIF_NOTIFY_RESUME 13 /* callback before returning to user */ #define TIF_UPROBE 14 /* breakpointed or single-stepping */ -#define TIF_SYSCALL_TRACEPOINT 15 /* syscall tracepoint instrumentation */ #define TIF_EMULATE_STACK_STORE 16 /* Is an instruction emulation for stack store? */ #define TIF_MEMDIE 17 /* is terminating due to OOM killer */ @@ -114,7 +115,9 @@ void arch_setup_new_exec(void); #endif #define TIF_POLLING_NRFLAG 19 /* true if poll_idle() is polling TIF_NEED_RESCHED */ #define TIF_32BIT 20 /* 32 bit binary */ -#define TIF_SYSCALL_TRACE 21 /* syscall trace active */ +#define TIF_RESTOREALL 21 /* Restore all regs (implies NOERROR) */ +#define TIF_NOERROR 22 /* Force successful syscall return */ + /* as above, but as bit values */ #define _TIF_SYSCALL_TRACE (1<