WO2023087941A1 - Method and apparatus for accessing debugging space of solid state disk - Google Patents

Method and apparatus for accessing debugging space of solid state disk Download PDF

Info

Publication number
WO2023087941A1
WO2023087941A1 PCT/CN2022/122336 CN2022122336W WO2023087941A1 WO 2023087941 A1 WO2023087941 A1 WO 2023087941A1 CN 2022122336 W CN2022122336 W CN 2022122336W WO 2023087941 A1 WO2023087941 A1 WO 2023087941A1
Authority
WO
WIPO (PCT)
Prior art keywords
space
address
debugging
target
debug
Prior art date
Application number
PCT/CN2022/122336
Other languages
French (fr)
Chinese (zh)
Inventor
王萌萌
Original Assignee
苏州浪潮智能科技有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 苏州浪潮智能科技有限公司 filed Critical 苏州浪潮智能科技有限公司
Publication of WO2023087941A1 publication Critical patent/WO2023087941A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the embodiments of the present application relate to the field of development of solid-state hard disks, and in particular to a method and device for accessing debugging space of solid-state hard disks.
  • This application provides a method for accessing the debugging space of a solid-state hard disk, including:
  • a method for accessing the debug space of the solid state disk before sending the debug space access command to the solid state disk, a method for accessing the debug space of the solid state disk further includes:
  • receiving the detection result of the validity of the address of the target debugging space fed back by the solid state disk includes:
  • the detection result is that the target debug space address is legal
  • the detection result is that the address of the target debugging space is illegal.
  • a method for accessing the debugging space of a solid state disk further includes:
  • querying whether the target debug space address exists in the non-debug space includes:
  • a method for accessing the debugging space of a solid state disk further includes:
  • a method for accessing the debugging space of a solid state disk further includes:
  • the warning information that the debug space access instruction is illegal is directly fed back.
  • all data stored in the target debugging space fed back by the solid state disk through the DMI interface is obtained, and all data is stored in a preset local storage space, including:
  • All the data stored in the target debugging space fed back by the receiving register through the DMI interface is stored in the local storage space.
  • the local storage space includes BAR2 space and BAR3 space, and the address of the local storage space is mapped to the DMI interface, including:
  • a method for accessing the debugging space of a solid state disk further includes:
  • the first storage threshold is 4M.
  • the second storage threshold is 4M.
  • a method for accessing the debugging space of a solid state disk further includes:
  • a method for accessing the debugging space of the solid state disk further includes:
  • a method for accessing the debug space of the solid state disk before sending the debug space access command to the solid state disk, a method for accessing the debug space of the solid state disk further includes:
  • Send debug space access commands to SSD including:
  • the solid state disk sends the address of the target debugging space to the DMI module, and the DMI module acquires all data in the target debugging space and feeds back all the data through the DMI interface.
  • the debug space access instructions are PBL commands.
  • the present application also provides a device for accessing the debugging space of a solid-state hard disk, including:
  • the sending module is used to send the debugging space access command to the solid state disk, wherein the access command carries the address of the target debugging space to be accessed;
  • the receiving module is used to receive the detection result of the legality of the detection target debugging space address fed back by the solid state disk;
  • Obtaining a storage module used to obtain all data stored in the target debugging space fed back by the solid-state hard drive through the DMI interface if the detection result is that the address of the target debugging space is legal, and store all the data in the preset local storage space;
  • the access module is used to access all data in the local storage space.
  • the present application also provides a computer device, including a memory and one or more processors, where computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the one or more processors, the one or more processors execute Steps in any of the above methods.
  • the present application also provides one or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the computer-readable instructions are executed by one or more processors, one or more processors can perform any of the above-mentioned operations. The steps of a method.
  • Fig. 1 is an access interaction diagram of a solid-state hard disk debugging space provided by one or more embodiments of the present application;
  • FIG. 2 is a schematic flowchart of a method for accessing a debugging space of a solid-state hard disk provided by one or more embodiments of the present application;
  • FIG. 3 is a schematic flow diagram of another method for accessing debugging space of a solid-state hard disk provided by one or more embodiments of the present application;
  • FIG. 4 is a schematic structural diagram of an access device for a solid-state hard disk debugging space provided by one or more embodiments of the present application;
  • Fig. 5 is a schematic structural diagram of a computer device provided by one or more embodiments of the present application.
  • Fig. 2 is a schematic flow diagram of a method for accessing a solid-state hard disk debugging space provided in an embodiment of the present application. As shown in Fig. 2, the method specifically includes:
  • This application is preferentially applicable to the development and debugging work scene of solid-state hard disk.
  • the host and solid-state hard disk are connected through the PCIE channel, and the solid-state hard disk is read and written through the PCIE channel. large amount of data in .
  • the host computer sends a debug space access command to the solid state disk, wherein the access command carries an address of a target debug space to be accessed.
  • the solid-state drive After receiving the debug space access command sent by the host, the solid-state drive detects the address of the target debug space carried in the access command, checks the validity of the address of the target debug space, and feeds back the detection result to the host, and the host receives the feedback from the solid-state drive for detection The detection result of the legality of the target debug space address.
  • the SSD will send the address of the target debugging space to the DMI module, and the DMI module will obtain all the data in the target debugging space and send it to the host through the DMI interface.
  • the preset local storage space is a pre-divided partial storage space, such as the BAR2 and BAR3 spaces shown in FIG. 1 .
  • the host can access all the data stored in the BAR2 and BAR3 spaces, and then debug the solid-state drive based on all the data.
  • the method for accessing the debugging space of the solid-state hard disk is to send the debugging space access command to the solid-state hard disk, wherein the access command carries the address of the target debugging space to be accessed; If the detection result is that the address of the target debugging space is legal, then obtain all the data stored in the target debugging space fed back by the solid state drive through the DMI interface, and store all the data in the preset local storage space; for the local storage space
  • the DMI interface handles a large amount of data, does not depend on the serial port hardware, and improves the data read and write rate.
  • Fig. 3 is a schematic flow diagram of another method for accessing the debugging space of a solid-state hard disk provided in the embodiment of the present application. As shown in Fig. 3, the method specifically includes:
  • S31 Pre-allocate a local storage space, where the local storage space is used to store the debugging data.
  • the local storage space is pre-allocated on the host computer, such as the BAR2 and BAR3 spaces in Figure 1.
  • a threshold for example, 4M
  • the local storage space is used to store solid-state Hard disk debugging data.
  • the address of the local storage space is mapped to the DMI interface, and the BAR2 and BAR3 spaces are linked with the DMI.
  • the host accesses its own BAR2 and BAR3 spaces, it is equivalent to accessing the memory space of the solid state drive , which also realizes the reading and writing of data in the memory space of the SSD.
  • the host sends a debug space access command to the solid state disk, wherein the access command carries the address of the target debug space to be accessed, and the command can be sent as a PBL command.
  • the solid state disk After receiving the debug space access command sent by the host, the solid state disk detects the address of the target debug space carried in the access command to check the validity of the address of the target debug space. If there is a target debug space address in the debug space of the solid state drive, then The detection result shows that the address of the target debugging space is legal.
  • the PBL command feeds back the result that the address of the target debugging space is legal to the host, and the solid state disk sends the address of the target debugging space to the corresponding register of the DMI interface.
  • the detection result is that the target debugging space address is illegal.
  • the PBL illegal command connects to the non-debugging space, and queries whether the target debugging space address carried in the debugging space access instruction exists in the non-debugging space.
  • the non-debug space corresponding to the target debug space address in the non-debug space is divided into the debug space, and the address of the non-debug space is Send to the register corresponding to the DMI interface.
  • the warning information that the debug space access instruction is illegal may be directly fed back.
  • the register accesses the space of the solid-state hard disk through the received target debugging space address, obtains all data from the target debugging space, and sends all the data to the host through the DMI interface. After receiving all the data, the host stores all the data in the local storage space.
  • the local storage space can be expanded, that is, the local storage space can be re-divided so that the re-divided local storage space is enough to store all the data.
  • the host can access all the data in the local storage space, and realize the debugging of the solid-state hard disk according to all the data.
  • the method for accessing the debugging space of the solid-state hard disk is to send the debugging space access command to the solid-state hard disk, wherein the access command carries the address of the target debugging space to be accessed; If the detection result is that the address of the target debugging space is legal, then obtain all the data stored in the target debugging space fed back by the solid state drive through the DMI interface, and store all the data in the preset local storage space; for the local storage space
  • the DMI interface handles a large amount of data, does not depend on the serial port hardware, and improves the data read and write rate.
  • FIG. 4 is a schematic structural diagram of an access device for a solid-state hard disk debugging space provided in an embodiment of the present application, specifically including:
  • the sending module 401 is configured to send a debug space access command to the solid state disk, wherein the access command carries the address of the target debug space to be accessed;
  • the receiving module 402 is used to receive the detection result of the legality of the detection target debugging space address fed back by the solid state disk;
  • An access module 404 configured to access all data in the local storage space.
  • the sending module 401 is specifically configured to send the address of the target debugging space to the register corresponding to the DMI interface if the address of the target debugging space is legal; if the address of the target debugging space is illegal, query the non-debugging space Whether the target debug space address exists in .
  • the sending module 401 is further configured to divide the non-debugging space corresponding to the target debugging space address in the non-debugging space into the debugging space if there is a target debugging space address in the non-debugging space; The address of the non-debugging space in the debugging space is sent to the register corresponding to the DMI interface.
  • 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 map the address of the local storage space to the DMI interface.
  • the receiving module 402 is specifically configured to: if there is a target debugging space address in the debugging space of the solid-state hard disk, the detection result is that the address of the target debugging space is legal; if there is no target debugging space in the debugging space of the solid-state hard disk address, the detection result is that the address of the target debugging space is illegal.
  • the acquiring storage module 403 is specifically configured to receive all the data stored in the target debugging space fed back by the register through the DMI interface, and store all the data in the local storage space.
  • the acquiring storage module 403 is further configured to expand the local storage space until the local storage space is sufficient to store all the data if the local storage space is insufficient to store all the data.
  • the access module 404 is specifically configured to debug the solid state disk based on all data.
  • the device for accessing the debugging space of the solid-state hard disk provided in this embodiment may be the device for accessing the debugging space of the solid-state hard disk as shown in FIG.
  • the access method of the debugging space of the solid-state hard disk shown in Figure 2-3 please refer to the relevant description in Figure 2-3 for details, which is not described here for brevity.
  • FIG. 5 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • 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 .
  • Various components in computer device 500 are coupled together by bus system 505 .
  • the bus system 505 is used to realize connection and communication between these components.
  • the bus system 505 also includes a power bus, a control bus and a status signal bus.
  • the various buses are labeled as bus system 505 in FIG. 5 .
  • the user interface 503 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball (trackball), a touch panel, or a touch screen, and the like.
  • a pointing device for example, a mouse, a trackball (trackball), a touch panel, or a touch screen, and the like.
  • the memory 502 in the embodiment of the present application may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash.
  • the volatile memory can be Random Access Memory (RAM), which acts as external cache memory.
  • RAM Static Random Access Memory
  • SRAM Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • Synchronous Dynamic Random Access Memory Synchronous Dynamic Random Access Memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM DDRSDRAM
  • enhanced SDRAM ESDRAM
  • Synch link DRAM SLDRAM
  • Direct Memory Bus Random Access Memory Direct Rambus RAM, DRRAM
  • the memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
  • the memory 502 stores the following elements, executable units or data structures, or their subsets, or their extended sets: an operating system 5021 and an application program 5022.
  • the operating system 5021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing tasks based on hardware.
  • the application program 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to realize various application services.
  • the program for implementing the method of the embodiment of the present application may be included in the application program 5022 .
  • the processor 501 by calling the program or computer-readable instruction stored in the memory 502, specifically, the program or computer-readable instruction stored in the application program 5022, the processor 501 is used to execute the method provided by each method embodiment.
  • the method steps include, for example:
  • a local storage space is allocated in advance, where the local storage space is used to store debugging data; and an address of the local storage space is mapped to a DMI interface.
  • the detection result is that the target debugging space address is legal; if there is no target debugging space address in the solid-state hard disk debugging space, the detection result is the target debugging space address.
  • the debug space address is invalid.
  • the address of the target debugging space is sent to the register corresponding to the DMI interface; if the address of the target debugging space is illegal, then query whether there is an address of the target debugging space in the non-debugging space .
  • the non-debug space corresponding to the target debug space address in the non-debug space is divided into the debug space; The address is sent to the register corresponding to the DMI interface.
  • all the data stored in the target debugging space fed back by the receiving register through the DMI interface is stored in the local storage space.
  • the local storage space is expanded until the local storage space is sufficient to store all the data.
  • the solid state disk is debugged based on all data.
  • the methods disclosed in the foregoing embodiments 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 and has signal processing capability. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 501 or an instruction in the form of software.
  • the above-mentioned 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), a ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field Programmable Gate Array
  • 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 directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software units in the decoding processor.
  • the software unit may be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register.
  • 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 above method in combination with its hardware.
  • the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSPDevice, DSPD), programmable logic Equipment (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions of this application or in its combination.
  • ASIC Application Specific Integrated Circuits
  • DSP Digital Signal Processing
  • DSPDevice digital signal processing device
  • PLD programmable logic Equipment
  • Field-Programmable Gate Array Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • the techniques herein may be implemented by units that perform the functions herein.
  • Software codes can be stored in memory and executed by a processor.
  • Memory can be implemented within the processor or external to the processor.
  • the computer device provided by this embodiment may be the computer device as shown in Figure 5, which can execute all the steps of the access method of the solid-state hard disk debugging space in Figure 2-3, and then realize the solid-state hard disk debugging space shown in Figure 2-3
  • the access method please refer to the related descriptions in FIG.
  • the embodiment of the present application also provides one or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the storage medium stores one or more computer-readable instructions.
  • the storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state disk; the memory may also include the above-mentioned types of memory combination.
  • the method for accessing the debugging space of the solid-state hard disk executed on the computer device side is realized.
  • the processor is used to execute the access program of the debugging space of the solid-state hard disk stored in the memory, so as to realize the following steps of the method for accessing the debugging space of the solid-state hard disk executed on the computer device side:
  • a local storage space is allocated in advance, where the local storage space is used to store debugging data; and an address of the local storage space is mapped to a DMI interface.
  • the detection result is that the target debugging space address is legal; if there is no target debugging space address in the solid-state hard disk debugging space, the detection result is the target debugging space address.
  • the debug space address is invalid.
  • the address of the target debugging space is sent to the register corresponding to the DMI interface; if the address of the target debugging space is illegal, then query whether there is an address of the target debugging space in the non-debugging space .
  • the non-debug space corresponding to the target debug space address in the non-debug space is divided into the debug space; The address is sent to the register corresponding to the DMI interface.
  • all the data stored in the target debugging space fed back by the receiving register through the DMI interface is stored in the local storage space.
  • the local storage space is expanded until the local storage space is sufficient to store all the data.
  • the solid state disk is debugged based on all data.
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • registers hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

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 embodiments of the present application relate to a method and apparatus for accessing a debugging space of a solid state disk. The method comprises: 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, which is fed back by the solid state disk, of detecting the legitimacy of the target debugging space address; if the detection result is that the target debugging space address is legitimate, acquiring all data that is stored in the target debugging space and is fed back by the solid state disk by means of a DMI interface, and storing all the data in a preset local storage space; and accessing all data in the local storage space. By means of the method, a large amount of data is processed by means of a DMI interface, without depending on serial port hardware, thereby improving the data read-write rate.

Description

固态硬盘调试空间的访问方法及装置Method and device for accessing debugging space of solid-state hard disk
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年11月18日提交中国专利局,申请号为202111372765.4,申请名称为“固态硬盘调试空间的访问方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111372765.4 and the application title "Access Method and Device for Debugging Space of Solid State Disk" filed with the China Patent Office on November 18, 2021, the entire contents of which are incorporated herein by reference Applying.
技术领域technical field
本申请实施例涉及固态硬盘开发领域,尤其涉及一种固态硬盘调试空间的访问方法及装置。The embodiments of the present application relate to the field of development of solid-state hard disks, and in particular to a method and device for accessing debugging space of solid-state hard disks.
背景技术Background technique
固态硬盘开发过程中出现异常往往依赖串口打印分析log日志、对话管理器打印上下文等手段排查异常点,但是,这两种手段只适合小量数据读写或者接串口的情况下调试定位异常,读写速率低,依赖串口硬件,不能应对大数据量级的数据读写。因此,如何实现对大量数据的读写、提高读写速率成为固态硬盘开发领域亟待解决的问题。Abnormalities in the development process of solid-state drives often rely on methods such as serial port printing and analysis log logs, dialog manager printing context, etc. to troubleshoot abnormal points. The write rate is low, relying on the serial port hardware, and cannot cope with the data reading and writing of large data magnitude. Therefore, how to realize the reading and writing of a large amount of data and improve the reading and writing speed has become an urgent problem to be solved in the development field of solid-state hard drives.
发明内容Contents of the invention
本申请提供一种固态硬盘调试空间的访问方法,包括:This application provides a method for accessing the debugging space of a solid-state hard disk, including:
发送调试空间访问指令到固态硬盘,其中,访问指令中携带有待访问的目标调试空间地址;Send the debug space access command to the solid state disk, wherein the access command carries the address of the target debug space to be accessed;
接收固态硬盘反馈的检测目标调试空间地址的合法性的检测结果;Receive the detection result of the legitimacy of the detection target debugging space address fed back by the solid state disk;
响应于检测结果为目标调试空间地址合法,获取固态硬盘通过DMI接口反馈的目标调试空间内存储的全部数据,将全部数据存储到预设的本地存储空间中;和In response to the detection result being that the address of the target debugging space is legal, obtain all the data stored in the target debugging space fed back by the solid state disk through the DMI interface, and store all the data in the preset local storage space; and
对本地存储空间中的全部数据进行访问。Access all data in local storage space.
在一个或多个实施中,发送调试空间访问指令到固态硬盘之前,一种固态硬盘调试空间的访问方法还包括:In one or more implementations, before sending the debug space access command to the solid state disk, a method for accessing the debug space of the solid state disk further includes:
预先分配本地存储空间,其中,本地存储空间用于存储调试数据;和pre-allocating local storage space, where the local storage space is used to store debug data; and
将本地存储空间的地址映射到DMI接口。Map the address of the local storage space to the DMI interface.
在一个或多个实施中,接收固态硬盘反馈的检测目标调试空间地址的合法性的检测结果,包括:In one or more implementations, receiving the detection result of the validity of the address of the target debugging space fed back by the solid state disk includes:
响应于固态硬盘的调试空间中存在目标调试空间地址,检测结果为目标调试空间地址合法;和In response to the presence of a target debug space address in the debug space of the solid state disk, the detection result is that the target debug space address is legal; and
响应于固态硬盘的调试空间中不存在目标调试空间地址,检测结果为目标调试空间地址不合法。In response to the fact that the address of the target debugging space does not exist in the debugging space of the solid state disk, the detection result is that the address of the target debugging space is illegal.
在一个或多个实施中,一种固态硬盘调试空间的访问方法还包括:In one or more implementations, a method for accessing the debugging space of a solid state disk further includes:
响应于目标调试空间地址合法,将目标调试空间地址发送给DMI接口对应的寄存器内;和In response to the legality of the address of the target debugging space, sending the address of the target debugging space to a register corresponding to the DMI interface; and
响应于目标调试空间地址不合法,查询非调试空间中是否存在目标调试空间地址。In response to the illegal address of the target debugging space, query whether there is an address of the target debugging space in the non-debugging space.
在一个或多个实施中,查询非调试空间中是否存在目标调试空间地址,包括:In one or more implementations, querying whether the target debug space address exists in the non-debug space includes:
采用PBL不合法命令对接非调试空间;和Use PBL illegal commands to connect to non-debugging space; and
通过PBL不合法命令查询非调试空间内是否存在调试空间访问指令中携带的目标调试空间地址。Use the PBL illegal command to query whether the target debug space address carried in the debug space access instruction exists in the non-debug space.
在一个或多个实施中,一种固态硬盘调试空间的访问方法还包括:In one or more implementations, a method for accessing the debugging space of a solid state disk further includes:
响应于非调试空间中存在目标调试空间地址,将非调试空间中的目标调试空间地址对应的非调试空间划分到调试空间中;和In response to the presence of the target debug space address in the non-debug space, dividing the non-debug space corresponding to the target debug space address in the non-debug space into the debug space; and
将划分到调试空间中的非调试空间的地址发送给DMI接口对应的寄存器内。Send the address of the non-debugging space divided into the debugging space to the register corresponding to the DMI interface.
在一个或多个实施中,一种固态硬盘调试空间的访问方法还包括:In one or more implementations, a method for accessing the debugging space of a solid state disk further includes:
响应于未在非调试空间内查询到调试空间访问指令中携带的目标调试空间地址,直接反馈调试空间访问指令非法的告警信息。In response to the fact that the target debug space address carried in the debug space access instruction is not found in the non-debug space, the warning information that the debug space access instruction is illegal is directly fed back.
在一个或多个实施中,获取固态硬盘通过DMI接口反馈的目标调试空间内存储的全部数据,将全部数据存储到预设的本地存储空间中,包括:In one or more implementations, all data stored in the target debugging space fed back by the solid state disk through the DMI interface is obtained, and all data is stored in a preset local storage space, including:
接收寄存器通过DMI接口反馈的目标调试空间内存储的全部数据,将全部数据存储到本地存储空间中。All the data stored in the target debugging space fed back by the receiving register through the DMI interface is stored in the local storage space.
在一个或多个实施中,本地存储空间包括BAR2空间和BAR3空间,将本地存储空间的地址映射到DMI接口,包括:In one or more implementations, the local storage space includes BAR2 space and BAR3 space, and the address of the local storage space is mapped to the DMI interface, including:
将BAR2空间和BAR3空间的地址分别映射到DMI接口。Map the addresses of BAR2 space and BAR3 space to the DMI interface respectively.
在一个或多个实施中,一种固态硬盘调试空间的访问方法还包括:In one or more implementations, a method for accessing the debugging space of a solid state disk further includes:
对BAR2空间设置第一存储阈值;和setting a first storage threshold for the BAR2 space; and
对BAR3空间设置第二存储阈值。Set a second storage threshold for the BAR3 space.
在一个或多个实施中,第一存储阈值为4M。In one or more implementations, the first storage threshold is 4M.
在一个或多个实施中,第二存储阈值为4M。In one or more implementations, the second storage threshold is 4M.
在一个或多个实施中,一种固态硬盘调试空间的访问方法还包括:In one or more implementations, a method for accessing the debugging space of a solid state disk further includes:
响应于本地存储空间不满足存储全部数据,对本地存储空间进行扩容操作,以使本地存储空间足以存储全部数据为止。In response to the fact that the local storage space is not sufficient to store all the data, an expansion operation is performed on the local storage space until the local storage space is sufficient to store all the data.
在一个或多个实施中,对本地存储空间中的全部数据进行访问之后,一种固态硬盘调试空间的访问方法还包括:In one or more implementations, after accessing all the data in the local storage space, a method for accessing the debugging space of the solid state disk further includes:
基于全部数据对固态硬盘进行调试。Debug the SSD based on all the data.
在一个或多个实施中,发送调试空间访问指令到固态硬盘之前,一种固态硬盘调试空间的访问方法还包括:In one or more implementations, before sending the debug space access command to the solid state disk, a method for accessing the debug space of the solid state disk further includes:
通过PCIE通道连接固态硬盘;Connect the solid-state hard disk through the PCIE channel;
发送调试空间访问指令到固态硬盘,包括:Send debug space access commands to SSD, including:
通过PCIE通道发送调试空间访问指令到固态硬盘。Send the debug space access command to the SSD through the PCIE channel.
在一个或多个实施中,固态硬盘将目标调试空间地址发送给DMI模块,DMI模块获取目标调试空间内的全部数据并通过DMI接口将全部数据进行反馈。In one or more implementations, the solid state disk sends the address of the target debugging space to the DMI module, and the DMI module acquires all data in the target debugging space and feeds back all the data through the DMI interface.
在一个或多个实施中,调试空间访问指令为PBL命令。In one or more implementations, the debug space access instructions are PBL commands.
本申请还提供一种固态硬盘调试空间的访问装置,包括:The present application also provides a device for accessing the debugging space of a solid-state hard disk, including:
发送模块,用于发送调试空间访问指令到固态硬盘,其中,访问指令中携带有待访问的目标调试空间地址;The sending module is used to send the debugging space access command to the solid state disk, wherein the access command carries the address of the target debugging space to be accessed;
接收模块,用于接收固态硬盘反馈的检测目标调试空间地址的合法性的检测结果;The receiving module is used to receive the detection result of the legality of the detection target debugging space address fed back by the solid state disk;
获取存储模块,用于若检测结果为目标调试空间地址合法,则获取固态硬盘通过DMI接口反馈的目标调试空间内存储的全部数据,将全部数据存储到预设的本地存储空间中;和Obtaining a storage module, used to obtain all data stored in the target debugging space fed back by the solid-state hard drive through the DMI interface if the detection result is that the address of the target debugging space is legal, and store all the data in the preset local storage space; and
访问模块,用于对本地存储空间中的全部数据进行访问。The access module is used to access all data in the local storage space.
本申请还提供一种计算机设备,包括存储器及一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述任一项方法的步骤。The present application also provides a computer device, including a memory and one or more processors, where computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the one or more processors, the one or more processors execute Steps in any of the above methods.
本申请还提供一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如上述任一项方法的步 骤。The present application also provides one or more non-volatile computer-readable storage media storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, one or more processors can perform any of the above-mentioned operations. The steps of a method.
附图说明Description of drawings
图1为本申请一个或多个实施例提供的一种固态硬盘调试空间的访问交互图;Fig. 1 is an access interaction diagram of a solid-state hard disk debugging space provided by one or more embodiments of the present application;
图2为本申请一个或多个实施例提供的一种固态硬盘调试空间的访问方法流程示意图;FIG. 2 is a schematic flowchart of a method for accessing a debugging space of a solid-state hard disk provided by one or more embodiments of the present application;
图3为本申请一个或多个实施例提供的另一种固态硬盘调试空间的访问方法流程示意图;FIG. 3 is a schematic flow diagram of another method for accessing debugging space of a solid-state hard disk provided by one or more embodiments of the present application;
图4为本申请一个或多个实施例提供的一种固态硬盘调试空间的访问装置结构示意图;FIG. 4 is a schematic structural diagram of an access device for a solid-state hard disk debugging space provided by one or more embodiments of the present application;
图5为本申请一个或多个实施例提供的一种计算机设备的结构示意图。Fig. 5 is a schematic structural diagram of a computer device provided by one or more embodiments of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
为便于对本申请实施例的理解,下面将结合附图以具体实施例做进一步的解释说明,实施例并不构成对本申请实施例的限定。In order to facilitate the understanding of the embodiments of the present application, the following will further explain and illustrate with specific embodiments in conjunction with the accompanying drawings, and the embodiments do not constitute a limitation to the embodiments of the present application.
图2为本申请实施例提供的一种固态硬盘调试空间的访问方法流程示意图,如图2所示,该方法具体包括:Fig. 2 is a schematic flow diagram of a method for accessing a solid-state hard disk debugging space provided in an embodiment of the present application. As shown in Fig. 2, the method specifically includes:
S21、发送调试空间访问指令到固态硬盘。S21. Send the debug space access instruction to the solid state disk.
本申请优先适用于固态硬盘的开发调试工作场景,本申请实施例中,结合图1所示的固态硬盘调试空间的访问交互图,通过PCIE通道链接主机和固态硬盘,通过PCIE通道读写固态硬盘中的大量数据。This application is preferentially applicable to the development and debugging work scene of solid-state hard disk. In the embodiment of this application, combined with the access interaction diagram of the solid-state hard disk debugging space shown in Figure 1, the host and solid-state hard disk are connected through the PCIE channel, and the solid-state hard disk is read and written through the PCIE channel. large amount of data in .
主机向固态硬盘发送调试空间访问指令,其中,访问指令中携带有待访问的目标调试空间地址。The host computer sends a debug space access command to the solid state disk, wherein the access command carries an address of a target debug space to be accessed.
S22、接收固态硬盘反馈的检测目标调试空间地址的合法性的检测结果。S22. Receive a detection result of validity of the detection target debugging space address fed back by the solid state disk.
固态硬盘在接收到主机发送的调试空间访问指令后,对访问指令中携带的目标调试空间地址进行检测,检测目标调试空间地址的合法性,将检测结果反馈给主机,主机接收固态硬盘反馈的检测目标调试空间地址的合法性的检测结果。After receiving the debug space access command sent by the host, the solid-state drive detects the address of the target debug space carried in the access command, checks the validity of the address of the target debug space, and feeds back the detection result to the host, and the host receives the feedback from the solid-state drive for detection The detection result of the legality of the target debug space address.
S23、若检测结果为目标调试空间地址合法,则获取固态硬盘通过DMI接口反馈的目标 调试空间内存储的全部数据,将全部数据存储到预设的本地存储空间中。S23. If the detection result is that the address of the target debugging space is legal, then obtain all the data stored in the target debugging space fed back by the solid-state hard drive through the DMI interface, and store all the data in the preset local storage space.
若检测结果为目标调试空间地址合法,则固态硬盘将目标调试空间地址发送给DMI模块,DMI模块获取目标调试空间内的全部数据通过DMI接口发送给主机,主机接收到全部数据后将数据存储到预设的本地存储空间中,其中,预设本地存储空间为预先划分的部分存储空间,如图1所示的BAR2,BAR3空间。If the detection result shows that the address of the target debugging space is legal, the SSD will send the address of the target debugging space to the DMI module, and the DMI module will obtain all the data in the target debugging space and send it to the host through the DMI interface. In the preset local storage space, the preset local storage space is a pre-divided partial storage space, such as the BAR2 and BAR3 spaces shown in FIG. 1 .
S24、对本地存储空间中的全部数据进行访问。S24. Access all data in the local storage space.
在全部数据存储完成后,主机可以访问BAR2,BAR3空间内存储的全部数据,进而可以根据全部数据对固态硬盘进行调试。After all the data storage is completed, the host can access all the data stored in the BAR2 and BAR3 spaces, and then debug the solid-state drive based on all the data.
本申请实施例提供的固态硬盘调试空间的访问方法,通过发送调试空间访问指令到固态硬盘,其中,访问指令中携带有待访问的目标调试空间地址;接收固态硬盘反馈的检测目标调试空间地址的合法性的检测结果;若检测结果为目标调试空间地址合法,则获取固态硬盘通过DMI接口反馈的目标调试空间内存储的全部数据,将全部数据存储到预设的本地存储空间中;对本地存储空间中的全部数据进行访问,相比于现有技术中依赖串口打印分析log日志、对话管理器打印上下文等手段排查异常点只适合小量数据读写、依赖串口硬件的问题,由本方法,可以通过DMI接口处理大量数据,不依赖串口硬件,提高数据读写速率。The method for accessing the debugging space of the solid-state hard disk provided in the embodiment of the present application is to send the debugging space access command to the solid-state hard disk, wherein the access command carries the address of the target debugging space to be accessed; If the detection result is that the address of the target debugging space is legal, then obtain all the data stored in the target debugging space fed back by the solid state drive through the DMI interface, and store all the data in the preset local storage space; for the local storage space Compared with the prior art that relies on serial port printing to analyze log logs, dialogue manager printing context and other methods to troubleshoot abnormal points, it is only suitable for reading and writing a small amount of data and relies on serial port hardware. By this method, you can pass The DMI interface handles a large amount of data, does not depend on the serial port hardware, and improves the data read and write rate.
图3为本申请实施例提供的另一种固态硬盘调试空间的访问方法流程示意图,如图3所示,该方法具体包括:Fig. 3 is a schematic flow diagram of another method for accessing the debugging space of a solid-state hard disk provided in the embodiment of the present application. As shown in Fig. 3, the method specifically includes:
S31、预先分配本地存储空间,其中,本地存储空间用于存储调试数据。S31. Pre-allocate a local storage space, where the local storage space is used to store the debugging data.
本申请实施例中,预先在主机本地分配本地存储空间,如图1中的BAR2,BAR3空间,可以对BAR2,BAR3空间的大小设置一阈值(例如,4M),该本地存储空间用于存储固态硬盘的调试数据。In the embodiment of the present application, the local storage space is pre-allocated on the host computer, such as the BAR2 and BAR3 spaces in Figure 1. A threshold (for example, 4M) can be set for the size of the BAR2 and BAR3 spaces. The local storage space is used to store solid-state Hard disk debugging data.
S32、将本地存储空间的地址映射到DMI接口。S32. Map the address of the local storage space to the DMI interface.
进一步的,分配本地存储空间后,将本地存储空间的地址映射到DMI接口,BAR2,BAR3空间与DMI建立起来链接,当主机访问自己的BAR2,BAR3空间时,就相当于访问固态硬盘的内存空间,也就实现了固态硬盘内存空间数据的读写。Furthermore, after the local storage space is allocated, the address of the local storage space is mapped to the DMI interface, and the BAR2 and BAR3 spaces are linked with the DMI. When the host accesses its own BAR2 and BAR3 spaces, it is equivalent to accessing the memory space of the solid state drive , which also realizes the reading and writing of data in the memory space of the SSD.
S33、若固态硬盘的调试空间中存在目标调试空间地址,则检测结果为目标调试空间地址合法。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.
主机向固态硬盘发送调试空间访问指令,其中,访问指令中携带有待访问的目标调试空间地址,指令可以以PBL命令发送。The host sends a debug space access command to the solid state disk, wherein the access command carries the address of the target debug space to be accessed, and the command can be sent as a PBL command.
固态硬盘在接收到主机发送的调试空间访问指令后,对访问指令中携带的目标调试空间 地址进行检测,检测目标调试空间地址的合法性,若固态硬盘的调试空间中存在目标调试空间地址,则检测结果为目标调试空间地址合法。After receiving the debug space access command sent by the host, the solid state disk detects the address of the target debug space carried in the access command to check the validity of the address of the target debug space. If there is a target debug space address in the debug space of the solid state drive, then The detection result shows that the address of the target debugging space is legal.
S34、若目标调试空间地址合法,则将目标调试空间地址发送给DMI接口对应的寄存器内。S34. If the address of the target debugging space is valid, send the address of the target debugging space to a register corresponding to the DMI interface.
若目标调试空间地址合法,PBL命令向主机反馈目标调试空间地址合法的结果,固态硬盘将目标调试空间地址发送到DMI接口对应的寄存器内。If the address of the target debugging space is legal, the PBL command feeds back the result that the address of the target debugging space is legal to the host, and the solid state disk sends the address of the target debugging space to the corresponding register of the DMI interface.
S35、若固态硬盘的调试空间中不存在目标调试空间地址,则检测结果为目标调试空间地址不合法。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、若目标调试空间地址不合法,则查询非调试空间中是否存在目标调试空间地址。S36. If the address of the target debugging space is invalid, query whether the address of the target debugging space exists in the non-debugging space.
若固态硬盘的调试空间中不存在目标调试空间地址,则检测结果为目标调试空间地址不合法。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.
进一步的,PBL不合法命令对接非调试空间,查询非调试空间内是否存在调试空间访问指令中携带的目标调试空间地址。Further, the PBL illegal command connects to the non-debugging space, and queries whether the target debugging space address carried in the debugging space access instruction exists in the non-debugging space.
S37、若非调试空间中存在目标调试空间地址,则将非调试空间中的目标调试空间地址对应的非调试空间划分到调试空间中。S37. If the target debug space address exists in the non-debug space, divide the non-debug space corresponding to the target debug space address in the non-debug space into the debug space.
S38、将划分到调试空间中的非调试空间的地址发送给DMI接口对应的寄存器内。S38. Send the address of the non-debugging space divided into the debugging space to a register corresponding to the DMI interface.
若查询到非调试空间内存在调试空间访问指令中携带的目标调试空间地址,则将非调试空间内的目标调试空间地址对应的非调试空间划分到调试空间中,并将该非调试空间的地址发送到DMI接口对应的寄存器内。If the target debug space address carried in the debug space access instruction in the non-debug space is found, the non-debug space corresponding to the target debug space address in the non-debug space is divided into the debug space, and the address of the non-debug space is Send to the 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 warning information that the debug space access instruction is illegal may be directly fed back.
S39、接收寄存器通过DMI接口反馈的目标调试空间内存储的全部数据,将全部数据存储到本地存储空间中。S39. Receive all the data stored in the target debugging space fed back by the register through the DMI interface, and store all the data in the local storage space.
寄存器通过接收的目标调试空间地址访问固态硬盘的空间,从目标调试空间内获取全部数据,将全部数据通过DMI接口发送给主机,主机接收到全部数据后将全部数据存储到本地存储空间中。The register accesses the space of the solid-state hard disk through the received target debugging space address, obtains all data from the target debugging space, and sends all the data to the host through the DMI interface. After receiving all the data, the host stores all the data in the local storage space.
S310、若本地存储空间不满足存储全部数据,则对本地存储空间进行扩容操作,以使本地存储空间足以存储全部数据为止。S310. If the local storage space is not sufficient to store all the data, perform a capacity expansion operation on the local storage space until the local storage space is sufficient to store all the data.
若本地存储空间的大小不能满足全部数据的存储,则可以对本地存储空间进行扩容操作,即重新划分本地存储空间,使得重新划分的本地存储空间足以存储全部数据。If the size of the local storage space cannot meet the storage of all data, the local storage space can be expanded, that is, the local storage space can be re-divided so that the re-divided local storage space is enough to store all the data.
S311、基于全部数据对固态硬盘进行调试。S311 , debug the solid state disk based on all the data.
在全部数据存储完成后,主机可以访问本地存储空间的全部数据,根据全部数据实现对固态硬盘的调试工作。After all the data storage is completed, the host can access all the data in the local storage space, and realize the debugging of the solid-state hard disk according to all the data.
本申请实施例提供的固态硬盘调试空间的访问方法,通过发送调试空间访问指令到固态硬盘,其中,访问指令中携带有待访问的目标调试空间地址;接收固态硬盘反馈的检测目标调试空间地址的合法性的检测结果;若检测结果为目标调试空间地址合法,则获取固态硬盘通过DMI接口反馈的目标调试空间内存储的全部数据,将全部数据存储到预设的本地存储空间中;对本地存储空间中的全部数据进行访问,相比于现有技术中依赖串口打印分析log日志、对话管理器打印上下文等手段排查异常点只适合小量数据读写、依赖串口硬件的问题,由本方法,可以通过DMI接口处理大量数据,不依赖串口硬件,提高数据读写速率。The method for accessing the debugging space of the solid-state hard disk provided in the embodiment of the present application is to send the debugging space access command to the solid-state hard disk, wherein the access command carries the address of the target debugging space to be accessed; If the detection result is that the address of the target debugging space is legal, then obtain all the data stored in the target debugging space fed back by the solid state drive through the DMI interface, and store all the data in the preset local storage space; for the local storage space Compared with the prior art that relies on serial port printing to analyze log logs, dialogue manager printing context and other methods to troubleshoot abnormal points, it is only suitable for reading and writing a small amount of data and relies on serial port hardware. By this method, you can pass The DMI interface handles a large amount of data, does not depend on the serial port hardware, and improves the data read and write rate.
图4为本申请实施例提供的一种固态硬盘调试空间的访问装置的结构示意图,具体包括:FIG. 4 is a schematic structural diagram of an access device for a solid-state hard disk debugging space provided in an embodiment of the present application, specifically including:
发送模块401,用于发送调试空间访问指令到固态硬盘,其中,访问指令中携带有待访问的目标调试空间地址;The sending module 401 is configured to send a debug space access command to the solid state disk, wherein the access command carries the address of the target debug space to be accessed;
接收模块402,用于接收固态硬盘反馈的检测目标调试空间地址的合法性的检测结果;The receiving module 402 is used to receive the detection result of the legality of the detection target debugging space address fed back by the solid state disk;
获取存储模块403,用于若检测结果为目标调试空间地址合法,则获取固态硬盘通过DMI接口反馈的目标调试空间内存储的全部数据,将全部数据存储到预设的本地存储空间中;Obtaining a storage module 403, used to obtain all data stored in the target debugging space fed back by the solid-state hard disk through the DMI interface if the detection result is that the address of the target debugging space is legal, and store all the data in the preset local storage space;
访问模块404,用于对本地存储空间中的全部数据进行访问。An access module 404, configured to access all data in the local storage space.
在一个可能的实施方式中,发送模块401,具体用于若目标调试空间地址合法,则将目标调试空间地址发送给DMI接口对应的寄存器内;若目标调试空间地址不合法,则查询非调试空间中是否存在目标调试空间地址。In a possible implementation, the sending module 401 is specifically configured to send the address of the target debugging space to the register corresponding to the DMI interface if the address of the target debugging space is legal; if the address of the target debugging space is illegal, query the non-debugging space Whether the target debug space address exists in .
在一个可能的实施方式中,发送模块401,还用于若非调试空间中存在目标调试空间地址,则将非调试空间中的目标调试空间地址对应的非调试空间划分到调试空间中;将划分到调试空间中的非调试空间的地址发送给DMI接口对应的寄存器内。In a possible implementation, the sending module 401 is further configured to divide the non-debugging space corresponding to the target debugging space address in the non-debugging space into the debugging space if there is a target debugging space address in the non-debugging space; The address of the non-debugging space in the debugging space is sent to the register corresponding to the DMI interface.
在一个可能的实施方式中,发送模块401,还用于预先分配本地存储空间,其中,本地存储空间用于存储调试数据;将本地存储空间的地址映射到DMI接口。In a possible implementation, 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 map the address of the local storage space to the DMI interface.
在一个可能的实施方式中,接收模块402,具体用于若固态硬盘的调试空间中存在目标调试空间地址,则检测结果为目标调试空间地址合法;若固态硬盘的调试空间中不存在目标调试空间地址,则检测结果为目标调试空间地址不合法。In a possible implementation manner, the receiving module 402 is specifically configured to: if there is a target debugging space address in the debugging space of the solid-state hard disk, the detection result is that the address of the target debugging space is legal; if there is no target debugging space in the debugging space of the solid-state hard disk address, the detection result is that the address of the target debugging space is illegal.
在一个可能的实施方式中,获取存储模块403,具体用于接收寄存器通过DMI接口反馈的目标调试空间内存储的全部数据,将全部数据存储到本地存储空间中。In a possible implementation manner, the acquiring storage module 403 is specifically configured to receive all the data stored in the target debugging space fed back by the register through the DMI interface, and store all the data in the local storage space.
在一个可能的实施方式中,获取存储模块403,还用于若本地存储空间不满足存储全部数据,则对本地存储空间进行扩容操作,以使本地存储空间足以存储全部数据为止。In a possible implementation manner, the acquiring storage module 403 is further configured to expand the local storage space until the local storage space is sufficient to store all the data if the local storage space is insufficient to store all the data.
在一个可能的实施方式中,访问模块404,具体用于基于全部数据对固态硬盘进行调试。In a possible implementation manner, the access module 404 is specifically configured to debug the solid state disk based on all data.
本实施例提供的固态硬盘调试空间的访问装置可以是如图4中所示的固态硬盘调试空间的访问装置,可执行如图2-3中固态硬盘调试空间的访问方法的所有步骤,进而实现图2-3所示固态硬盘调试空间的访问方法的技术效果,具体请参照图2-3相关描述,为简洁描述,在此不作赘述。The device for accessing the debugging space of the solid-state hard disk provided in this embodiment may be the device for accessing the debugging space of the solid-state hard disk as shown in FIG. For the technical effect of the access method of the debugging space of the solid-state hard disk shown in Figure 2-3, please refer to the relevant description in Figure 2-3 for details, which is not described here for brevity.
图5为本申请实施例提供的一种计算机设备的结构示意图,图5所示的计算机设备500包括:至少一个处理器501、存储器502、至少一个网络接口504和其他用户接口503。计算机设备500中的各个组件通过总线系统505耦合在一起。可理解,总线系统505用于实现这些组件之间的连接通信。总线系统505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统505。FIG. 5 is a schematic structural diagram of a computer device provided by an embodiment of the present application. 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 . Various components in computer device 500 are coupled together by bus system 505 . It can be understood that the bus system 505 is used to realize connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 505 in FIG. 5 .
其中,用户接口503可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Wherein, the user interface 503 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball (trackball), a touch panel, or a touch screen, and the like.
可以理解,本申请实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本文描述的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 502 in the embodiment of the present application may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The 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 (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM, SLDRAM ) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
在一些实施方式中,存储器502存储了如下的元素,可执行单元或者数据结构,或者他 们的子集,或者他们的扩展集:操作系统5021和应用程序5022。In some implementations, the memory 502 stores the following elements, executable units or data structures, or their subsets, or their extended sets: an operating system 5021 and an application program 5022.
其中,操作系统5021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序5022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本申请实施例方法的程序可以包含在应用程序5022中。Among them, the operating system 5021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing tasks based on hardware. The application program 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to realize various application services. The program for implementing the method of the embodiment of the present application may be included in the application program 5022 .
在本申请实施例中,通过调用存储器502存储的程序或计算机可读指令,具体的,可以是应用程序5022中存储的程序或计算机可读指令,处理器501用于执行各方法实施例所提供的方法步骤,例如包括:In this embodiment of the application, by calling the program or computer-readable instruction stored in the memory 502, specifically, the program or computer-readable instruction stored in the application program 5022, the processor 501 is used to execute the method provided by each method embodiment. The method steps include, for example:
发送调试空间访问指令到固态硬盘,其中,访问指令中携带有待访问的目标调试空间地址;接收固态硬盘反馈的检测目标调试空间地址的合法性的检测结果;若检测结果为目标调试空间地址合法,则获取固态硬盘通过DMI接口反馈的目标调试空间内存储的全部数据,将全部数据存储到预设的本地存储空间中;对本地存储空间中的全部数据进行访问。Send the debugging space access command to the solid-state hard disk, wherein the access command carries the address of the target debugging space to be accessed; receive the detection result of the validity of the target debugging space address fed back by the solid-state hard disk; if the detection result is that the target debugging space address is legal, Then obtain all the data stored in the target debugging space fed back by the solid state disk through the DMI interface, store all the data in the preset local storage space; and access all the data in the local storage space.
在一个可能的实施方式中,预先分配本地存储空间,其中,本地存储空间用于存储调试数据;将本地存储空间的地址映射到DMI接口。In a possible implementation manner, a local storage space is allocated in advance, where the local storage space is used to store debugging data; and an address of the local storage space is mapped to a DMI interface.
在一个可能的实施方式中,若固态硬盘的调试空间中存在目标调试空间地址,则检测结果为目标调试空间地址合法;若固态硬盘的调试空间中不存在目标调试空间地址,则检测结果为目标调试空间地址不合法。In a possible implementation, if the target debugging space address exists in the debugging space of the solid-state hard disk, the detection result is that the target debugging space address is legal; if there is no target debugging space address in the solid-state hard disk debugging space, the detection result is the target debugging space address. The debug space address is invalid.
在一个可能的实施方式中,若目标调试空间地址合法,则将目标调试空间地址发送给DMI接口对应的寄存器内;若目标调试空间地址不合法,则查询非调试空间中是否存在目标调试空间地址。In a possible implementation, if the address of the target debugging space is legal, the address of the target debugging space is sent to the register corresponding to the DMI interface; if the address of the target debugging space is illegal, then query whether there is an address of the target debugging space in the non-debugging space .
在一个可能的实施方式中,若非调试空间中存在目标调试空间地址,则将非调试空间中的目标调试空间地址对应的非调试空间划分到调试空间中;将划分到调试空间中的非调试空间的地址发送给DMI接口对应的寄存器内。In a possible implementation, if there is a target debug space address in the non-debug space, then the non-debug space corresponding to the target debug space address in the non-debug space is divided into the debug space; The address is sent to the register corresponding to the DMI interface.
在一个可能的实施方式中,接收寄存器通过DMI接口反馈的目标调试空间内存储的全部数据,将全部数据存储到本地存储空间中。In a possible implementation manner, all the data stored in the target debugging space fed back by the receiving register through the DMI interface is stored in the local storage space.
在一个可能的实施方式中,若本地存储空间不满足存储全部数据,则对本地存储空间进行扩容操作,以使本地存储空间足以存储全部数据为止。In a possible implementation, if the local storage space is not sufficient to store all the data, the local storage space is expanded until the local storage space is sufficient to store all the data.
在一个可能的实施方式中,基于全部数据对固态硬盘进行调试。In a possible implementation manner, the solid state disk is debugged based on all data.
上述本申请实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤 可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件单元组合执行完成。软件单元可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments 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 and has signal processing capability. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 501 or an instruction in the form of software. The above-mentioned 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), a ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. 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 directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software units in the decoding processor. The software unit may be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. 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 above method in combination with its hardware.
可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请功能的其它电子单元或其组合中。It should be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSPDevice, DSPD), programmable logic Equipment (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions of this application or in its combination.
对于软件实现,可通过执行本文功能的单元来实现本文的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques herein may be implemented by units that perform the functions herein. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.
本实施例提供的计算机设备可以是如图5中所示的计算机设备,可执行如图2-3中固态硬盘调试空间的访问方法的所有步骤,进而实现图2-3所示固态硬盘调试空间的访问方法的技术效果,具体请参照图2-3相关描述,为简洁描述,在此不作赘述。The computer device provided by this embodiment may be the computer device as shown in Figure 5, which can execute all the steps of the access method of the solid-state hard disk debugging space in Figure 2-3, and then realize the solid-state hard disk debugging space shown in Figure 2-3 For the technical effect of the access method, please refer to the related descriptions in FIG.
本申请实施例还提供了一个或多个存储有计算机可读指令的非易失性计算机可读存储介质。这里的存储介质存储有一个或者多个计算机可读指令。其中,存储介质可以包括易失性存储器,例如随机存取存储器;存储器也可以包括非易失性存储器,例如只读存储器、快闪存储器、硬盘或固态硬盘;存储器还可以包括上述种类的存储器的组合。The embodiment of the present application also provides one or more non-volatile computer-readable storage media storing computer-readable instructions. Here, the storage medium stores one or more computer-readable instructions. Wherein, the storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state disk; the memory may also include the above-mentioned types of memory combination.
当存储介质中一个或者多个计算机可读指令可被一个或者多个处理器执行,以实现上述在计算机设备侧执行的固态硬盘调试空间的访问方法。When one or more computer-readable instructions in the storage medium can be executed by one or more processors, the method for accessing the debugging space of the solid-state hard disk executed on the computer device side is realized.
处理器用于执行存储器中存储的固态硬盘调试空间的访问程序,以实现以下在计算机设备侧执行的固态硬盘调试空间的访问方法的步骤:The processor is used to execute the access program of the debugging space of the solid-state hard disk stored in the memory, so as to realize the following steps of the method for accessing the debugging space of the solid-state hard disk executed on the computer device side:
发送调试空间访问指令到固态硬盘,其中,访问指令中携带有待访问的目标调试空间地 址;接收固态硬盘反馈的检测目标调试空间地址的合法性的检测结果;若检测结果为目标调试空间地址合法,则获取固态硬盘通过DMI接口反馈的目标调试空间内存储的全部数据,将全部数据存储到预设的本地存储空间中;对本地存储空间中的全部数据进行访问。Send the debugging space access command to the solid-state hard disk, wherein the access command carries the address of the target debugging space to be accessed; receive the detection result of the validity of the target debugging space address fed back by the solid-state hard disk; if the detection result is that the target debugging space address is legal, Then obtain all the data stored in the target debugging space fed back by the solid state disk through the DMI interface, store all the data in the preset local storage space; and access all the data in the local storage space.
在一个可能的实施方式中,预先分配本地存储空间,其中,本地存储空间用于存储调试数据;将本地存储空间的地址映射到DMI接口。In a possible implementation manner, a local storage space is allocated in advance, where the local storage space is used to store debugging data; and an address of the local storage space is mapped to a DMI interface.
在一个可能的实施方式中,若固态硬盘的调试空间中存在目标调试空间地址,则检测结果为目标调试空间地址合法;若固态硬盘的调试空间中不存在目标调试空间地址,则检测结果为目标调试空间地址不合法。In a possible implementation, if the target debugging space address exists in the debugging space of the solid-state hard disk, the detection result is that the target debugging space address is legal; if there is no target debugging space address in the solid-state hard disk debugging space, the detection result is the target debugging space address. The debug space address is invalid.
在一个可能的实施方式中,若目标调试空间地址合法,则将目标调试空间地址发送给DMI接口对应的寄存器内;若目标调试空间地址不合法,则查询非调试空间中是否存在目标调试空间地址。In a possible implementation, if the address of the target debugging space is legal, the address of the target debugging space is sent to the register corresponding to the DMI interface; if the address of the target debugging space is illegal, then query whether there is an address of the target debugging space in the non-debugging space .
在一个可能的实施方式中,若非调试空间中存在目标调试空间地址,则将非调试空间中的目标调试空间地址对应的非调试空间划分到调试空间中;将划分到调试空间中的非调试空间的地址发送给DMI接口对应的寄存器内。In a possible implementation, if there is a target debug space address in the non-debug space, then the non-debug space corresponding to the target debug space address in the non-debug space is divided into the debug space; The address is sent to the register corresponding to the DMI interface.
在一个可能的实施方式中,接收寄存器通过DMI接口反馈的目标调试空间内存储的全部数据,将全部数据存储到本地存储空间中。In a possible implementation manner, all the data stored in the target debugging space fed back by the receiving register through the DMI interface is stored in the local storage space.
在一个可能的实施方式中,若本地存储空间不满足存储全部数据,则对本地存储空间进行扩容操作,以使本地存储空间足以存储全部数据为止。In a possible implementation, if the local storage space is not sufficient to store all the data, the local storage space is expanded until the local storage space is sufficient to store all the data.
在一个可能的实施方式中,基于全部数据对固态硬盘进行调试。In a possible implementation manner, the solid state disk is debugged based on all data.
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Professionals should further realize that the units and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the relationship between hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
以上的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明, 所应理解的是,以上仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The specific implementation above has further described the purpose, technical solutions and beneficial effects of the application in detail. It should be understood that the above is only a specific implementation of the application and is not used to limit the scope of protection of the application. Within the spirit and principles of this application, any modifications, equivalent replacements, improvements, etc., shall be included within the protection scope of this application.

Claims (20)

  1. 一种固态硬盘调试空间的访问方法,其特征在于,包括:A method for accessing a debugging space of a solid-state hard disk, characterized in that, comprising:
    发送调试空间访问指令到固态硬盘,其中,所述访问指令中携带有待访问的目标调试空间地址;Send a debug space access command to the solid state disk, wherein the access command carries the address of the target debug space to be accessed;
    接收所述固态硬盘反馈的检测所述目标调试空间地址的合法性的检测结果;Receiving the detection result of detecting the legality of the target debugging space address fed back by the solid-state hard disk;
    响应于所述检测结果为所述目标调试空间地址合法,获取所述固态硬盘通过DMI接口反馈的目标调试空间内存储的全部数据,将所述全部数据存储到预设的本地存储空间中;和In response to the detection result being that the address of the target debugging space is legal, obtaining all the data stored in the target debugging space fed back by the solid-state hard disk through the DMI interface, and storing the all data in a preset local storage space; and
    对所述本地存储空间中的全部数据进行访问。All data in the local storage space is accessed.
  2. 根据权利要求1所述的方法,其特征在于,所述发送调试空间访问指令到固态硬盘之前,所述方法还包括:The method according to claim 1, wherein before sending the debugging 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 to store debugging data; and
    将所述本地存储空间的地址映射到所述DMI接口。and mapping the address of the local storage space to the DMI interface.
  3. 根据权利要求2所述的方法,其特征在于,所述接收所述固态硬盘反馈的检测所述目标调试空间地址的合法性的检测结果,包括:The method according to claim 2, wherein the detection result of receiving the feedback of the solid-state hard disk to detect the validity of the address of the target debugging space comprises:
    响应于所述固态硬盘的调试空间中存在所述目标调试空间地址,所述检测结果为所述目标调试空间地址合法;和In response to the presence of the target debugging space address in the debugging space of the solid state disk, the detection result is that the target debugging space address is legal; and
    响应于所述固态硬盘的调试空间中不存在所述目标调试空间地址,所述检测结果为所述目标调试空间地址不合法。In response to the fact that 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 invalid.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, characterized in that the method further comprises:
    响应于所述目标调试空间地址合法,将所述目标调试空间地址发送给所述DMI接口对应的寄存器内;和In response to the legality of the target debugging space address, sending the target debugging space address to a register corresponding to the DMI interface; and
    响应于所述目标调试空间地址不合法,查询非调试空间中是否存在所述目标调试空间地址。In response to the illegal address of the target debugging space, query whether the address of the target debugging space exists in the non-debugging space.
  5. 根据权利要求4所述的方法,其特征在于,所述查询非调试空间中是否存在所述目标调试空间地址,包括:The method according to claim 4, wherein the querying whether the address of the target debugging space exists in the non-debugging space comprises:
    采用PBL不合法命令对接非调试空间;和Use PBL illegal commands to connect to non-debugging space; and
    通过所述PBL不合法命令查询非调试空间内是否存在调试空间访问指令中携带的目标调试空间地址。Query whether the target debug space address carried in the debug space access instruction exists in the non-debug space through the illegal PBL command.
  6. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, characterized in that the method further comprises:
    响应于所述非调试空间中存在所述目标调试空间地址,将所述非调试空间中的所述 目标调试空间地址对应的非调试空间划分到调试空间中;和In response to the presence of the target debug space address in the non-debug space, divide the non-debug space corresponding to the target debug space address in the non-debug space into a debug space; and
    将划分到调试空间中的非调试空间的地址发送给所述DMI接口对应的寄存器内。Send the address of the non-debugging space divided into the debugging space to the register corresponding to the DMI interface.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, further comprising:
    响应于未在非调试空间内查询到调试空间访问指令中携带的目标调试空间地址,直接反馈调试空间访问指令非法的告警信息。In response to the fact that the target debug space address carried in the debug space access instruction is not found in the non-debug space, the warning information that the debug space access instruction is illegal is directly fed back.
  8. 根据权利要求4或6任一所述的方法,其特征在于,所述获取所述固态硬盘通过DMI接口反馈的目标调试空间内存储的全部数据,将所述全部数据存储到预设的本地存储空间中,包括:The method according to any one of claims 4 or 6, characterized in that the acquisition of all data stored in the target debugging space fed back by the solid-state hard drive through the DMI interface, and storing all the data in a preset local storage space, including:
    接收所述寄存器通过所述DMI接口反馈的目标调试空间内存储的全部数据,将所述全部数据存储到本地存储空间中。receiving all the data stored in the target debugging space fed back by the register through the DMI interface, and storing the all data in the local storage space.
  9. 根据权利要求2所述的方法,其特征在于,所述本地存储空间包括BAR2空间和BAR3空间,所述将所述本地存储空间的地址映射到所述DMI接口,包括:The method according to claim 2, wherein the local storage space includes BAR2 space and BAR3 space, and mapping the address of the local storage space to the DMI interface includes:
    将BAR2空间和BAR3空间的地址分别映射到所述DMI接口。The addresses of the BAR2 space and the BAR3 space are respectively mapped to the DMI interface.
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method according to claim 9, characterized in that the method further comprises:
    对所述BAR2空间设置第一存储阈值;和setting a first storage threshold for the BAR2 space; and
    对所述BAR3空间设置第二存储阈值。Set a second storage threshold for the BAR3 space.
  11. 根据权利要求10所述的方法,其特征在于,所述第一存储阈值为4M。The method according to claim 10, wherein the first storage threshold is 4M.
  12. 根据权利要求10所述的方法,其特征在于,所述第二存储阈值为4M。The method according to claim 10, wherein the second storage threshold is 4M.
  13. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    响应于所述本地存储空间不满足存储所述全部数据,对所述本地存储空间进行扩容操作,以使所述本地存储空间足以存储所述全部数据为止。In response to the fact that the local storage space is not sufficient to store all the data, an expansion operation is performed on the local storage space until the local storage space is sufficient to store all the data.
  14. 根据权利要求1所述的方法,其特征在于,所述对所述本地存储空间中的全部数据进行访问之后,所述方法还包括:The method according to claim 1, wherein after accessing all the data in the local storage space, the method further comprises:
    基于所述全部数据对所述固态硬盘进行调试。The solid-state hard disk is debugged based on the whole data.
  15. 根据权利要求1所述的方法,其特征在于,所述发送调试空间访问指令到固态硬盘之前,所述方法还包括:The method according to claim 1, wherein before sending the debugging space access instruction to the solid state disk, the method further comprises:
    通过PCIE通道连接固态硬盘;Connect the solid-state hard disk through the PCIE channel;
    所述发送调试空间访问指令到固态硬盘,包括:The sending debugging space access command to the solid-state hard disk includes:
    通过所述PCIE通道发送调试空间访问指令到固态硬盘。Send the debug space access instruction to the solid state disk through the PCIE channel.
  16. 根据权利要求1所述的方法,其特征在于,所述固态硬盘将所述目标调试空间地址发送给DMI模块,所述DMI模块获取所述目标调试空间内的全部数据并通过DMI接 口将所述全部数据进行反馈。The method according to claim 1, wherein the solid-state disk sends the address of the target debugging space to a DMI module, and the DMI module obtains all data in the target debugging space and transmits the address of the target debugging space through a DMI interface. All data are returned.
  17. 根据权利要求1所述的方法,其特征在于,所述调试空间访问指令为PBL命令。The method according to claim 1, wherein the debug space access command is a PBL command.
  18. 一种固态硬盘调试空间的访问装置,其特征在于,包括:A device for accessing a debugging space of a solid-state hard disk, characterized in that it comprises:
    发送模块,用于发送调试空间访问指令到固态硬盘,其中,所述访问指令中携带有待访问的目标调试空间地址;A sending module, configured to send a debug space access command to a solid state disk, wherein the access command carries an address of a target debug space to be accessed;
    接收模块,用于接收所述固态硬盘反馈的检测所述目标调试空间地址的合法性的检测结果;A receiving module, configured to receive a detection result fed back by the solid-state hard disk to detect the validity of the address of the target debugging space;
    获取存储模块,用于若所述检测结果为所述目标调试空间地址合法,则获取所述固态硬盘通过DMI接口反馈的目标调试空间内存储的全部数据,将所述全部数据存储到预设的本地存储空间中;和Obtaining a storage module, used to obtain all data stored in the target debugging space fed back by the solid state disk through the DMI interface if the detection result is that the address of the target debugging space is legal, and store all the data in the preset in local storage; and
    访问模块,用于对所述本地存储空间中的全部数据进行访问。An access module, configured to access all data in the local storage space.
  19. 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行如权利要求1-17所述方法的步骤。A computer device comprising a memory and one or more processors, the memory storing computer-readable instructions that, when executed by the one or more processors, cause the one or more A processor executes the steps of the method according to claims 1-17.
  20. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如权利要求1-17所述方法的步骤。One or more non-transitory computer-readable storage media storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the The steps of the methods described in 1-17.
PCT/CN2022/122336 2021-11-18 2022-09-28 Method and apparatus for accessing debugging space of solid state disk WO2023087941A1 (en)

Applications Claiming Priority (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
CN202111372765.4 2021-11-18

Publications (1)

Publication Number Publication Date
WO2023087941A1 true WO2023087941A1 (en) 2023-05-25

Family

ID=80479707

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/122336 WO2023087941A1 (en) 2021-11-18 2022-09-28 Method and apparatus for accessing debugging space of solid state disk

Country Status (2)

Country Link
CN (1) CN114168073B (en)
WO (1) WO2023087941A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032897A (en) * 2018-08-01 2018-12-18 浪潮电子信息产业股份有限公司 Data dispatching method, host and solid state hard disk
CN110299180A (en) * 2019-07-08 2019-10-01 深圳忆联信息系统有限公司 Debugging message output method, device and computer equipment based on solid state hard disk
CN111752779A (en) * 2020-06-12 2020-10-09 苏州浪潮智能科技有限公司 Hard disk performance test optimization method and device
CN114168073A (en) * 2021-11-18 2022-03-11 苏州浪潮智能科技有限公司 Access method and device for solid state disk debugging space

Family Cites Families (4)

* Cited by examiner, † Cited by third party
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
CN109697037A (en) * 2019-01-22 2019-04-30 深圳忆联信息系统有限公司 Save method, apparatus, computer equipment and the storage medium of local DRAM
CN110781107B (en) * 2019-09-16 2021-06-11 北京领芯迅飞科技有限公司 Low-delay fusion IO control method and device based on DRAM interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032897A (en) * 2018-08-01 2018-12-18 浪潮电子信息产业股份有限公司 Data dispatching method, host and solid state hard disk
CN110299180A (en) * 2019-07-08 2019-10-01 深圳忆联信息系统有限公司 Debugging message output method, device and computer equipment based on solid state hard disk
CN111752779A (en) * 2020-06-12 2020-10-09 苏州浪潮智能科技有限公司 Hard disk performance test optimization method and device
CN114168073A (en) * 2021-11-18 2022-03-11 苏州浪潮智能科技有限公司 Access method and device for solid state disk debugging space

Also Published As

Publication number Publication date
CN114168073A (en) 2022-03-11
CN114168073B (en) 2023-08-29

Similar Documents

Publication Publication Date Title
US10261906B2 (en) Data accessing method and apparatus
KR101903834B1 (en) Method and host device for assessing execution of trim commands
TWI692690B (en) Method for accessing flash memory module and associated flash memory controller and electronic device
US20050182893A1 (en) Controller for controlling nonvolatile memory
TWI592799B (en) Mapping table updating method, memory control circuit unit and memory storage device
US20190340132A1 (en) Flushing pages from solid-state storage device
US11886333B2 (en) Memory block reclamation method and apparatus
WO2023087941A1 (en) Method and apparatus for accessing debugging space of solid state disk
US20150301917A1 (en) Memory Monitoring Method and Related Apparatus
CN109144422A (en) A kind of data writing method of solid state hard disk, device, equipment and storage medium
TW201917578A (en) Method for accessing flash memory module and associated flash memory controller and electronic device
CN108628760B (en) Method and device for atomic write command
WO2020103468A1 (en) Flash memory-based information garbage processing method, solid state disk, and storage device
WO2015058641A1 (en) Hybrid hard disk implementation method and device
CN108628761B (en) Atomic command execution method and device
CN111026678B (en) Cache design method and device based on solid state disk and computer equipment
CN110865945B (en) Extended address space for memory devices
CN110515861B (en) Memory device for processing flash command and method thereof
TWI697778B (en) A data storage device and a data processing method
CN109582523B (en) Method and system for effectively analyzing performance of NVMe (network video recorder) module at front end of SSD (solid State drive)
CN107977282B (en) Method and device for reading data page by SPI-Nand
CN112000591A (en) SSD (solid State disk) scanning method and device capable of appointing logical block address, computer equipment and storage medium
US20200057570A1 (en) Method and flash memory controller capable of avoiding inefficient memory block swap or inefficient garbage collection
CN111221605B (en) Method and device for controlling Windows host based on RDP protocol
US11663065B2 (en) SCSI command set for error history logging in a memory system and operating method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22894479

Country of ref document: EP

Kind code of ref document: A1