From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9D56D3644C6 for ; Tue, 17 Mar 2026 12:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773751876; cv=none; b=KfUKqDTfWVJrMwSzrMQCf8vAe1IgX/xgvDu5Iy4hX9rM+9DLgwOgtt+jM07ywet/i1FMQhJR1fqq0eVmiDMf4wdgCOKTyxgF6nkWfHQfWWwd9CzuskJu6Yy9vONGly0fWy58otg9c256xXFkqWfpNPg3gtzHo6D7/0mJx3oxNDU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773751876; c=relaxed/simple; bh=i3j9OFao4b9kcQOqjlDXsUqCiDsneiwk0nckhxQraaU=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=mcAeMc/nfQBhaxTR7kaFvGKSj3tb3xONGe2Jt5cH2YBZZSmaWTD2Kbfrmsn83r4Y6iVqtlLYNMdrzWkEiFAnNvZRRYdM55fGSWkCHbGBscwdq/GXVjVLT337KRDxOqOG2BLuvO6D2cXcn/d/26igMrevzav1EyoFLfiOjw/0NzQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jPIYwNZY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jPIYwNZY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7A15C4CEF7; Tue, 17 Mar 2026 12:51:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773751876; bh=i3j9OFao4b9kcQOqjlDXsUqCiDsneiwk0nckhxQraaU=; h=Subject:To:Cc:From:Date:From; b=jPIYwNZY72FZmQJ2MQiepyq0w66GLN+rC1VfqvuSQ0/bhK+UOMiwckRbV+874qO+P C0/YQ/S9mzFipvWfe/BvjXo4NPTW82BpauKVxvT9mOoae4gqt5MdpTT5EnKoOoyi6U h9mClOECKM8k5nCUORDD1RTzRh+rrrl0K1u2xoQM= Subject: FAILED: patch "[PATCH] drm/msm: Fix dma_free_attrs() buffer size" failed to apply to 6.6-stable tree To: fourier.thomas@gmail.com,dmitry.baryshkov@oss.qualcomm.com,robin.clark@oss.qualcomm.com,stable@vger.kernel.org Cc: From: Date: Tue, 17 Mar 2026 13:51:10 +0100 Message-ID: <2026031710-uptake-straining-ca85@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x e4eb6e4dd6348dd00e19c2275e3fbaed304ca3bd # git commit -s git send-email --to '' --in-reply-to '2026031710-uptake-straining-ca85@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From e4eb6e4dd6348dd00e19c2275e3fbaed304ca3bd Mon Sep 17 00:00:00 2001 From: Thomas Fourier Date: Thu, 26 Feb 2026 10:57:11 +0100 Subject: [PATCH] drm/msm: Fix dma_free_attrs() buffer size The gpummu->table buffer is alloc'd with size TABLE_SIZE + 32 in a2xx_gpummu_new() but freed with size TABLE_SIZE in a2xx_gpummu_destroy(). Change the free size to match the allocation. Fixes: c2052a4e5c99 ("drm/msm: implement a2xx mmu") Cc: Signed-off-by: Thomas Fourier Reviewed-by: Dmitry Baryshkov Patchwork: https://patchwork.freedesktop.org/patch/707340/ Message-ID: <20260226095714.12126-2-fourier.thomas@gmail.com> Signed-off-by: Rob Clark diff --git a/drivers/gpu/drm/msm/adreno/a2xx_gpummu.c b/drivers/gpu/drm/msm/adreno/a2xx_gpummu.c index 0407c9bc8c1b..4467b04527cd 100644 --- a/drivers/gpu/drm/msm/adreno/a2xx_gpummu.c +++ b/drivers/gpu/drm/msm/adreno/a2xx_gpummu.c @@ -78,7 +78,7 @@ static void a2xx_gpummu_destroy(struct msm_mmu *mmu) { struct a2xx_gpummu *gpummu = to_a2xx_gpummu(mmu); - dma_free_attrs(mmu->dev, TABLE_SIZE, gpummu->table, gpummu->pt_base, + dma_free_attrs(mmu->dev, TABLE_SIZE + 32, gpummu->table, gpummu->pt_base, DMA_ATTR_FORCE_CONTIGUOUS); kfree(gpummu);