mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-24 10:13:00 +03:00
Compare commits
4 Commits
jetson_36.
...
rel-36-lws
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e751f52f0 | ||
|
|
ee08de6166 | ||
|
|
c7c63cd0fe | ||
|
|
4f84731a0a |
@@ -23,7 +23,6 @@
|
||||
#include <linux/slab.h>
|
||||
#include <linux/dma-buf.h>
|
||||
#include <linux/debugfs.h>
|
||||
#include <linux/version.h>
|
||||
|
||||
#include <tegra_hwpm.h>
|
||||
#include <tegra_hwpm_ip.h>
|
||||
@@ -112,7 +111,6 @@ static int tegra_hwpm_probe(struct platform_device *pdev)
|
||||
hwpm_linux->pdev = pdev;
|
||||
hwpm_linux->dev = &pdev->dev;
|
||||
hwpm_linux->np = pdev->dev.of_node;
|
||||
hwpm_linux->class.owner = THIS_MODULE;
|
||||
hwpm_linux->class.name = TEGRA_SOC_HWPM_MODULE_NAME;
|
||||
|
||||
hwpm = &hwpm_linux->hwpm;
|
||||
|
||||
@@ -457,8 +457,13 @@ int tegra_hwpm_map_update_allowlist(struct tegra_soc_hwpm *hwpm,
|
||||
goto fail;
|
||||
}
|
||||
|
||||
#if defined(NV_GET_USER_PAGES_HAS_ARGS_FLAGS) /* Linux v6.5 */
|
||||
pinned_pages = get_user_pages(user_va & PAGE_MASK,
|
||||
hwpm->alist_map->num_pages, 0, hwpm->alist_map->pages);
|
||||
#else
|
||||
pinned_pages = get_user_pages(user_va & PAGE_MASK,
|
||||
hwpm->alist_map->num_pages, 0, hwpm->alist_map->pages, NULL);
|
||||
#endif
|
||||
if (pinned_pages != hwpm->alist_map->num_pages) {
|
||||
tegra_hwpm_err(hwpm, "Requested %llu pages / Got %ld pages",
|
||||
hwpm->alist_map->num_pages, pinned_pages);
|
||||
|
||||
Reference in New Issue
Block a user