From patchwork Wed Aug 21 07:18:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philipp Stanner X-Patchwork-Id: 13770905 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 560D6161936 for ; Wed, 21 Aug 2024 07:19:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724224745; cv=none; b=sUZEVnk1/QlhnMvnEVihuCQgnRqSWl+YQvrIY284cR/nRPLr6ZIP9iPp4i4EMTotS9AtxRngybickOl4tPW5yEAT/3EQA4m54MsE6/L8xGo6i4yoohQmajCxmt3f92IzMsIkGytuIcPWR0NVmJdh1qtWIkax3ytBb8farK3LiGM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724224745; c=relaxed/simple; bh=o84DFjXdopf1GEHjki3SjwRSP/8hSIcIsUWtHhz+AAA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Yzb8M1vw/XAJPvxOMnb7kJcvuSQSFSB1F8Lj5TpJXSzvv74NkbZhUfDqVe7ToxtG7v2SSv7oTxd0s//7mWmwFMJoscIBQ2NnCv9l4lzhshO4JwVRiJkRNr8z9pWRRIW/u737tstlGA+IuJzVqi12iJ688zHamp9zq1iY+aP95+g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WxUTg2dA; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WxUTg2dA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724224742; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=knoOMJx067NkrODyMR3q3Y02Ir50QCnNCyZ9+YE+nPg=; b=WxUTg2dAFNFQrOfCBrGukxj28EbvBl7oEqozndakQT2gSaBwdY6mnz8zJfNALNXWpWPzWf SbUNTWOFrnw+5ChITy+IcLFEFfwaMvH02FnJd1T3Kq/tYqJMXbHIJl2I7Jd+D4mq1Wu4l0 S6j+qOLKHKzBgjq0jGQXeQd8wleaY/M= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-70-8TBCQoEaMs63o3SJp5azjQ-1; Wed, 21 Aug 2024 03:19:00 -0400 X-MC-Unique: 8TBCQoEaMs63o3SJp5azjQ-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-7a1d71b96c4so675119085a.0 for ; Wed, 21 Aug 2024 00:19:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724224740; x=1724829540; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=knoOMJx067NkrODyMR3q3Y02Ir50QCnNCyZ9+YE+nPg=; b=SXEPa+32ZZM1Seuh9hHkBXkvtrjQDKlSM05NkTycfZHHe3RBgxqTnv5brdxdaL60Rb pXigfkGnInwmXOvMWeT+tFZmiXvVcAcMDtWvw0aFRL5SYpzzpev1LoekIA2MysVGbgCB acD1GDVhC1JE5A2JLYGc+RC9oDe99YX5tWFD6OBUwf6xiH3oAigTAl68JGGi36v1q8JX RtSUjuWnQOnoYyJzURCckCAQhqXrcv4oVu7SRCVzCc75ClA6lLxbxUUQzG6O6tiQHeCm iGIsm1gKr7N5/+JjYurnEFbcY8r5XnlWvQCcqfv/voTNPEvBEr48B3WWeaTnSrFxS+qa bEZA== X-Forwarded-Encrypted: i=1; AJvYcCXBX8WuOzFOeYa9f8+qDBNHZLyMB31CJJHX+ljKSODq5WvJi8ljNC4vTd1p8RldejAeOCokibdCaVjo@vger.kernel.org X-Gm-Message-State: AOJu0Yz0E05XnAmorrS6/I7xarbQkl6zaJnRgTA1orQhv+KYaQTm3t0o fMePJMYFzwKDmJ181x/+xAmnHkdQTECXj+24fKBB5ItBPCd42ITtHglLXO7Z1yb7aARWwtJSLhO agQ3SvzSfTeRLC6KIaAK6je9tbsp8E7Pwtl6HESaur45TQFWIiw4PihkB7ro= X-Received: by 2002:a05:620a:462c:b0:79d:759d:4016 with SMTP id af79cd13be357-7a673ffb26bmr218727485a.11.1724224739702; Wed, 21 Aug 2024 00:18:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFw1qO6+vz/sJKGh5yA34l/Px9L622Vwet6ke86rxp1KDhRugQHSlyN6hevOfH4OkiWcMWOug== X-Received: by 2002:a05:620a:462c:b0:79d:759d:4016 with SMTP id af79cd13be357-7a673ffb26bmr218721785a.11.1724224739226; Wed, 21 Aug 2024 00:18:59 -0700 (PDT) Received: from eisenberg.redhat.com (nat-pool-muc-t.redhat.com. [149.14.88.26]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a4ff013ef2sm596207885a.11.2024.08.21.00.18.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2024 00:18:58 -0700 (PDT) From: Philipp Stanner To: Jonathan Corbet , Jens Axboe , Wu Hao , Tom Rix , Moritz Fischer , Xu Yilun , Andy Shevchenko , Linus Walleij , Bartosz Golaszewski , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Bjorn Helgaas , Alvaro Karsz , "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , =?utf-8?q?Eugenio_P=C3=A9rez?= , Richard Cochran , Mark Brown , David Lechner , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Philipp Stanner , Damien Le Moal , Hannes Reinecke , Keith Busch Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-fpga@vger.kernel.org, linux-gpio@vger.kernel.org, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, virtualization@lists.linux.dev Subject: [PATCH v2 0/9] PCI: Remove pcim_iounmap_regions() Date: Wed, 21 Aug 2024 09:18:33 +0200 Message-ID: <20240821071842.8591-2-pstanner@redhat.com> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-fpga@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Changes in v2: - Add a fix for the UB stack usage bug in vdap/solidrun. Separate patch, put stable kernel on CC. (Christophe, Andy). - Drop unnecessary pcim_release_region() in mtip32xx (Andy) - Consequently, drop patch "PCI: Make pcim_release_region() a public function", since there's no user anymore. (obsoletes the squash requested by Damien). - Fix bug in patch "block: mtip32xx ..." where accidentally BAR 1 instead of MTIP_ABAR was requested. - vdap/solidrun: • make 'i' an 'unsigned short' (Andy, me) • Use 'continue' to simplify loop (Andy) • Remove leftover blank line - Apply given Reviewed- / acked-bys (Andy, Damien, Bartosz) Important things first: This series is based on [1] and [2] which Bjorn Helgaas has currently queued for v6.12 in the PCI tree. This series shall remove pcim_iounmap_regions() in order to make way to remove its brother, pcim_iomap_regions(). @Bjorn: Feel free to squash the PCI commits. Regards, P. [1] https://lore.kernel.org/all/20240729093625.17561-4-pstanner@redhat.com/ [2] https://lore.kernel.org/all/20240807083018.8734-2-pstanner@redhat.com/ Philipp Stanner (9): PCI: Make pcim_iounmap_region() a public function fpga/dfl-pci.c: Replace deprecated PCI functions block: mtip32xx: Replace deprecated PCI functions gpio: Replace deprecated PCI functions ethernet: cavium: Replace deprecated PCI functions ethernet: stmicro: Simplify PCI devres usage vdpa: solidrun: Fix potential UB bug with devres vdap: solidrun: Replace deprecated PCI functions PCI: Remove pcim_iounmap_regions() .../driver-api/driver-model/devres.rst | 1 - drivers/block/mtip32xx/mtip32xx.c | 11 ++-- drivers/fpga/dfl-pci.c | 9 ++-- drivers/gpio/gpio-merrifield.c | 14 ++--- .../net/ethernet/cavium/common/cavium_ptp.c | 10 ++-- .../ethernet/stmicro/stmmac/dwmac-loongson.c | 25 +++------ .../net/ethernet/stmicro/stmmac/stmmac_pci.c | 18 +++---- drivers/pci/devres.c | 24 +-------- drivers/vdpa/solidrun/snet_main.c | 52 +++++++------------ include/linux/pci.h | 2 +- 10 files changed, 57 insertions(+), 109 deletions(-)