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 2948E3F4AB3; Sat, 28 Feb 2026 17:42:33 +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=1772300553; cv=none; b=gXvFsHigl5PaFt4jqqQnQ+jy1DNTSl8KXlBjWi/WC3qEgWJxDotFznIg550FL+zgAZhlBnphUCXy8JhWr/VHnQCkTVqp6OBNabrkoBBRgCoKrG/Sx5mcjI65gonE+gEd57CDE9TDLTnUBlklNzw1lHxsegqltEE/4iiARQZVT98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300553; c=relaxed/simple; bh=R70Y94bxuJC+tdy1f6T+8F3LOPZ3fkpgjtythSXEU8c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uTXmN+MwoJG+8CyevikEqfNv2d5x8DMtwNag/YWCyHgX0KZoIXJGFK2EAEEuAzSkhTM8GKiJafhLOyB4UmEm+EFofAA9ncznEt7ylFQr776rXdqpw9as9WnsqAqY4fhjpTSkhMWUAN+cIfu2Idwt2uRaybzxjVJRitadRXMzx2c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZBWstIFi; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZBWstIFi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5ACA2C19423; Sat, 28 Feb 2026 17:42:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772300553; bh=R70Y94bxuJC+tdy1f6T+8F3LOPZ3fkpgjtythSXEU8c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZBWstIFiX58EtfO+dCoD5Vsl/+07wLmHxQVW/FxH+EaIqGI9HFUTBHzouKeJfuu80 MbguVMMXrb8NsEuv7B1egaOuD9+NGzGcKD2zgGS82F6bJ9fnVW/0VIOoJHdIHEOoEP 9zm81Q352XrtNgCx+trVq21bLkmTw22+gq/3Q7v1KzuPBaEnpe8W3CAGn1p8kScw9k /QGqTHSiQnm+nI8h3MqjJJHAJ0a53impEkJrnUScuBtFLYKw74LCGGVOY8rVFT4H96 3GaPPtw8S2qe1Tk1/0C9PxxFKp6o0i39yq33EhCH/saJlC0CxFwCmGhMfRTCObjs7A FHrk0+QWIjsZA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Bingbu Cao , Sakari Ailus , Hans Verkuil , Sasha Levin Subject: [PATCH 6.19 592/844] media: ipu6: Fix typo and wrong constant in ipu6-mmu.c Date: Sat, 28 Feb 2026 12:28:25 -0500 Message-ID: <20260228173244.1509663-593-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228173244.1509663-1-sashal@kernel.org> References: <20260228173244.1509663-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Bingbu Cao [ Upstream commit 3e0fcc91277d5af114a58aaa68f34b44e8d8a411 ] Fix two coding errors in ipu6-mmu.c: 1. Fix syntax error in page_table_dump() where the closing parenthesis and semicolon were swapped in the TBL_PHYS_ADDR macro call. 2. Fix incorrect loop bound in alloc_l2_pt(). When initializing L2 page table entries, the loop was incorrectly using ISP_L1PT_PTES instead of ISP_L2PT_PTES. Fixes: 9163d83573e4 ("media: intel/ipu6: add IPU6 DMA mapping API and MMU table") Cc: stable@vger.kernel.org Signed-off-by: Bingbu Cao Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil Signed-off-by: Sasha Levin --- drivers/media/pci/intel/ipu6/ipu6-mmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/pci/intel/ipu6/ipu6-mmu.c b/drivers/media/pci/intel/ipu6/ipu6-mmu.c index 6d1c0b90169d4..85cc6d5b4dd11 100644 --- a/drivers/media/pci/intel/ipu6/ipu6-mmu.c +++ b/drivers/media/pci/intel/ipu6/ipu6-mmu.c @@ -102,7 +102,7 @@ static void page_table_dump(struct ipu6_mmu_info *mmu_info) if (mmu_info->l1_pt[l1_idx] == mmu_info->dummy_l2_pteval) continue; - l2_phys = TBL_PHYS_ADDR(mmu_info->l1_pt[l1_idx];) + l2_phys = TBL_PHYS_ADDR(mmu_info->l1_pt[l1_idx]); dev_dbg(mmu_info->dev, "l1 entry %u; iovas 0x%8.8x-0x%8.8x, at %pap\n", l1_idx, iova, iova + ISP_PAGE_SIZE, &l2_phys); @@ -248,7 +248,7 @@ static u32 *alloc_l2_pt(struct ipu6_mmu_info *mmu_info) dev_dbg(mmu_info->dev, "alloc_l2: get_zeroed_page() = %p\n", pt); - for (i = 0; i < ISP_L1PT_PTES; i++) + for (i = 0; i < ISP_L2PT_PTES; i++) pt[i] = mmu_info->dummy_page_pteval; return pt; -- 2.51.0