CN114168073B - Solid state disk debugging space access method and device - Google Patents
Solid state disk debugging space access method and device Download PDFInfo
- Publication number
- CN114168073B CN114168073B CN202111372765.4A CN202111372765A CN114168073B CN 114168073 B CN114168073 B CN 114168073B CN 202111372765 A CN202111372765 A CN 202111372765A CN 114168073 B CN114168073 B CN 114168073B
- Authority
- CN
- China
- Prior art keywords
- space
- debugging
- target
- solid state
- state disk
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 239000007787 solid Substances 0.000 title claims abstract description 113
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000001514 detection method Methods 0.000 claims abstract description 42
- 230000015654 memory Effects 0.000 claims description 38
- 238000013507 mapping Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 abstract description 5
- 101150090657 ADRB3 gene Proteins 0.000 description 6
- 101100004181 Schizophyllum commune (strain H4-8 / FGSC 9210) BAR3 gene Proteins 0.000 description 6
- 101100004179 Schizophyllum commune BAR2 gene Proteins 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000011161 development Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the application relates to a method and a device for accessing a solid state disk debugging space, wherein the method comprises the following steps: sending a debugging space access instruction to the solid state disk, wherein the access instruction carries a target debugging space address to be accessed; receiving a detection result fed back by the solid state disk for detecting the validity of the target debugging space address; if the detection result is that the target debugging space address is legal, acquiring all data stored in a target debugging space fed back by the solid state disk through a DMI interface, and storing all data into a preset local storage space; all data in the local storage space are accessed, so that the method processes a large amount of data through the DMI interface, does not depend on serial port hardware, and improves the data reading and writing rate.
Description
Technical Field
The embodiment of the application relates to the field of solid state disk development, in particular to a method and a device for accessing a solid state disk debugging space.
Background
Abnormal points are usually detected by means of serial port printing analysis log logs, dialog manager printing contexts and the like in the development process of the solid state disk, but the two means are only suitable for small data reading and writing or debugging and positioning abnormality under the condition of serial port connection, the reading and writing speed is low, serial port hardware is relied on, and large data magnitude data reading and writing cannot be dealt with. Therefore, how to implement reading and writing of a large amount of data and improve the reading and writing rate becomes a problem to be solved in the field of solid state disk development.
Disclosure of Invention
In view of the above, in order to solve the above technical problems or some technical problems, embodiments of the present application provide a method and apparatus for accessing a debug space of a solid state disk.
In a first aspect, an embodiment of the present application provides a method for accessing a debug space of a solid state disk, including:
sending a debugging space access instruction to the solid state disk, wherein the access instruction carries a target debugging space address to be accessed;
receiving a detection result fed back by the solid state disk for detecting the validity of the target debugging space address;
if the detection result is that the target debugging space address is legal, acquiring all data stored in a target debugging space fed back by the solid state disk through a DMI interface, and storing all data into a preset local storage space;
and accessing all data in the local storage space.
In one possible embodiment, the method further comprises:
a local storage space is pre-allocated, wherein the local storage space is used for storing debugging data;
mapping the address of the local storage space to the DMI interface.
In one possible embodiment, the method further comprises:
if the target debug space address exists in the debug space of the solid state disk, the detection result is that the target debug space address is legal;
if the target debug space address does not exist in the debug space of the solid state disk, the detection result is that the target debug space address is illegal.
In one possible embodiment, the method further comprises:
if the target debugging space address is legal, the target debugging space address is sent to a register corresponding to the DMI interface;
if the target debugging space address is illegal, inquiring whether the target debugging space address exists in the non-debugging space.
In one possible embodiment, the method further comprises:
if the target debugging space address exists in the non-debugging space, dividing the non-debugging space corresponding to the target debugging space address in the non-debugging space into a debugging space;
and sending the address of the non-debugging space divided into the debugging space to a register corresponding to the DMI interface.
In one possible embodiment, the method further comprises:
and receiving all data stored in a target debugging space fed back by the register through the DMI interface, and storing all the data into a local storage space.
In one possible embodiment, the method further comprises:
and if the local storage space does not meet the requirement of storing all the data, performing capacity expansion operation on the local storage space so that the local storage space is enough to store all the data.
In one possible embodiment, the method further comprises:
and debugging the solid state disk based on the whole data.
In a second aspect, an embodiment of the present application provides an access device for a debug space of a solid state disk, including:
the system comprises a sending module, a debugging module and a debugging module, wherein the sending module is used for sending a debugging space access instruction to the solid state disk, and the access instruction carries a target debugging space address to be accessed;
the receiving module is used for receiving a detection result fed back by the solid state disk and used for detecting the validity of the target debugging space address;
the acquisition storage module is used for acquiring all data stored in the target debugging space fed back by the solid state disk through the DMI interface and storing all the data into a preset local storage space if the detection result is that the target debugging space address is legal;
and the access module is used for accessing all the data in the local storage space.
In a third aspect, an embodiment of the present application provides a computer apparatus, including: the processor is used for executing the access program of the solid state disk debugging space stored in the memory so as to realize the access method of the solid state disk debugging space in the first aspect.
In a fourth aspect, an embodiment of the present application provides a storage medium, including: the storage medium stores one or more programs, and the one or more programs may be executed by one or more processors to implement the method for accessing a debug space of a solid state disk described in the first aspect.
According to the access scheme of the solid state disk debugging space, which is provided by the embodiment of the application, a debugging space access instruction is sent to the solid state disk, wherein the access instruction carries a target debugging space address to be accessed; receiving a detection result fed back by the solid state disk for detecting the validity of the target debugging space address; if the detection result is that the target debugging space address is legal, acquiring all data stored in a target debugging space fed back by the solid state disk through a DMI interface, and storing all data into a preset local storage space; compared with the prior art that the method is suitable for reading and writing small amount of data and depends on serial port hardware by means of analyzing log logs by means of serial port printing, printing context by a dialog manager and the like, the method and the device for accessing all data in the local storage space can solve the problems that abnormal points are only suitable for reading and writing small amount of data and depend on serial port hardware, and can process large amount of data through a DMI interface without depending on serial port hardware, so that data reading and writing speed is improved.
Drawings
FIG. 1 is an access interaction diagram of a solid state disk debug space provided by an embodiment of the present application;
FIG. 2 is a flow chart of a method for accessing debug space of a solid state disk according to an embodiment of the present application;
FIG. 3 is a flow chart of another method for accessing debug space of solid state disk according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an access device for a debug space of a solid state disk according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
For the purpose of facilitating an understanding of the embodiments of the present application, reference will now be made to the following description of specific embodiments, taken in conjunction with the accompanying drawings, which are not intended to limit the embodiments of the application.
Fig. 2 is a flow chart of a method for accessing a debug space of a solid state disk according to an embodiment of the present application, as shown in fig. 2, where the method specifically includes:
s21, sending a debugging space access instruction to the solid state disk.
The method is preferentially suitable for the development and debugging working scene of the solid state disk, and in the embodiment of the application, the host and the solid state disk are linked through the PCIE channel in combination with the access interaction diagram of the solid state disk debugging space shown in FIG. 1, and a large amount of data in the solid state disk is read and written through the PCIE channel.
And the host sends a debugging space access instruction to the solid state disk, wherein the access instruction carries a target debugging space address to be accessed.
S22, receiving a detection result fed back by the solid state disk and used for detecting the validity of the target debugging space address.
After receiving a debug space access instruction sent by a host, the solid state disk detects a target debug space address carried in the access instruction, detects the validity of the target debug space address, feeds back a detection result to the host, and receives a detection result of the validity of the target debug space address fed back by the solid state disk.
S23, if the detection result is that the target debugging space address is legal, acquiring all data stored in the target debugging space fed back by the solid state disk through a DMI interface, and storing all data into a preset local storage space.
If the detection result is that the target debug space address is legal, the solid state disk sends the target debug space address to the DMI module, the DMI module obtains all data in the target debug space and sends the all data to the host through the DMI interface, and the host stores the data into a preset local storage space after receiving the all data, wherein the preset local storage space is a part of the storage space which is divided in advance, such as BAR2 and BAR3 spaces shown in fig. 1.
S24, accessing all data in the local storage space.
After all data are stored, the host can access all data stored in the BAR2 and BAR3 space, and then the solid state disk can be debugged according to all data.
According to the access method for the debug space of the solid state disk, provided by the embodiment of the application, the debug space access instruction is sent to the solid state disk, wherein the access instruction carries the target debug space address to be accessed; receiving a detection result fed back by the solid state disk for detecting the validity of the target debugging space address; if the detection result is that the target debugging space address is legal, acquiring all data stored in a target debugging space fed back by the solid state disk through a DMI interface, and storing all data into a preset local storage space; compared with the prior art that the method is only suitable for reading and writing small amount of data and depends on serial port hardware by means of analyzing log logs by relying on serial port printing, printing context by a dialog manager and the like, the method can process large amount of data by means of a DMI interface, does not depend on serial port hardware and improves data reading and writing speed.
Fig. 3 is a flow chart of another method for accessing a debug space of a solid state disk according to an embodiment of the present application, as shown in fig. 3, where the method specifically includes:
s31, pre-distributing a local storage space, wherein the local storage space is used for storing debugging data.
In the embodiment of the present application, a local storage space, such as the BAR2 and BAR3 spaces in fig. 1, is allocated in advance to a host, and a threshold (e.g., 4M) may be set for the size of the BAR2 and BAR3 spaces, where the local storage space is used to store debug data of the solid state disk.
S32, mapping the address of the local storage space to the DMI interface.
Further, after the local storage space is allocated, the address of the local storage space is mapped to the DMI interface, the BAR2 space and the BAR3 space are linked with the DMI, and when the host accesses the BAR2 space and the BAR3 space, the host is equivalent to accessing the memory space of the solid state disk, so that the reading and writing of the memory space data of the solid state disk are realized.
S33, if the target debug space address exists in the debug space of the solid state disk, the detection result is that the target debug space address is legal.
The host sends a debug space access instruction to the solid state disk, wherein the access instruction carries a target debug space address to be accessed, and the instruction can be sent in a PBL command.
After receiving a debug space access instruction sent by a host, the solid state disk detects a target debug space address carried in the access instruction, detects the validity of the target debug space address, and if the target debug space address exists in the debug space of the solid state disk, the detection result is that the target debug space address is legal.
And S34, if the target debugging space address is legal, the target debugging space address is sent to a register corresponding to the DMI interface.
If the target debugging space address is legal, the PBL command feeds back a result that the target debugging space address is legal to the host, and the solid state disk sends the target debugging space address to a register corresponding to the DMI interface.
And S35, if the target debug space address does not exist in the debug space of the solid state disk, the detection result is that the target debug space address is illegal.
S36, if the target debugging space address is illegal, inquiring whether the target debugging space address exists in the non-debugging space.
If the target debug space address does not exist in the debug space of the solid state disk, the detection result is that the target debug space address is illegal.
Further, the PBL illegal command is used for interfacing the non-debugging space, and whether a target debugging space address carried in the debugging space access instruction exists in the non-debugging space is inquired.
S37, if the target debugging space address exists in the non-debugging space, dividing the non-debugging space corresponding to the target debugging space address in the non-debugging space into a debugging space.
S38, sending the addresses of the non-debugging spaces divided into the debugging spaces to the register corresponding to the DMI interface.
If the target debug space address carried in the debug space access instruction is found in the non-debug space memory, dividing the non-debug space corresponding to the target debug space address in the non-debug space into the debug space, and sending the address of the non-debug space into a register corresponding to the DMI interface.
Optionally, if the target debug space address carried in the debug space access instruction is not queried in the non-debug space, the illegal alarm information of the debug space access instruction can be directly fed back.
S39, receiving all data stored in a target debugging space fed back by the register through the DMI interface, and storing all the data into a local storage space.
The register accesses the space of the solid state disk through the received target debugging space address, acquires all data from the target debugging space, sends all data to the host through the DMI interface, and stores all data into the local storage space after the host receives all data.
And S310, if the local storage space does not meet the requirement of storing all the data, performing capacity expansion operation on the local storage space so that the local storage space is enough to store all the data.
If the size of the local storage space cannot meet the requirement of storing all data, the local storage space can be subjected to capacity expansion operation, namely the local storage space is divided again, so that the divided local storage space is enough to store all data.
S311, debugging the solid state disk based on all the data.
After all data are stored, the host can access all data in the local storage space, and the debugging work of the solid state disk is realized according to all data.
According to the access method for the debug space of the solid state disk, provided by the embodiment of the application, the debug space access instruction is sent to the solid state disk, wherein the access instruction carries the target debug space address to be accessed; receiving a detection result fed back by the solid state disk for detecting the validity of the target debugging space address; if the detection result is that the target debugging space address is legal, acquiring all data stored in a target debugging space fed back by the solid state disk through a DMI interface, and storing all data into a preset local storage space; compared with the prior art that the method is only suitable for reading and writing small amount of data and depends on serial port hardware by means of analyzing log logs by relying on serial port printing, printing context by a dialog manager and the like, the method can process large amount of data by means of a DMI interface, does not depend on serial port hardware and improves data reading and writing speed.
Fig. 4 is a schematic structural diagram of an access device for debug space of a solid state disk according to an embodiment of the present application, which specifically includes:
a sending module 401, configured to send a debug space access instruction to a solid state disk, where the access instruction carries a target debug space address to be accessed;
the receiving module 402 is configured to receive a detection result fed back by the solid state disk, where the detection result is used to detect validity of the target debug space address;
the acquiring and storing module 403 is configured to acquire all data stored in the target debug space fed back by the solid state disk through the DMI interface if the detection result is that the target debug space address is legal, and store all data in a preset local storage space;
and the access module 404 is used for accessing all the data in the local storage space.
In a possible implementation manner, the sending module 401 is specifically configured to send the target debug space address to a register corresponding to the DMI interface if the target debug space address is legal; if the target debugging space address is illegal, inquiring whether the target debugging space address exists in the non-debugging space.
In a possible implementation manner, the sending module 401 is further configured to divide, if the target debug space address exists in the non-debug space, a non-debug space corresponding to the target debug space address in the non-debug space into a debug space; and sending the address of the non-debugging space divided into the debugging space to a register corresponding to the DMI interface.
In a possible implementation manner, the sending module 401 is further configured to pre-allocate a local storage space, where the local storage space is used to store debug data; mapping the address of the local storage space to the DMI interface.
In a possible implementation manner, the receiving module 402 is specifically configured to, if the target debug space address exists in the debug space of the solid state disk, determine that the target debug space address is legal; if the target debug space address does not exist in the debug space of the solid state disk, the detection result is that the target debug space address is illegal.
In a possible implementation manner, the acquiring storage module 403 is specifically configured to receive all data stored in the target debug space fed back by the register through the DMI interface, and store the all data in the local storage space.
In a possible implementation manner, the obtaining storage module 403 is further configured to perform a capacity expansion operation on the local storage space if the local storage space is not satisfied with storing the entire data, so that the local storage space is sufficient to store the entire data.
In one possible implementation manner, the access module 404 is specifically configured to debug the solid state disk based on the entire data.
The access device for the solid state disk debug space provided in this embodiment may be the access device for the solid state disk debug space shown in fig. 4, and may perform all steps of the access method for the solid state disk debug space shown in fig. 2-3, so as to achieve the technical effects of the access method for the solid state disk debug space shown in fig. 2-3, and the description is specifically referred to in fig. 2-3, and is omitted herein for brevity.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application, and the computer device 500 shown in fig. 5 includes: at least one processor 501, memory 502, at least one network interface 504, and other user interfaces 503. The various components in computer device 500 are coupled together by bus system 505. It is understood that bus system 505 is used to enable connected communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various buses are labeled as bus system 505 in fig. 5.
The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, a trackball, a touch pad, or a touch screen, etc.).
It will be appreciated that the memory 502 in embodiments of the application can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (Double Data Rate SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct memory bus RAM (DRRAM). The memory 502 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 5022 includes various application programs such as a Media Player (Media Player), a Browser (Browser), and the like for realizing various application services. A program for implementing the method according to the embodiment of the present application may be included in the application 5022.
In the embodiment of the present application, the processor 501 is configured to execute the method steps provided by the method embodiments by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022, for example, including:
sending a debugging space access instruction to the solid state disk, wherein the access instruction carries a target debugging space address to be accessed; receiving a detection result fed back by the solid state disk for detecting the validity of the target debugging space address; if the detection result is that the target debugging space address is legal, acquiring all data stored in a target debugging space fed back by the solid state disk through a DMI interface, and storing all data into a preset local storage space; and accessing all data in the local storage space.
In one possible implementation, a local storage space is pre-allocated, wherein the local storage space is used for storing debug data; mapping the address of the local storage space to the DMI interface.
In one possible implementation manner, if the target debug space address exists in the debug space of the solid state disk, the detection result is that the target debug space address is legal; if the target debug space address does not exist in the debug space of the solid state disk, the detection result is that the target debug space address is illegal.
In one possible implementation manner, if the target debug space address is legal, the target debug space address is sent to a register corresponding to the DMI interface; if the target debugging space address is illegal, inquiring whether the target debugging space address exists in the non-debugging space.
In one possible implementation manner, if the target debug space address exists in the non-debug space, dividing the non-debug space corresponding to the target debug space address in the non-debug space into debug spaces; and sending the address of the non-debugging space divided into the debugging space to a register corresponding to the DMI interface.
In one possible implementation manner, all data stored in a target debug space fed back by the register through the DMI interface is received, and the all data is stored in a local storage space.
In one possible implementation, if the local storage space is not satisfied to store the whole data, performing a capacity expansion operation on the local storage space so that the local storage space is sufficient to store the whole data.
In one possible implementation manner, the solid state disk is debugged based on the whole data.
The method disclosed in the above embodiment of the present application may be applied to the processor 501 or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware or instructions in software in the processor 501. The processor 501 may be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software elements in a decoding processor. The software elements may be located in a random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory 502, and the processor 501 reads information in the memory 502 and, in combination with its hardware, performs the steps of the method described above.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the processing units may be implemented within one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (dspev, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The computer device provided in this embodiment may be a computer device as shown in fig. 5, and may perform all the steps of the method for accessing the debug space of the solid state disk as shown in fig. 2-3, so as to achieve the technical effects of the method for accessing the debug space of the solid state disk as shown in fig. 2-3, and the description is specifically referred to in fig. 2-3, and is omitted herein for brevity.
The embodiment of the application also provides a storage medium (computer readable storage medium). The storage medium here stores one or more programs. Wherein the storage medium may comprise volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid state disk; the memory may also comprise a combination of the above types of memories.
When one or more programs in the storage medium can be executed by one or more processors, the above access method for the solid state disk debug space executed on the computer device side is realized.
The processor is used for executing an access program of the solid state disk debugging space stored in the memory so as to realize the following steps of the access method of the solid state disk debugging space executed on the side of the computer equipment:
sending a debugging space access instruction to the solid state disk, wherein the access instruction carries a target debugging space address to be accessed; receiving a detection result fed back by the solid state disk for detecting the validity of the target debugging space address; if the detection result is that the target debugging space address is legal, acquiring all data stored in a target debugging space fed back by the solid state disk through a DMI interface, and storing all data into a preset local storage space; and accessing all data in the local storage space.
In one possible implementation, a local storage space is pre-allocated, wherein the local storage space is used for storing debug data; mapping the address of the local storage space to the DMI interface.
In one possible implementation manner, if the target debug space address exists in the debug space of the solid state disk, the detection result is that the target debug space address is legal; if the target debug space address does not exist in the debug space of the solid state disk, the detection result is that the target debug space address is illegal.
In one possible implementation manner, if the target debug space address is legal, the target debug space address is sent to a register corresponding to the DMI interface; if the target debugging space address is illegal, inquiring whether the target debugging space address exists in the non-debugging space.
In one possible implementation manner, if the target debug space address exists in the non-debug space, dividing the non-debug space corresponding to the target debug space address in the non-debug space into debug spaces; and sending the address of the non-debugging space divided into the debugging space to a register corresponding to the DMI interface.
In one possible implementation manner, all data stored in a target debug space fed back by the register through the DMI interface is received, and the all data is stored in a local storage space.
In one possible implementation, if the local storage space is not satisfied to store the whole data, performing a capacity expansion operation on the local storage space so that the local storage space is sufficient to store the whole data.
In one possible implementation manner, the solid state disk is debugged based on the whole data.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of function in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the application, and is not meant to limit the scope of the application, but to limit the application to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the application are intended to be included within the scope of the application.
Claims (9)
1. The access method for the solid state disk debugging space is characterized by comprising the following steps of:
a local storage space is pre-allocated, wherein the local storage space is used for storing debugging data;
mapping the address of the local storage space to a DMI interface;
sending a debugging space access instruction to the solid state disk, wherein the access instruction carries a target debugging space address to be accessed;
receiving a detection result fed back by the solid state disk for detecting the validity of the target debugging space address;
if the target debugging space address is legal, the target debugging space address is sent to a register corresponding to the DMI interface;
if the target debugging space address is illegal, inquiring whether the target debugging space address exists in the non-debugging space;
if the detection result is that the target debugging space address is legal, acquiring all data stored in a target debugging space fed back by the solid state disk through a DMI interface, and storing all data into a preset local storage space;
and accessing all data in the local storage space.
2. The method of claim 1, wherein the receiving the detection result of the validity of the target debug space address by the solid state disk feedback includes:
if the target debug space address exists in the debug space of the solid state disk, the detection result is that the target debug space address is legal;
if the target debug space address does not exist in the debug space of the solid state disk, the detection result is that the target debug space address is illegal.
3. The method according to claim 2, wherein the method further comprises:
if the target debugging space address exists in the non-debugging space, dividing the non-debugging space corresponding to the target debugging space address in the non-debugging space into a debugging space;
and sending the address of the non-debugging space divided into the debugging space to a register corresponding to the DMI interface.
4. The method of claim 1, wherein the obtaining all data stored in the target debug space fed back by the solid state disk through the DMI interface, and storing all data in a preset local storage space, includes:
and receiving all data stored in a target debugging space fed back by the register through the DMI interface, and storing all the data into a local storage space.
5. The method according to claim 1, wherein the method further comprises:
and if the local storage space does not meet the requirement of storing all the data, performing capacity expansion operation on the local storage space so that the local storage space is enough to store all the data.
6. The method of claim 1, wherein after said accessing all data in said local storage space, the method further comprises:
and debugging the solid state disk based on the whole data.
7. An access device for debugging space of a solid state disk is characterized by comprising:
the sending module is used for pre-distributing a local storage space, wherein the local storage space is used for storing debugging data; mapping the address of the local storage space to a DMI interface; sending a debugging space access instruction to the solid state disk, wherein the access instruction carries a target debugging space address to be accessed;
the receiving module is used for receiving a detection result fed back by the solid state disk and used for detecting the validity of the target debugging space address; if the target debugging space address is legal, the target debugging space address is sent to a register corresponding to the DMI interface; if the target debugging space address is illegal, inquiring whether the target debugging space address exists in the non-debugging space;
the acquisition storage module is used for acquiring all data stored in the target debugging space fed back by the solid state disk through the DMI interface and storing all the data into a preset local storage space if the detection result is that the target debugging space address is legal;
and the access module is used for accessing all the data in the local storage space.
8. A computer device, comprising: the system comprises a processor and a memory, wherein the processor is used for executing an access program of the solid state disk debugging space stored in the memory so as to realize the access method of the solid state disk debugging space in any one of claims 1 to 6.
9. A storage medium storing one or more programs executable by one or more processors to implement the method of accessing a debug space of a solid state disk as claimed in any one of claims 1 to 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111372765.4A CN114168073B (en) | 2021-11-18 | 2021-11-18 | Solid state disk debugging space access method and device |
PCT/CN2022/122336 WO2023087941A1 (en) | 2021-11-18 | 2022-09-28 | Method and apparatus for accessing debugging space of solid state disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111372765.4A CN114168073B (en) | 2021-11-18 | 2021-11-18 | Solid state disk debugging space access method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114168073A CN114168073A (en) | 2022-03-11 |
CN114168073B true CN114168073B (en) | 2023-08-29 |
Family
ID=80479707
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111372765.4A Active CN114168073B (en) | 2021-11-18 | 2021-11-18 | Solid state disk debugging space access method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114168073B (en) |
WO (1) | WO2023087941A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114168073B (en) * | 2021-11-18 | 2023-08-29 | 苏州浪潮智能科技有限公司 | Solid state disk debugging space access method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109032897A (en) * | 2018-08-01 | 2018-12-18 | 浪潮电子信息产业股份有限公司 | Data scheduling method, host and solid state disk |
CN109697037A (en) * | 2019-01-22 | 2019-04-30 | 深圳忆联信息系统有限公司 | Save method, apparatus, computer equipment and the storage medium of local DRAM |
CN110781107A (en) * | 2019-09-16 | 2020-02-11 | 北京领芯迅飞科技有限公司 | Low-delay fusion IO control method and device based on DRAM interface |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8904085B2 (en) * | 2010-01-14 | 2014-12-02 | Lenovo (Singapore) Pte. Ltd. | Solid-state memory management |
US9158661B2 (en) * | 2012-02-15 | 2015-10-13 | Apple Inc. | Enhanced debugging for embedded devices |
CN110299180B (en) * | 2019-07-08 | 2021-06-08 | 深圳忆联信息系统有限公司 | Debugging information output method and device based on solid state disk and computer equipment |
CN111752779A (en) * | 2020-06-12 | 2020-10-09 | 苏州浪潮智能科技有限公司 | Hard disk performance test optimization method and device |
CN114168073B (en) * | 2021-11-18 | 2023-08-29 | 苏州浪潮智能科技有限公司 | Solid state disk debugging space access method and device |
-
2021
- 2021-11-18 CN CN202111372765.4A patent/CN114168073B/en active Active
-
2022
- 2022-09-28 WO PCT/CN2022/122336 patent/WO2023087941A1/en unknown
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109032897A (en) * | 2018-08-01 | 2018-12-18 | 浪潮电子信息产业股份有限公司 | Data scheduling method, host and solid state disk |
CN109697037A (en) * | 2019-01-22 | 2019-04-30 | 深圳忆联信息系统有限公司 | Save method, apparatus, computer equipment and the storage medium of local DRAM |
CN110781107A (en) * | 2019-09-16 | 2020-02-11 | 北京领芯迅飞科技有限公司 | Low-delay fusion IO control method and device based on DRAM interface |
Also Published As
Publication number | Publication date |
---|---|
CN114168073A (en) | 2022-03-11 |
WO2023087941A1 (en) | 2023-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10089212B2 (en) | Memory system, information processing system, and host device outputting debugging information through a host interface | |
US8769504B2 (en) | Method and apparatus for dynamically instrumenting a program | |
CN110727597B (en) | Method for checking invalid code completion case based on log | |
CN110275800B (en) | SSD data physical backup method and device, computer equipment and storage medium | |
CN114168073B (en) | Solid state disk debugging space access method and device | |
CN110928720A (en) | Core dump file generation method and device based on Linux system | |
US20170103797A1 (en) | Calibration method and device for dynamic random access memory | |
US8910004B2 (en) | Information processing apparatus, and method of controlling information processing apparatus | |
US7797134B2 (en) | System and method for testing a memory with an expansion card using DMA | |
US20080195821A1 (en) | Method and system of fast clearing of memory using a built-in self-test circuit | |
CN115657963B (en) | Sequential writing method and device based on solid state disk, electronic equipment and storage medium | |
CN116450398A (en) | Exception backtracking method, device, equipment and medium | |
US7350109B2 (en) | System and method for testing a memory using DMA | |
CN113553211B (en) | Core dump file generation method, computing device and storage medium | |
US20130124925A1 (en) | Method and apparatus for checking a main memory of a processor | |
CN105653478A (en) | Serial flash memory controller, serial flash memory control method and serial flash memory control system | |
US8176250B2 (en) | System and method for testing a memory | |
US20050086454A1 (en) | System and methods for providing a debug function built-in type microcomputer | |
CN104166583B (en) | A kind of date storage method and device based on mobile device virtualized environment | |
CN113010407B (en) | System information acquisition method, device and system | |
CN109491870A (en) | A kind of detection method and device of the access state of sensor | |
CN116881086B (en) | Method and device for monitoring memory during application running, computing equipment and storage medium | |
JP2019153118A (en) | Evaluation analysis target memory device and memory evaluation analysis system | |
CN116775515A (en) | Memory management method, memory management device, electronic equipment and readable storage medium | |
CN114780275A (en) | Memory isolation multiplexing method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |