From nobody Sat Sep 26 07:57:58 2026 Received: from mail-m19731112.qiye.163.com (mail-m19731112.qiye.163.com [220.197.31.112]) (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 D89E64189DE; Thu, 3 Sep 2026 12:10:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.112 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788437424; cv=none; b=AOfD+gxoc29tmi9UDcWAAw24t9dS6ZN3YJ/mekd+zRITDanmvn1bVaiuJ/2RG+oWkgaqVp8ZB0DDY4KEnBNHJCAT2HxskTl8tt/z8JzDOKCgpttHR+0TksofCF0edSH8rV/Jsbcc/BQWyoZs+9ah8dgbjT2SggjfP04B0gvHRxc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788437424; c=relaxed/simple; bh=5HLKsCArL1s3JTqS6jLCeG/O7wO8y6jszUadWPpRwyQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cp5y+kxEH9Xzv2obAtvAdUZ5uciCfj+cloPqRXU7bnvxqQI+J3BC14TMyo8RESuUOhVnk4a+OfjeKiuine66AqLqVFxK2tTuzy3cczl4BLXQiDHXcly0KMKN6OJmW72ca4CHw6xLNAalj9v+x4UIlW9l55R7YPU623bAZQhLnBs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnics.com; spf=pass smtp.mailfrom=resnics.com; arc=none smtp.client-ip=220.197.31.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnics.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=resnics.com Received: from localhost.localdomain (unknown [115.220.204.6]) by smtp.qiye.163.com (Hmail) with ESMTP id 4c6c14957; Thu, 3 Sep 2026 19:54:50 +0800 (GMT+08:00) From: Ruizhe Zhou To: Vinod Koul , Basavaraj Natikar , Logan Gunthorpe , Orson Zhai , Baolin Wang Cc: Frank Li , Chunyan Zhang , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Ruizhe Zhou Subject: [PATCH 1/3] dmaengine: ptdma: Remove obsolete 32-bit DMA mask fallback Date: Thu, 3 Sep 2026 19:54:39 +0800 Message-Id: <20260903115441.912500-2-zhouruizhe@resnics.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20260903115441.912500-1-zhouruizhe@resnics.com> References: <20260903115441.912500-1-zhouruizhe@resnics.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-HM-Tid: 0aa0671f28f903ackunma38d057f6ea65 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVlDQ0hOVkMZTxgZT0JCGhhMQ1YVFA kWGhdVEwETFhoSFyQUDg9ZV1kYEgtZQVlKSk5VSUlLVUlLT1VNWVdZFhoPEhUdFFlBWU9LSFVKS0 lPT09IVUpLS1VKQktLWQY+ Content-Type: text/plain; charset="utf-8" The DMA API guarantees support for masks of 32 bits or wider and explicitly identifies retrying a 32-bit mask after a wider request as incorrect: https://docs.kernel.org/core-api/dma-api-howto.html#dma-addressing-capabili= ties Remove the obsolete fallback while retaining the error check so that a genuine DMA setup failure is still reported and aborts initialization. Signed-off-by: Ruizhe Zhou --- drivers/dma/amd/ptdma/ptdma-pci.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/dma/amd/ptdma/ptdma-pci.c b/drivers/dma/amd/ptdma/ptdm= a-pci.c index 22739ff0c3c5..d36bb9c67325 100644 --- a/drivers/dma/amd/ptdma/ptdma-pci.c +++ b/drivers/dma/amd/ptdma/ptdma-pci.c @@ -178,12 +178,8 @@ static int pt_pci_probe(struct pci_dev *pdev, const st= ruct pci_device_id *id) =20 ret =3D dma_set_mask_and_coherent(dev, DMA_BIT_MASK(48)); if (ret) { - ret =3D dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32)); - if (ret) { - dev_err(dev, "dma_set_mask_and_coherent failed (%d)\n", - ret); - goto e_err; - } + dev_err(dev, "dma_set_mask_and_coherent failed (%d)\n", ret); + goto e_err; } =20 dev_set_drvdata(dev, pt); --=20 2.27.0 From nobody Sat Sep 26 07:57:58 2026 Received: from mail-m16023652200.xmail.ntesmail.com (mail-m16023652200.xmail.ntesmail.com [160.236.52.200]) (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 067F7495524; Thu, 3 Sep 2026 11:54:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=160.236.52.200 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788436503; cv=none; b=t4aFxjpQLBKyse3HUYl0l7N/yNxe/6NburXt2xxBXbQdiGZ/hyynxmzZlAw5di8ZMtRye7mouzx9UNXGcmmdVXeBvNPfJw7xHtJZd8tBHF9aaXcVBcUEpPQMHr+YDdfzPPL8xL9I6tc1KOVx2mPUeqJfnEKj894ULbXOUNNH+L4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788436503; c=relaxed/simple; bh=hby4S036lKbDxVAGNNn2Y+hoZvcqrw/ovKQt2X4mQRs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZhXU8V5hpKHZ8P3MVRjPk6Vbo7KYzau7n/oj5JmtpSwlIEUTrfn+os1DNTE3GkxZYqu0hRPZ6u9Nw0qzak4p0CxpEJmK0W5i4GyqRFtrhDZKqCWGJfeHp2INQOobLiww3TH7YyOtYephtGoDx/RtuKaI441iPb14nW4oQORqoz8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnics.com; spf=pass smtp.mailfrom=resnics.com; arc=none smtp.client-ip=160.236.52.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnics.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=resnics.com Received: from localhost.localdomain (unknown [115.220.204.6]) by smtp.qiye.163.com (Hmail) with ESMTP id 4c6c14959; Thu, 3 Sep 2026 19:54:51 +0800 (GMT+08:00) From: Ruizhe Zhou To: Vinod Koul , Basavaraj Natikar , Logan Gunthorpe , Orson Zhai , Baolin Wang Cc: Frank Li , Chunyan Zhang , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Ruizhe Zhou Subject: [PATCH 2/3] dmaengine: plx_dma: Remove obsolete 32-bit DMA mask fallback Date: Thu, 3 Sep 2026 19:54:40 +0800 Message-Id: <20260903115441.912500-3-zhouruizhe@resnics.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20260903115441.912500-1-zhouruizhe@resnics.com> References: <20260903115441.912500-1-zhouruizhe@resnics.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-HM-Tid: 0aa0671f2bce03ackunma38d057f6ea6b X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVlDTE9JVkpNTRpJQx1KHUgfH1YVFA kWGhdVEwETFhoSFyQUDg9ZV1kYEgtZQVlKSk5VSUlLVUlLT1VNWVdZFhoPEhUdFFlBWU9LSFVKS0 lPT09IVUpLS1VKQktLWQY+ Content-Type: text/plain; charset="utf-8" The DMA API guarantees support for masks of 32 bits or wider and explicitly identifies retrying a 32-bit mask after a wider request as incorrect: https://docs.kernel.org/core-api/dma-api-howto.html#dma-addressing-capabili= ties Remove the obsolete fallback while retaining the error check so that a genuine DMA setup failure is still propagated and aborts initialization. Signed-off-by: Ruizhe Zhou Reviewed-by: Logan Gunthorpe --- drivers/dma/plx_dma.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/dma/plx_dma.c b/drivers/dma/plx_dma.c index 84941a918b01..ad9187448ed2 100644 --- a/drivers/dma/plx_dma.c +++ b/drivers/dma/plx_dma.c @@ -562,8 +562,6 @@ static int plx_dma_probe(struct pci_dev *pdev, return rc; =20 rc =3D dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(48)); - if (rc) - rc =3D dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); if (rc) return rc; =20 --=20 2.27.0 From nobody Sat Sep 26 07:57:58 2026 Received: from mail-m49204.qiye.163.com (mail-m49204.qiye.163.com [45.254.49.204]) (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 0DB954B3379; Thu, 3 Sep 2026 14:17:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.204 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788445061; cv=none; b=Ar9RWFbmbhVSKm1EER8oBsldoHY7BzSchyXmipUym/iLZngLcMiKJgrx8eUWfOCGMQWEWD0TzDtccvBsOvHVFiisjZ8oEdXowEaUkS1JQXWQrHxYszeHIICn/ZDo5qjJ0Ir+pZQ24JG7DzSoMvZP8Tz7/xfsG8fRBTuja58Dy88= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788445061; c=relaxed/simple; bh=JO1y5pdutmTvqovLl+SMOHQkgHGXSiEs+j2euU0g30Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dm+evK6KD9BB9lqHdr+Cd+RzTBTtHofUnuVnnTAVvJ79o1lDvbMqNYUUChCfL7kY5uosmp4bZl31EectDu/CzIEfBIBht/PHVMKQ6LqyWYvNzfteZHpZf2/ZIoDBpImWtzSXBCNYvunHLpomEglukWCjs4x5nobz5z0hE7cMC4A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnics.com; spf=pass smtp.mailfrom=resnics.com; arc=none smtp.client-ip=45.254.49.204 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnics.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=resnics.com Received: from localhost.localdomain (unknown [115.220.204.6]) by smtp.qiye.163.com (Hmail) with ESMTP id 4c6c1495a; Thu, 3 Sep 2026 19:54:51 +0800 (GMT+08:00) From: Ruizhe Zhou To: Vinod Koul , Basavaraj Natikar , Logan Gunthorpe , Orson Zhai , Baolin Wang Cc: Frank Li , Chunyan Zhang , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Ruizhe Zhou Subject: [PATCH 3/3] dmaengine: sprd: Remove obsolete 32-bit DMA mask fallback Date: Thu, 3 Sep 2026 19:54:41 +0800 Message-Id: <20260903115441.912500-4-zhouruizhe@resnics.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20260903115441.912500-1-zhouruizhe@resnics.com> References: <20260903115441.912500-1-zhouruizhe@resnics.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-HM-Tid: 0aa0671f2e7e03ackunma38d057f6ea6d X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVlCGk5PVhgZHx1PQx9ISENJTFYVFA kWGhdVEwETFhoSFyQUDg9ZV1kYEgtZQVlKSk5VSUlLVUlLT1VNWVdZFhoPEhUdFFlBWU9LSFVKS0 lPT09IVUpLS1VKQktLWQY+ Content-Type: text/plain; charset="utf-8" The DMA API guarantees support for masks of 32 bits or wider and explicitly identifies retrying a 32-bit mask after a wider request as incorrect: https://docs.kernel.org/core-api/dma-api-howto.html#dma-addressing-capabili= ties Remove the obsolete fallback while retaining the error check so that a genuine DMA setup failure is still reported and aborts initialization. Signed-off-by: Ruizhe Zhou --- drivers/dma/sprd-dma.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 087fea3af2e4..b9f705dd80e5 100644 --- a/drivers/dma/sprd-dma.c +++ b/drivers/dma/sprd-dma.c @@ -1117,11 +1117,8 @@ static int sprd_dma_probe(struct platform_device *pd= ev) =20 ret =3D dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(36)); if (ret) { - ret =3D dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); - if (ret) { - dev_err(&pdev->dev, "unable to set coherent mask to 32\n"); - return ret; - } + dev_err(&pdev->dev, "unable to set 36-bit DMA mask\n"); + return ret; } =20 /* Parse new and deprecated dma-channels properties */ --=20 2.27.0