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: 13770915 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 560801607A0 for ; Wed, 21 Aug 2024 07:19:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724224744; cv=none; b=eiyRNaVZ4TvKTtHIetqjiRFs/2ghRWfcC3ELqUccmNqod473f8UpA0XEfXk6HME2YOSg0c2YrirzxJzaX3+YGq3cCtl0q35GnmUUSJvqi8xZLvo7blWQxpgoSdXoeUpgyHI5wmYXWI0EMNkl32HC4qNEDxM3mwt8NPitCJGSTA4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724224744; c=relaxed/simple; bh=o84DFjXdopf1GEHjki3SjwRSP/8hSIcIsUWtHhz+AAA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=CByxjBzSH7lYbky/V/5LPqjN6c41aXhl6Hmtf1B2RzxDIANDJXRHPHeh7E5BlXHaDD4aj9WtKs4XvPYlsX6ItvtohfrP+ghN//dDZV+VPZZ83O+9gFcn0YJI3fUNADELwA6xV3BYwhV27n5+F1MuULcZuYEskKiDRuzcUC0FT7M= 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.129.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-133-6KMQDbrKNcKPab5X5YDQCQ-1; Wed, 21 Aug 2024 03:19:00 -0400 X-MC-Unique: 6KMQDbrKNcKPab5X5YDQCQ-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-7a1df704ef8so661402885a.2 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=dAFQOM9VY3JRyyCswz9AoQVjdk9QuqR1E2UXmmdFjyDRXLHrHZUMMRz23AoCkw9VzW uMYlKSeVU6GeoLNkYSZwivWFR08szY0AfXyrvxC2DQ0rm7SYjdtLACNRFst+hWvS3vLN GpbLWkA1z0cU5IpDT8RO61F4WcPGAbvpvGN/hgXpno9r4aPUGXqRErxIxuLBHFzoszmj yJ4BkWYCUEXo2U837YJR3IoAgt+kwpg/H+/ZxiK0C09gebgKyBD5o6UTILfHkUQp3UQm rqNXrEC6wY6z5vMPwcTc5yp0UkZrrVrfoGzgq523yosFudl91ldVPZMbNnp0p4OoA3hU dDRQ== X-Forwarded-Encrypted: i=1; AJvYcCWDriZBAebtWDfzkWF+ARQTtWHe8T+fZek9nCn+XgRQur95oFJI2+ZJlvjN+Ujfl1HfPVFuLWqc5O4UJg==@vger.kernel.org X-Gm-Message-State: AOJu0YwvRBCIImKNWr+D59VA3Xwd8FI0otC1YuYZV3G6ViwWVjQFm1w1 7txCxWfqMgJOUWd7Pfn7E6g/ifH54mKt7YuX6ua7LBAlINdYoM7P7DCkqq5ndLRnVsClaEmsHpm eb6RAZTfNbin7LDYrbieIVnMkaxZLCqXWL+RkLVKJdDCQbYoXdlE2e8A9XMIC X-Received: by 2002:a05:620a:462c:b0:79d:759d:4016 with SMTP id af79cd13be357-7a673ffb26bmr218724585a.11.1724224739685; 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-block@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(-)