Received: by 10.223.176.5 with SMTP id f5csp680303wra; Fri, 9 Feb 2018 05:36:01 -0800 (PST) X-Google-Smtp-Source: AH8x2271SA2iMeIFlUFNmL8a7asjHF+tQ1T48qp0DKUMqIAuzIVjF+c6GAEC6usAxOfc1GWy/rEH X-Received: by 10.101.74.73 with SMTP id a9mr2462156pgu.32.1518183361365; Fri, 09 Feb 2018 05:36:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518183361; cv=none; d=google.com; s=arc-20160816; b=XbohOEWmDo8XsiiYjiPZlBvvKp9o15hMbEzxptnQFjKpq8op4pQrsTuayHRWrdSGrK oZpsEuedfHPxVYGkfdSyVQ/DWZG19eWmi6vka+FYmCwyKMFsDmzWiTVFaWBHO1V68X0p p170aFdVMub0Vk/ShbIPEPrnoY2EvcOEUT3Exe2pGsNvCzaG0AIWP806e27lRMFMaSbz IY9V7CurvjoDyksUiLlss5AYY4Zqgx8uiU1tIh3HR6NtNWTPYzYPky40QtlZGqzcDyeC MqPwAhrS1v0EY5z17vWWxLyYADvUi56rOUYLi++MO5lIeZpvwM+x7MuBFJqTAVjWtbey SEnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to:dkim-signature :arc-authentication-results; bh=xKTkczV0I6NwI8lELfKzDDKxo7C/AUr9jc2la7iWMn0=; b=typNUa60nRAiCKhoag2mqKeI6xnX0JOmmuHLryuub0LVNU62Q/miyByoX2XEFs5uj0 bfuunBJ3rUxbhqhZVFK6bHuLDp4+2XTwbxvcHsv0+tEQ4MrN14JJTxN11KqqFSOFAlcv QXXJQZB08etzW8jwaYHu0dOV0IWclxzuxUOV8WK8QanMflt+o6c5oIwTEejkFOSibcmo vHFNRLWnll9yHpMgyfmOQLU8J+18prl96zPjVxaW+HfNlGUzICih2MGi7u9OQL26TIcR cdGtAbQ0mshAdjD9OL8o36QkYLvhZRY9xirbMNA+u1ZTNjPMQFqWSvc59X9s0E8qqRdV bugw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=rX/m7trQ; 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 q1-v6si1558421pls.244.2018.02.09.05.35.46; Fri, 09 Feb 2018 05:36:01 -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=rX/m7trQ; 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 S1751124AbeBINew (ORCPT + 99 others); Fri, 9 Feb 2018 08:34:52 -0500 Received: from mail-pg0-f50.google.com ([74.125.83.50]:36703 "EHLO mail-pg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750981AbeBINev (ORCPT ); Fri, 9 Feb 2018 08:34:51 -0500 Received: by mail-pg0-f50.google.com with SMTP id j9so2551155pgv.3 for ; Fri, 09 Feb 2018 05:34:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:reply-to:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=xKTkczV0I6NwI8lELfKzDDKxo7C/AUr9jc2la7iWMn0=; b=rX/m7trQBA/DMB2ton8c0/ntMMumA/eF6yoUIYZaonDFeJ9Ym5UoxELEoZGwFGiSiz Xw78f/gXTxCrlh0mk4E0O8QfMUqZCif1IHVXQs7vgP0RVF92kgW8raQebOd/2d0mS8y4 kQWI66H1T3sF2muscJr9oL2pFTkbb9QLAiF9nYemdV2aZXqQ/TnjzgoSM+vi276MLxxz oabEAhfbM0OTJ0gqJS5lvNwIoZ6tVziwTwFC6A3ngoCsfM1TusS847m6URmuFe0fagh3 TsA8ZSAUEPfy5BoeR8NR7QBybdb8mW4u9Juplh0jyNOKHCtmAWjtv4EUrU15xvShzGtg 570w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:reply-to:subject:to:cc:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=xKTkczV0I6NwI8lELfKzDDKxo7C/AUr9jc2la7iWMn0=; b=e/ZnsF8+gDe+Tuo4PTQvNRHvPwyTTeQYUjWbWoXbrtJ1dDlv5wna8zXLTwzqXhBt5g IdcCG5K9E70LRtGkerxsC2QCB86fhEK0Jbytdj2NQ0avIHmQ5lnrIV8kGAkj64b0gqF8 5JVuGaNY8P7vemEswnJce1RE0x+WcYQFp6QB0JmEptS2m0Q1yrdSbjtYEdG0sF3KIwI6 qmRx/iavP9jaV2kyFiBlycTeUM4zH5Sywq84aSn5/QC4IHHZipiIFHS/kDgLT/M53hom aMYvdFXwybjKIh9i9yx1Ncm60IDmP070cG+4kcaXqwra/0NMv89mLkLEjMUdnZAiJPdX 42lw== X-Gm-Message-State: APf1xPChvlPPuJQES5hgtMdiXp3Efx56pp5Itrst7YA1/yr1jcXgSRQQ pKB8VQw/mWG+yM0CeVAnLQ== X-Received: by 10.99.62.11 with SMTP id l11mr1804568pga.288.1518183290508; Fri, 09 Feb 2018 05:34:50 -0800 (PST) Received: from serve.minyard.net (serve.minyard.net. [2001:470:b8f6:1b::1]) by smtp.gmail.com with ESMTPSA id h80sm6182907pfj.12.2018.02.09.05.34.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Feb 2018 05:34:49 -0800 (PST) Received: from [192.168.27.3] (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPSA id 255692B9; Fri, 9 Feb 2018 07:34:47 -0600 (CST) Reply-To: minyard@acm.org Subject: Re: ipmi_si fails to get BMC ID To: Chris Chiu Cc: Arnd Bergmann , gregkh@linuxfoundation.org, openipmi-developer@lists.sourceforge.net, Linux Kernel , Linux Upstreaming Team References: <3b812894-46a0-3c87-1b9f-468fc63ea5bd@acm.org> From: Corey Minyard Message-ID: Date: Fri, 9 Feb 2018 07:34:44 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/08/2018 09:09 PM, Chris Chiu wrote: > On Thu, Feb 8, 2018 at 11:53 PM, Corey Minyard wrote: >> On 02/07/2018 09:01 PM, Chris Chiu wrote: >>> Hi, >>> We are working with a new desktop Acer Veriton Z4640G and get >>> stumbled on failing to enter S3 suspend with kernel version 4.14 even >>> the latest 4.15+. Here's the kernel log >>> https://gist.github.com/mschiu77/76888f1fd4eb56aa8959d76759a912bb. >> >> This is a little strange, nobody had reported this before. Can you >> reproduce this >> at will, or was it a one-time thing? > It can be reproduced on each reboot. >> Does the IPMI driver always take this long to issue that error, even if you >> are not >> entering sleep state? >> > Yep, it will always print "ipmi_si 0000:02:00.3: There appears to be > no BMC at this > location" few minutes after boot. > >> And it started with 4.14, and didn't occur before then, right? >> > I haven't try pre-4.14 kernel. Will do that and update here. Ah.  It's probably still worth trying, but I doubt it will make any difference. Are you sure there is actually an IPMI BMC installed in this system?  It might be a plug-in card that is not installed, but the interface still appears on the PCI bus.  So there is enough hardware to go part-way through the motions of being an IPMI interface, but not enough to actually work. If there is a BMC there, do you know the register layout?  The IPMI spec has an algorithm to go through to discover some of the parameters, and the driver follows it, but IMHO it's not really very good.  I'll need to know the size of the registers, and the spacing between the registers. -corey >> There's a bug in the PCI utils database, I submitted a report a while ago. >> This is >> a KCS, not a SMIC interface. >> >> It looks like the driver is trying to detect that there is a device out >> there and >> there is something that kind of works, but doesn't work completely. The >> interface >> specific code was all split out into separate files in 4.14. It is possible >> the >> detection code got messed up in the process. Nothing jumps out looking at >> the code differences, and I know it works on some PCI machines. >> >> Assuming this is reproducible, can you send the the output of a pre-4.14 >> kernel? If that doesn't make it obvious I may have to have access to the >> machine itself. >> >> -corey >> >> > It's an All-in-One machine so I think it would be difficult for > shipment. I'll see what > I can do. Thanks for help. > > Chris > >>> As you see, it is due to "ipmi_probe+0x430/0x430 [ipmi_si]". After >>> the message "ipmi_si 0000:02:00.3: There appears to be no BMC at this >>> location" shows up, then it can really go to suspend w/o problem. >>> Although it took around 3 mins. The IPMI device is probed from PCI and >>> here's the output of lspci >>> https://gist.github.com/mschiu77/33f0372be41670d8a69c97e64f833087. The >>> IPMI device is "02:00.3 IPMI SMIC interface [0c07]". We get stuck here >>> because we don't really know why it took so long in try_get_dev_id() / >>> ipmi_si_intf.c. Any suggestion about this to help us moving forward? >>> Thanks >>> >>> >>> Chris >> >>