CN114168073A - Access method and device for solid state disk debugging space - Google Patents
Access method and device for solid state disk debugging space Download PDFInfo
- Publication number
- CN114168073A CN114168073A CN202111372765.4A CN202111372765A CN114168073A CN 114168073 A CN114168073 A CN 114168073A CN 202111372765 A CN202111372765 A CN 202111372765A CN 114168073 A CN114168073 A CN 114168073A
- Authority
- CN
- China
- Prior art keywords
- space
- debugging
- solid state
- state disk
- target
- 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.)
- Granted
Links
- 239000007787 solid Substances 0.000 title claims abstract description 114
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000001514 detection method Methods 0.000 claims abstract description 41
- 230000015654 memory Effects 0.000 claims description 32
- 238000013507 mapping Methods 0.000 claims description 6
- 238000012545 processing Methods 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
- 230000002159 abnormal effect Effects 0.000 description 5
- 238000011161 development Methods 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 210000001503 joint Anatomy 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
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 invention relates to an access method and a device for a solid state disk debugging space, wherein the method comprises the following steps: sending a debugging space access instruction to a 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 and used for detecting the legality of the target debugging space address; if the detection result is that the target debugging space address is legal, all data stored in the target debugging space fed back by the solid state disk through the DMI interface are obtained, and all the data are stored in a preset local storage space; and accessing all data in the local storage space, and processing a large amount of data through a DMI interface by the method without depending on serial port hardware, thereby improving the data read-write speed.
Description
Technical Field
The embodiment of the invention 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
The abnormal points are usually checked by means of serial port printing analysis log logs, a dialogue manager printing context and the like in the development process of the solid state disk, however, the two means are only suitable for small data reading and writing or testing positioning abnormality under the condition of serial port connection, the reading and writing speed is low, the method depends on serial port hardware, and the method cannot cope with data reading and writing with large data magnitude. Therefore, how to realize reading and writing of a large amount of data and improve the reading and writing speed becomes a problem to be solved urgently in the field of solid state disk development.
Disclosure of Invention
In view of this, to solve the technical problem or some technical problems, embodiments of the present invention provide a method and an apparatus for accessing a solid state disk debug space.
In a first aspect, an embodiment of the present invention provides an access method for a solid state disk debug space, including:
sending a debugging space access instruction to a 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 and used for detecting the legality of the target debugging space address;
if the detection result is that the target debugging space address is legal, all data stored in the target debugging space fed back by the solid state disk through the DMI interface are obtained, and all the data are stored in a preset local storage space;
and accessing all data in the local storage space.
In one possible embodiment, the method further comprises:
pre-allocating a local storage space, wherein the local storage space is used for storing debugging data;
and mapping the address of the local storage space to the DMI interface.
In one possible embodiment, the method further comprises:
if the target debugging space address exists in the debugging space of the solid state disk, the detection result is that the target debugging space address is legal;
and if the target debugging space address does not exist in the debugging space of the solid state disk, the detection result is that the target debugging 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;
and if the target debugging space address is illegal, inquiring whether the target debugging space address exists in a 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 debugging 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 embodiment, the method further comprises:
and receiving all data stored in the 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, carrying out capacity expansion operation on the local storage space so as to enable the local storage space to be enough to store all the data.
In one possible embodiment, the method further comprises:
and debugging the solid state disk based on all the data.
In a second aspect, an embodiment of the present invention provides an access apparatus for a solid state disk debug space, including:
the device comprises a sending module, a debugging module and a storage module, wherein the sending module is used for sending a debugging space access instruction to a 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 legality of the target debugging space address;
the obtaining and storing module is used for obtaining all data stored in the target debugging space fed back by the solid state disk through the DMI interface if the detection result shows that the target debugging space address is legal, and storing all the data into a preset local storage space;
and the access module is used for accessing all data in the local storage space.
In a third aspect, an embodiment of the present invention provides a computer device, including: the processor is configured to execute an access program of the solid state disk debug space stored in the memory, so as to implement the method for accessing the solid state disk debug space in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a storage medium, including: the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the method for accessing the debug space of the solid state disk described in the first aspect.
According to the access scheme of the solid state disk debugging space provided by the embodiment of the invention, the debugging space access instruction is sent to the solid state disk, wherein the access instruction carries the target debugging space address to be accessed; receiving a detection result fed back by the solid state disk and used for detecting the legality of the target debugging space address; if the detection result is that the target debugging space address is legal, all data stored in the target debugging space fed back by the solid state disk through the DMI interface are obtained, and all the data are stored in a preset local storage space; compared with the prior art that the abnormal points are only suitable for small data reading and writing and depend on serial port hardware, the method for accessing all data in the local storage space relies on the serial port to print and analyze log logs, the dialogue manager to print contexts and the like, and the problem that the abnormal points are only suitable for small data reading and writing and depend on serial port hardware is solved.
Drawings
Fig. 1 is an access interaction diagram of a solid state disk debug space according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an access method for a solid state disk debug space according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another access method for a solid state disk debug space according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an access device for a solid state disk debug space according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For the convenience of understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
Fig. 2 is a schematic flowchart of an access method for a solid state disk debug space according to an embodiment of the present invention, and as shown in fig. 2, the method specifically includes:
and S21, sending a debugging space access instruction to the solid state disk.
The invention is preferentially suitable for the development and debugging working scene of the solid state disk, and in the embodiment of the invention, the PCIE channel is combined with the access interaction diagram of the debugging space of the solid state disk shown in figure 1 to link the host and the solid state disk, and a large amount of data in the solid state disk is read and written through the PCIE channel.
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.
And S22, receiving a detection result fed back by the solid state disk and used for detecting the legality of the target debugging space address.
The method comprises the steps that after a solid state disk receives a debugging space access instruction sent by a host, a target debugging space address carried in the access instruction is detected, the legality of the target debugging space address is detected, a detection result is fed back to the host, and the host receives the detection result fed back by the solid state disk and used for detecting the legality of the target debugging space address.
And 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 the DMI interface, and storing all the data in a preset local storage space.
If the detection result is that the target debugging space address is legal, the solid state disk sends the target debugging space address to the DMI module, the DMI module obtains all data in the target debugging space and sends the data to the host through the DMI interface, and the host stores the data into a preset local storage space after receiving all the data, wherein the preset local storage space is a part of pre-divided storage space, such as a BAR2 space and a BAR3 space shown in FIG. 1.
And 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 spaces, and further the solid state disk can be debugged according to all data.
The access method of the solid state disk debugging space provided by the embodiment of the invention comprises the steps of 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 and used for detecting the legality of the target debugging space address; if the detection result is that the target debugging space address is legal, all data stored in the target debugging space fed back by the solid state disk through the DMI interface are obtained, and all the data are stored in a preset local storage space; compared with the prior art that the abnormal points are only suitable for reading and writing a small amount of data and depend on serial port hardware, the method has the advantages that a large amount of data can be processed through the DMI interface, the serial port hardware is not depended on, and the data reading and writing speed is improved.
Fig. 3 is a schematic flowchart of a flow of another method for accessing a debug space of a solid state disk according to an embodiment of the present invention, as shown in fig. 3, the method specifically includes:
and S31, allocating a local storage space in advance, wherein the local storage space is used for storing debugging data.
In the embodiment of the present invention, local storage spaces, such as BAR2 and BAR3 spaces in fig. 1, are allocated locally to the host in advance, and a threshold (for example, 4M) may be set for the size of the BAR2 and BAR3 spaces, where the local storage spaces are used for storing debugging data of the solid state disk.
And S32, mapping the address of the local storage space to the DMI interface.
Furthermore, after the local storage space is allocated, the address of the local storage space is mapped to the DMI interface, the BAR2 and the BAR3 space are linked with the DMI, and when the host accesses the BAR2 and BAR3 spaces of the host, the access is equivalent to the access to 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 debugging space address exists in the debugging space of the solid state disk, the detection result is that the target debugging space address is legal.
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, and the instruction can be sent by a PBL command.
After receiving a debugging space access instruction sent by a host, the solid state disk detects a target debugging space address carried in the access instruction, detects the legality of the target debugging space address, and if the target debugging space address exists in the debugging space of the solid state disk, the detection result is that the target debugging space address is legal.
And S34, if the target debugging space address is legal, sending the target debugging space address to a register corresponding to the DMI interface.
And if the target debugging space address is legal, the PBL command feeds back the 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.
S35, if the target debugging space address does not exist in the debugging space of the solid state disk, the detection result is that the target debugging space address is illegal.
S36, if the target debugging space address is illegal, inquiring whether the target debugging space address exists in a non-debugging space.
And if the target debugging space address does not exist in the debugging space of the solid state disk, the detection result is that the target debugging space address is illegal.
Further, the PBL illegal command is in butt joint with 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 debugging spaces.
And S38, sending the address of the non-debugging space divided into the debugging space to a register corresponding to the DMI interface.
If the target debugging space address carried in the debugging space access instruction exists in the non-debugging space, dividing the non-debugging space corresponding to the target debugging space address in the non-debugging space into the debugging space, and sending the address of the non-debugging space to 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 warning information of the debug space access instruction can be directly fed back.
And S39, receiving all data stored in the 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 in 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, carrying out capacity expansion operation on the local storage space so as to enable the local storage space to be enough to store all the data.
If the size of the local storage space cannot meet the storage requirement of all data, capacity expansion operation can be performed on the local storage space, that is, the local storage space is re-divided, so that the re-divided local storage space is enough to store all data.
And 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 debugging work on the solid state disk is realized according to all data.
The access method of the solid state disk debugging space provided by the embodiment of the invention comprises the steps of 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 and used for detecting the legality of the target debugging space address; if the detection result is that the target debugging space address is legal, all data stored in the target debugging space fed back by the solid state disk through the DMI interface are obtained, and all the data are stored in a preset local storage space; compared with the prior art that the abnormal points are only suitable for reading and writing a small amount of data and depend on serial port hardware, the method has the advantages that a large amount of data can be processed through the DMI interface, the serial port hardware is not depended on, and the data reading and writing speed is improved.
Fig. 4 is a schematic structural diagram of an access apparatus for a solid state disk debug space according to an embodiment of the present invention, 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;
a receiving module 402, configured to receive a detection result fed back by the solid state disk and used for detecting the validity of the target debug space address;
an obtaining and storing module 403, configured to obtain all data stored in the target debug space, which is 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 the data in a preset local storage space;
an accessing module 404, configured to access all 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; and if the target debugging space address is illegal, inquiring whether the target debugging space address exists in a non-debugging space.
In a possible implementation manner, the sending module 401 is further configured to, if the target debug space address exists in the non-debug space, divide 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 debugging data; and 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 determine that the target debug space address is legal if the target debug space address exists in the debug space of the solid state disk; and if the target debugging space address does not exist in the debugging space of the solid state disk, the detection result is that the target debugging space address is illegal.
In a possible implementation manner, the obtaining storage module 403 is specifically configured to receive all data stored in the target debug space, which is 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, if the local storage space does not satisfy the requirement of storing all the data, perform a capacity expansion operation on the local storage space, so that the local storage space is sufficient to store all the data.
In a possible implementation manner, the access module 404 is specifically configured to debug the solid state disk based on the total data.
The access device for the solid state disk debug space provided in this embodiment may be an 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 to 3, so as to achieve the technical effect of the access method for the solid state disk debug space shown in fig. 2 to 3, which is described with reference to fig. 2 to 3 for brevity, and is not described herein again.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention, where 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 the computer device 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection 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. For clarity of illustration, however, 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, trackball, touch pad, or touch screen, among others.
It is to be understood that the memory 502 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), synchlronous SDRAM (SLDRAM), and Direct Rambus 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 embodiments, memory 502 stores elements, executable units or data structures, or a subset thereof, or an expanded set thereof as follows: 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, and is used for implementing various basic services and processing hardware-based tasks. The application 5022 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. The program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022, the processor 501 is configured to execute the method steps provided by the method embodiments, for example, including:
sending a debugging space access instruction to a 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 and used for detecting the legality of the target debugging space address; if the detection result is that the target debugging space address is legal, all data stored in the target debugging space fed back by the solid state disk through the DMI interface are obtained, and all the data are stored in 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 debugging data; and mapping the address of the local storage space to the DMI interface.
In a 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; and if the target debugging space address does not exist in the debugging space of the solid state disk, the detection result is that the target debugging space address is illegal.
In a 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; and if the target debugging space address is illegal, inquiring whether the target debugging space address exists in a non-debugging space.
In a 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 a possible implementation manner, all data stored in the target debugging space, which is fed back by the register through the DMI interface, is received, and all the data is stored in the local storage space.
In a possible implementation manner, if the local storage space does not satisfy the condition of storing all the data, a capacity expansion operation is performed on the local storage space so that the local storage space is sufficient to store all the data.
In one possible implementation, the solid state disk is debugged based on the total data.
The method disclosed by the above-mentioned embodiments of the present invention 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 circuits of hardware or instructions in the form of software in the processor 501. The Processor 501 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention 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 invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured 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 performing 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 the computer device shown in fig. 5, and may perform all the steps of the method for accessing the solid state disk debug space shown in fig. 2 to 3, so as to achieve the technical effect of the method for accessing the solid state disk debug space shown in fig. 2 to 3, which is described with reference to fig. 2 to 3 for brevity, and is not described herein again.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
When one or more programs in the storage medium can be executed by one or more processors, the method for accessing the debugging space of the solid state disk 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 solid state disk debugging space access method executed on the computer equipment side:
sending a debugging space access instruction to a 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 and used for detecting the legality of the target debugging space address; if the detection result is that the target debugging space address is legal, all data stored in the target debugging space fed back by the solid state disk through the DMI interface are obtained, and all the data are stored in 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 debugging data; and mapping the address of the local storage space to the DMI interface.
In a 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; and if the target debugging space address does not exist in the debugging space of the solid state disk, the detection result is that the target debugging space address is illegal.
In a 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; and if the target debugging space address is illegal, inquiring whether the target debugging space address exists in a non-debugging space.
In a 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 a possible implementation manner, all data stored in the target debugging space, which is fed back by the register through the DMI interface, is received, and all the data is stored in the local storage space.
In a possible implementation manner, if the local storage space does not satisfy the condition of storing all the data, a capacity expansion operation is performed on the local storage space so that the local storage space is sufficient to store all the data.
In one possible implementation, the solid state disk is debugged based on the total data.
Those of skill would further appreciate that the various illustrative components 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 components and steps have been described above generally in terms of their functionality in order to clearly illustrate this 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 implementation. 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 invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside 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 above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (11)
1. A method for accessing a debugging space of a solid state disk is characterized by comprising the following steps:
sending a debugging space access instruction to a 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 and used for detecting the legality of the target debugging space address;
if the detection result is that the target debugging space address is legal, all data stored in the target debugging space fed back by the solid state disk through the DMI interface are obtained, and all the data are stored in a preset local storage space;
and accessing all data in the local storage space.
2. The method of claim 1, wherein before sending the debug space access instruction to the solid state disk, the method further comprises:
pre-allocating a local storage space, wherein the local storage space is used for storing debugging data;
and mapping the address of the local storage space to the DMI interface.
3. The method according to claim 2, wherein the receiving a detection result fed back by the solid state disk to detect the validity of the target debug space address comprises:
if the target debugging space address exists in the debugging space of the solid state disk, the detection result is that the target debugging space address is legal;
and if the target debugging space address does not exist in the debugging space of the solid state disk, the detection result is that the target debugging space address is illegal.
4. The method of claim 3, further comprising:
if the target debugging space address is legal, the target debugging space address is sent to a register corresponding to the DMI interface;
and if the target debugging space address is illegal, inquiring whether the target debugging space address exists in a non-debugging space.
5. The method of claim 4, further comprising:
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 debugging spaces;
and sending the address of the non-debugging space divided into the debugging space to a register corresponding to the DMI interface.
6. The method according to any one of claims 4 or 5, 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 comprises:
and receiving all data stored in the target debugging space fed back by the register through the DMI interface, and storing all the data into a local storage space.
7. The method of claim 1, further comprising:
and if the local storage space does not meet the requirement of storing all the data, carrying out capacity expansion operation on the local storage space so as to enable the local storage space to be enough to store all the data.
8. The method of claim 1, wherein after the accessing all data in the local storage space, the method further comprises:
and debugging the solid state disk based on all the data.
9. An access device for a solid state disk debugging space, comprising:
the device comprises a sending module, a debugging module and a storage module, wherein the sending module is used for sending a debugging space access instruction to a 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 legality of the target debugging space address;
the obtaining and storing module is used for obtaining all data stored in the target debugging space fed back by the solid state disk through the DMI interface if the detection result shows that the target debugging space address is legal, and storing all the data into a preset local storage space;
and the access module is used for accessing all data in the local storage space.
10. A computer device, comprising: 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-8.
11. A storage medium storing one or more programs, wherein the one or more programs are executable by one or more processors to implement the method for accessing the debug space of a solid state disk according to any one of claims 1 to 8.
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 true CN114168073A (en) | 2022-03-11 |
CN114168073B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023087941A1 (en) * | 2021-11-18 | 2023-05-25 | 苏州浪潮智能科技有限公司 | Method and apparatus for accessing debugging space of solid state disk |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110173374A1 (en) * | 2010-01-14 | 2011-07-14 | Hobbet Jeffrey R | Solid-state memory management |
US20130212425A1 (en) * | 2012-02-15 | 2013-08-15 | Russell A. Blaine | Enhanced debugging for embedded devices |
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 (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110173374A1 (en) * | 2010-01-14 | 2011-07-14 | Hobbet Jeffrey R | Solid-state memory management |
US20130212425A1 (en) * | 2012-02-15 | 2013-08-15 | Russell A. Blaine | Enhanced debugging for embedded devices |
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 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023087941A1 (en) * | 2021-11-18 | 2023-05-25 | 苏州浪潮智能科技有限公司 | Method and apparatus for accessing debugging space of solid state disk |
Also Published As
Publication number | Publication date |
---|---|
WO2023087941A1 (en) | 2023-05-25 |
CN114168073B (en) | 2023-08-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110727597B (en) | Method for checking invalid code completion case based on log | |
US10261705B2 (en) | Efficient data consistency verification for flash storage | |
CN106919494B (en) | Method and device for realizing android application log | |
CN109697170B (en) | Method for accessing flash memory module, related flash memory controller and electronic device | |
KR20170010810A (en) | Method, device and user equipment for reading/writing data in nand flash | |
CN112835528A (en) | Dirty page refreshing method and device, electronic equipment and storage medium | |
CN114168073A (en) | Access method and device for solid state disk debugging space | |
CN112199268A (en) | Software compatibility testing method and electronic equipment | |
CN111933199A (en) | Data read-write method and device based on memory and storage medium | |
US8910004B2 (en) | Information processing apparatus, and method of controlling information processing apparatus | |
KR20180110482A (en) | System and method for testing memory | |
CN110333993B (en) | Memory snapshot generation method and device, electronic equipment and storage medium | |
US20080195821A1 (en) | Method and system of fast clearing of memory using a built-in self-test circuit | |
CN111858116A (en) | Information recording method, device, equipment and readable storage medium | |
US7350109B2 (en) | System and method for testing a memory using DMA | |
CN113553211B (en) | Core dump file generation method, computing device and storage medium | |
CN115794690A (en) | Processing method and device based on external equipment in server | |
CN107766385B (en) | Method and equipment for converting file format of virtual disk | |
CN115203002A (en) | Log processing method and device, electronic equipment and storage medium | |
US20050050276A1 (en) | System and method for testing a memory | |
CN110767258B (en) | Data erasure command test method and related device | |
CN114217736A (en) | Data writing method and device for reducing pre-reading and storage medium | |
US7814288B2 (en) | Protecting memory operations involving zero byte allocations | |
CN111143418A (en) | Data reading method, device and equipment for database and storage medium | |
CN116881086B (en) | Method and device for monitoring memory during application running, computing 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 |