Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3550368pxx; Mon, 2 Nov 2020 11:52:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqX1NQBDKovLhf8UYyX5vxfe8nFznwqIOWa8uO7vyB8r2Tf29YkoITROwTKEmYyWwAQN81 X-Received: by 2002:a17:906:4753:: with SMTP id j19mr15545900ejs.65.1604346757943; Mon, 02 Nov 2020 11:52:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604346757; cv=none; d=google.com; s=arc-20160816; b=ju+nQojMc0yvFAHxVlGT+6iLg9opWgU7b+a+hApnLOPlLzu93qnhf9qt9XhDKqrY7r 2Enc/qELIDE9eBQpI3rGyY6Mbf+75n0oPLOTr/z8NoMbmCmZZgApU/UHXdLKe7kufMEM Ei5sYfyuzYUUSmSk0AK+lpRpwHPgx+xzDoXvtoxfgPmLfyMMVbdsVSZRhXC77iuZu+IQ lDIIHfCBdnVe9FlR25tewqsNYkRUzuT6RoODXOq3SHFCMy6c+4snAD2RgEXESyy3dB1z UGkTl8ttj0K3I1Riig0ouceCC9Leuqs3RVdB/WgJm0w45WxKO4bRBLEi/j2imftuFPaa I4RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=k4LTKkpRl0FzdtxEEsZ6XXMq2NyJ1sWqeT5BlT+fbPU=; b=DDp9tZY+3RiT8ytu3PcIdRRPcNaatMhBxWuYruUJFXdcXzwvOMR8d/Blm8rk0olECb 6ka8Gt5ppZ5Jypx1UtKvDcbJ9R8CBIukEocJtAsCKFhxeUPqjQsnSq5Xl0v9aqaFRA2K b+YEjR5eqgPhogcBbCuX+ennr5TDleNfZBXKEs0OjNPKbvm36eYeEDSeuKryUU3VIv9f CfE9kwbpmhB8pxNV32RW1Crh4/VrrTkgyBE0nwk74d6a24ygfrzHpET2ATfIwiUFLdL/ 6hNN36iVC1AONpsZy5MD8r1M/94jauIdLi7deRH4G70M36dzuQL+Hc6GnPdaH4s9EgU4 drfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=cGuqCduP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m11si11766996edl.523.2020.11.02.11.52.14; Mon, 02 Nov 2020 11:52:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=cGuqCduP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726924AbgKBTup (ORCPT + 99 others); Mon, 2 Nov 2020 14:50:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725833AbgKBTuK (ORCPT ); Mon, 2 Nov 2020 14:50:10 -0500 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A285C0617A6 for ; Mon, 2 Nov 2020 11:50:10 -0800 (PST) Received: by mail-pf1-x444.google.com with SMTP id e7so12026106pfn.12 for ; Mon, 02 Nov 2020 11:50:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=k4LTKkpRl0FzdtxEEsZ6XXMq2NyJ1sWqeT5BlT+fbPU=; b=cGuqCduPzEgd/U4CfrmT9i2W6DEOg2+5twTXOeUrVL4q+7FAzIo7NMOf2Xf5RRtLPK ZYXJZXDQQOqS7iPFunDyxoVOU5vQvT0C0bqujtwFlPU58AYjsBF2PuzOczAWy+//0Ygb IMQbxVzkpbvteFRsPtfoI3jbp3YyG5olfxXU39bVkvL9COWFoJPydLezTsDyViuNRiml jmsUlFq/4hrKYkc/+X6cfOsTnvkwD/8092y3EJck1nVMJy3TW9PhMjIuS2hIpbdukJhd 2cbJSqLZn17elN/KlXCAbIxKxtiAC7eQ4y3HbS6V8o0EQLN1JhIbxoInRTrPiCjjj+uU KVLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=k4LTKkpRl0FzdtxEEsZ6XXMq2NyJ1sWqeT5BlT+fbPU=; b=NmayoHhouRuvSsQO8orL7qw4+1RWfIVtmB6C+KhYdiwYNNsU91DyFnrDfCS5twvlR8 bh/hFQL9ncKVenlVTtG8dtmW7XMLpICn+4puTAv8S3XLYGvJI7J8P5IANHRjXDsZ3n2R w9/KPeIxdJy4licKSZY/EHPZWZ++seb2TWi3RJbTB94nrl0LqjVUkrR2weTHhLo6t+fj 3QtKwREbxEgvEeq1rtZjISL/ZpjZDrd4xci7bd32mWMJ2MKuz2lTi10OYJAjZdTh/rME oQdGjgIYXFytr1TpArBW0CUfM4gDLj3jxfp5vkAu5zDigalD4ElyPQ6PzpdTMkOIp1t9 w92w== X-Gm-Message-State: AOAM532541+mBhzOk9W3qz+DCd0xgaeVhNOXoaPmpzfcYdfVxejHofwY ZpDOrlibYWr8gEPt3OK99+7lZg== X-Received: by 2002:a17:90a:5211:: with SMTP id v17mr18157629pjh.200.1604346609603; Mon, 02 Nov 2020 11:50:09 -0800 (PST) Received: from [192.168.1.134] ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id fy13sm284489pjb.10.2020.11.02.11.50.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Nov 2020 11:50:08 -0800 (PST) Subject: Re: [PATCH] s390: add support for TIF_NOTIFY_SIGNAL To: Qian Cai Cc: linux-s390@vger.kernel.org, Heiko Carstens , linux-kernel@vger.kernel.org, peterz@infradead.org, oleg@redhat.com, tglx@linutronix.de, Stephen Rothwell , Linux-Next Mailing List References: <20201101173153.GC9375 () osiris> <362e3645e2c0891309c07e244a147f0c32f106da.camel@redhat.com> <54c02fa6-8c8a-667f-af99-e83a1f150586@kernel.dk> From: Jens Axboe Message-ID: Date: Mon, 2 Nov 2020 12:50:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/2/20 11:58 AM, Qian Cai wrote: > On Mon, 2020-11-02 at 10:07 -0700, Jens Axboe wrote: >> On 11/2/20 9:59 AM, Qian Cai wrote: >>> On Sun, 2020-11-01 at 17:31 +0000, Heiko Carstens wrote: >>>> On Thu, Oct 29, 2020 at 10:21:11AM -0600, Jens Axboe wrote: >>>>> Wire up TIF_NOTIFY_SIGNAL handling for s390. >>>>> >>>>> Cc: linux-s390@vger.kernel.org >>>>> Signed-off-by: Jens Axboe >>> >>> Even though I did confirm that today's linux-next contains this additional >>> patch >>> from Heiko below, a z10 guest is still unable to boot. Reverting the whole >>> series (reverting only "s390: add support for TIF_NOTIFY_SIGNAL" introduced >>> compiling errors) fixed the problem, i.e., git revert --no-edit >>> af0dd809f3d3..7b074c15374c [1] >> >> That's odd, it should build fine without that patch. How did it fail for you? > > In file included from ./arch/s390/include/asm/bug.h:5, > from ./include/linux/bug.h:5, > from ./include/linux/mmdebug.h:5, > from ./include/linux/percpu.h:5, > from ./include/linux/context_tracking_state.h:5, > from ./include/linux/hardirq.h:5, > from ./include/linux/kvm_host.h:7, > from arch/s390/kernel/asm-offsets.c:11: > ./include/linux/sched/signal.h: In function ‘signal_pending’: > ./include/linux/sched/signal.h:368:39: error: ‘TIF_NOTIFY_SIGNAL’ undeclared > (first use in this function); did you mean ‘TIF_NOTIFY_RESUME’? > if (unlikely(test_tsk_thread_flag(p, TIF_NOTIFY_SIGNAL))) > ^~~~~~~~~~~~~~~~~ > ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ > # define unlikely(x) __builtin_expect(!!(x), 0) > ^ > ./include/linux/sched/signal.h:368:39: note: each undeclared identifier is > reported only once for each function it appears in > if (unlikely(test_tsk_thread_flag(p, TIF_NOTIFY_SIGNAL))) > ^~~~~~~~~~~~~~~~~ > ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ > # define unlikely(x) __builtin_expect(!!(x), 0) > ^ > make[1]: *** [scripts/Makefile.build:117: arch/s390/kernel/asm-offsets.s] Error > 1 > make: *** [Makefile:1198: prepare0] Error 2 Ah, but that's because later patches assume that TIF_NOTIFY_SIGNAL is always there once all archs have been converted. If you just want to back out that patch, you'll need to just revert this one: commit 82ef6998ed9d488e56bbfbcc2ec9adf62bf78f08 Author: Jens Axboe Date: Fri Oct 9 16:04:39 2020 -0600 kernel: remove checking for TIF_NOTIFY_SIGNAL as well and I suspect it should build. -- Jens Axboe