Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1124161imm; Fri, 22 Jun 2018 10:44:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLiYnZv2wlIVKIxsM7Viy+KDBDOmf4PRGHGwnJlKjxugP0kRou8NbR/jdA7Kv6keHOhBJ0o X-Received: by 2002:a17:902:103:: with SMTP id 3-v6mr2635742plb.229.1529689461821; Fri, 22 Jun 2018 10:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529689461; cv=none; d=google.com; s=arc-20160816; b=NKcUqsv3Fj6FfH6025a4NbqYW7irXzIAmBTwMfv3OuFKnDis+CSoGRVx0PiC1NG/Uy nCCEI7E/u+NEisVhV3ENdDCANwwhT/C/F72/mH6mUDBwemVGuixxm4IR0fZqrWPnx/xf eScikuzHUGxtPFqAygLQXrM3EqoRlUQMiA4TP7GiB2pvO5gLm4ssQMSn8XJfvrH4Bm7c yj8eQfVW5MIBprO+TFgAwqCq/ZVF9s3sZXwO80AnWV9qCMJvkOk2Op8NCW/HpWvjgWap 6aZfQcxa39REBkb4M6Ld+l6ElngS/Obl0iatXrhrVD6I2zLewrUWGoOAbIDObYUEpuW4 25dw== 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:arc-authentication-results; bh=zy06LqJS/rUpVMzxi1CiFB44KZHugcv0CDe/IovWAr0=; b=0w2r0lnU7l/gv9V0NsFct81yiosx/WnBKFBtc6y9TxIY2Dj1NhEjIShJvQeNcJHAo9 aqRDnunV5WrHBzH3YVAQlHDeWRbq0jqG16hKmIQW4VEG4T/CEMmB0Ab7QVVaz1wG7WCp BDk3gOSfSylm7v+nlmjmp2//UZZQJzNRmXbelg0b2auyBKHcjMFjLTjSAZIPzsw65XkT 12lrkaQ5mTjSXqZ/vNyL79ZpIxeXoEJo12SKy7j9LLXYQ10K3MIT2GG6E5ziiLs90j+k yZj5boMKT4O6eoYUbJBIulFmGyPAbwSVMVKHSFeNC+a2Mbw4YDHUO2QaHcobIDQ9A6Wv 9FEw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p2-v6si6626639pgs.67.2018.06.22.10.44.07; Fri, 22 Jun 2018 10:44:21 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933995AbeFVRnW (ORCPT + 99 others); Fri, 22 Jun 2018 13:43:22 -0400 Received: from mga17.intel.com ([192.55.52.151]:61693 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932973AbeFVRnT (ORCPT ); Fri, 22 Jun 2018 13:43:19 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jun 2018 10:43:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,258,1526367600"; d="scan'208";a="59425774" Received: from haiyuewa-mobl1.ccr.corp.intel.com (HELO [10.249.173.233]) ([10.249.173.233]) by FMSMGA003.fm.intel.com with ESMTP; 22 Jun 2018 10:43:17 -0700 Subject: Re: [PATCH ] ipmi: kcs_bmc: fix IRQ exception if the channel is not open To: minyard@acm.org, arnd@arndb.de, gregkh@linuxfoundation.org, openipmi-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org Cc: luis.a.silva@dell.com, avi.fishman@nuvoton.com, openbmc@lists.ozlabs.org References: <1529636218-280096-1-git-send-email-haiyue.wang@linux.intel.com> <980bbe06-afa6-67b0-a3d3-c5fd921dcfbd@linux.intel.com> From: "Wang, Haiyue" Message-ID: <3950b9ff-79d6-b0f8-91fb-1a13b34c24d2@linux.intel.com> Date: Sat, 23 Jun 2018 01:43:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <980bbe06-afa6-67b0-a3d3-c5fd921dcfbd@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-06-23 01:23, Wang, Haiyue wrote: >> Maybe it's best to have the interrupt disabled unless the device is >> open. >> You have to handle the interrupt disable race on a close, but with the >> sync functions that shouldn't be too hard. >> > In fact, in BMC chip design, the LPC controller has many devices, such as > Port 80 snoop, BT, KCS etc, they shares the same interrupt. :) BTW, for AST2500, if the BMC and PCH run under eSPI (like LPC) mode, and if we disable the KCS devices, then reboot the BMC, it will cause the system hang, and the KCS channel can't be used anymore. So we need always enable these used KCS devices (keep the KCS enable register setting) for working well under eSPI mode.