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: 13770895 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 BA95A1A2863 for ; Wed, 21 Aug 2024 07:19:02 +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=eJbPrLjz/OyyMSk8myMd16OLj20WU08w/sUpR2zInEiPPi1FRmk/3QAcH2NYkVqhHZ7bz1wKKlbTvODUBUS4vpdAEhOH9dww7BsK81y9fxgR/3YD8WmiL1dzwQGOIRmVyjgWQnwGk3aHD6z8yujEnV9qpONHW20G5dS+TjfRLhs= 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=DvtPzbLt; 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="DvtPzbLt" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724224741; 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=DvtPzbLtoNl6SYOJgxHz4XAAIsfEz2/7cssLoY2nykM2IjZp80TtQMCHBPNb4fgDDJcq8Z KHxjj/fv3RYoMgflZ4JaRHm8J/b6m/sOnk6Gc1aU1envkx+pj1LYT8JIE2IyYxo9p+dnLV CKr4/JOrg8+Yy2wnfsfbOZaV5lQEpGk= 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-684-NU-dXMgsO92gmVfzC4f88w-1; Wed, 21 Aug 2024 03:19:00 -0400 X-MC-Unique: NU-dXMgsO92gmVfzC4f88w-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-7a1d71b96c4so675119285a.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=lGWXo67yRCsiD2crdrcxSdAM9eHoSYBY7hqxF6OPPaWtUW2Ktgll/V0XxkOj93aANy W+MAUaHrTIFM32SH+chUiR7bb27FFiHE/E4TXBtfZrXgEUeVkOEQiX0mR60S5Yhsxl2R HgnRMTnzFXGj745MmkRKX8iXs9/gi54BZPdMP4G5l/J6w+6C1UNOyUwNaRf52RyxGzdZ lG2xGWqnYScFwL2czt+F9T0jNAxsrRUkOcSUoS18jZtPvasTT5itxH3384+tWR6ld6r4 IBvaWJWVjTStylfZorlbbcErHVW2yiUo2ZU2KRUcZPv5Q1yKxSRkrqJBYnuyRL3KE7Fh OfbQ== X-Forwarded-Encrypted: i=1; AJvYcCV2Va0doeWwF5jF5iL5ULh5BUuF8IBRjuwW0wNd2FpHGT2oLiDHKN7WvhOXdr7ymfP+fcqUnY2v6RE=@vger.kernel.org X-Gm-Message-State: AOJu0YxabL2khmWSzVWdEm/IvxAUDWgodeYePoY2vxCJC7dtntgEZYrT BbRfZfXm2Kqx11ARl/GhLVz/2gvgXprJahpvemyYw7RduNh6a1jlkyMJ2fPh3IB7m1twEk9Eg83 mgjdWaEfTOQIpjRatGyq7IJ8/VcsyQH2bI9JIlpoP9EtOX5seQeYYUc77dQ== X-Received: by 2002:a05:620a:462c:b0:79d:759d:4016 with SMTP id af79cd13be357-7a673ffb26bmr218726485a.11.1724224739697; 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-pci@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(-)