Skip to content

SEVG fault from PState #1

@markhagemann

Description

@markhagemann

I imported faulthandler and got some info:

Jul 20 22:41:46 drache nvml-undervolt[86317]: Warning: Persistence mode is already enabled - make sure no oth>
Jul 20 22:43:35 drache nvml-undervolt[86317]: Fatal Python error: Segmentation fault
Jul 20 22:43:35 drache nvml-undervolt[86317]: Current thread 0x000076ad66104740 (most recent call first):
Jul 20 22:43:35 drache nvml-undervolt[86317]:   File "/home/drache/.pyenv/versions/3.12.4/lib/python3.12/site>
Jul 20 22:43:35 drache nvml-undervolt[86317]:   File "/usr/local/sbin/nvml-undervolt", line 154 in set_pstate>
Jul 20 22:43:35 drache nvml-undervolt[86317]:   File "/usr/local/sbin/nvml-undervolt", line 377 in main
Jul 20 22:43:35 drache nvml-undervolt[86317]:   File "/usr/local/sbin/nvml-undervolt", line 441 in <module>
Jul 20 22:43:35 drache systemd[1]: nvml-undervolt.service: Main process exited, code=dumped, status=11/SEGV
Jul 20 22:43:35 drache systemd[1]: nvml-undervolt.service: Failed with result 'core-dump'.

Problem seems to be with setting pstate clocks

       def set_pstate_clocks(handle, clock_type, clock_offset, target_pstates):
        for pstate in range(0, target_pstates + 1):
        struct = c_nvmlClockOffset_t()
        struct.version = nvmlClockOffset_v1
        struct.type = clock_type
        struct.pstate = pstate
        struct.clockOffsetMHz = clock_offset
        return nvmlDeviceSetClockOffsets(handle, struct)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions