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: 13773560 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B6A58C52D7C for ; Thu, 22 Aug 2024 13:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=FjYBhspv7tRST0pSqSmRh821Mv70zB5zctMwrlaK9DI=; b=vaaDtXljOWNaD04YNcT+YHTXqC W+Fu3uwmng1sri4zYkuFn0k8JZbN4aWq84YhkCeRhRMda/WHQJEqZNaYL+XFTjLxzMNTNGvNbeIxX 7UM0FxGsM77e0X0Foi744u3u9rBmaCTDM6MfXSDhGAEllkMuzNXv4Ruhvw8NqMXZhHP/18dH3duV0 i6uDJl7QQocaQ5U8Ep97ZmPA8CgjLJtL5FzJGM5CwqmD5bpnFXX3Z//5vHZCVsyt9FP1/VMx0vyWw UukuIn9yotFh8XtGuwt5VLTS/bLNynINUNgrwqQz62M03ue/ecNUC9UYYiqoY1UwmQB3J/rAwSM5l tuqP779Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sh8IV-0000000D3SN-0Yfz; Thu, 22 Aug 2024 13:56:19 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sh8AY-0000000D0hp-0uZv for linux-arm-kernel@lists.infradead.org; Thu, 22 Aug 2024 13:48:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724334485; 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=Z2YcJffXSCgOYs8AjQvTi1pzYzQcto8TC5LHfHgzD0MpqWP8zhBsFtkmg+aTbuemU1RpuM MT3u0Q59JAGtr9HHoyPuQC63BViD3rfeuSJDdXfeDcK246an0IfLUscZYc9gJUBefoZHNt 4SpNDMvGax7uAuVufd1KlkE6FxOR7TE= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-481-UxaLp6g1NBGZpvPW8FLtnA-1; Thu, 22 Aug 2024 09:48:01 -0400 X-MC-Unique: UxaLp6g1NBGZpvPW8FLtnA-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4280b119a74so6256275e9.3 for ; Thu, 22 Aug 2024 06:48:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724334480; x=1724939280; 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=nxZ4pyX5EL1WmYpXVjbcn3ljBDpkkXZjvwTlRpHAYejygwnTaNeZgWTUNKSC0dEXYm xpeQeFMIztEnnIxFfRH/jaR/+tcaHrSCRXeyr6ZRGDEb4Fd60OVgxt7YvNsRea06LmRv K27I6eFkp9cZFa6L35FZ+NcGhwuDMFtPMW6nJpeI2zFHXW9myYDz9qTz1YtwjeNOCZ8B 1CwGRJtfFJ43jPcvEkHDS48nqlzraTV83hgqqEc6LOzAm9Dp2/8SoY2slijK3hktZgDU K3I1wHGohvZZo5UYwC5bu3myeFo/Ek1m48LHnYsZFVhHw+9Hfl1fBenoLFFe2bjoxIkH z6Hw== X-Forwarded-Encrypted: i=1; AJvYcCV3c9rircMLZFm4oW1VrncZD5dz8bz2+FttMc60QNjro32yrp6UEN9Xu9rJ8Y6LUuTB6Yq7RU0Mh+AOSth69btc@lists.infradead.org X-Gm-Message-State: AOJu0YzJybg0Tc/riXb7VdN5/0ondzamtWddiq4hH6U19VTcr7CNX29z EwfXHhotwXXK/0I+3YLGNWlyNW/HTVW83kVSaA/UG2PWGBD+bhpWsy2TSiRHfQwEm+JFwO6qlqc gWCbLlXWQNIi9uJ+BdU+ujJe03DcM1+AeVGXCM5Gz5GWjaUqUxm6tFiz/Ez/xSevZ55VxAc+0 X-Received: by 2002:a05:600c:5014:b0:426:6e95:78d6 with SMTP id 5b1f17b1804b1-42ac55babf8mr14883495e9.4.1724334479739; Thu, 22 Aug 2024 06:47:59 -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 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240822_064806_360931_5EBBF367 X-CRM114-Status: GOOD ( 13.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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