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: 13773472 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 A54791CB301 for ; Thu, 22 Aug 2024 13:48:01 +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=1724334484; cv=none; b=YsvfiVwnuOZdji+SjnGR2WYbBqAcMh3ujgqt98En9vFisPAiKxP/OqDAF6HjAdEBl724rKwG1dGm/3tDhd9TRn+nRVRoJqhQJlm+hCQYHj4Mwe2L5cfRRwt+blV7ywu9FQDQIVUFMXviTKma+J6e+tshDFvagJmQn4bR9+2ROiE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724334484; c=relaxed/simple; bh=TveaYkEbx2doRY7IcRS2QWPC/9cfsUPF8paUrSreb6o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=X/U55nFXIupZ7XsByQG+d9VpbPdo5miVLRAOt6qBCiPb+hj1QeEZ/Mebv05rs0G1GJV8e/wpNNF+PRvgbx0+bmB0soMS3rX4U5aSBgjt65jaIGgY/jIS10+Y9fH4zKLrg9hr3yypjHEibne0puwfDhqIuIeBoKpCmlTDFybubJ0= 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=a4raivxH; 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="a4raivxH" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724334480; 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=a4raivxHIOCxlHd4d7UGKAv+ITrdQsuCSp4uNXTiz4Lp2QVBHJY8f0G9CdKakUb9jg0HbG wxCxfxFytZWZA6KpMoKTxtB24WKY82OEmF3q8tOEeY5Bsd38ru33IFkzGf67IwkFtxm8aP c4QoQqmD0OkZV7D4a4UIagWnjPG3qdA= 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-237-ajYosHHVOwWHEIMwleyl5Q-1; Thu, 22 Aug 2024 09:47:59 -0400 X-MC-Unique: ajYosHHVOwWHEIMwleyl5Q-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4281310bf7aso6288635e9.1 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=rslcvr0IE+zse5lO78RqfA/C5z6G/KkwjsPdyXyj4j74PppzczxtUevPnqTd+Licdw KcgRtvHrXQ+y9i0q3CvJyAsUAU0AUMEp10+9hjQoPiLXq2B121HLlTx/0my8fEbHputH Ewr6ThIa7yWj4LuTDyFhaOWRWW4d2ZEg+VVGM5ibhTNOjqvHgJxbbh4oPxpWvZ/pnxtT aYG+nnV/CWnvCYQWdEph3ELENESX9kq1RghrKe1rFx/EVXtS5JF2OYiUQRiK4jUyGuB6 onguN9z8ffWwMeU6OE3zaNmB2b9lqIqwvormfPHM++EvtzNA0D3WAdx8LkBsESMngwvO 3IBA== X-Forwarded-Encrypted: i=1; AJvYcCVz/Py6isSscX52UObTIW0HDytg6DewNu7NlaHvsLOJuIMDiEmNpL/d49rR5e35CcmyaBGPTQ//eZIl@vger.kernel.org X-Gm-Message-State: AOJu0YxOkB61q4H7A00GWa/4o/G3Ls95Kx2g1GdQkf66QnkU4mwKwjwS jtN2TjiuvzB5CWUHGH4mFi6MEyYGP1cbR6s7yU7wQIQyAKcE8x3mfikd5wWsCGwDoaW42/eOVsK nwRq+NHTiV+Two56HRbe2+j2eh4RiT6P/BXmPuNegsU0e2LbvfJLCB1ZIPss= X-Received: by 2002:a05:600c:5014:b0:426:6e95:78d6 with SMTP id 5b1f17b1804b1-42ac55babf8mr14882565e9.4.1724334478041; 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-fpga@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