Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2269645imm; Thu, 7 Jun 2018 08:00:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIwdIDLO9HAX112DQGtDihueIqWz1T0O8NLQ8rumUJZp/4q+x85/fCWdiZjXxqF1T+rrnJ7 X-Received: by 2002:a62:3e9a:: with SMTP id y26-v6mr2114468pfj.98.1528383642187; Thu, 07 Jun 2018 08:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528383642; cv=none; d=google.com; s=arc-20160816; b=p+s+OM+2r9bTou0l8y55Y98aImvWfs3axKoAuvgOWL1OGWC+VMQSYOmkMZ6q2OjeY+ R/qQ5H+7GHrtBz3JGdh2txl4auKbED8rJc81PQ3FFoeB56JnynOeBRyfk6JQrCmtapcG rdfikyxhwPmPycH3X8+1bZrSdQdvAkXLAmMJuYuiW385tK1ZDQxwU6X6UinQlbTEoiaV 5VEqd1O8VLiUqNNKBHearAFDtiEC3aUcDwASLHAkRLosOpnYZOh0yVU2wkGwl06IJCmM dZsx2sGRw2J3dIXvvl6C91JDNCFOyCT/ThtDk10sq8vVFeq2Kg7fi0wBWLqeFXm/J4Ya QIrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=QzjG8DU+pKcKAUbkR3jyOxLNZwC6MevlhPiZeOv+sQo=; b=jq4ydf85ejzA1cyUnZIxyYJib8dX1yvgXZ1ANB/tauAShor1dnWTxCacqFeDJ9s3TV 9dckXy/7wKywE1HXp7mzF17KnlwDb4op+Pplp4G5lfjOr84IpPcrvrR2VJmJ0IV/Ggyd /exsMiTC+JNohuH80YJ6VMqRDO90IhDBcGAXL/Vv/TPwb4CC49En6ou6VeqxxvrOeZbB +5Jd7jDLNXG65tU9hdUKazMi8lZ7bziQiSkfTrtYFD/4tMrLRiEzWxmmPeUWVyO9RSxg yfpF6Hooj5XCfC5QDgfcqPZoAJIOI6nCmxJ98lfm4rdpRg3c0qQcDcfcvQT8PwIqzEid wrTg== 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 m9-v6si17652100pll.578.2018.06.07.08.00.27; Thu, 07 Jun 2018 08:00:42 -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 S935637AbeFGO7P (ORCPT + 99 others); Thu, 7 Jun 2018 10:59:15 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:41250 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935293AbeFGO7M (ORCPT ); Thu, 7 Jun 2018 10:59:12 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvbm-0005Zq-4i; Thu, 07 Jun 2018 15:09:46 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvb3-0002u9-C3; Thu, 07 Jun 2018 15:09:01 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Mikulas Patocka" , "Matt Turner" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 146/410] alpha: fix reboot on Avanti platform In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Mikulas Patocka commit 55fc633c41a08ce9244ff5f528f420b16b1e04d6 upstream. We need to define NEED_SRM_SAVE_RESTORE on the Avanti, otherwise we get machine check exception when attempting to reboot the machine. Signed-off-by: Mikulas Patocka Signed-off-by: Matt Turner Signed-off-by: Ben Hutchings --- arch/alpha/kernel/pci_impl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/arch/alpha/kernel/pci_impl.h +++ b/arch/alpha/kernel/pci_impl.h @@ -143,7 +143,8 @@ struct pci_iommu_arena }; #if defined(CONFIG_ALPHA_SRM) && \ - (defined(CONFIG_ALPHA_CIA) || defined(CONFIG_ALPHA_LCA)) + (defined(CONFIG_ALPHA_CIA) || defined(CONFIG_ALPHA_LCA) || \ + defined(CONFIG_ALPHA_AVANTI)) # define NEED_SRM_SAVE_RESTORE #else # undef NEED_SRM_SAVE_RESTORE