Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp441603pxb; Wed, 25 Aug 2021 06:55:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypCZ1DnaA+T75x7b/9NXqvrLscNAj4gRwiiH6s4u5PwTtIdCFR4tw+3Ff+jnnGjGWnWW2E X-Received: by 2002:a05:6402:1bd1:: with SMTP id ch17mr13430658edb.99.1629899748622; Wed, 25 Aug 2021 06:55:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629899748; cv=none; d=google.com; s=arc-20160816; b=BBcqVVgY2yFTJDpxflWB17xP2hQSu08nuTzJ2kWODJ1r+hvo3EQ6nu/OulXnZs440V dokCZPq+NFBRpMJvAGFyGPMijYhxuAUFnTQVm1CcDKzyVa3z8TjBtbWsy+I7UFqBCOQ6 XU+HJoZAwaCF/lKxKlxxU9U3e9iohjMDGWY+sPy6CqAewLmMgbjag3lbXff+xb21NAy3 dYhHZehGMBvyzjb6IBLerd4ZJviRWHAf62JsEgosTFN+VMQRywqHvhF6F3TJ60dO6mlq N4+r1OxlaHybxNQnzWFqbu+HK/49kQRIrSwZ3OcGYw7Ly72Q2O7/aUWna3/CeE107hQU MVBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=LATC4m6Qt8fFQ4VJg/7xkW2YLaB38s8x2oGlRKw/q08=; b=sVohEIqqJ/jjQfFaBa8+gkka07Lfq+vrGmrfDKcw2P3fgnuDs4n2cAlkER8XEqEkR0 6NxBhsq2Z65/QHvsNnsX9ozN4unXISPyGCTG/2vS9VcwQPziA0V89LtsHEYb2p8REBFx lbAtJ6oVb5sxXnJ2+3g/KClvgSEXvn41QRobppMMG9M+P5VV96V1Z6HMqmcco8jjdgF2 OFR9yFJ+uNO/o5TckgHCXXxMRZWVuEbgo+/V7XjCo4W6P6epNKVS/qr5iwOKiJnBNYtQ t8UgCWvAJEAiMcrIi3Bnnpv4Q7CJmK9RR5PMLh3m82O8kelPr0lpZqyaluu7Elon+FfE GNmQ== 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 de57si25569580ejc.433.2021.08.25.06.55.23; Wed, 25 Aug 2021 06:55:48 -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 S232625AbhHYNjM (ORCPT + 99 others); Wed, 25 Aug 2021 09:39:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:60744 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240444AbhHYNjL (ORCPT ); Wed, 25 Aug 2021 09:39:11 -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 E2959610FA; Wed, 25 Aug 2021 13:38:24 +0000 (UTC) Received: from sofa.misterjones.org ([185.219.108.64] 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 1mIt6k-0079Ci-Vi; Wed, 25 Aug 2021 14:38:23 +0100 Date: Wed, 25 Aug 2021 14:38:22 +0100 Message-ID: <87bl5lpru9.wl-maz@kernel.org> From: Marc Zyngier To: Barry Song <21cnbao@gmail.com> Cc: bhelgaas@google.com, tglx@linutronix.de, Jonathan.Cameron@huawei.com, bilbao@vt.edu, corbet@lwn.net, gregkh@linuxfoundation.org, leon@kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linuxarm@huawei.com, luzmaximilian@gmail.com, mchehab+huawei@kernel.org, schnelle@linux.ibm.com, jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, intel-wired-lan@lists.osuosl.org, Barry Song Subject: Re: [PATCH v3 3/3] PCI/MSI: remove msi_attrib.default_irq in msi_desc In-Reply-To: <20210825102636.52757-4-21cnbao@gmail.com> References: <20210825102636.52757-1-21cnbao@gmail.com> <20210825102636.52757-4-21cnbao@gmail.com> 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=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: 21cnbao@gmail.com, bhelgaas@google.com, tglx@linutronix.de, Jonathan.Cameron@huawei.com, bilbao@vt.edu, corbet@lwn.net, gregkh@linuxfoundation.org, leon@kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linuxarm@huawei.com, luzmaximilian@gmail.com, mchehab+huawei@kernel.org, schnelle@linux.ibm.com, jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, intel-wired-lan@lists.osuosl.org, song.bao.hua@hisilicon.com 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 Wed, 25 Aug 2021 11:26:36 +0100, Barry Song <21cnbao@gmail.com> wrote: > > From: Marc Zyngier > > default_irq is hideous as it should be per-device but not per-desc. > On the other hand, MSI-X case doesn't use it at all. Since sysfs > IRQ has moved to use the msi_entry instead of pci_dev.irq, now it > seems it is safe to remove msi_attrib.default_irq. Thanks for doing the write-up. Maybe worth adding that drivers that use dev->irq while having enabled MSI will break (INTx will be disabled while MSI is enabled). That should give people a clue about what to fix when they bisect the problem to this patch. Also, a link to the discussion that lead to this patch would be useful to give some context. No need to respin this for now, let's give it a shake after 5.14. Thanks, M. -- Without deviation from the norm, progress is not possible.