amd-debug-tools 0.2.10__tar.gz → 0.2.11__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.
- {amd_debug_tools-0.2.10/src/amd_debug_tools.egg-info → amd_debug_tools-0.2.11}/PKG-INFO +1 -1
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/failures.py +0 -9
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/installer.py +1 -1
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/prerequisites.py +2 -4
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11/src/amd_debug_tools.egg-info}/PKG-INFO +1 -1
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_installer.py +67 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_prerequisites.py +2 -2
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/.github/workflows/ci.yml +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/.github/workflows/mirror.yml +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/.gitignore +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/.pre-commit-config.yaml +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/.vscode/settings.json +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/LICENSE +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/Makefile +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/README.md +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/amd_bios.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/amd_pstate.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/amd_s2idle.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/amd_ttm.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/docs/amd-bios.md +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/docs/amd-pstate.md +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/docs/amd-s2idle.md +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/docs/amd-ttm.md +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/docs/in-tree.md +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/install_deps.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/psr.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/pyproject.toml +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/setup.cfg +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/__init__.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/acpi.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/bash/amd-s2idle +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/battery.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/bios.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/common.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/database.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/display.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/kernel.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/pstate.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/s2idle-hook +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/s2idle.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/sleep_report.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/templates/html +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/templates/md +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/templates/stdout +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/templates/txt +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/ttm.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/validator.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug/wake.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug_tools.egg-info/SOURCES.txt +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug_tools.egg-info/dependency_links.txt +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug_tools.egg-info/entry_points.txt +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug_tools.egg-info/requires.txt +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug_tools.egg-info/top_level.txt +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/launcher.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_acpi.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_batteries.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_bios.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_common.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_database.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_display.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_failures.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_kernel.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_launcher.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_pstate.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_s2idle.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_sleep_report.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_ttm.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_validator.py +0 -0
- {amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/test_wake.py +0 -0
|
@@ -576,15 +576,6 @@ class LimitedCores(S0i3Failure):
|
|
|
576
576
|
)
|
|
577
577
|
|
|
578
578
|
|
|
579
|
-
class CpuTopologyUnknown(S0i3Failure):
|
|
580
|
-
"""CPU topology unknown"""
|
|
581
|
-
|
|
582
|
-
def __init__(self):
|
|
583
|
-
super().__init__()
|
|
584
|
-
self.description = "CPU topology unknown"
|
|
585
|
-
self.explanation = "The CPU topology could not be determined. This may prevent the system from entering hardware sleep states correctly."
|
|
586
|
-
|
|
587
|
-
|
|
588
579
|
class RogAllyOldMcu(S0i3Failure):
|
|
589
580
|
"""MCU firwmare is too old"""
|
|
590
581
|
|
|
@@ -64,7 +64,7 @@ class DistroPackage:
|
|
|
64
64
|
for line in release.split("\n"):
|
|
65
65
|
if line.startswith("VARIANT_ID"):
|
|
66
66
|
variant = line.split("=")[-1]
|
|
67
|
-
if variant
|
|
67
|
+
if variant not in ("workstation", "kde"):
|
|
68
68
|
return False
|
|
69
69
|
installer = ["dnf", "install", "-y", self.rpm]
|
|
70
70
|
elif dist == "arch" or os.path.exists("/etc/arch-release"):
|
|
@@ -44,7 +44,6 @@ from amd_debug.failures import (
|
|
|
44
44
|
AmdHsmpBug,
|
|
45
45
|
AmdgpuPpFeatureMask,
|
|
46
46
|
ASpmWrong,
|
|
47
|
-
CpuTopologyUnknown,
|
|
48
47
|
DeepSleep,
|
|
49
48
|
DevSlpDiskIssue,
|
|
50
49
|
DevSlpHostIssue,
|
|
@@ -1124,10 +1123,9 @@ class PrerequisiteValidator(AmdTool):
|
|
|
1124
1123
|
if level_type == 0:
|
|
1125
1124
|
self.db.record_prereq(
|
|
1126
1125
|
"Unable to discover CPU topology, didn't find socket level",
|
|
1127
|
-
"
|
|
1126
|
+
"🚦",
|
|
1128
1127
|
)
|
|
1129
|
-
|
|
1130
|
-
return False
|
|
1128
|
+
return True
|
|
1131
1129
|
if level_type == 4:
|
|
1132
1130
|
break
|
|
1133
1131
|
_, cpu_count, _, _ = read_cpuid(0, 0x80000026, level)
|
|
@@ -125,6 +125,29 @@ class TestInstaller(unittest.TestCase):
|
|
|
125
125
|
)
|
|
126
126
|
self.assertTrue(ret)
|
|
127
127
|
|
|
128
|
+
@patch("builtins.print")
|
|
129
|
+
@patch("amd_debug.installer.get_distro", return_value="fedora")
|
|
130
|
+
@patch("builtins.open", new_callable=mock_open, read_data="VARIANT_ID=kde\n")
|
|
131
|
+
@patch("os.execvp", return_value=None)
|
|
132
|
+
@patch("subprocess.check_call", return_value=0)
|
|
133
|
+
@patch("subprocess.call", return_value=1)
|
|
134
|
+
def test_install_iasl_fedora_kde(
|
|
135
|
+
self,
|
|
136
|
+
_mock_call,
|
|
137
|
+
_mock_check_call,
|
|
138
|
+
_mock_variant,
|
|
139
|
+
_mock_distro,
|
|
140
|
+
_fake_sudo,
|
|
141
|
+
_mock_print,
|
|
142
|
+
):
|
|
143
|
+
"""Test install requirements function on Fedora KDE"""
|
|
144
|
+
self.installer.set_requirements("iasl")
|
|
145
|
+
ret = self.installer.install_dependencies()
|
|
146
|
+
_mock_check_call.assert_called_once_with(
|
|
147
|
+
["dnf", "install", "-y", "acpica-tools"]
|
|
148
|
+
)
|
|
149
|
+
self.assertTrue(ret)
|
|
150
|
+
|
|
128
151
|
@patch("builtins.print")
|
|
129
152
|
@patch("amd_debug.installer.get_distro", return_value="ubuntu")
|
|
130
153
|
@patch("os.execvp", return_value=None)
|
|
@@ -162,6 +185,27 @@ class TestInstaller(unittest.TestCase):
|
|
|
162
185
|
_mock_check_call.assert_called_once_with(["dnf", "install", "-y", "ethtool"])
|
|
163
186
|
self.assertTrue(ret)
|
|
164
187
|
|
|
188
|
+
@patch("builtins.print")
|
|
189
|
+
@patch("amd_debug.installer.get_distro", return_value="fedora")
|
|
190
|
+
@patch("builtins.open", new_callable=mock_open, read_data="VARIANT_ID=kde\n")
|
|
191
|
+
@patch("os.execvp", return_value=None)
|
|
192
|
+
@patch("subprocess.check_call", return_value=0)
|
|
193
|
+
@patch("subprocess.call", return_value=1)
|
|
194
|
+
def test_install_ethtool_fedora_kde(
|
|
195
|
+
self,
|
|
196
|
+
_mock_call,
|
|
197
|
+
_mock_check_call,
|
|
198
|
+
_mock_variant,
|
|
199
|
+
_mock_distro,
|
|
200
|
+
_fake_sudo,
|
|
201
|
+
_mock_print,
|
|
202
|
+
):
|
|
203
|
+
"""Test install requirements function on Fedora KDE"""
|
|
204
|
+
self.installer.set_requirements("ethtool")
|
|
205
|
+
ret = self.installer.install_dependencies()
|
|
206
|
+
_mock_check_call.assert_called_once_with(["dnf", "install", "-y", "ethtool"])
|
|
207
|
+
self.assertTrue(ret)
|
|
208
|
+
|
|
165
209
|
@patch("builtins.print")
|
|
166
210
|
@patch("amd_debug.installer.get_distro", return_value="arch")
|
|
167
211
|
@patch("os.execvp", return_value=None)
|
|
@@ -235,6 +279,29 @@ class TestInstaller(unittest.TestCase):
|
|
|
235
279
|
)
|
|
236
280
|
self.assertTrue(ret)
|
|
237
281
|
|
|
282
|
+
@patch("builtins.print")
|
|
283
|
+
@patch("amd_debug.installer.get_distro", return_value="fedora")
|
|
284
|
+
@patch("builtins.open", new_callable=mock_open, read_data="VARIANT_ID=kde\n")
|
|
285
|
+
@patch("os.execvp", return_value=None)
|
|
286
|
+
@patch("subprocess.check_call", return_value=0)
|
|
287
|
+
@patch("subprocess.call", return_value=1)
|
|
288
|
+
def test_install_edid_decode_fedora_kde(
|
|
289
|
+
self,
|
|
290
|
+
_mock_call,
|
|
291
|
+
_mock_check_call,
|
|
292
|
+
_mock_variant,
|
|
293
|
+
_mock_distro,
|
|
294
|
+
_fake_sudo,
|
|
295
|
+
_mock_print,
|
|
296
|
+
):
|
|
297
|
+
"""Test install requirements function for edid-decode on Fedora KDE"""
|
|
298
|
+
self.installer.set_requirements("edid-decode")
|
|
299
|
+
ret = self.installer.install_dependencies()
|
|
300
|
+
_mock_check_call.assert_called_once_with(
|
|
301
|
+
["dnf", "install", "-y", "libdisplay-info-tools"]
|
|
302
|
+
)
|
|
303
|
+
self.assertTrue(ret)
|
|
304
|
+
|
|
238
305
|
@patch("builtins.print")
|
|
239
306
|
@patch("amd_debug.installer.get_distro", return_value="arch")
|
|
240
307
|
@patch("os.execvp", return_value=None)
|
|
@@ -548,9 +548,9 @@ class TestPrerequisiteValidator(unittest.TestCase):
|
|
|
548
548
|
struct.pack("4I", 0, 16, 0, 0), # subleaf 4: cpu_count = 16
|
|
549
549
|
]
|
|
550
550
|
result = self.validator.check_cpu()
|
|
551
|
-
self.
|
|
551
|
+
self.assertTrue(result)
|
|
552
552
|
self.mock_db.record_prereq.assert_called_with(
|
|
553
|
-
"Unable to discover CPU topology, didn't find socket level", "
|
|
553
|
+
"Unable to discover CPU topology, didn't find socket level", "🚦"
|
|
554
554
|
)
|
|
555
555
|
|
|
556
556
|
@patch("builtins.open", new_callable=mock_open)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug_tools.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug_tools.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
{amd_debug_tools-0.2.10 → amd_debug_tools-0.2.11}/src/amd_debug_tools.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|