Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750938AbdGZFAn (ORCPT ); Wed, 26 Jul 2017 01:00:43 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:45797 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750711AbdGZFAm (ORCPT ); Wed, 26 Jul 2017 01:00:42 -0400 Date: Wed, 26 Jul 2017 07:00:33 +0200 From: Heiko Carstens To: Guenter Roeck Cc: Martin Schwidefsky , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: Re: Qemu problems in -next with 's390/spinlock: add niai spinlock hints' References: <20170726011451.GA24947@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170726011451.GA24947@roeck-us.net> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 17072605-0040-0000-0000-000003E73EF8 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17072605-0041-0000-0000-000020849E68 Message-Id: <20170726050033.GA3218@osiris> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-07-26_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1706020000 definitions=main-1707260074 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1133 Lines: 21 On Tue, Jul 25, 2017 at 06:14:51PM -0700, Guenter Roeck wrote: > Hi Martin, > > my s390 qemu tests in linux-next stopped working a few days ago. > Bisect points to commit 's390/spinlock: add niai spinlock hints'. > > Looking at the patch, this isn't really surprising; at least to me it looks > like the patch is making instructions mandatory which are only available in > Z14 CPUs. Does this mean that older s390 CPUs (such as the Z900 used in my > qemu tests) are no longer going to be supported in Linux ? No, that means that the patch has a bug. The NIAI instruction is only available if the execution-hint facility is installed. That facility came with zEC12. Luckily it uses the same facility indicator bit like the miscellaneous-instruction-extensions facility, which we already use anyway if the kernel gets compiled for zEC12. In that case we have early code which verifies if all required facilities to run the kernel are installed, and if not it will print a message to the console and stop the machine. So the easiest fix would be to generate the NIAI instruction only if the kernel gets compiled for zEC12 or newer.