Received: by 10.213.65.68 with SMTP id h4csp228062imn; Wed, 21 Mar 2018 17:13:43 -0700 (PDT) X-Google-Smtp-Source: AG47ELv5Q2Sr39MDU+vGejAmQXkYYM4TgkzCt1Y2YmF7c71yuY5LS1t6COCWTlzVyPNDs15m2Kvz X-Received: by 10.167.131.199 with SMTP id j7mr18299838pfn.99.1521677623209; Wed, 21 Mar 2018 17:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521677623; cv=none; d=google.com; s=arc-20160816; b=AafJO8KsqLba1JhnQEMoaZfGURKF34NxtIlr4y6GrVGyDcY9Y+t77OrWWfjNRLwNLU ozJUE8t810OP7BWVD1mOu8cReMfR6t9DzSBqGf3QS4M+GIg/odDc+KVsBUi1aFB5GUhA UyXW2GokA7laytg6W8WaRVhqmlDBFHWs9yxK8JDyVTc8fEE1x2ADjoSpBigzbLVaWl8l 5KSXcgTj+H7pB/j3sfsmeDGqDjo1x0w8feYkLKv1Z+aEC5y3ZBEZsCVKrYGPbhGprmoF rF4V1N7CN7cz3ISxCoBnsHPOBhIB0IJpE/jx0b77JvG7CTXCc9a4uhs0mJzWA6XgM79l JzpA== 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:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=tDvjZk0Q2Gc/xMa1EW55ekSrDKVMZAACeU9j/IEwC3k=; b=xP+UDsWyOxvyKglKfgLHbGOjYTK+iA47wJbjx69P2v3G6uTuB8x/l4LUT+jzrvXEp3 wnRXRg/z0cAV8DRoBhkcuvUbARKiktamIoqPterNT8nbPRE+zAVAlRlaA9bsn87txARb UWZXDHkWRQQeRK/9sJEu+XwZpUggacT5cU89/85eyF8Hy0LicPJF5pNTn/nR+5qXIpjk qQZW0qnZlTb1fciUwN8vPdnIgTV0/gkPfbPmrxoxnQiF8dzt69xN5Wrbn6cjGcUUuwX5 3N1+dyG4SU67sg8t9ll34xA0FAnXQg4kGxVCJqkRmRkvp0EnAsjcHqKph+PuE/MG/DBh 7sgQ== 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 b2si2480137pgq.646.2018.03.21.17.13.28; Wed, 21 Mar 2018 17:13:43 -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 S1754271AbeCVAME (ORCPT + 99 others); Wed, 21 Mar 2018 20:12:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:41324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754156AbeCVAMB (ORCPT ); Wed, 21 Mar 2018 20:12:01 -0400 Received: from saruman (jahogan.plus.com [212.159.75.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B931D21749; Thu, 22 Mar 2018 00:11:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B931D21749 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jhogan@kernel.org Date: Thu, 22 Mar 2018 00:11:56 +0000 From: James Hogan To: NeilBrown Cc: John Crispin , Ralf Baechle , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] MIPS: ralink: fix booting on mt7621 Message-ID: <20180322001155.GD13126@saruman> References: <87efkf9z0o.fsf@notabene.neil.brown.name> <87605r9mwf.fsf@notabene.neil.brown.name> <871sge872l.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PHCdUe6m4AxPMzOu" Content-Disposition: inline In-Reply-To: <871sge872l.fsf@notabene.neil.brown.name> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --PHCdUe6m4AxPMzOu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 21, 2018 at 02:02:10PM +1100, NeilBrown wrote: >=20 > Since commit 3af5a67c86a3 ("MIPS: Fix early CM probing") the MT7621 > has not been able to boot. >=20 > This patched caused mips_cm_probe() to be called before > mt7621.c::proc_soc_init(). >=20 > prom_soc_init() has a comment explaining that mips_cm_probe() > "wipes out the bootloader config" and means that configuration > registers are no longer available. It has some code to re-enable > this config. >=20 > Before this re-enable code is run, the sysc register cannot be > read, so when SYSC_REG_CHIP_NAME0 is read, a garbage value > is returned and panic() is called. >=20 > If we move the config-repair code to the top of prom_soc_init(), > the registers can be read and boot can proceed. >=20 > Very occasionally, the first register read after the reconfiguration > returns garbage. So I added a call to __sync(). >=20 > Fixes: 3af5a67c86a3 ("MIPS: Fix early CM probing") > Signed-off-by: NeilBrown Looks good. I've cosmetically tweaked commit message (mainly reflow), added stable tag for 4.5+, and applied for 4.16. Thanks James --PHCdUe6m4AxPMzOu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAlqy9MsACgkQbAtpk944 dnpeRhAAgaN+l55tjGiZQDJHe1nyfKRmTuiLe1wjiQXvsWOnWX9AqujyYQQfZDbm g8ETcjZ+7v5PBACougYqEsMCqAlxArltuZ5M0Gxf9fRbeWyLXNhUiD2mp28F6YeE rxFU6Pmosfq5MV+4zRgGwu0nha6rAm4PYT/5MHud0/3ySXBLjwIYma5iPG3omyBH Y2VupoBU/Bv514QhCI77JyYvRunbZjycOt0EaIIHXskJE8262lZDstuaOS1204BS m8RIQFXCEnncQY3ctcarY7txb5kvh0r6Je1zoe/gHPnD0BSzneAd/kT5f+UDckcW tkcqHzaVd7DCB7uiAOuvueVxFYnP27M0nEcO8betmqhYMqDK88AtSBZBD/P+NgHl ZMhy0s1/+beSInIYNfzIOEXVhB8QxJZ1VdKx6KXgNfzr4K+VqhzAgitrhhluSrhr QMnYhQU6Eu/xi55Q/zq9dPqzDMv/iEosEbBQJA5I4w4ds8JSNEaUVFFoeQwv8zoZ 5yyoiHQP0TbwwvBx8fdV9hyv9wBiMdcZtVaXjQ7Ve59Bv/21zBlNk17A4nMxG4Qb g6BynzFlAe80bB8xYhr/ses2+Tjp4Cj8JjAjhXIVSGqkJlGOKXpoFL9AAXaLGS09 1gk4nX9DMplOT5+o3y4jB0izJs+Q3ETpWnRsF5g7tfKoPMWPHcQ= =c5hx -----END PGP SIGNATURE----- --PHCdUe6m4AxPMzOu--