Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17197049ybl; Thu, 2 Jan 2020 00:21:04 -0800 (PST) X-Google-Smtp-Source: APXvYqz+TZDqvJ0f8ZpO6wYVeTe2ZlTQ4wOqxhrpetRJGxPymp2LrBmDLxjGHcnmrpg3BZv6I2Sn X-Received: by 2002:a9d:5888:: with SMTP id x8mr87029020otg.361.1577953263997; Thu, 02 Jan 2020 00:21:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577953263; cv=none; d=google.com; s=arc-20160816; b=IyiGstS7y9QPNIdsUF4+pcnMmntOHPloYilRiYJAPkEfjnESYX6g6lcP61J40C+imQ 9k8SOu6SpI2UFyvoSK7s0kgl7ZtAp+wfFa+Z5w8ePh9/PY9tfhnrHk++yxXfNVbiYyaV fefLnOh3Bb58qWlyTUERJd2awdyZ3Ff3kWrNQqlfUdxrwXfqjaDzIUdbUUzqrO5A2hUP kLKs1bxaBhoJErf3wAfyhWKqoeGPU/3NgavkFfSu3IoiCp7p/eBBZle5WkR0dI1nIlEM zyulNI6Hj6/pX+46jUYQxCeVZoUwf+CyibmcKfPwgKpIISMcVbt3OmPi8kEWz0uxdEdX 4waw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aHriWhJI0dqaNpyRfzm/gY6/ALoua79QPBLVzGEfWhQ=; b=I6jAyoocXqlZKqG4S2g6Zoj3M/Og/u0HJz6Mylhow5CuAlp00k4eAF3iCgPLfcEgHp cZA60mdbGn37+B4tNFAjsq9gc9U/dan/Rm/ou42yPV0KadHdihOpQQdAS7/Tev0Q5vNn khXvgmyJL0mcoL2l41xHHQdmGLJt6pMGw7qiNfJ73YAGNzZ3NYI4UBIgSrptAKZTbJoS bBp3I1eH4D41Zko3BAsUOvx60/qSwd/eU6xjMKAea5UHXdS6xvGkmZphzz1aGR1veGbD Rtm+A8HU7NxI7w5q8I0PSBvzFFCv15eATaa1fTmY29knTah37ivq93qOAI899kxvNtBV l6NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LYHBU3hy; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11si25759821otu.301.2020.01.02.00.20.51; Thu, 02 Jan 2020 00:21:03 -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=pass header.i=@gmail.com header.s=20161025 header.b=LYHBU3hy; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727786AbgABIUC (ORCPT + 99 others); Thu, 2 Jan 2020 03:20:02 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:36201 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727688AbgABIUB (ORCPT ); Thu, 2 Jan 2020 03:20:01 -0500 Received: by mail-ot1-f66.google.com with SMTP id 19so43556513otz.3; Thu, 02 Jan 2020 00:20:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aHriWhJI0dqaNpyRfzm/gY6/ALoua79QPBLVzGEfWhQ=; b=LYHBU3hyZ4qeez/x8Dc6xNL+CoxkMucMrviIHsG4U7S2oBXfo3sm0E1OqVhgkPIAB9 WjbMWW1IYC1v/BXWqU2M3IcQKuR3fBjdq7oLC7Xg0Sk7WGpK3vqlqg1nF1zX8YzZSzI3 QkcRw7QedQurR4i+1nwDlF4PZrMY3a4U8gQZphEunf7CZ6evf6TosC1u1Ga6lvRwp8RO 66lR56KQoVjtDPXsILWbDNPTWU6YNMew4QFIH6sE8uqEMPq3I5xZEsdeAOoqlxJggxNA /v/d830qKdKIsp4TcJQSN9+Xb98L5kBox5S/CVj8KVXlyP3FG+vhgRLKJ9zm7bwuUEuh JYBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aHriWhJI0dqaNpyRfzm/gY6/ALoua79QPBLVzGEfWhQ=; b=N9U+5TXT/3COIUkcyj2pFRGGebRIFr6jxDLPG8n5YBoUjU49Sla4/jLJazIcmm60q1 3DHmJNv4sVUDC4B71PJ/gzmkg63/1ZyRBWWUswSdCURxAWCQokEPuWjkxUJNHzJoKwGf spLa3rkir/p1XQM/UL/amn5jqXkIOzcsL+J2B9UcPICol9i9Yr1j9mYo3Qvek+q8kQiZ RsSINLCO3xHXDDUUjfBTIAmIvVoAHFfHls8415pip65I+rTOn+LSQvQ0CJL5b3KTHGGd OvrAjuYt7HbA0xDWxV44a5tBRomIo2ON3aipGKK/n+//0AeBnlHewScc4ISLKzld29sv FN0g== X-Gm-Message-State: APjAAAXGdo7bafLAmKJtohIzJlLHbIndUqsXBvUKBVGXOGAINM5CdnlA n/7KtCiyRlgSDLcyAKPGVGovJTA6bIYVZrXZrck= X-Received: by 2002:a05:6830:1615:: with SMTP id g21mr94672907otr.49.1577953200818; Thu, 02 Jan 2020 00:20:00 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ramon Fried Date: Thu, 2 Jan 2020 10:19:49 +0200 Message-ID: Subject: Re: MSI irqchip configured as IRQCHIP_ONESHOT_SAFE causes spurious IRQs To: hkallweit1@gmail.com, Bjorn Helgaas , marc.zyngier@arm.com, tglx@linutronix.de, lorenzo.pieralisi@arm.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ping On Mon, Dec 9, 2019 at 12:27 PM Ramon Fried wrote: > > Hi, > While debugging the root cause of spurious IRQ's on my PCIe MSI line it appears > that because of the line: > info->chip->flags |= IRQCHIP_ONESHOT_SAFE; > in pci_msi_create_irq_domain() > The IRQF_ONESHOT is ignored, especially when requesting IRQ through > pci_request_threaded_irq() where handler is NULL. > > The problem is that the MSI masking now only surrounds the HW handler, > and all additional MSI that occur before the threaded handler is > complete are considered by the note_interrupt() as spurious. > > Besides the side effect of that, I don't really understand the logic > of not masking the MSI until the threaded handler is complete, > especially when there's no HW handler and only threaded handler. > > Your thoughts? > > Thank, > Ramon.