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: 13773463 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 B7D7D1CBE98 for ; Thu, 22 Aug 2024 13:48:04 +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=1724334486; cv=none; b=X83K84DIANxbsxhJ9iwzyIRqNLUsyhzFHDy7eOwZkz2HEWaGgXBmOtuwg8v1kIIPIWWWIWVucpOiS5TFzBO0tDAQNR0PhY1HHzUaPfnJGQLttiSpFeyvJXhDFnIvHST1+FbdCqGdTb0/YqTyBAuaxAr0jdzSMqYqdjme8E1A/pM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724334486; c=relaxed/simple; bh=TveaYkEbx2doRY7IcRS2QWPC/9cfsUPF8paUrSreb6o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=O5WjVjAXQhA1RZHjy66dH5GlzO0M4Q8ya2phoRv5xwVaVbFsadZMv5xLu5ImhYCJnqOIcNd1e0U2Hi4idrH9Vjrd61D9Ulf4Rk61XlDLotbLeabSUAxg/oUvr/7W3KWy04cJb9ILxIni5I4fNeB/unjkUtOLya9S4LDnL67Zz2s= 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=Swz2HJ2F; 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="Swz2HJ2F" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724334483; 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=Swz2HJ2FiNkj/6hmwkKKUB/IaYlq6TjySq8/s+gxRKN7GV+ABou+JBKv2yQkQhbkCEAvDA CIKD1TZZp+nv3adPg2ZjeQMSMLrwn/eenJvnSOc9mGyvnNDGy2mkC8WxLs6CYKBWOfmfY0 1mwR1F58e3xr6625lQvMesupnx8QMiQ= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-451-M12baq03MJ2kABt1mgRTLg-1; Thu, 22 Aug 2024 09:47:59 -0400 X-MC-Unique: M12baq03MJ2kABt1mgRTLg-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4280b119a74so6256135e9.3 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=ReQcqLGxEQ+TdQatgI9oEL3FTPEnl7a9WFmIb1JInNcFBDfqjI7tyWtlimaP1qeTPy Y0YdG05aBF9EY1Nongowrl9WDYG6zuHzNFWYMkZzyImXoSqCxVghuwqsPy3wNgo1lBoM IgGSFt5DsI1iYQEv7URUIBCNpxaW2uDAFaSRPxyQYHObqqdqxTu5zLpdIB24fxk8GxtK Q4mnpUJzrGGuddU6oYFkH/LNIFOsGkSkiln0BnTlUqLZ42Co3XmzabNrbHLXpOSh3/4B g5DFOWJtKbnHlJlnIXaJiXxHmFZwJFf1yXB/IhfyrRBCtLYI5tzcxw+p3rNilNkyIVAl Sx8Q== X-Forwarded-Encrypted: i=1; AJvYcCWbB4q9A+s0NvkyhQGGPzsXNGFb878Bf9luU0O1UC2+VjoLYVXcmW6X4bXmVsmW9LG/Bye3GmKHDlo=@vger.kernel.org X-Gm-Message-State: AOJu0Yy8WU5k/ljQXqpm0EtG/RxDgt8yZiNwXwBC00aJWxUHB78o2gUM YTitTilqhu0ReuOTx3DqrkV6XLo1uY4EUlUcgvQPhxiMRFGkKG5zY1RbmkCcAHFU3et+IYGcBMb +5djkBtZ7JUAZdhawxeYqeMHkFk9aWQhKqbMzX0hESARnid7K1kvci8T6zQ== X-Received: by 2002:a05:600c:5014:b0:426:6e95:78d6 with SMTP id 5b1f17b1804b1-42ac55babf8mr14882685e9.4.1724334478045; 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-pci@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