Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1134509imu; Thu, 13 Dec 2018 09:53:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/WFSdOgf+I67f+mwsrXd/LilolWuxamKCPRqeobvaDZi51R2ipoqtjt+1z2S7OLWrxgii0m X-Received: by 2002:a62:8f8c:: with SMTP id n134mr25308602pfd.137.1544723599226; Thu, 13 Dec 2018 09:53:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544723599; cv=none; d=google.com; s=arc-20160816; b=KuLqO/aAR4C8vH2heWKspqJrv6sFr7Y7FsN6P2k/1YlNEt0LmbHVfz5A6qZph9QFAB aG+6TKlHSQ8Va/fDOi425J/KBGAckhy0BS+VXHLnqwXIj7n+uUR3/WX/mR1P5oTEu4oz zIkcs4rcXDjMAPKzJi2TtCB/EPPs4ezfTtDHCAIhtp/coixRpZAD2ah29r0m6axCsogP Z1LSyU0rx6xZjzv2zKYNuZaWB4OvUxBximvG8mUJhwEUbm5gFAehWbTDfzpXU/fy26rx yzr8NoJy9HsrdH9ZT/1m9g+W5LggpKrr/Ovp6STpWWp1FpV9QXbeJYCdgL1UCEGtFm6R 1cvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date:dkim-signature; bh=VMIvv9oJ+d07z3QLhR1Tb2CkKzGyeqd0I0xBtqS1Vdo=; b=1Ll/TBphLihEwP3X/ASQfZM9hmL4JcSvEDBpb8v+c23J9gZIWzDqLOJLOCpfIyqXuM 6UA7ioE+MIH4o6+WNZnrdZrLHsqucIY9tGHXemr4+iJ2el+kalNURkRR9J0Tz8Nqn9BH de6AiWqUQK8n7MGRXROClHu0DlvRzJ61DUroKkThxGs09CxjeEBcLUrYJVWyM4xn0Dz1 UAUTvIekeYuT44gAIARRVsAOjSpWbYd712gWNgI3jfZ6LJyS94vFygVzWbLkCt9+D6wM bpZWnrWsCKG/PMIaEsSkLUyYpTRCpt2CP47YrpyPpaQ4jU6eOaM6ueMXk7GIhbIVo1dm 5AfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=DJCdmOKH; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b70si2102793pfe.168.2018.12.13.09.53.04; Thu, 13 Dec 2018 09:53:19 -0800 (PST) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=DJCdmOKH; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729126AbeLMQH2 (ORCPT + 99 others); Thu, 13 Dec 2018 11:07:28 -0500 Received: from mail-yb1-f194.google.com ([209.85.219.194]:43287 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728111AbeLMQH2 (ORCPT ); Thu, 13 Dec 2018 11:07:28 -0500 Received: by mail-yb1-f194.google.com with SMTP id d136so991759ybh.10; Thu, 13 Dec 2018 08:07:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=VMIvv9oJ+d07z3QLhR1Tb2CkKzGyeqd0I0xBtqS1Vdo=; b=DJCdmOKH4EV3o9DYzEMgupaZtPGPMc3U7+H6RJbn/9fNmfWytE01k2XQA9rg1L1wmt 653dRwOtcYmSO9QX51AbyrqfpbfB1Za+5ibAPxqeMixThQ4Og21n5RvUu7oaRA+w3uz+ Bzs/bgXVdeeLyPjNSY8AY1mnl5dJqSbOQqI2SSxJyLwknRrI+klu7CLG7sdLGOya/u1W W/+aVtAc63k6ks+NMgeGTMLwECt7g3deILYkEbJoicYAIPrHhqU3IJHZnFgUIQvpTLdo b1grkuYz+1nwQpEHm6iRwihqcbe73hhzS7eN7i4A6tU8dG9jBnPXGXMJjtlNx3lScPZQ ZiOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=VMIvv9oJ+d07z3QLhR1Tb2CkKzGyeqd0I0xBtqS1Vdo=; b=U/ax9G0e3FDChzH/h5iEqo+OQBvkFxwPOvk50RFesolF+Yp2rG/pqr7A5+11Xnq+rm WeRKAN14DXYvUB/yRDxLuC3qmwNhfJFude842tI5J9Fpbicz02Ju3EciBsPuCsVmGQzF ZG9IB/OeqRyiTAHgG6MTFSxqAGZxrBf+AaQnurUk8myk6xL9ikHQE1Di0rE9w3OG5IMf oxdHYhne78XjMnvQKdDfedBkckDgVLZ/yTJF5yFsJNaF2tz426CLi8Tiz+JTl3QmxNqx Mnnwd79zPkc2ffROdI5IXvJF/IO0XZvNzc23N5mgelsN6SGnsYvDla1ux7cqtnsk4MAv hIaA== X-Gm-Message-State: AA+aEWZtiKk2Ci3AvPhmoozFzE7RlsY5mtXv67OnFbPI+V7buVVdkJzW bFHBVPkbclClu8DpEpWO7awyUMVq X-Received: by 2002:a25:8446:: with SMTP id r6mr24548364ybm.474.1544717246882; Thu, 13 Dec 2018 08:07:26 -0800 (PST) Received: from localhost ([2620:10d:c091:200::4:b482]) by smtp.gmail.com with ESMTPSA id l9sm770910ywc.81.2018.12.13.08.07.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Dec 2018 08:07:25 -0800 (PST) Date: Thu, 13 Dec 2018 08:07:24 -0800 From: Tejun Heo To: Michael Cree , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, debian-alpha@lists.debian.org Subject: Re: Generic kernel fails to boot on Alpha bisected to b38d08f3181c Message-ID: <20181213160724.GU2509588@devbig004.ftw2.facebook.com> References: <20181213082612.bi2dcd6uhzp3t6iq@tower> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181213082612.bi2dcd6uhzp3t6iq@tower> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Michael. On Thu, Dec 13, 2018 at 09:26:12PM +1300, Michael Cree wrote: > A kernel built for generic UP Alpha had been noted to fail to boot > for quite some time (since the release of 3.18). The kernel either > locks up before printing any messages to the console or just falls > back into the SRM with a HALT instruction again before any messages > are printed to the console. A work around is to either use a kernel > built for generic SMP or to build a machine specific kernel as these > boot correctly. > > Because there were other compile errors at the time it proved > difficult to bisect, but we are continuing to get complaints about > it as it renders the Debian Alpha installer somewhat useless, so I > returned to trying to find the problem and managed to bisect it to: > > commit b38d08f3181c5025a7ce84646494cc4748492a3b > Author: Tejun Heo > Date: Tue Sep 2 14:46:02 2014 -0400 > > percpu: restructure locking > > Any suggestions as to what might be the problem and a fix? So, the only thing I can think of is that it's calling spin_unlock_irq() while irq handling isn't set up yet. Can you please try the followings? 1. Convert all spin_[un]lock_irq() to spin_lock_irqsave/unlock_irqrestore(). 2. If that still doesn't work, just convert all of them to spin_lock/unlock(), which is obviously broken but still is useful for debugging. Thanks. -- tejun