Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9278767ybl; Fri, 17 Jan 2020 09:12:44 -0800 (PST) X-Google-Smtp-Source: APXvYqz1GbgH29m/TxZ3KeutsswOHpwqnmHqvYRkUTHDfl/pspy3tavk+M6dDV4EuLYdLgEdG2Gb X-Received: by 2002:a05:6830:1442:: with SMTP id w2mr7024387otp.143.1579281164222; Fri, 17 Jan 2020 09:12:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579281164; cv=none; d=google.com; s=arc-20160816; b=MGvLVZO4LrxRFliJxlG4EZ+U+kt8/IIjQynsMbhVGGi6G4O1jGq84TblaFNh5ui1xV RbarGDp1oNttUVY396sqbZcRzxcSnr6rtMBbJwUzU90KEC2T6hBl0Mi2lpArwMStnck/ gZiREdlwmZYHyBW11KXUUwCzK9VYAHrj/i5FrDYrcU2wuFDeJ8h5rfjgEhESLxbxNgjr 69e5sUPlfT/Ui0ooshvvPF8uEKsL6w/utRonmuUbQpPNa9U6AKCBkBuDOJ0yuENtb3g7 wlzvS8QZ/VUHvslvhfUjMwC5YxbWUJ8jz/1kYbnQX4kNrkIa+jcFs5YD2EIOvqnArPdn OFGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=4oJFzuM7NKxPwanLjg7XwR34oWk9s5Xugvf+wFkYnXU=; b=OuDXqA7B7zPx3baT4i6XhBGBTSk07IpY24VqQdWadZ93s+SXoZOd4fZCItXh+bpoE8 L1spfaX1nLEEc7ncmKTwj7OrNGGkDWZ3jvl/RJXImGhE0n5Cg46XBs3dviYnbZOA0/QN JzIZnUrlmjB4DK2OGeu+EBc531pUx6jlp4zO1if818BDJvTn4jNyLAZqzX/10veHYQbi xLfGuLQhrRXLSTSciVs+lH1F+S0cDSMdFPY2+P6KlLMGl4d5Bh1wSly+M1HF7IfMHVGe W2se9RLQxkoivur2VOtPdsF6MAssGG4PTVzpxA+9+1A6egPKTTcZWUAec8KQGTC37DtZ uViw== 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 q26si12650854oij.38.2020.01.17.09.12.29; Fri, 17 Jan 2020 09:12:44 -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; 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 S1726970AbgAQRL3 (ORCPT + 99 others); Fri, 17 Jan 2020 12:11:29 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:56953 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726603AbgAQRL2 (ORCPT ); Fri, 17 Jan 2020 12:11:28 -0500 Received: from p5b06da22.dip0.t-ipconnect.de ([91.6.218.34] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1isV9Y-0004lB-CS; Fri, 17 Jan 2020 18:11:24 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id A2C70100C19; Fri, 17 Jan 2020 18:11:23 +0100 (CET) From: Thomas Gleixner To: Ramon Fried Cc: hkallweit1@gmail.com, Bjorn Helgaas , maz@kernel.org, lorenzo.pieralisi@arm.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: MSI irqchip configured as IRQCHIP_ONESHOT_SAFE causes spurious IRQs In-Reply-To: References: <87wo9ub5f6.fsf@nanos.tec.linutronix.de> <87imldbqe3.fsf@nanos.tec.linutronix.de> <87v9pcw55q.fsf@nanos.tec.linutronix.de> <87pnfjwxtx.fsf@nanos.tec.linutronix.de> <87zhem172r.fsf@nanos.tec.linutronix.de> Date: Fri, 17 Jan 2020 18:11:23 +0100 Message-ID: <87sgke1004.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ramon, Ramon Fried writes: > On Fri, Jan 17, 2020 at 4:38 PM Thomas Gleixner wrote: >> This is wrong. MSI is edge type, not level and you are really mixing up >> the concepts here. >> >> The fact that the MSI block raises a level interrupt on the output side >> has absolutely nothing to do with the type of the MSI interrupt itself. >> >> MSI is edge type by definition and this does not change just because >> there is a translation unit between the MSI interrupt and the CPU >> controller. >> >> The actual MSI interrupts do not even know about the existance of that >> MSI block at all. They do not care, as all they need to know is a >> message and an address. When an interrupt is raised in the device the >> MSI chip associated to the device (PCI or something else) writes this >> message to the address exactly ONCE. And this exactly ONCE defines the >> edge nature of MSI. > > OK, now I understand my mistake. thanks. :) >> A proper designed MSI device should not send another message before the >> interrupt handler which is associated to the device has handled the >> interrupt at the device level. > > By "MSI device" you mean the MSI controller in the SOC or the endpoint > that sends the MSI ? The device which incorporates the MSI endpoint. Thanks, tglx