Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp920168lqs; Fri, 14 Jun 2024 09:15:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMd4Yb5pELIKpLiEctgUdeg+q+V0fHIFokYOXx1jWFsafxXrXH1RZUgkexRvTi4ipZ4lFiIiOmexCwddtxTw7ogScLFfbYDrpx0+P1Dw== X-Google-Smtp-Source: AGHT+IHo1na9hMFTu5WCexYWmU3pfjjGYcCLQiUjcVqb1d85DSFkmSvydU/kF4k3DqweKiBDvJXa X-Received: by 2002:a05:6a00:2f41:b0:6f6:76c8:122c with SMTP id d2e1a72fcca58-705d6b1a62emr4118766b3a.16.1718381721847; Fri, 14 Jun 2024 09:15:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718381721; cv=pass; d=google.com; s=arc-20160816; b=0ZmG9uFuX1USQ5hR6yxjYtMEVHcj3AKjSLm9SqGoyKltRlLtdnhi1LPsc1XZ8WMgGn EHPGajlrBsFTEDFjNtMrMDdVF1R2rJ74beEmssY58S1M2gZps0J9QtS/bD2nYJsncE9F 0maQnVc8KdtG3kb95bnF8A/EVg9IhJrR2ByPxWFfjnTUCUyACTptpxKgSiM3NQka08oJ f1/tIq6DSOqkcXqRBOim/nNS3B2XsHBkq31s53REHvmqhBd9N184wNbaNn9AAfeCdST+ aEnogPX0Y9GcxKbCGbzLAT9jLrz/IAWL839HTxazzSaDC9uQ6iJNjiK6qqOYbPGZbtOg 11eg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=DpFSiPidqeTYnR7ixfMBS5deZ3fisuZbMx4E9M01hus=; fh=FA+CAd3+GBtCPxiTmLnaJmBCGzHf4mwkhhAeva7OHqE=; b=H4HU+EnI3DA82LXV/5dj2I32qdmvEOVOo85Oqbg2twnt9nnaU9sCc799/7oowJhhDO y/EJF1TO16gdQ4IJaI2lqG1ZVkTAmpfHA4ioFgg/Li2oxVn/j2anclJAuG1dD7Pv1gcx RCLZt8jFHSXCmMZ65/0LXMbPMRaADVvVdgHgJ1ZlgqG7/p1ev8poeVQMVeMlA5TSYcF3 qVPTg0EQwTw6V+88ZBI7iYcxfOoPytRW9JjMs0wHNi7IbpKvKsPSEQ9zwTh2b89UmwiY MVjd24QQVyleFn95qOhZ8wYzDWpaEw3bWqs5R+oH+oRWWPKYCmGw1fIXpNqkJp0Wod+l V5vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=encO+XLL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215213-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-705ccb3c2b0si3927367b3a.206.2024.06.14.09.15.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 09:15:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215213-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=encO+XLL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215213-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C23902830BE for ; Fri, 14 Jun 2024 16:15:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 589A7181CFC; Fri, 14 Jun 2024 16:14:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="encO+XLL" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F0491802BF; Fri, 14 Jun 2024 16:14:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718381685; cv=none; b=IpD8Tv/kzVg4DU7yj3L/WnKIIrwgTAWDWHJSS8Raj5T0ZVCbFwHexx3KAycFkrW0i/FZw14cQNPYvC37CLr9hst1cCkKUodEVc4fsG4Nmlb8ipkcrwEf6wyMEnZVb8SYeAUgGhLOGF0eNxoGJznbOkgRHfzHOmx+wfbkCNDZ/UE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718381685; c=relaxed/simple; bh=6/hK32YyxB/oulfz7g+LC1o7De7LeZULQu3LvuNUbpA=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=mOAkbbAHTHnOQ5mNreM2Ai9R7aYD28JRi8fxyFdRUGm7TG5F01H58rRFL4o/ukIprEpz1EqA/LwzI9qzSQJf6vQFRiMo9kxuKTA0pq2RFPLr328rXb/x4VSN3GHZXKEJoQE4OJpDalNJ/563JFijYu/NUeXq9Frr1m88Wlg1+Zg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=encO+XLL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0D12C2BD10; Fri, 14 Jun 2024 16:14:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718381685; bh=6/hK32YyxB/oulfz7g+LC1o7De7LeZULQu3LvuNUbpA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=encO+XLLfhclLh17ucfRA+1G9aZik3WtQrNyy4rlKnHJu4hNRHt4R43pIB5q86mHn 6YmT4CewVfuozNLkvqBo1uinKkkObS+JYNQvYZq+sjtQWW7QR+f1sbZcXCXXUqygM+ 3vapXlNKDHrMWWyDRx+ogl/wc5ZpYMAt5lPYLAmvvnwJE5BhZN0rARQZvm2+H1pmOl Zp5D5IqmLygidHzHDYSuOeQl5JqXu6Vs4wtV5AtqScgYEnqmGmS/fpGqlktvgJ4zOi I9nuLYjzcIVwJHDH6s5PAz98cIgtmygUQIkUPEbvPhvjrWhhuPSn0qiIvjBQ9Fkbdn /VFthmuytJ4RQ== Date: Fri, 14 Jun 2024 11:14:43 -0500 From: Bjorn Helgaas To: Philipp Stanner Cc: Andy Shevchenko , Hans de Goede , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Bjorn Helgaas , Sam Ravnborg , dakr@redhat.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v9 10/13] PCI: Give pci_intx() its own devres callback Message-ID: <20240614161443.GA1115997@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5d38858130e129fd3568e97d466a4b905e864f8f.camel@redhat.com> On Fri, Jun 14, 2024 at 10:09:46AM +0200, Philipp Stanner wrote: > On Thu, 2024-06-13 at 16:06 -0500, Bjorn Helgaas wrote: > > On Thu, Jun 13, 2024 at 01:50:23PM +0200, Philipp Stanner wrote: > > > pci_intx() is one of the functions that have "hybrid mode" (i.e., > > > sometimes managed, sometimes not). Providing a separate pcim_intx() > > > function with its own device resource and cleanup callback allows > > > for > > > removing further large parts of the legacy PCI devres > > > implementation. > > > > > > As in the region-request-functions, pci_intx() has to call into its > > > managed counterpart for backwards compatibility. > > > > > > As pci_intx() is an outdated function, pcim_intx() shall not be > > > made > > > visible to drivers via a public API. > > > > What makes pci_intx() outdated?  If it's outdated, we should mention > > why and what the 30+ callers (including a couple in drivers/pci/) > > should use instead. > > That is 100% based on Andy Shevchenko's (+CC) statement back from > January 2024 a.D. [1] > > Apparently INTx is "old IRQ management" and should be done through > pci_alloc_irq_vectors() nowadays. Do we have pcim_ support for pci_alloc_irq_vectors()? > [1] https://lore.kernel.org/all/ZabyY3csP0y-p7lb@surfacebook.localdomain/