Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4509313imm; Tue, 11 Sep 2018 13:03:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZfIa+0SOaYpynZF7G3Kjw3vdpaw9Rq5HN0Wtzry9DBwBAOCZPt3Y69TmnxUeKhC+ICgBET X-Received: by 2002:a17:902:8a97:: with SMTP id p23-v6mr28652988plo.21.1536696189975; Tue, 11 Sep 2018 13:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536696189; cv=none; d=google.com; s=arc-20160816; b=YnAqyKL9ySWwJPDhL/8v0lzYBEeT8B9Cc1LxLcarwF2kDvRnQxWb6/W2U0QEA3HWQx DtNa0NS897yjN+yyjQLDuqeSsOvAelzG87Cznk+d+ZFL494N74xMD3gjwGhJQ1zs6yXc +ailQ+i6DXEVOaMXl6sJV231so8GxCMyRQZj5Xo9zzg54YPii3D8uOEZpEnWrWpbT3Yd ZPqggqdhOz91745jc1S5i5UW7Ih9SPyWaIDkcqohk9P8SkRUpdATkypIadLJaX/CJsAh ePBxhiYdfI8jGEfFFFetsb6kXT01TCegDT0PF8gMCzlb0Wxqatm64Dv0KcDhRmFHsoEK DinQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=oaKcPlhN2sPMqhn4+IBLUpU3nHN7ihPxVlD+yNujuRY=; b=vjTNdr/Xm41H4DIiLrkWhxvoJelzCl5kmzkAq7sDF2x3Z9J0h2GhICDspoy9M/z7zR ZVlELGz8ggBciM7/iMCE50wRcx/VNgp1PvNzUXdzcv7a9vQ7lmiEPKATL16B4wxfFrF6 00nK03wKRNqtBVCpdieIekxlesltysk/8eovUTJwvswPbWUGpH9Xvpe0qro257pW/KV4 B6BMZ0XlOAQNSN2JM0v7zDxYnIBTIbNFZjgkO2PsHLFCynNmaKwCNmko7u+sIihaPXSh JdswCAdN7eawZMBahwmAO9PDsAzfAdRJZQgKPyTnyUBRUiFQbabZVi20yfl2LKy7yLEU +Udg== 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 31-v6si21902399pla.129.2018.09.11.13.02.52; Tue, 11 Sep 2018 13:03:09 -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 S1727004AbeILBDL (ORCPT + 99 others); Tue, 11 Sep 2018 21:03:11 -0400 Received: from 13.mo5.mail-out.ovh.net ([87.98.182.191]:44539 "EHLO 13.mo5.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726720AbeILBDL (ORCPT ); Tue, 11 Sep 2018 21:03:11 -0400 X-Greylist: delayed 4216 seconds by postgrey-1.27 at vger.kernel.org; Tue, 11 Sep 2018 21:03:10 EDT Received: from player716.ha.ovh.net (unknown [10.109.160.232]) by mo5.mail-out.ovh.net (Postfix) with ESMTP id D03981EAAAF for ; Tue, 11 Sep 2018 20:45:34 +0200 (CEST) Received: from zorba.kaod.org (LFbn-1-10605-110.w90-89.abo.wanadoo.fr [90.89.196.110]) (Authenticated sender: postmaster@kaod.org) by player716.ha.ovh.net (Postfix) with ESMTPSA id B640F56008E; Tue, 11 Sep 2018 20:45:23 +0200 (CEST) Subject: Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly To: Guenter Roeck , Jae Hyun Yoo Cc: linux-aspeed@lists.ozlabs.org, James Feist , openbmc@lists.ozlabs.org, Brendan Higgins , linux-kernel@vger.kernel.org, Jarkko Nikula , Vernon Mauery , linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org References: <20180823225731.19063-1-jae.hyun.yoo@linux.intel.com> <20180911183734.GA21976@roeck-us.net> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= Message-ID: Date: Tue, 11 Sep 2018 20:45:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180911183734.GA21976@roeck-us.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 958703773954706420 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtjedrjedvgddufedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/11/2018 08:37 PM, Guenter Roeck wrote: > Hi, > > On Thu, Aug 23, 2018 at 03:57:31PM -0700, Jae Hyun Yoo wrote: >> In most of cases, interrupt bits are set one by one but there are >> also a lot of other cases that Aspeed I2C IP sends multiple >> interrupt bits with combining master and slave events using a >> single interrupt call. It happens much more in multi-master >> environment than single-master. For an example, when master is >> waiting for a NORMAL_STOP interrupt in its MASTER_STOP state, >> SLAVE_MATCH and RX_DONE interrupts could come along with the >> NORMAL_STOP in case of an another master immediately sends data >> just after acquiring the bus. In this case, the NORMAL_STOP >> interrupt should be handled by master_irq and the SLAVE_MATCH and >> RX_DONE interrupts should be handled by slave_irq. This commit >> modifies irq hadling logic to handle the master/slave combined >> events properly. >> >> Signed-off-by: Jae Hyun Yoo >> Reviewed-by: Brendan Higgins > > This patch causes a boot stall when booting witherspoon-bmc with > qemu v3.0, and all i2c device probes fail with error -110 (timeout). > Bisect log is attached for reference. > > With the same kernel configuration (aspeed_g5_defconfig), > ast2500-evb and romulus-bmc are still able to boot. > palmetto-bmc with aspeed_g4_defconfig also appears to work. > > Is this a problem with qemu ? Should I drop the qemu test > for witherspoon-bmc starting with the next kernel release ? The QEMU model for the Aspeed I2C controller does not support slave mode or DMA registers. That might be the issue. I will check what this patch does when I have sometime. Thanks, C.