Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp29775pxj; Fri, 7 May 2021 03:02:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9FCY+Zzlxgo/2KiSKeu6aZw8MTOfbOEWpnygx3HhThG4YbDNUutPuvDHodezQ5XYti0dH X-Received: by 2002:aa7:d5c9:: with SMTP id d9mr10416341eds.153.1620381751729; Fri, 07 May 2021 03:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620381751; cv=none; d=google.com; s=arc-20160816; b=yuXnPi0HoYl7GamDtVSWoPnAMCH9faBekkMj9E6BCHEYt3c1x/oxNSeVHuV8JmPJ6q IHxdAXEqHIxS+NmgPGSB2SRqlYDsxP9VR2BU6n/5RCR3OvcsgjCKiXHiJbxEWuzXO1x1 8CphOzzYkR+IkIyz4C6IPspcgPtOZhdyIV03QJibVGtIXdT9y20fXhJogc/G1B/9gEzk 9kWPkV4AwrbSf9igd1BqteQtX+hIpthtuNh72R0k8mb2bFjix19BiUcgF+LbooUNkDuM dB35L09ZeEea6a3LjiuWCy7EQdY+zQnOsKtXv32lmkiMrS0OUDvI2eYpzJOEi5Hz6dOa iowg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date; bh=ywuaBV8qUy86nAKuVKD0I1U5U8hwvolG3gNje7WSu0w=; b=GmDfEDfXwYY4jG0JrKGIUNSAsoAl/db7fqrGS//59ckktnjEYXXNxTzchfajLTMtMr oqGxtV0nr4Khsk7vO/+UJCGZSBHZmOI3myvh1Hs07MPWb1yd28ZRiciu6XsbjkSWqXiP DZnFe9lrTj1/cKpx/MpCXrm4PaympbaOu22u9ASk8Rxs6aaQ+0Rf6Kq3HSBBBB2qrYaI ReLXrl/TL29csewKMRFbRp1pUlZBNPA4u1jPS5Fxg0wRxuH0qHjhPgLc1EbB2NeV/8Zj 5sjLdPU/hX3ezX37bggWo1YYJfPq8SsPjipjO+LF4Lf0v4pK3BQrG16xjDx88kVzxEoQ pCZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si5802161edi.189.2021.05.07.03.02.03; Fri, 07 May 2021 03:02:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235804AbhEGJXt convert rfc822-to-8bit (ORCPT + 99 others); Fri, 7 May 2021 05:23:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:40766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236714AbhEGJV6 (ORCPT ); Fri, 7 May 2021 05:21:58 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 55629613C0; Fri, 7 May 2021 09:20:42 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lewf2-00BQri-63; Fri, 07 May 2021 10:20:40 +0100 Date: Fri, 07 May 2021 10:20:39 +0100 Message-ID: <87eeeiq4rc.wl-maz@kernel.org> From: Marc Zyngier To: Pali =?UTF-8?B?Um9ow6Fy?= Cc: Lorenzo Pieralisi , Thomas Petazzoni , Rob Herring , Bjorn Helgaas , Russell King , Marek =?UTF-8?B?QmVow7pu?= , Remi Pommarel , Xogium , Tomasz Maciej Nowak , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 14/42] PCI: aardvark: Don't mask irq when mapping In-Reply-To: <20210506153153.30454-15-pali@kernel.org> References: <20210506153153.30454-1-pali@kernel.org> <20210506153153.30454-15-pali@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: pali@kernel.org, lorenzo.pieralisi@arm.com, thomas.petazzoni@bootlin.com, robh@kernel.org, bhelgaas@google.com, rmk+kernel@armlinux.org.uk, kabel@kernel.org, repk@triplefau.lt, contact@xogium.me, tmn505@gmail.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 06 May 2021 16:31:25 +0100, Pali Rohár wrote: > > By default, all Legacy INTx interrupts are masked, so there is no need to > mask this interrupt during irq_map callback. What guarantees that they are actually masked? I would actually assume that the HW is in an unknown state at boot time. Thanks, M. > > Signed-off-by: Pali Rohár > Reviewed-by: Marek Behún > --- > drivers/pci/controller/pci-aardvark.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/pci/controller/pci-aardvark.c b/drivers/pci/controller/pci-aardvark.c > index 2aced8c9ae9f..08f1157e1c5e 100644 > --- a/drivers/pci/controller/pci-aardvark.c > +++ b/drivers/pci/controller/pci-aardvark.c > @@ -940,7 +940,6 @@ static int advk_pcie_irq_map(struct irq_domain *h, > { > struct advk_pcie *pcie = h->host_data; > > - advk_pcie_irq_mask(irq_get_irq_data(virq)); > irq_set_status_flags(virq, IRQ_LEVEL); > irq_set_chip_and_handler(virq, &pcie->irq_chip, > handle_level_irq); > -- > 2.20.1 > > -- Without deviation from the norm, progress is not possible.