From patchwork Thu Aug 22 13:47:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philipp Stanner X-Patchwork-Id: 13773483 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 8B0911CB33A for ; Thu, 22 Aug 2024 13:48: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=1724334485; cv=none; b=bM+rEBsXZZn70jeUcRLtawV3/eoR6jEnOOJ/J4uoyJqBSrZYwvRZ3xbiCQkpADPpWbkxu+d4z1flQ2dt3b9rPZVp4lQaUcxtq1VcoybMaKsKfLbJYa9GzSj76M4bcl3O6tyZRsbBapS5Y193sFBLEOxATQ94Ors8kAojyf9Y+bw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724334485; c=relaxed/simple; bh=TveaYkEbx2doRY7IcRS2QWPC/9cfsUPF8paUrSreb6o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=JAN9QD2hdNDi0PC3/4QYCIdGSIkojQBTuE1otcXZ7ukH/7/29U6Yf2NT3kL/dA80poBqhKn3jGVy8Kv/iFmmyjlchgY4n6NnBDW6F9Tc7uP1LCGdle60ge37ulzivo3rB8SFo2sRkf1SphRAZ9zzv7yvmhQjhSxMaw1qKW7PwDc= 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=KRMmp4Tw; 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="KRMmp4Tw" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724334482; 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=FjYBhspv7tRST0pSqSmRh821Mv70zB5zctMwrlaK9DI=; b=KRMmp4TwaYeNmgMYe+OAC61MmEjeegfpkvS9vY3tIbqXkintCa+7Xmk53QqE5uTFNN9HRI VLjjgy8oOrHR8bWReuZGcdYv4afXV5sOqLDYF+hFbinBn5NKh0K7Ir7NBSdbnl5u7wnA5a mt0Gxp4hosf5gz/+8VAIuJyMn3yFoAA= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-451-FAU8uyy_PXaGaoUII8MeCQ-1; Thu, 22 Aug 2024 09:47:59 -0400 X-MC-Unique: FAU8uyy_PXaGaoUII8MeCQ-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-428ea5b1479so6323435e9.0 for ; Thu, 22 Aug 2024 06:47:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724334478; x=1724939278; 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=FjYBhspv7tRST0pSqSmRh821Mv70zB5zctMwrlaK9DI=; b=lgSfFq8d/vME1KVRgo6FBOWIHJWDkYCCZKX0gfqAyo5xVbemRdzS8n+qUyBb1xHs+r 9uyuG/O20DRFkBg/vUJXsODI7I7Jr5497FWMk5oSHI0YZfq6onWUWVFcqNS/5bOgocL6 fcClnkOf7sC1i0g8/A3nTcd0RGCfFgOEI8UWQKe8cgqGBpe4Mo7Pq5Vs8+Z4wa4+Kmzm TYrbTGgDklcQQGnF2U5+MUHL8F/jTLHgWY9heYIWeLj3nK0cx21WrG7qjRP3XZ1Y1YRh FsgIbh7A5tLM25fb2tA0Jf/lBv8vVM7Ml6ypB9lugOhE7fkvfdZIAXU6gtF0qYe5rkT4 9eyw== X-Forwarded-Encrypted: i=1; AJvYcCV6jYhjqSQysUAx8YFLXGlxsw2iw9/sshM7u7wqYYuZBj29CDyr5aI/uyWjHTw+2G3o0oqlxM7aBsUdoQ==@vger.kernel.org X-Gm-Message-State: AOJu0YxVqk5kXLghG6mKkDGcrD5vEd6t49klbqzWHjApOCqjYy7L6+FX XVtPKF5pzHeS8bvOWf2R/STmArRh7gD3r0J6hk1DQSmcjLKWTYAy+ji92nskYzcXD9SQ5SCUOOA PVLGHWyQtpiFqh1I2BrDNJlzb6JVYRT2YsrzPiy2BeRh1x0RRhclfRtDt1ZbU X-Received: by 2002:a05:600c:5014:b0:426:6e95:78d6 with SMTP id 5b1f17b1804b1-42ac55babf8mr14882725e9.4.1724334478048; Thu, 22 Aug 2024 06:47:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9pgATN30e2cGvgnx/4ylawVQ+wC24Vnwz41hd/vPVumxXeQFsraVN5ewZN1S7fwv2HF76Rg== X-Received: by 2002:a05:600c:5014:b0:426:6e95:78d6 with SMTP id 5b1f17b1804b1-42ac55babf8mr14882365e9.4.1724334477513; Thu, 22 Aug 2024 06:47:57 -0700 (PDT) Received: from eisenberg.muc.redhat.com (nat-pool-muc-t.redhat.com. [149.14.88.26]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ac5162322sm25057215e9.24.2024.08.22.06.47.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2024 06:47:57 -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 , Chaitanya Kulkarni 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 v3 0/9] PCI: Remove pcim_iounmap_regions() Date: Thu, 22 Aug 2024 15:47:32 +0200 Message-ID: <20240822134744.44919-1-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 v3: - fpga/dfl-pci.c: remove now surplus wrapper around pcim_iomap_region(). (Andy) - block: mtip32xx: remove now surplus label. (Andy) - vdpa: solidrun: Bugfix: Include forgotten place where stack UB occurs. (Andy, Christophe) - Some minor wording improvements in commit messages. (Me) 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). - 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 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 | 16 +++--- drivers/fpga/dfl-pci.c | 16 ++---- 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 | 57 ++++++++----------- include/linux/pci.h | 2 +- 10 files changed, 61 insertions(+), 122 deletions(-) Reviewed-by: Andy Shevchenko