amd-debug-tools 0.2.20__tar.gz → 0.2.21__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. {amd_debug_tools-0.2.20/src/amd_debug_tools.egg-info → amd_debug_tools-0.2.21}/PKG-INFO +1 -1
  2. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/prerequisites.py +8 -0
  3. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/ttm.py +79 -50
  4. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21/src/amd_debug_tools.egg-info}/PKG-INFO +1 -1
  5. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug_tools.egg-info/scm_file_list.json +50 -50
  6. amd_debug_tools-0.2.21/src/amd_debug_tools.egg-info/scm_version.json +8 -0
  7. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_prerequisites.py +21 -0
  8. amd_debug_tools-0.2.20/src/amd_debug_tools.egg-info/scm_version.json +0 -8
  9. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/.github/workflows/ci.yml +0 -0
  10. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/.github/workflows/mirror.yml +0 -0
  11. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/.gitignore +0 -0
  12. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/.pre-commit-config.yaml +0 -0
  13. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/.vscode/settings.json +0 -0
  14. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/LICENSE +0 -0
  15. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/Makefile +0 -0
  16. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/README.md +0 -0
  17. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/amd_bios.py +0 -0
  18. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/amd_pstate.py +0 -0
  19. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/amd_s2idle.py +0 -0
  20. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/amd_ttm.py +0 -0
  21. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/docs/amd-bios.md +0 -0
  22. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/docs/amd-pstate.md +0 -0
  23. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/docs/amd-s2idle.md +0 -0
  24. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/docs/amd-ttm.md +0 -0
  25. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/docs/in-tree.md +0 -0
  26. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/install_deps.py +0 -0
  27. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/psr.py +0 -0
  28. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/pyproject.toml +0 -0
  29. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/setup.cfg +0 -0
  30. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/__init__.py +0 -0
  31. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/acpi.py +0 -0
  32. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/bash/amd-s2idle +0 -0
  33. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/battery.py +0 -0
  34. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/bios.py +0 -0
  35. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/common.py +0 -0
  36. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/database.py +0 -0
  37. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/display.py +0 -0
  38. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/failures.py +0 -0
  39. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/installer.py +0 -0
  40. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/kernel.py +0 -0
  41. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/power_rails.py +0 -0
  42. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/pstate.py +0 -0
  43. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/s2idle-hook +0 -0
  44. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/s2idle.py +0 -0
  45. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/sleep_report.py +0 -0
  46. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/templates/html +0 -0
  47. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/templates/md +0 -0
  48. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/templates/stdout +0 -0
  49. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/templates/txt +0 -0
  50. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/validator.py +0 -0
  51. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug/wake.py +0 -0
  52. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug_tools.egg-info/SOURCES.txt +0 -0
  53. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug_tools.egg-info/dependency_links.txt +0 -0
  54. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug_tools.egg-info/entry_points.txt +0 -0
  55. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug_tools.egg-info/requires.txt +0 -0
  56. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/amd_debug_tools.egg-info/top_level.txt +0 -0
  57. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/launcher.py +0 -0
  58. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_acpi.py +0 -0
  59. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_batteries.py +0 -0
  60. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_bios.py +0 -0
  61. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_common.py +0 -0
  62. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_database.py +0 -0
  63. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_display.py +0 -0
  64. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_failures.py +0 -0
  65. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_installer.py +0 -0
  66. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_kernel.py +0 -0
  67. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_launcher.py +0 -0
  68. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_power_rails.py +0 -0
  69. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_pstate.py +0 -0
  70. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_s2idle.py +0 -0
  71. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_sleep_report.py +0 -0
  72. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_ttm.py +0 -0
  73. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_validator.py +0 -0
  74. {amd_debug_tools-0.2.20 → amd_debug_tools-0.2.21}/src/test_wake.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amd-debug-tools
3
- Version: 0.2.20
3
+ Version: 0.2.21
4
4
  Summary: debug tools for AMD systems
5
5
  Author-email: Mario Limonciello <superm1@kernel.org>
6
6
  License-Expression: MIT
@@ -942,6 +942,14 @@ class PrerequisiteValidator(AmdTool):
942
942
 
943
943
  def check_aspm(self):
944
944
  """Check if ASPM has been overridden"""
945
+ # pcie_aspm=off disables ASPM entirely but leaves the reported
946
+ # policy at [default], so the sysfs check below can't catch it
947
+ if "pcie_aspm=off" in self.cmdline.split():
948
+ self.db.record_prereq(
949
+ "ASPM disabled on kernel command line (pcie_aspm=off)", "❌"
950
+ )
951
+ self.failures += [ASpmWrong()]
952
+ return False
945
953
  p = os.path.join("/", "sys", "module", "pcie_aspm", "parameters", "policy")
946
954
  contents = read_file(p)
947
955
  policy = ""
@@ -1,19 +1,19 @@
1
1
  # SPDX-License-Identifier: MIT
2
2
  """TTM configuration tool"""
3
3
 
4
- import asyncio
5
- import os
6
4
  import argparse
7
5
  import glob
6
+ import os
8
7
  import subprocess
8
+
9
9
  from amd_debug.common import (
10
10
  AmdTool,
11
11
  bytes_to_gb,
12
12
  gb_to_pages,
13
13
  get_system_mem,
14
- relaunch_sudo,
15
14
  print_color,
16
15
  reboot,
16
+ relaunch_sudo,
17
17
  version,
18
18
  )
19
19
 
@@ -30,6 +30,7 @@ def maybe_reboot() -> bool:
30
30
  return reboot()
31
31
  return True
32
32
 
33
+
33
34
  def is_ttm_in_initramfs(initramfs_path: str) -> bool:
34
35
  """
35
36
  Check if the ttm module is included in the initramfs.
@@ -40,79 +41,107 @@ def is_ttm_in_initramfs(initramfs_path: str) -> bool:
40
41
  Returns:
41
42
  bool: True if "gpu/drm/ttm/ttm.ko" is found, False otherwise
42
43
  """
43
- try:
44
- # Run lsinitramfs and search for "ttm" in the output
45
- result = subprocess.run(
46
- ["lsinitramfs", initramfs_path],
47
- capture_output=True,
48
- text=True,
49
- check=True
50
- )
44
+ # Supported initramfs inspection tools
45
+ inspector_tools = [
46
+ (["lsinitramfs", initramfs_path], "initramfs-tools"),
47
+ (["lsinitcpio", initramfs_path], "mkinitcpio"),
48
+ (["lsinitrd", initramfs_path], "dracut"),
49
+ ]
51
50
 
52
- # Check if "gpu/drm/ttm/ttm.ko" appears in the output
53
- return "gpu/drm/ttm/ttm.ko" in result.stdout.lower()
51
+ # Check if "gpu/drm/ttm/ttm.ko" appears in the output
52
+ for cmd, _package in inspector_tools:
53
+ tool = cmd[0]
54
+ try:
55
+ result = subprocess.run(
56
+ cmd,
57
+ capture_output=True,
58
+ text=True,
59
+ check=True,
60
+ )
61
+ return "gpu/drm/ttm/ttm.ko" in result.stdout.lower()
62
+ except FileNotFoundError:
63
+ continue
64
+ except subprocess.CalledProcessError as e:
65
+ print_color(f"Error running {tool}: {e}", "❌")
66
+ return False
67
+
68
+ print_color(
69
+ "Error: no supported initramfs inspection tool found "
70
+ "(tried: lsinitramfs, lsinitcpio, lsinitrd). "
71
+ "Install initramfs-tools, mkinitcpio, or dracut.",
72
+ "❌",
73
+ )
74
+ return False
54
75
 
55
- except subprocess.CalledProcessError as e:
56
- print_color(f"Error running lsinitramfs: {e}", "❌")
57
- return False
58
- except FileNotFoundError:
59
- print_color("Error: 'lsinitramfs' command not found. Is initramfs-tools installed?", "❌")
60
- return False
61
76
 
62
77
  def check_initramfs_images() -> bool:
63
- """Check if initramfs images exist in /boot/"""
78
+ """Check if any initramfs image contains the TTM module.
79
+
80
+ Returns:
81
+ True if TTM is included in at least one initramfs image (regeneration needed).
82
+ False if no initramfs images are found or TTM is not in any of them.
83
+ """
64
84
  print_color("Checking if the initramfs image needs to be regenerated", "🐧")
65
85
  if not os.path.exists("/boot"):
66
86
  print_color("Warning: /boot not found. Is it mounted?", "🚦")
67
87
  return False
68
88
 
69
- # Check for common initramfs patterns
89
+ # Collect initramfs images across all patterns, deduplicated by realpath
70
90
  patterns = [
71
- '/boot/initrd.img-*', # Debian/Ubuntu
72
- '/boot/initramfs-*.img', # Fedora/RHEL
73
- '/boot/initramfs-*' # Arch
91
+ "/boot/initrd.img-*", # Debian/Ubuntu
92
+ "/boot/initramfs-*.img", # Fedora/RHEL
93
+ "/boot/initramfs-*", # Arch (broadest, catches remaining)
74
94
  ]
75
-
95
+ seen = set()
96
+ all_images = []
76
97
  for pattern in patterns:
77
- initramfs_files = glob.glob(pattern)
78
- if initramfs_files:
79
- print_color(f"Found initramfs images: {initramfs_files}", "🐧")
80
-
81
- latest_initramfs = max(initramfs_files)
82
- if is_ttm_in_initramfs(latest_initramfs):
83
- print_color(f"TTM module is included in initramfs: {latest_initramfs}", "✅")
84
- print_color("The initramfs image needs to be regenerated", "🐧")
85
- return True
86
- else:
87
- print_color(f"TTM module is not included in initramfs", "○")
88
- print_color(f"The initramfs image does not need to be regenerated", "○")
98
+ for img in sorted(glob.glob(pattern)):
99
+ real = os.path.realpath(img)
100
+ if real not in seen:
101
+ seen.add(real)
102
+ all_images.append(img)
103
+
104
+ if not all_images:
105
+ print_color("No initramfs images found in /boot", "○")
106
+ return False
107
+
108
+ print_color(f"Found initramfs images: {all_images}", "🐧")
109
+
110
+ for img in all_images:
111
+ if is_ttm_in_initramfs(img):
112
+ print_color(f"TTM module is included in initramfs: {img}", "✅")
113
+ print_color("The initramfs image needs to be regenerated", "🐧")
114
+ return True
115
+
116
+ print_color("TTM module is not included in any initramfs image", "○")
117
+ print_color("TTM loads from rootfs; initramfs regeneration not required", "○")
89
118
  return False
90
119
 
120
+
91
121
  def regenerate_initramfs():
92
122
  """Regenerate initramfs image"""
93
123
  if not check_initramfs_images():
94
- print_color("No initramfs images found, skipping regeneration", "○")
124
+ print_color("Skipping initramfs regeneration", "○")
95
125
  return
96
126
 
97
- # Supported initramfs tools
127
+ # Supported initramfs tools: (command, display_name)
98
128
  initramfs_tools = [
99
- ["update-initramfs", "-u"],
100
- ["dracut", "--force"],
101
- ["mkinitcpio", "-P"]
129
+ (["update-initramfs", "-u"], "update-initramfs"),
130
+ (["dracut", "--force"], "dracut"),
131
+ (["mkinitcpio", "-P"], "mkinitcpio"),
102
132
  ]
103
133
 
104
- for cmd in initramfs_tools:
105
- tool = cmd[0]
106
- if os.path.exists(f"/usr/sbin/{cmd[0]}") or os.path.exists(f"/usr/bin/{cmd[0]}"):
107
- print_color(f"Updating initramfs using {tool}", "🐧")
134
+ for cmd, name in initramfs_tools:
135
+ if os.path.exists(f"/usr/sbin/{cmd[0]}") or os.path.exists(
136
+ f"/usr/bin/{cmd[0]}"
137
+ ):
138
+ print_color(f"Updating initramfs using {name}", "🐧")
108
139
  try:
109
140
  subprocess.run(cmd, check=True)
110
141
  print_color("Initramfs updated successfully", "✅")
111
142
  return
112
- except subprocess.CalledProcessError as e:
113
- print_color(f"Failed to update initramfs: {e}", "❌")
114
- continue
115
- except FileNotFoundError:
143
+ except (subprocess.CalledProcessError, FileNotFoundError) as e:
144
+ print_color(f"Failed to update initramfs using {name}: {e}", "❌")
116
145
  continue
117
146
 
118
147
  print_color("No supported initramfs tool found", "❌")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amd-debug-tools
3
- Version: 0.2.20
3
+ Version: 0.2.21
4
4
  Summary: debug tools for AMD systems
5
5
  Author-email: Mario Limonciello <superm1@kernel.org>
6
6
  License-Expression: MIT
@@ -1,67 +1,67 @@
1
1
  {
2
2
  "files": [
3
+ ".github/workflows/ci.yml",
4
+ ".github/workflows/mirror.yml",
5
+ ".gitignore",
3
6
  ".pre-commit-config.yaml",
4
- "README.md",
5
- "amd_ttm.py",
7
+ ".vscode/settings.json",
8
+ "LICENSE",
6
9
  "Makefile",
10
+ "README.md",
7
11
  "amd_bios.py",
8
- "LICENSE",
9
- "pyproject.toml",
10
- ".gitignore",
11
- "amd_s2idle.py",
12
- "install_deps.py",
13
- "psr.py",
14
12
  "amd_pstate.py",
15
- ".vscode/settings.json",
16
- "docs/amd-ttm.md",
17
- "docs/in-tree.md",
18
- "docs/amd-pstate.md",
13
+ "amd_s2idle.py",
14
+ "amd_ttm.py",
19
15
  "docs/amd-bios.md",
16
+ "docs/amd-pstate.md",
20
17
  "docs/amd-s2idle.md",
21
- "src/test_wake.py",
22
- "src/test_validator.py",
23
- "src/test_pstate.py",
24
- "src/test_prerequisites.py",
25
- "src/test_launcher.py",
26
- "src/test_batteries.py",
27
- "src/test_sleep_report.py",
28
- "src/test_s2idle.py",
29
- "src/test_power_rails.py",
30
- "src/test_ttm.py",
31
- "src/test_kernel.py",
32
- "src/test_acpi.py",
33
- "src/test_installer.py",
34
- "src/test_database.py",
35
- "src/test_bios.py",
36
- "src/launcher.py",
37
- "src/test_failures.py",
38
- "src/test_common.py",
39
- "src/test_display.py",
40
- "src/amd_debug/wake.py",
41
- "src/amd_debug/ttm.py",
42
- "src/amd_debug/validator.py",
18
+ "docs/amd-ttm.md",
19
+ "docs/in-tree.md",
20
+ "install_deps.py",
21
+ "psr.py",
22
+ "pyproject.toml",
43
23
  "src/amd_debug/__init__.py",
44
- "src/amd_debug/pstate.py",
45
- "src/amd_debug/kernel.py",
46
- "src/amd_debug/failures.py",
47
- "src/amd_debug/power_rails.py",
48
- "src/amd_debug/sleep_report.py",
49
- "src/amd_debug/bios.py",
50
- "src/amd_debug/installer.py",
51
- "src/amd_debug/display.py",
52
- "src/amd_debug/s2idle.py",
53
- "src/amd_debug/prerequisites.py",
54
24
  "src/amd_debug/acpi.py",
25
+ "src/amd_debug/bash/amd-s2idle",
55
26
  "src/amd_debug/battery.py",
27
+ "src/amd_debug/bios.py",
28
+ "src/amd_debug/common.py",
56
29
  "src/amd_debug/database.py",
30
+ "src/amd_debug/display.py",
31
+ "src/amd_debug/failures.py",
32
+ "src/amd_debug/installer.py",
33
+ "src/amd_debug/kernel.py",
34
+ "src/amd_debug/power_rails.py",
35
+ "src/amd_debug/prerequisites.py",
36
+ "src/amd_debug/pstate.py",
57
37
  "src/amd_debug/s2idle-hook",
58
- "src/amd_debug/common.py",
59
- "src/amd_debug/bash/amd-s2idle",
60
- "src/amd_debug/templates/txt",
61
- "src/amd_debug/templates/md",
38
+ "src/amd_debug/s2idle.py",
39
+ "src/amd_debug/sleep_report.py",
62
40
  "src/amd_debug/templates/html",
41
+ "src/amd_debug/templates/md",
63
42
  "src/amd_debug/templates/stdout",
64
- ".github/workflows/ci.yml",
65
- ".github/workflows/mirror.yml"
43
+ "src/amd_debug/templates/txt",
44
+ "src/amd_debug/ttm.py",
45
+ "src/amd_debug/validator.py",
46
+ "src/amd_debug/wake.py",
47
+ "src/launcher.py",
48
+ "src/test_acpi.py",
49
+ "src/test_batteries.py",
50
+ "src/test_bios.py",
51
+ "src/test_common.py",
52
+ "src/test_database.py",
53
+ "src/test_display.py",
54
+ "src/test_failures.py",
55
+ "src/test_installer.py",
56
+ "src/test_kernel.py",
57
+ "src/test_launcher.py",
58
+ "src/test_power_rails.py",
59
+ "src/test_prerequisites.py",
60
+ "src/test_pstate.py",
61
+ "src/test_s2idle.py",
62
+ "src/test_sleep_report.py",
63
+ "src/test_ttm.py",
64
+ "src/test_validator.py",
65
+ "src/test_wake.py"
66
66
  ]
67
67
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "0.2.21",
3
+ "distance": 0,
4
+ "node": "gacc87499f28855bfe36071873d565300e692d160",
5
+ "dirty": false,
6
+ "branch": "HEAD",
7
+ "node_date": "2026-08-16"
8
+ }
@@ -1028,6 +1028,27 @@ class TestPrerequisiteValidator(unittest.TestCase):
1028
1028
  with self.assertRaises(FileNotFoundError):
1029
1029
  self.validator.check_aspm()
1030
1030
 
1031
+ def test_check_aspm_disabled_on_cmdline(self):
1032
+ """Test check_aspm when pcie_aspm=off is on the kernel command line"""
1033
+ self.validator.cmdline = "quiet pcie_aspm=off rw"
1034
+ result = self.validator.check_aspm()
1035
+ self.assertFalse(result)
1036
+ self.mock_db.record_prereq.assert_called_with(
1037
+ "ASPM disabled on kernel command line (pcie_aspm=off)", "❌"
1038
+ )
1039
+ self.assertTrue(any(isinstance(f, ASpmWrong) for f in self.validator.failures))
1040
+
1041
+ @patch("amd_debug.prerequisites.read_file")
1042
+ def test_check_aspm_cmdline_without_aspm_off(self, mock_read_file):
1043
+ """Test check_aspm still reads the policy when cmdline is clean"""
1044
+ self.validator.cmdline = "quiet splash rw"
1045
+ mock_read_file.return_value = "[default]"
1046
+ result = self.validator.check_aspm()
1047
+ self.assertTrue(result)
1048
+ self.mock_db.record_prereq.assert_called_with(
1049
+ "ASPM policy set to 'default'", "✅"
1050
+ )
1051
+
1031
1052
  @patch("amd_debug.prerequisites.os.path.exists")
1032
1053
  @patch("amd_debug.prerequisites.read_file")
1033
1054
  def test_check_i2c_hid_no_devices(self, mock_read_file, mock_path_exists):
@@ -1,8 +0,0 @@
1
- {
2
- "tag": "0.2.20",
3
- "distance": 0,
4
- "node": "g06e4e0a9a86ace73d23e06d646c6b8c139e84473",
5
- "dirty": false,
6
- "branch": "HEAD",
7
- "node_date": "2026-07-10"
8
- }