mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-29 17:30:01 -04:00
Add support for allocating buffers from reserved carveout memory when IOMMU is not available. This is useful during debugging or bring-up. In this configuration, the device uses physical addresses and does not support scatter-gather lists, requiring physically contiguous buffers. Implement carveout-backed allocation and integrate it into buffer management to support operation in physical address mode. Signed-off-by: Max Zhen <max.zhen@amd.com> Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20260427170949.2666601-1-lizhi.hou@amd.com
19 lines
380 B
C
19 lines
380 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2026, Advanced Micro Devices, Inc.
|
|
*/
|
|
#ifndef _AMDXDNA_DEBUGFS_H_
|
|
#define _AMDXDNA_DEBUGFS_H_
|
|
|
|
#include "amdxdna_pci_drv.h"
|
|
|
|
#if defined(CONFIG_DEBUG_FS)
|
|
void amdxdna_debugfs_init(struct amdxdna_dev *xdna);
|
|
#else
|
|
static inline void amdxdna_debugfs_init(struct amdxdna_dev *xdna)
|
|
{
|
|
}
|
|
#endif /* CONFIG_DEBUG_FS */
|
|
|
|
#endif
|