Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2565320ybb; Sun, 5 Apr 2020 10:40:48 -0700 (PDT) X-Google-Smtp-Source: APiQypJVHNoTos7goq9gnmjtT84DXQh04uEdOel9zAschOYtgQOrU8a3I1/EIWXx89mI0FBL6pNx X-Received: by 2002:a9d:4b84:: with SMTP id k4mr15183819otf.233.1586108448640; Sun, 05 Apr 2020 10:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586108448; cv=none; d=google.com; s=arc-20160816; b=OwBvsC2P00FJfdU3TlUxde/YrU6Xd+8bsvpzqWRJCsuYp8VApwtj8QLbklWN4m5EGQ 7VMGB7PrzncTNpEyC20pPpiJir/X96CJ3/a2R/y/uAoOBoDJpQXLI3gqYZePWCxaFwk1 puuUvWul6qOCwClNZVvR6KP3vGV8Ayl4xwYDFTvUYXOyV3ou5ilhHqC/f0YluI47jHlv 1jmQCzABb85iwcgatAue1HkHWClqYaGY5Wdb/jG31jkgjkAjcX8lMHy96DKAvydcEn+i qYYM/urPUR+qYGgsVTYKBavp7Y+XSYZ0R1Cr646pm5cHQ6gMi2jvKTGF/NzHHOwU/Q28 vY8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=SJLldAv3wlUP4miD08seoyhihcDWqt7hytUNGP3czOo=; b=QVWOqmJurlRYbyCG/bgb6ZxRdbnkqszIZ5Np1TgWDn5JrzdTjah3tS2FUMenQxOD/N 2RtR9PLDZ5t1xhglwtwN0ZSIniDYxvuZ6vs2QJP4ZKJeFx+gh1TcUlrOH5iAcDVyYD5y Mmuektf0WkvVzXvv7uU9yo8Yx+Rig1tlHRuBAu9rR2bUUpM1wtr4tD4n4Bi2d14i+9gY k9Z9gwrgZMBWVa23YPXzhyBaJPwv3+0sZJLmIOBDDGUP80u7u4C0Bo9h2pIl3sfiOA50 Tysfp1c6vwPppVC2QGAXHfEXQ0/bbdGUk+TxabwTjEfjddlgtu6WCxoikyxIC+dZkUnO lXZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iteKvEt6; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si6423248oif.131.2020.04.05.10.40.35; Sun, 05 Apr 2020 10:40:48 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iteKvEt6; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727464AbgDERjT (ORCPT + 99 others); Sun, 5 Apr 2020 13:39:19 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:38396 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726901AbgDERjS (ORCPT ); Sun, 5 Apr 2020 13:39:18 -0400 Received: by mail-pf1-f196.google.com with SMTP id c21so6380521pfo.5 for ; Sun, 05 Apr 2020 10:39:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=SJLldAv3wlUP4miD08seoyhihcDWqt7hytUNGP3czOo=; b=iteKvEt6fzqQ72SzgAUxNop5XMhKa7ojicLFPFZ13w/lv3jIlFKgTJXcUg2ncdoeyH MuDNqPAPNZK87zDND/T0yKCCIYhzXhlRZPpPT7TMzas9F6Tlc+RFKUpq9cwUkHHPRp2g Gs73uNkl7wj+1nDEzhNvg659/C/7XJgdpxpqS5q82TIJzbY2FxaCrnpuGcLsT9q7BI/5 4jwzhYtfdZLV/I8FptlpWqL36bD9X60XpKbTCgezYYkioqw/Y/y4VAgXz5SRM+SX3J2i gcHA0/JdqQIyy7VozXrVgj/QrADXAwPRxxjgHo5txccKY4jckLtllYsAtXYJ7ErurlZ4 zM8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=SJLldAv3wlUP4miD08seoyhihcDWqt7hytUNGP3czOo=; b=d0P+ciF1J9lACyvVN/0Xe9F7krHanv/v32r+AXTNrAPl0uhR6wm6KnmmJ/TFW9EXkk rEqQeVMSENXTi12RDuv3jCN4VOF2iVCXOpGzJHBG7Shkhqqn4Y7DFH5OOhh934auNu4F 4AWzB5XARWEjPx9zVdvF0QZliWjDXt09xCz5wLAtks71P+HUv2JwZnKCZubELF6gFmDg SnAd7bGc8IMFyA3gNJi3RHQChV1GbBBT6prVXj74HMfnGb1WAycppENACO84vDJeVcAi AaP6kUFLieygVLXaKcUKtCwOZ+1QpDcguo3TiIIfDko07UXTqJe/YhOzbgrsc1ciUass H9jw== X-Gm-Message-State: AGi0PubAxIgsH1JVcGe4m/i30CmUE01kEl5fkDKfzLGpEepMhY5ed+Lo A6UIeOkgqHndy6LWBApoDd2OqKMt X-Received: by 2002:aa7:8f22:: with SMTP id y2mr18358153pfr.300.1586108357885; Sun, 05 Apr 2020 10:39:17 -0700 (PDT) Received: from cslab.localdomain (c-73-222-199-61.hsd1.ca.comcast.net. [73.222.199.61]) by smtp.gmail.com with ESMTPSA id 185sm9786288pfz.119.2020.04.05.10.39.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Apr 2020 10:39:17 -0700 (PDT) Date: Sun, 5 Apr 2020 10:39:21 -0700 From: Hill Ma To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org Subject: [PATCH] x86/reboot/quirks: Add MacBook6,1 reboot quirk Message-ID: <20200405173921.GA3453@cslab.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On MacBook6,1 reboot would hang unless parameter reboot=pci is added. This makes it automatic. Signed-off-by: Hill Ma --- arch/x86/kernel/reboot.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c index 3ca43be4f..8b8cebfd3 100644 --- a/arch/x86/kernel/reboot.c +++ b/arch/x86/kernel/reboot.c @@ -197,6 +197,14 @@ static const struct dmi_system_id reboot_dmi_table[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "MacBook5"), }, }, + { /* Handle problems with rebooting on Apple MacBook6,1 */ + .callback = set_pci_reboot, + .ident = "Apple MacBook6,1", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "MacBook6,1"), + }, + }, { /* Handle problems with rebooting on Apple MacBookPro5 */ .callback = set_pci_reboot, .ident = "Apple MacBookPro5", -- 2.26.0