Received: by 10.223.185.116 with SMTP id b49csp950182wrg; Wed, 14 Feb 2018 09:18:19 -0800 (PST) X-Google-Smtp-Source: AH8x2274lwDbjuGt+cMrR3jliOwP0FmfGUDjghnzC/Qr7/xurFMRbDqk54FhIsLCIruLAvoDHAXj X-Received: by 10.98.23.136 with SMTP id 130mr5355204pfx.43.1518628699861; Wed, 14 Feb 2018 09:18:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518628699; cv=none; d=google.com; s=arc-20160816; b=FBoMJJeHC/uPT2GurcHDn3sHGXhbZKPc4wt1pr+HZebsH1RRp2lJrPb4aBUFmyRU0V cYRiJR8Cb8sZU9Whu5v0aax0H1qIsvwaVoq3kqAjGxE4b/DhGAYK9jB77vL3g/xgXCta GIprc/Dgy7lcm/cK/KAMk/s+IcUPJYOIjtDefjSdcPm6KWa2ICFsxg6xMhznoqJaopPG I3vqTFMlg/SYbPHzbh4hTi85QlXYI734jsbTKtPmfL+XAXm575mhR+xKP4NFSnPLlm6w crXNVIH7jKKS0E8BXuj0ajav3gPiZz2Gfm2dGItANsUSRbxqnfNajz9FYXIvfDorl1zP 5pQw== 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=DZlBoWMsDtelwC+AyrbZEzOgXKSEM4fWIgNN+MKu5+c=; b=LcQQaPK5CIKm+8LMoDpeO1wV9JTFsqSm344GzCu6xEqDGX+9roDAfzar1cFEv/+H// +vw2CZh6F4sbAcVlrutwOhAHZlFp1E6yGrRmnf9iYRXd9WoOUDrStD6wcoa+b8yWHS/2 4DUOzGN8fRGWOs0+Md/nmv4ImtB9QnTIu7KbQzSvvHMV1hWc3cocn9cnGK7qkZQ4cFA6 NwmhTSoIplOx0TzqyT57735Hm8G+ptd0da4S/DSZdMFlC5cffqmatW1IZjfpI+aLf/kT Bb/o51NEJI+e+ePLvK+JdBJDKSahbWqBhodjO3xdvJTMLC2Zkl8G9E5XW0afblmPj5Rp NfYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=kqmWdWkv; 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 k6-v6si252035pla.333.2018.02.14.09.18.04; Wed, 14 Feb 2018 09:18: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=kqmWdWkv; 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 S1161070AbeBNRRR (ORCPT + 99 others); Wed, 14 Feb 2018 12:17:17 -0500 Received: from mail-pf0-f177.google.com ([209.85.192.177]:38109 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161059AbeBNRRO (ORCPT ); Wed, 14 Feb 2018 12:17:14 -0500 Received: by mail-pf0-f177.google.com with SMTP id i3so647911pfe.5 for ; Wed, 14 Feb 2018 09:17:14 -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=DZlBoWMsDtelwC+AyrbZEzOgXKSEM4fWIgNN+MKu5+c=; b=kqmWdWkvEPr7YNsBUEIUTIMtclpquyrAEShi0UnsIpRgr7hPLPk6X+GiwXs//pZLcM 8BNcHXv4P61o2rrYQn/A7nntttK4tSCw0Tp6mpqGsFRkkzDU2weT4/fQq9UooIvv17pg VN9eBMn4oFAlMS5tI4qpwP9SXYEJo9ZxWYBApx+fumqAd29vYvYirbfV2fnpZS0f/qPN 3gvQIaXkYJZY/MdOOYGjUF//9kNqwd92t3Uz6Fw4l15X66AMwvBTjmVchCmT1cI7zToq QQMvWnihoTWaZRXBp+Of5n4iI9MZ1UjQJYQd7bvdcLVUmRYbuQOZdG4oEwPF7StTVjti +Jog== 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=DZlBoWMsDtelwC+AyrbZEzOgXKSEM4fWIgNN+MKu5+c=; b=j97lfOtgN2kffHy8OGXg3MMsSy6sH2+gSxwXa0Cr648DdHszykqQaxhlZ65tU7fAsz yI6ZXsOwKoaCxAHev12bTRfSuPyfancUh9nn3Q+mgOL6GYYtb4Wag0u7Ai5/a0ZE+zF/ 4EYQFJ9Bkcubo5t66LadRP/a4Vuc6x6iA1eRRfS+Ganmp6bc+IX9E1eh8tBRALaKMt1i zHQ4qePjlt+IJE/Nqazw2D10R7dz2G9hvaAkPRGMLU7QPJx3Xd4aXIXI+BP/G+WNyLKA dSlM9zZ03fFpLo+uNS/yxBlh3pxr0MJoX7APsypHKM/YS8/BVC7b+e5+IRw7PztUav85 wceQ== X-Gm-Message-State: APf1xPAEFgsjmzEYuDsBd52ioSAkJYGd7z6A+UspbuRBTbn6H/wFy0O2 WfBgYKebKmLiPIS+GKc/9A== X-Received: by 10.99.4.131 with SMTP id 125mr4377718pge.375.1518628633517; Wed, 14 Feb 2018 09:17:13 -0800 (PST) Received: from serve.minyard.net (serve.minyard.net. [2001:470:b8f6:1b::1]) by smtp.gmail.com with ESMTPSA id i69sm34671766pfk.24.2018.02.14.09.17.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Feb 2018 09:17:12 -0800 (PST) Received: from [192.168.27.3] (t430m.minyard.net [192.168.27.3]) by serve.minyard.net (Postfix) with ESMTPSA id 894E52B9; Wed, 14 Feb 2018 11:17:10 -0600 (CST) Reply-To: minyard@acm.org Subject: Re: ipmi_si fails to get BMC ID To: Chris Chiu Cc: openipmi-developer@lists.sourceforge.net, Linux Kernel , Linux Upstreaming Team References: <3b812894-46a0-3c87-1b9f-468fc63ea5bd@acm.org> From: Corey Minyard Message-ID: <78761f14-acc1-dc00-64d1-97aee4e42c02@acm.org> Date: Wed, 14 Feb 2018 11:17:09 -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 I'm removing Greg and Arnd from the email, I don't think this requires their participation. On 02/13/2018 08:44 PM, Chris Chiu wrote: > On Fri, Feb 9, 2018 at 9:34 PM, Corey Minyard wrote: >> 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 >> >> > Sorry for late response because it's close to Chinese New Year. > I can get the IPMI working with the driver here on Windows. > https://www.drivermax.com/Realtek-Virtual-IPMI-Realtek-PCI-VEN-10EC-DEV-816C-1_0_0718_2013-2013-07-18-509795-driver.htm > Then you will see the device (hightlighted) on the control panel as follows > https://pasteboard.co/H7xm3fJ.png Hmm, Windows has a built-in IPMI driver.  I wonder why the aren't using that. And I don't know what "Virtual IPMI" means. > I don't know how to get the register layout you need. I can only take a > picture of the content of the PCI resources. > https://pasteboard.co/H7xnhz0.png > > The contents of BAR1, BAR3, BAR5 are all 0xff. Can you point me out > where the useful information might be and I can try to dump FYI. This whole thing sounds like they have created a non-standard IPMI interface and put it on the PCI bus like a standard one.  Unless we can get documentation for this, there's not much I can do but blacklist it. Do you have any ties with Realtek?  I can't find anything on their web site related to IPMI. -corey > > Chris > >>>> 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 >>>> >>>>