[{"id":3675823,"web_url":"http://patchwork.ozlabs.org/comment/3675823/","msgid":"<66eb23bf-1995-363f-78e6-f5a397a063a2@linux.intel.com>","date":"2026-04-10T11:14:55","subject":"Re: [PATCH 13/20] alpha/PCI: Clean up __pci_mmap_fits()","submitter":{"id":83553,"url":"http://patchwork.ozlabs.org/api/people/83553/","name":"Ilpo Järvinen","email":"ilpo.jarvinen@linux.intel.com"},"content":"On Fri, 10 Apr 2026, Krzysztof Wilczyński wrote:\n\n> Currently, __pci_mmap_fits() computes the BAR size using\n> pci_resource_len() - 1, which wraps to a large value when the\n> BAR length is zero, causing the bounds check to incorrectly\n> succeed.\n> \n> Thus, add an early return for empty resources.\n> \n> Also, remove the WARN() that fires when userspace attempts to\n> mmap beyond the BAR bounds.  The check still returns 0 to reject\n> the mapping, but the warning is excessive for normal operation.\n> \n> A similar warning was removed from the PCI core in the commit\n> 3b519e4ea618 (\"PCI: fix size checks for mmap() on /proc/bus/pci files\").\n\nThis looks like entirely separate two changes to me which just happen \nwithin the same context.\n\n> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>\n> ---\n>  arch/alpha/kernel/pci-sysfs.c | 14 ++++++--------\n>  1 file changed, 6 insertions(+), 8 deletions(-)\n> \n> diff --git a/arch/alpha/kernel/pci-sysfs.c b/arch/alpha/kernel/pci-sysfs.c\n> index 7aac5e76dcd6..867199b988de 100644\n> --- a/arch/alpha/kernel/pci-sysfs.c\n> +++ b/arch/alpha/kernel/pci-sysfs.c\n> @@ -37,20 +37,18 @@ static int hose_mmap_page_range(struct pci_controller *hose,\n>  static int __pci_mmap_fits(struct pci_dev *pdev, int num,\n>  \t\t\t   struct vm_area_struct *vma, int sparse)\n>  {\n> +\tresource_size_t len = pci_resource_len(pdev, num);\n>  \tunsigned long nr, start, size;\n>  \tint shift = sparse ? 5 : 0;\n>  \n> +\tif (!len)\n> +\t\treturn 0;\n> +\n>  \tnr = vma_pages(vma);\n>  \tstart = vma->vm_pgoff;\n> -\tsize = ((pci_resource_len(pdev, num) - 1) >> (PAGE_SHIFT - shift)) + 1;\n> +\tsize = ((len - 1) >> (PAGE_SHIFT - shift)) + 1;\n>  \n> -\tif (start < size && size - start >= nr)\n> -\t\treturn 1;\n> -\tWARN(1, \"process \\\"%s\\\" tried to map%s 0x%08lx-0x%08lx on %s BAR %d \"\n> -\t\t\"(size 0x%08lx)\\n\",\n> -\t\tcurrent->comm, sparse ? \" sparse\" : \"\", start, start + nr,\n> -\t\tpci_name(pdev), num, size);\n> -\treturn 0;\n> +\treturn start < size && size - start >= nr;\n>  }\n>  \n>  /**\n>","headers":{"Return-Path":"\n <linuxppc-dev+bounces-19561-incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=CkN7lzyZ;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19561-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)","lists.ozlabs.org;\n arc=none smtp.remote-ip=192.198.163.8","lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com","lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=CkN7lzyZ;\n\tdkim-atps=neutral","lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linux.intel.com\n (client-ip=192.198.163.8; helo=mgamail.intel.com;\n envelope-from=ilpo.jarvinen@linux.intel.com; receiver=lists.ozlabs.org)"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fsZ335qWZz1yGS\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 21:15:11 +1000 (AEST)","from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fsZ333KF5z2yft;\n\tFri, 10 Apr 2026 21:15:11 +1000 (AEST)","from mgamail.intel.com (mgamail.intel.com [192.198.163.8])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4fsZ321gjlz2xT6\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 10 Apr 2026 21:15:09 +1000 (AEST)","from orviesa001.jf.intel.com ([10.64.159.141])\n  by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Apr 2026 04:15:07 -0700","from ijarvine-mobl1.ger.corp.intel.com (HELO localhost)\n ([10.245.244.118])\n  by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Apr 2026 04:14:58 -0700"],"ARC-Seal":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1775819711;\n\tcv=none;\n b=c1Rdsmpt2uLijHsoF/h9nCGBQAbzwjHe821pOWKXvluOYOnOzyxzXniIbBieX1SEgLwlw/vTEoN3io0KCtAUshWC5I764yQw9jaocdALH1pWGwbb89y89zxCwdOHNvlK4X32tCnKFfxEUy8oTu7JEEr660anWD5k3tR0Mbzowa0iLatHdwyjqgJixHbvDG1kTIjXXkYhSf9XRHpjOyTnQBPHzoHNUPCHUlOpX44t+W4UYhbcN+OIYiwpkiPcUzj1w1cfNL6beLtSGF19Se0ST8YlhzqFPLofoYWCtmR8PonVygvBWM/rWl2sX/VffrEIkgChvqb2RwUh21nH4G08LA==","ARC-Message-Signature":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1775819711; c=relaxed/relaxed;\n\tbh=AjxalHPdeTS7oFuihHSHMPAnRhS7F2ULqIIUORCmR14=;\n\th=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References:\n\t MIME-Version:Content-Type;\n b=oAjsomSxxFZHHKId/QTyfDgkxlTMR1wjOUER8S9yy8cD8shwSRS/Jp4i5M4/IWXT+Rdirh2nMNb+lJU4ofLb98wTcmMYxkDbIcI6FYuF9dU+GNAS9KIi5ZHC/0XZdj2wBz7dVWrXJwXyv596DqY3dEBxjFYuV1cYTIUEK3YlUif+SIIrLe554gAPp0BVXGlEwyvfxILZXRahVnhAd7hX1vDNNDUtItvZAVP7Lz7KsHInDWVDSR69Ua12HbFjwfI2bN0+kDixf6nqkwsgUb5qX8nHDBQWa+sIBUj0iuva8rG+0BrjAuJulJnJ0lVFUVcE5iUDV10G/oXqKIlW7p5xaA==","ARC-Authentication-Results":"i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com;\n dkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=CkN7lzyZ; dkim-atps=neutral;\n spf=pass (client-ip=192.198.163.8; helo=mgamail.intel.com;\n envelope-from=ilpo.jarvinen@linux.intel.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=linux.intel.com","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1775819711; x=1807355711;\n  h=from:date:to:cc:subject:in-reply-to:message-id:\n   references:mime-version;\n  bh=LQlh8I55FJSDZdIW0plgYRYVBRUjST2rjdHoYnP/X9g=;\n  b=CkN7lzyZsx0QDHnxQ11tZHiFE70jFZqtz5+JUFEBpybzNSNqRsLPuFcV\n   /8FZ0ExAdj+4xSWMSDbctdVFvkhdhmaf2T+lEjSFh734dxKh2+zQgHGbx\n   VTh6G8Cc6qwQm1N0RcDX6Mop0UFuZlSb5IBx72zD1yi4Kb80DL4cd5S+8\n   uq/L8LBd40vYWfhplZ8qVbngo17+0xPvx1YfleYkqcXSNa7CrDKmzS/Bj\n   Cp5ePC2APtIW/KuL5Bnz8ZHcRas1c14dPBrosossIxyKDgDAa1pWBRuYu\n   dppV9LRXAQqx7Y/vUQtKcY4+P5nl+ntAnTNjUnVTU44pYaSyp2CkKbVgg\n   g==;","X-CSE-ConnectionGUID":["BfLyQN1SQm2+wM3qh33UsQ==","XwV8+G46Tz+BFYBFlBtq8g=="],"X-CSE-MsgGUID":["eGgjDwDAQRqVVWjvGA6eyw==","z5AtohwQS8qN4xrUHCo/DA=="],"X-IronPort-AV":["E=McAfee;i=\"6800,10657,11754\"; a=\"94415840\"","E=Sophos;i=\"6.23,171,1770624000\";\n   d=\"scan'208\";a=\"94415840\"","E=Sophos;i=\"6.23,171,1770624000\";\n   d=\"scan'208\";a=\"267023344\""],"X-ExtLoop1":"1","From":"=?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>","Date":"Fri, 10 Apr 2026 14:14:55 +0300 (EEST)","To":"=?iso-8859-2?q?Krzysztof_Wilczy=F1ski?= <kwilczynski@kernel.org>","cc":"Bjorn Helgaas <bhelgaas@google.com>, Bjorn Helgaas <helgaas@kernel.org>,\n  Manivannan Sadhasivam <mani@kernel.org>,\n  Lorenzo Pieralisi <lpieralisi@kernel.org>,\n  Magnus Lindholm <linmag7@gmail.com>, Matt Turner <mattst88@gmail.com>,\n  Richard Henderson <richard.henderson@linaro.org>,\n  Christophe Leroy <chleroy@kernel.org>,\n  Madhavan Srinivasan <maddy@linux.ibm.com>,\n  Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>,\n  Dexuan Cui <decui@microsoft.com>,\n =?iso-8859-2?q?Krzysztof_Ha=B3asa?= <khalasa@piap.pl>,\n  Lukas Wunner <lukas@wunner.de>, Oliver O'Halloran <oohall@gmail.com>,\n  Saurabh Singh Sengar <ssengar@microsoft.com>,\n  Shuan He <heshuan@bytedance.com>,\n  Srivatsa Bhat <srivatsabhat@microsoft.com>, linux-pci@vger.kernel.org,\n  linux-alpha@vger.kernel.org, linuxppc-dev@lists.ozlabs.org","Subject":"Re: [PATCH 13/20] alpha/PCI: Clean up __pci_mmap_fits()","In-Reply-To":"<20260410055040.39233-14-kwilczynski@kernel.org>","Message-ID":"<66eb23bf-1995-363f-78e6-f5a397a063a2@linux.intel.com>","References":"<20260410055040.39233-1-kwilczynski@kernel.org>\n <20260410055040.39233-14-kwilczynski@kernel.org>","X-Mailing-List":"linuxppc-dev@lists.ozlabs.org","List-Id":"<linuxppc-dev.lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev+help@lists.ozlabs.org>","List-Owner":"<mailto:linuxppc-dev+owner@lists.ozlabs.org>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Archive":"<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Subscribe":"<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>","List-Unsubscribe":"<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>","Precedence":"list","MIME-Version":"1.0","Content-Type":"multipart/mixed; boundary=\"8323328-133140870-1775819695=:1195\"","X-Spam-Status":"No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,\n\tDKIM_VALID,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1 OzLabs 8","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"}},{"id":3675829,"web_url":"http://patchwork.ozlabs.org/comment/3675829/","msgid":"<20260410112132.GA1756033@rocinante>","date":"2026-04-10T11:21:32","subject":"Re: [PATCH 13/20] alpha/PCI: Clean up __pci_mmap_fits()","submitter":{"id":86709,"url":"http://patchwork.ozlabs.org/api/people/86709/","name":"Krzysztof Wilczyński","email":"kwilczynski@kernel.org"},"content":"Hello,\n\n> > Currently, __pci_mmap_fits() computes the BAR size using\n> > pci_resource_len() - 1, which wraps to a large value when the\n> > BAR length is zero, causing the bounds check to incorrectly\n> > succeed.\n> > \n> > Thus, add an early return for empty resources.\n> > \n> > Also, remove the WARN() that fires when userspace attempts to\n> > mmap beyond the BAR bounds.  The check still returns 0 to reject\n> > the mapping, but the warning is excessive for normal operation.\n> > \n> > A similar warning was removed from the PCI core in the commit\n> > 3b519e4ea618 (\"PCI: fix size checks for mmap() on /proc/bus/pci files\").\n> \n> This looks like entirely separate two changes to me which just happen \n> within the same context.\n\nTrue.  I could split this into two separate patches.  However, the early\nreturn is so trivial, that I decided to keep it here, in lieu of that the\nlinked patch did, too.\n\nThoughts?\n\nThank you!\n\n\tKrzysztof","headers":{"Return-Path":"\n <linuxppc-dev+bounces-19563-incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=aNkWsMkv;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19563-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)","lists.ozlabs.org;\n arc=none smtp.remote-ip=172.105.4.254","lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org","lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=aNkWsMkv;\n\tdkim-atps=neutral","lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org\n (client-ip=172.105.4.254; helo=tor.source.kernel.org;\n envelope-from=kwilczynski@kernel.org; receiver=lists.ozlabs.org)"],"Received":["from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fsZBT63HQz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 21:21:37 +1000 (AEST)","from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fsZBT559Sz2yft;\n\tFri, 10 Apr 2026 21:21:37 +1000 (AEST)","from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4fsZBS72j0z2xT6\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 10 Apr 2026 21:21:36 +1000 (AEST)","from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n\tby tor.source.kernel.org (Postfix) with ESMTP id D32496014B;\n\tFri, 10 Apr 2026 11:21:34 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 2DC07C19421;\n\tFri, 10 Apr 2026 11:21:34 +0000 (UTC)"],"ARC-Seal":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1775820097;\n\tcv=none;\n b=R8828eP6Tq8W2z0Lz6gdP7cncQlBnkKn/2Mcg/UDzzToO4c7NHsN/V1/PmvFM1B3Xrng/1eFyVd+Sx4soVW9nhyjR8c9oJzIhvyVYoYoT9S98Xype0sDvydo3zs+zS0241oFCwxSjs/MqrFTD/4us9+xLXKWznHunaV3LYGL4GWnh4VZLWXZoTn2N/M+JjofVnsiHt5m4G4ghM4F/wuiEXTuZ6lz4y8wCHVgyom7Go5gKy1UvPgyfkOWno4LLgCNGrOjb0M8l9ryJ042Kacl+Qfv1FuHZjiMmJ5lrP6irY0fDXXEwpVSVmudGr65lNfJQdGd+HVtrb8s1j/N2C0bIA==","ARC-Message-Signature":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1775820097; c=relaxed/relaxed;\n\tbh=DO3bk2LokekSM5u9nj3g8L2Gu4sIxDP1/VVvzOyDO+g=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=ILbMEgzmyZKEegQHe/QACu+ewtc7KSN5829Vwz6rK4ty7ZLDOy1eoFvXc/mcWJu2BGxKOzyGErGGngik1eg/3RJ5mSeSTDubfqdvndJkYsVU/wCy2g3RV4JAzTHqEV6bi/nUp9vVZ6rUxhSsMJrf4eIQytM9RO8B1dhGicYEDGUldbJtHoqLYqnNCy4It0YtbiLqPyL+2dUz3qQHIDPYMgXfWfuVVBl89bwzIh5WHDJETiGF0PXi0UNx/kQwHNJy/avOhST3EycpDk7xHqTRkEPW+Xr5AaTCNwzTHWZEbWiiMwyn5Yr0igax/9pX4CXwiRg2xZsmD2YvyOClj7Wk7w==","ARC-Authentication-Results":"i=1; lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=aNkWsMkv; dkim-atps=neutral;\n spf=pass (client-ip=172.105.4.254; helo=tor.source.kernel.org;\n envelope-from=kwilczynski@kernel.org;\n receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1775820094;\n\tbh=xLa+rJ9E7aCqjS27Iq/hgGnSH2oHxIMaRffEJnqkauE=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=aNkWsMkvMG+Va6sAFKXUZym1llx13MYasPeV+K/sG2YsNB5fhSi1QGBWHW0lr8cEe\n\t Ev40On4E48kLxL4u5xdErZMqk8eBFmaEvlczXiYn844NLVvbOf+5VF6GQjp83Cd6RR\n\t URaOH6uyIvSnEz0s89g95P5FSEndyI6GSpvz+kofOapbCZ+SqnRpgUxmlcj+BjRr6d\n\t tUF3nGYNEh0ST+8xFRk7Kvo5dNDV1K+Mm4nyz7O3WrJ93GDtGkKwnZnfK/X17X7k2b\n\t f0faK0yZgmPX7lfc4nMqHmxbcB/3MooRWPwhpnkEtpGRlxGcqByVvM4/hDJUcHMRuX\n\t 9X5aOtHCv4PlQ==","Date":"Fri, 10 Apr 2026 20:21:32 +0900","From":"Krzysztof =?utf-8?q?Wilczy=C5=84ski?= <kwilczynski@kernel.org>","To":"Ilpo =?utf-8?b?SsOkcnZpbmVu?= <ilpo.jarvinen@linux.intel.com>","Cc":"Bjorn Helgaas <bhelgaas@google.com>, Bjorn Helgaas <helgaas@kernel.org>,\n Manivannan Sadhasivam <mani@kernel.org>,\n Lorenzo Pieralisi <lpieralisi@kernel.org>,\n Magnus Lindholm <linmag7@gmail.com>, Matt Turner <mattst88@gmail.com>,\n Richard Henderson <richard.henderson@linaro.org>,\n Christophe Leroy <chleroy@kernel.org>,\n Madhavan Srinivasan <maddy@linux.ibm.com>,\n Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>,\n Dexuan Cui <decui@microsoft.com>,\n Krzysztof =?utf-8?q?Ha=C5=82asa?= <khalasa@piap.pl>,\n Lukas Wunner <lukas@wunner.de>, Oliver O'Halloran <oohall@gmail.com>,\n Saurabh Singh Sengar <ssengar@microsoft.com>,\n Shuan He <heshuan@bytedance.com>, Srivatsa Bhat <srivatsabhat@microsoft.com>,\n linux-pci@vger.kernel.org, linux-alpha@vger.kernel.org,\n linuxppc-dev@lists.ozlabs.org","Subject":"Re: [PATCH 13/20] alpha/PCI: Clean up __pci_mmap_fits()","Message-ID":"<20260410112132.GA1756033@rocinante>","References":"<20260410055040.39233-1-kwilczynski@kernel.org>\n <20260410055040.39233-14-kwilczynski@kernel.org>\n <66eb23bf-1995-363f-78e6-f5a397a063a2@linux.intel.com>","X-Mailing-List":"linuxppc-dev@lists.ozlabs.org","List-Id":"<linuxppc-dev.lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev+help@lists.ozlabs.org>","List-Owner":"<mailto:linuxppc-dev+owner@lists.ozlabs.org>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Archive":"<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Subscribe":"<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>","List-Unsubscribe":"<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>","Precedence":"list","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<66eb23bf-1995-363f-78e6-f5a397a063a2@linux.intel.com>","X-Spam-Status":"No, score=-0.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,\n\tDKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS\n\tautolearn=disabled version=4.0.1 OzLabs 8","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"}},{"id":3675839,"web_url":"http://patchwork.ozlabs.org/comment/3675839/","msgid":"<f6c036e1-9145-e784-8a37-2486fc72978e@linux.intel.com>","date":"2026-04-10T11:32:43","subject":"Re: [PATCH 13/20] alpha/PCI: Clean up __pci_mmap_fits()","submitter":{"id":83553,"url":"http://patchwork.ozlabs.org/api/people/83553/","name":"Ilpo Järvinen","email":"ilpo.jarvinen@linux.intel.com"},"content":"On Fri, 10 Apr 2026, Krzysztof Wilczyński wrote:\n\n> Hello,\n> \n> > > Currently, __pci_mmap_fits() computes the BAR size using\n> > > pci_resource_len() - 1, which wraps to a large value when the\n> > > BAR length is zero, causing the bounds check to incorrectly\n> > > succeed.\n> > > \n> > > Thus, add an early return for empty resources.\n> > > \n> > > Also, remove the WARN() that fires when userspace attempts to\n> > > mmap beyond the BAR bounds.  The check still returns 0 to reject\n> > > the mapping, but the warning is excessive for normal operation.\n> > > \n> > > A similar warning was removed from the PCI core in the commit\n> > > 3b519e4ea618 (\"PCI: fix size checks for mmap() on /proc/bus/pci files\").\n> > \n> > This looks like entirely separate two changes to me which just happen \n> > within the same context.\n> \n> True.  I could split this into two separate patches.  However, the early\n> return is so trivial, that I decided to keep it here, in lieu of that the\n> linked patch did, too.\n> \n> Thoughts?\n\nIt's not just adding the early return that would go to the first patch but \nyou also need to rearrange the len for that. Effectively, the change is \nsplit in half, each becoming cleaner and more focused (both diff and the \nchangelog text).\n\nAs is I'm left on the borderline, while I can see it's \"correct\" after \nsplitting those changes inside my head, I also know it could have been \ndone better. I'd easily given rev-by for both if they'd have been done \nindividually, saved the time writing these emails about it, and \neffectively \"forgotten\" the patches (including upcoming versions of the \nseries).","headers":{"Return-Path":"\n <linuxppc-dev+bounces-19565-incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=TTWLZtYl;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19565-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)","lists.ozlabs.org; arc=none smtp.remote-ip=198.175.65.9","lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com","lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=TTWLZtYl;\n\tdkim-atps=neutral","lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=linux.intel.com\n (client-ip=198.175.65.9; helo=mgamail.intel.com;\n envelope-from=ilpo.jarvinen@linux.intel.com; receiver=lists.ozlabs.org)"],"Received":["from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fsZRn5jCNz1yGS\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 21:33:09 +1000 (AEST)","from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fsZRn26J8z2yft;\n\tFri, 10 Apr 2026 21:33:09 +1000 (AEST)","from mgamail.intel.com (mgamail.intel.com [198.175.65.9])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4fsZRj3X3yz2xT6\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 10 Apr 2026 21:33:03 +1000 (AEST)","from orviesa010.jf.intel.com ([10.64.159.150])\n  by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Apr 2026 04:33:00 -0700","from ijarvine-mobl1.ger.corp.intel.com (HELO localhost)\n ([10.245.244.118])\n  by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Apr 2026 04:32:53 -0700"],"ARC-Seal":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1775820789;\n\tcv=none;\n b=YUflip3o3GdQEFGYoMQ+h8IBV8m/wToiJ5KoA0BuixemYArJvqfTxhvIlQOI6eicD6JfMsZsMEtN4hOrXN3MH1hRLkfdzoFXb+4YBoaHcNlntGCqJ4QB21wvYx+vXmkBU1CuGc1y4bFyzQxvrNXRNoYIeNOi07iI7nW7N/3lFTe78o1YAyEgp1dJCs+1st27JK5tZV6ga7EKQuQ9+EHwXRQVF4Sp+95tFpyT3TcC+uXP+0y0F3y8B7U34NcaUPq/2oxoD3RZOncpCmOU3fa1AVGDFF+pmBz0C7ZIJMJSNsuzMEI2gGws0X51hlD8TpbJL9+oICBxgBqhQ2qZJO5/7Q==","ARC-Message-Signature":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1775820789; c=relaxed/relaxed;\n\tbh=GakzNTu39/DWytNBEla5OJij5ZIlE3iai0JY5JCF15w=;\n\th=From:Date:To:cc:Subject:In-Reply-To:Message-ID:References:\n\t MIME-Version:Content-Type;\n b=SeXK+9g4nXz17YIpRPu7U+nsqpuZFoGh7L+bTuHW+Rz+YC3srMbAis4wMzIzCazUnZN/VOEOSTgX8VQzd172i9YzOVo6rZ8SavXhK8uCzu00IAvyEYrmLVQf2h7YqnLzTtyAuUEkJWtbCbzrb7uqMeYe8omTeUvwV0EfTkhonX+zdCWxkPE4nf418Ax6x10v80dHOnCf7EcfzX1BJFQCa1F58O/eBmtPdOxkDSqREsYs35KXzqmhAzXXFBCL8mUM3TZpYvEGtiQMw2jqMDMDPIhE1OkyVeVKq6dzv57kHRptEz/Ahx2Vu4BWPtj6yq97WiHYA0UozLzcciN+Vdvd9A==","ARC-Authentication-Results":"i=1; lists.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com;\n dkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=TTWLZtYl; dkim-atps=neutral;\n spf=pass (client-ip=198.175.65.9; helo=mgamail.intel.com;\n envelope-from=ilpo.jarvinen@linux.intel.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=linux.intel.com","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1775820786; x=1807356786;\n  h=from:date:to:cc:subject:in-reply-to:message-id:\n   references:mime-version:content-id;\n  bh=e4U7N25hchQ0OTw8zCGZ+OMwYFRYHOMJzZ6QqDxdozE=;\n  b=TTWLZtYlDrXK3RgNlRe7GqMO5rneilU5q72YvKVhg1rfW2Eu50Eqv5gP\n   xpbUWHOaneffpSOWlDXTVd+w5iYYHauzFof2sCJ7yuBD8iCZZGXB1/5W/\n   IIPGgTKvyo8MC/jMqBUBWyh9pouGRQ3fcrDbWs3GM+xlI2W3FtQKkq0bz\n   MehVub61H+3OPx4ewCErkpggi3jm9fpn+RryNVtRV5P4cOUMc8qc8Vyk5\n   vXLj5+ziFlU/POCZH1lkIWvFyxS++XOKKXSqB6OD37/52yLA70Z2OWaYb\n   vt5vP/nkcqzPQqgkbxoc8MKHVwJ8dfIOFYFTmneTEK00GuGJE0fQ8wbNn\n   g==;","X-CSE-ConnectionGUID":["AkIp1vjtTK6fB+FQHwKToA==","pq0LdvgKRNOveewCKjRzXA=="],"X-CSE-MsgGUID":["xp2HzqvBTqapKcYTEMRebQ==","NCur4HzvQIiHzQCbo1QxPA=="],"X-IronPort-AV":["E=McAfee;i=\"6800,10657,11754\"; a=\"99472917\"","E=Sophos;i=\"6.23,171,1770624000\";\n   d=\"scan'208\";a=\"99472917\"","E=Sophos;i=\"6.23,171,1770624000\";\n   d=\"scan'208\";a=\"228225436\""],"X-ExtLoop1":"1","From":"=?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>","Date":"Fri, 10 Apr 2026 14:32:43 +0300 (EEST)","To":"=?iso-8859-2?q?Krzysztof_Wilczy=F1ski?= <kwilczynski@kernel.org>","cc":"Bjorn Helgaas <bhelgaas@google.com>, Bjorn Helgaas <helgaas@kernel.org>,\n  Manivannan Sadhasivam <mani@kernel.org>,\n  Lorenzo Pieralisi <lpieralisi@kernel.org>,\n  Magnus Lindholm <linmag7@gmail.com>, Matt Turner <mattst88@gmail.com>,\n  Richard Henderson <richard.henderson@linaro.org>,\n  Christophe Leroy <chleroy@kernel.org>,\n  Madhavan Srinivasan <maddy@linux.ibm.com>,\n  Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>,\n  Dexuan Cui <decui@microsoft.com>,\n =?iso-8859-2?q?Krzysztof_Ha=B3asa?= <khalasa@piap.pl>,\n  Lukas Wunner <lukas@wunner.de>, Oliver O'Halloran <oohall@gmail.com>,\n  Saurabh Singh Sengar <ssengar@microsoft.com>,\n  Shuan He <heshuan@bytedance.com>,\n  Srivatsa Bhat <srivatsabhat@microsoft.com>, linux-pci@vger.kernel.org,\n  linux-alpha@vger.kernel.org, linuxppc-dev@lists.ozlabs.org","Subject":"Re: [PATCH 13/20] alpha/PCI: Clean up __pci_mmap_fits()","In-Reply-To":"<20260410112132.GA1756033@rocinante>","Message-ID":"<f6c036e1-9145-e784-8a37-2486fc72978e@linux.intel.com>","References":"<20260410055040.39233-1-kwilczynski@kernel.org>\n <20260410055040.39233-14-kwilczynski@kernel.org>\n <66eb23bf-1995-363f-78e6-f5a397a063a2@linux.intel.com>\n <20260410112132.GA1756033@rocinante>","X-Mailing-List":"linuxppc-dev@lists.ozlabs.org","List-Id":"<linuxppc-dev.lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev+help@lists.ozlabs.org>","List-Owner":"<mailto:linuxppc-dev+owner@lists.ozlabs.org>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Archive":"<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Subscribe":"<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>","List-Unsubscribe":"<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>","Precedence":"list","MIME-Version":"1.0","Content-Type":"multipart/mixed; BOUNDARY=\"8323328-135863821-1775820198=:1195\"","Content-ID":"<35660afc-f9b7-2ff0-7765-d108aab98c34@linux.intel.com>","X-Spam-Status":"No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,\n\tDKIM_VALID,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1 OzLabs 8","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"}},{"id":3675850,"web_url":"http://patchwork.ozlabs.org/comment/3675850/","msgid":"<20260410115541.GA1770099@rocinante>","date":"2026-04-10T11:55:41","subject":"Re: [PATCH 13/20] alpha/PCI: Clean up __pci_mmap_fits()","submitter":{"id":86709,"url":"http://patchwork.ozlabs.org/api/people/86709/","name":"Krzysztof Wilczyński","email":"kwilczynski@kernel.org"},"content":"Hello,\n\n> > > This looks like entirely separate two changes to me which just happen \n> > > within the same context.\n> > \n> > True.  I could split this into two separate patches.  However, the early\n> > return is so trivial, that I decided to keep it here, in lieu of that the\n> > linked patch did, too.\n> > \n> > Thoughts?\n> \n> It's not just adding the early return that would go to the first patch but \n> you also need to rearrange the len for that. Effectively, the change is \n> split in half, each becoming cleaner and more focused (both diff and the \n> changelog text).\n> \n> As is I'm left on the borderline, while I can see it's \"correct\" after \n> splitting those changes inside my head, I also know it could have been \n> done better. I'd easily given rev-by for both if they'd have been done \n> individually, saved the time writing these emails about it, and \n> effectively \"forgotten\" the patches (including upcoming versions of the \n> series).\n\nA simple \"yes, please split\" would suffice. :)  For future reference.\n\nThank you!\n\n\tKrzysztof","headers":{"Return-Path":"\n <linuxppc-dev+bounces-19568-incoming=patchwork.ozlabs.org@lists.ozlabs.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=Lb/ZmOTV;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-19568-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)","lists.ozlabs.org;\n arc=none smtp.remote-ip=\"2600:3c04:e001:324:0:1991:8:25\"","lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org","lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=Lb/ZmOTV;\n\tdkim-atps=neutral","lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org\n (client-ip=2600:3c04:e001:324:0:1991:8:25; helo=tor.source.kernel.org;\n envelope-from=kwilczynski@kernel.org; receiver=lists.ozlabs.org)"],"Received":["from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fsZxv5VqRz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 21:55:47 +1000 (AEST)","from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fsZxv07lLz2yft;\n\tFri, 10 Apr 2026 21:55:47 +1000 (AEST)","from tor.source.kernel.org (tor.source.kernel.org\n [IPv6:2600:3c04:e001:324:0:1991:8:25])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4fsZxt0zVyz2xLt\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 10 Apr 2026 21:55:46 +1000 (AEST)","from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58])\n\tby tor.source.kernel.org (Postfix) with ESMTP id B07716111A;\n\tFri, 10 Apr 2026 11:55:43 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 08420C19421;\n\tFri, 10 Apr 2026 11:55:42 +0000 (UTC)"],"ARC-Seal":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1775822146;\n\tcv=none;\n b=PTdq++ZkyVVthaQtTAp8RP/849yXG32dWhuTDv7Pn9uKyXogbZMLAI6AlyIy4fFNFweKGhwyD/arcsT4yXRRgE269WasrOxxGnHI2e1eI4LnvFE1UEqHOyC0eUK5BvsWcG1ITYHWJDEoAJpaRNdkN06HXDOwc7W5YbOSE4GWeOERdjYhWhyQ0xwRZ8ArKIyj6lm+sOD7flWomN/wh/SiOYyZANRqWARLdekAJ8jaPAVR8XCD/SwqeoiFQf1xdt0Wt1uZcjnZqjjweDX8GyHwXKINmUessydLwtu5g50kwWbs2+hd6BCharM8qO2ZhU7gb0jX5guS6u2xqpaP6HIbdw==","ARC-Message-Signature":"i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1775822146; c=relaxed/relaxed;\n\tbh=nMMUZMuHhldIesVCYOyhb7NbP1AkLb2PK1QuyLYsnEQ=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=UVFCkDndrkJztOjKtKQ/mlb6zMuQfckAcgMSDSpFOlXxR3zAng2/m7O97D8WMBWda54bKYaU0XLtO6lm7iBRUaxDchRJeO/SOAop6kdD+FNDA9eeyxq/BxwNL+hVb8i9WEqZWwmab+n0aY+VHg8NaIsiUxJtB4Q/MXtBdIN5sSTHPqAoaigXX4/SWNJrHAzrk0tsWulLafEmMWvpZdeNZKvKbQAwMUtiCgK/PY3HsC7sTzgWu4HxcRUGrKyHwJy6vlf+FdfFXJCO3rt3M4VDskHXvRTAtB5pnm2UJLTSTxchfIbeG8scl1rKNmJl2KUWYaXIUSRbs8PxLvr+MRIcCw==","ARC-Authentication-Results":"i=1; lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=Lb/ZmOTV; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c04:e001:324:0:1991:8:25;\n helo=tor.source.kernel.org; envelope-from=kwilczynski@kernel.org;\n receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1775822143;\n\tbh=mdpaoKvaXfKLinXjUDc/IbjJOXSHqFvXpOvUOnu9NX8=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=Lb/ZmOTV/EI6r89sYKM9ULJyJetsrcgzEuFMg/9jkdKVHDvnAJGfhz6XABBV42pDE\n\t tuDb+vDldQsgNNwYLOcZrBTikPs+k+KF+a7tGZuf4JesL90OlRBkKnyY9ttXH7PRhF\n\t KMyZZBGUe7CHTFHem+Axjaq2pR3+kzKnCTPcWTdbknpkbY9bpWLqpkgQ//cSi7z7dW\n\t JM9Z8kVYEjhEG/YrGw6zPJvyp3StfSjwyeG0Kz/ApB6/aG5lYpqf47YpvGvGF4AG1v\n\t aj/jBzvtsjynVD3A0L6z5orp4L3dsfkgbRa0IwgajGiEEx72Ab5cFsooy/inKLAk6Q\n\t sRx53daBp+a7Q==","Date":"Fri, 10 Apr 2026 20:55:41 +0900","From":"Krzysztof =?utf-8?q?Wilczy=C5=84ski?= <kwilczynski@kernel.org>","To":"Ilpo =?utf-8?b?SsOkcnZpbmVu?= <ilpo.jarvinen@linux.intel.com>","Cc":"Bjorn Helgaas <bhelgaas@google.com>, Bjorn Helgaas <helgaas@kernel.org>,\n Manivannan Sadhasivam <mani@kernel.org>,\n Lorenzo Pieralisi <lpieralisi@kernel.org>,\n Magnus Lindholm <linmag7@gmail.com>, Matt Turner <mattst88@gmail.com>,\n Richard Henderson <richard.henderson@linaro.org>,\n Christophe Leroy <chleroy@kernel.org>,\n Madhavan Srinivasan <maddy@linux.ibm.com>,\n Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>,\n Dexuan Cui <decui@microsoft.com>,\n Krzysztof =?utf-8?q?Ha=C5=82asa?= <khalasa@piap.pl>,\n Lukas Wunner <lukas@wunner.de>, Oliver O'Halloran <oohall@gmail.com>,\n Saurabh Singh Sengar <ssengar@microsoft.com>,\n Shuan He <heshuan@bytedance.com>, Srivatsa Bhat <srivatsabhat@microsoft.com>,\n linux-pci@vger.kernel.org, linux-alpha@vger.kernel.org,\n linuxppc-dev@lists.ozlabs.org","Subject":"Re: [PATCH 13/20] alpha/PCI: Clean up __pci_mmap_fits()","Message-ID":"<20260410115541.GA1770099@rocinante>","References":"<20260410055040.39233-1-kwilczynski@kernel.org>\n <20260410055040.39233-14-kwilczynski@kernel.org>\n <66eb23bf-1995-363f-78e6-f5a397a063a2@linux.intel.com>\n <20260410112132.GA1756033@rocinante>\n <f6c036e1-9145-e784-8a37-2486fc72978e@linux.intel.com>","X-Mailing-List":"linuxppc-dev@lists.ozlabs.org","List-Id":"<linuxppc-dev.lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev+help@lists.ozlabs.org>","List-Owner":"<mailto:linuxppc-dev+owner@lists.ozlabs.org>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Archive":"<https://lore.kernel.org/linuxppc-dev/>,\n  <https://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Subscribe":"<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n  <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>","List-Unsubscribe":"<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>","Precedence":"list","MIME-Version":"1.0","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","In-Reply-To":"<f6c036e1-9145-e784-8a37-2486fc72978e@linux.intel.com>","X-Spam-Status":"No, score=-0.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,\n\tDKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS\n\tautolearn=disabled version=4.0.1 OzLabs 8","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org"}}]