Patent ID: 11907089
Assignee: WUHAN LINGJIU MICROELECTRONICS CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 0:
1. A method of repairing access to a graphics processing unit (GPU) video memory based on active error detection, the method comprising:
allocating a video memory test space on which data read and write detection is performed, detecting, with a predetermined frequency, whether read and write of data in the video memory test space is normal, and triggering, with a predetermined frequency, the data read and write detection on the video memory test space, wherein the video memory test space is two times or four times a width of video memory data, wherein the detecting comprises:
randomly writing a group of data to the video memory test space, the group of data being written data, and
reading out the written data as read data and performing correctness verification on the read data, such that when the read data is consistent with the written data, correctness verification indicates that the read and write of data is normal, and when the read data is inconsistent with the written data, correctness verification indicates that the data read and write detection fails;

when the correctness verification indicates that the data read and write detection on the video memory test space fails, performing repair operations of access to the GPU video memory comprising:
transmitting a trigger instruction to control a GPU desktop driving module to suspend access operations to the GPU video memory and control a GPU kernel driving module to suspend access operations of all hardware modules to the GPU video memory,
re-calibrating timing of a video memory interface by resetting and re-initializing a video memory controller, and
restoring the access operations of all the hardware modules to the GPU video memory and restoring an access to the video memory interface to normal; and

performing, by the GPU desktop driving module, a desktop refresh operation after restoring the access to the video memory interface to normal, and restoring all access operations of the GPU desktop driving module to the GPU video memory, comprising operations:
setting a full screen update mark to ensure that an entire desktop picture is updated in next desktop updating,
restoring a graphic desktop drawing operation process to normal, and
restoring the data read and write detection on the video memory test space.