Information processing method and electronic device

By using programmable logic chips to cache and determine access requests of serial peripheral interface chips in electronic devices, the problem of irregular access when multiple subsystems share serial peripheral interface chips is solved, and security issues and crash failures are avoided. Improved system security and signal quality.

CN113111017BActive Publication Date: 2024-09-17LENOVO (BEIJING) LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202110315899.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-24
Publication Date
2024-09-17
Estimated Expiration
2041-03-24

AI Technical Summary

Technical Problem

In electronic equipment, when multiple subsystems share a serial peripheral interface chip, access does not follow the agreed access space, leading to security issues and crash failures.

Method used

After receiving the access request through the programmable logic chip, the request is cached to the internal storage area, the access permission is determined, and the access request is processed based on the permission, thereby standardizing access to the serial peripheral interface chip.

Benefits of technology

Potential security issues and crash failures are avoided, correct access to legitimate requests for serial peripheral interface chips is achieved, wiring complexity and noise are reduced, and signal quality and security are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113111017B
    Figure CN113111017B
Patent Text Reader

Abstract

The embodiment of the present application discloses an information processing method, the method comprising: if a programmable logic chip receives an access request to a serial peripheral interface chip, caching the access request to an internal storage area of ​​the programmable logic chip through the programmable logic chip; determining the access permission corresponding to the access request through the programmable logic chip, and processing the access request based on the access permission. The embodiment of the present application also discloses an electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to but is not limited to the field of computer technology, and in particular to an information processing method and electronic device. Background Art

[0002] At present, multiple subsystems in electronic devices share a Serial Peripheral Interface (SPI) chip. Although the access space of each subsystem is agreed upon, in the actual access process, there is a phenomenon that the access is not performed according to the agreed access space, which will inevitably cause security problems and crash failures. Summary of the invention

[0003] The embodiments of the present application are intended to provide an information processing method and an electronic device.

[0004] The technical solution of this application is implemented as follows:

[0005] An information processing method, the method comprising:

[0006] If the programmable logic chip receives an access request to the serial peripheral interface chip, the programmable logic chip caches the access request to an internal storage area of ​​the programmable logic chip;

[0007] The programmable logic chip determines the access permission corresponding to the access request, and processes the access request based on the access permission.

[0008] An electronic device, comprising: a programmable logic chip and a serial peripheral interface chip; wherein:

[0009] The programmable logic chip is connected to the serial peripheral interface chip;

[0010] The programmable logic chip is used to cache an access request to the serial peripheral interface chip in an internal storage area of ​​the programmable logic chip if the access request is received;

[0011] The programmable logic chip is used to determine the access permission corresponding to the access request and process the access request based on the access permission.

[0012] An electronic device, comprising: a programmable logic chip and a memory;

[0013] The programmable logic chip is used to execute the information processing program stored in the memory to implement the steps of the above-mentioned information processing method.

[0014] A computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above-mentioned information processing method.

[0015] The information processing method and electronic device provided in the embodiments of the present application include: if the programmable logic chip receives an access request to the serial peripheral interface chip, the access request is cached to the internal storage area of ​​the programmable logic chip through the programmable logic chip; the access rights corresponding to the access request are determined through the programmable logic chip, and the access request is processed based on the access rights; that is, the information processing method provided in the present application first caches the received access request through the programmable logic chip, further determines the access rights of the access request, and finally performs corresponding processing on the access request based on the determination result, thereby standardizing the access to the serial peripheral interface chip and avoiding potential security issues and crash failures to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A flowchart of an information processing method provided in an embodiment of the present application;

[0017] Figure 2 A flowchart of another information processing method provided in an embodiment of the present application;

[0018] Figure 3 A schematic diagram of a scenario in which an electronic device processes an access request according to an embodiment of the present application;

[0019] Figure 4 A flowchart of another information processing method provided in an embodiment of the present application;

[0020] Figure 5 A flowchart of an information processing method provided for another embodiment of the present application;

[0021] Figure 6 A schematic diagram of a scenario for locating a fault in an electronic device provided in an embodiment of the present application;

[0022] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] 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.

[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0025] The embodiment of the present application provides an information processing method, which is applied to an electronic device, referring to Figure 1 As shown, the method comprises the following steps:

[0026] Step 101: If the programmable logic chip receives an access request to the serial peripheral interface chip, the programmable logic chip caches the access request to an internal storage area of ​​the programmable logic chip.

[0027] In the embodiments of the present application, the programmable logic chip includes but is not limited to a Field Programmable Gate Array (FPGA) chip, an Application Specific Integrated Circuit (ASIC) chip, and an Advanced RISC Machines (ARM) chip.

[0028] The electronic device includes mobile terminal devices such as mobile phones, tablet computers, laptop computers, personal digital assistants (PDAs), cameras, fixed terminal devices such as desktop computers, and servers. The electronic device includes a programmable logic chip, a serial peripheral interface (SPI) chip connected to the programmable logic chip, and at least two subsystems connected to the SPI chip, and the subsystem is also connected to the programmable logic chip. It can be understood that the subsystems of the electronic device can assist / interact with each other, the subsystem can also assist the operating system, and the subsystem and the programmable logic chip can also assist / interact with each other to realize the information processing method provided in the present application.

[0029] In an embodiment of the present application, the subsystem sends an access request to the serial peripheral interface chip to the programmable logic chip, and the electronic device caches the access request to the internal storage area of ​​the programmable logic chip through the programmable logic chip, so that the access request can be determined by the programmable logic chip, such as whether the access request is a legal request.

[0030] Step 102: Determine the access rights corresponding to the access request through the programmable logic chip, and process the access request based on the access rights.

[0031] In an embodiment of the present application, when the programmable logic chip caches the access request to the internal storage area of ​​the programmable logic chip, the programmable logic chip determines the access permission corresponding to the access request and processes the access request based on the access permission.

[0032] Exemplarily, the first subsystem sends a first access request to the serial peripheral interface chip to the programmable logic chip, and the second subsystem sends a second access request to the serial peripheral interface chip to the programmable logic chip. Further, if the first access request is determined to be a legitimate read-write request by the programmable logic chip, and it is determined that the first access request corresponds to the first access permission, the first access request is sent to the serial peripheral interface chip so that the serial peripheral interface chip responds to the first access request. If the second access request is determined not to be a legitimate read-write request by the programmable logic chip, and it is determined that the second access request does not have access permission, the serial peripheral interface chip is prohibited from responding to the second access request. Thus, it is realized that the programmable logic chip determines whether the sender of the request has access permission to the serial peripheral interface chip, and if so, access is allowed, and if not, access is denied; it can be seen that after the programmable logic chip receives the access request, the present application does not directly respond to the access request, but correctly processes the access request according to the verification result of the access request, thereby avoiding potential security issues and crash failures, and realizing correct access to legitimate requests.

[0033] The information processing method provided in the embodiment of the present application, if the programmable logic chip receives an access request to the serial peripheral interface chip, the access request is cached by the programmable logic chip to the internal storage area of ​​the programmable logic chip; the access rights corresponding to the access request are determined by the programmable logic chip, and the access request is processed based on the access rights; that is, the information processing method provided in the present application, the programmable logic chip first caches the received access request, further determines the access rights of the access request, and finally performs corresponding processing on the access request based on the determination result, thereby standardizing the access to the serial peripheral interface chip and avoiding potential security issues and crash failures to a certain extent.

[0034] The embodiment of the present application provides an information processing method, which is applied to an electronic device, referring to Figure 2 As shown, the method comprises the following steps:

[0035] Step 201: If the programmable logic chip receives an access request to the serial peripheral interface chip, the programmable logic chip caches the access request to an internal storage area of ​​the programmable logic chip.

[0036] Step 202: parse the access request through the programmable logic chip to obtain the addressing address and chip selection signal.

[0037] The chip select signal is used to indicate the subsystem that sends an access request among multiple subsystems connected to the serial peripheral interface chip.

[0038] In the embodiment of the present application, the multiple subsystems include but are not limited to: a baseboard management controller (Baseboard Manager Controller, BMC), an embedded controller (Embed Controller, EC), a basic input output system (Basic Input Output System, BIOS), and a south bridge (Platform Controller Hub, PCH).

[0039] Step 203: Determine, through the programmable logic chip, the access rights of the subsystem indicated by the chip select signal to the address space on the serial peripheral interface chip mapped by the addressing address.

[0040] Here, user A can perform storage planning on different address spaces on the serial peripheral interface chip to determine the address space accessible to each subsystem. The address space for storage planning can be pre-set or can be set in real time.

[0041] In the embodiment of the present application, after the access request is parsed by the programmable logic chip and the addressing address and the chip select signal are obtained, the subsystem indicated by the chip select signal, that is, the subsystem sending the access request, is determined by the programmable logic chip, and the access rights to the address space on the serial peripheral interface chip mapped by the addressing address. Here, the access rights include but are not limited to: allowing access, prohibiting access, and access rights for specific operations. The access rights for specific operations include but are not limited to: read-only, write-only, and read-write.

[0042] In a feasible scenario, taking the programmable logic chip implemented as an FPGA chip as an example, the FPGA is used to monitor the access requests sent by each subsystem by utilizing the nanosecond response characteristic of the FPGA, that is, the characteristic of almost real-time response. According to the configured storage plan, the FGPA maps the addressing of each subsystem to the storage space of the SPI chip corresponding to each subsystem in combination with the addressing address and the chip select (CS) signal, so as to achieve the purpose of security, independence and free access. In the related art, in order to avoid the phenomenon that when multiple subsystems share a SPI chip, the access is not performed according to the agreed access space, a separate SPI Chip storage is set for each subsystem, that is, one subsystem corresponds to one SPI Chip. This solution consumes additional space of the printed circuit board (PCB) in the electronic device. With the continuous miniaturization design demand of electronic equipment, this method faces increasing challenges. However, the present application performs storage planning for different address spaces on the SPI chip, and controls the access to the SPI Chip by each subsystem connected to the programmable logic chip through the programmable logic chip, and no longer sets a separate SPI Chip for each subsystem. Therefore, the number of wirings, wiring area and wiring layers on the PCB board are reduced during wiring, thereby reducing the crosstalk and noise between signals caused by the single-board wiring, improving the signal quality, and achieving safe isolation of illegal requests or attacks, saving the internal space occupied by the electronic device.

[0043] Step 204: Process the access request based on the access permission.

[0044] In the embodiment of the present application, step 204 processes the access request based on the access permission, and there are two processing methods:

[0045] Method 1: If the programmable logic chip determines that the subsystem indicated by the chip select signal has access rights to the address space, the programmable logic chip opens the multiplexer and sends the access request to the serial peripheral interface chip, so that the serial peripheral interface chip responds to the access request.

[0046] Here, the programmable logic chip determines that the subsystem sending the access request has access rights, and then controls the multiplexer to conduct the communication connection between the subsystem and the SPI chip, and sends the access request to the SPI chip, so that the SPI chip responds to the access request.

[0047] Method 2: If the programmable logic chip determines that the subsystem indicated by the chip select signal does not have the authority to access the address space, the programmable logic chip controls the multiplexer to be closed to prohibit the serial peripheral interface chip from responding to the access request.

[0048] Here, the programmable logic chip determines that the subsystem that sends the access request does not have access rights, and then controls the multiplexer to disconnect the communication connection between the subsystem and the SPI chip, thereby safely isolating illegal requests. In other words, if the programmable logic chip finds that the subsystem mistakenly addresses someone else's space, the programmable logic chip will turn off the multiplexer, thereby safely isolating illegal requests or attacks.

[0049] In some actual application scenarios, user B finds that some parts of the SPI chip are not protected. If the information processing method provided by this application is not adopted, user B can maliciously write some malicious code in the SPI chip to steal information. However, through the information processing method provided by this application, on the one hand, the physical isolation of the address space corresponding to each subsystem is realized in the SPI chip, and on the other hand, the legal access of each subsystem to the SPI chip is realized, which not only safely isolates illegal requests or attacks, but also improves the security of access.

[0050] Figure 3 A schematic diagram of a scenario in which an electronic device processes an access request provided in an embodiment of the present application. For ease of explanation, the structure of the electronic device 30 is introduced here. Figure 3As shown, the electronic device 30 includes a programmable logic chip 31, a multiplexer 32, a serial peripheral interface chip 33, an embedded controller 34, a baseboard management controller 35, and a south bridge 36; wherein the embedded controller 34, the baseboard management controller 35, and the south bridge 36 are all connected to the programmable logic chip 31, and the embedded controller 34, the baseboard management controller 35, and the south bridge 36 are respectively connected to the serial peripheral interface chip 33 through the multiplexer 32, and the programmable logic chip 31 is connected to the serial peripheral interface chip 33 through the multiplexer 32; in actual applications, when the embedded controller 34, the baseboard management controller 35, and the south bridge 36 need to access the address space on the serial peripheral interface chip 33, an access request is sent to the programmable logic chip 31, and the access request includes an addressing address and a chip select signal for indicating the sending of the access request. Exemplarily, the mirror image #1 corresponding to the south bridge, the mirror image #2 corresponding to the embedded controller, and the mirror image #3 corresponding to the baseboard management controller are written in different address spaces in the serial peripheral interface chip 33. Exemplarily, if the address space on the serial peripheral interface chip 33 mapped by the addressing address included in the access request sent by the embedded controller 34 is the address space corresponding to the mirror image #2 corresponding to the embedded controller, the programmable logic chip 31 opens the multiplexer 32 and sends the access request to the serial peripheral interface chip 33, so that the serial peripheral interface chip 33 responds to the access request. Exemplarily, if the address space on the serial peripheral interface chip 33 mapped by the addressing address included in the access request sent by the baseboard management controller 35 is the address space corresponding to the mirror image #2 corresponding to the embedded controller, the programmable logic chip 31 controls the multiplexer 32 to be closed. At this time, the access request cannot be delivered to the serial peripheral interface chip 33, avoiding potential security issues and crash failures.

[0051] It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.

[0052] The embodiment of the present application provides an information processing method, which is applied to an electronic device, referring to Figure 4 As shown, the method comprises the following steps:

[0053] Step 401: During the boot process, the subsystem started by the boot operating system is recorded through the programmable logic chip, and the checkpoint information and memory configuration information output during the boot and self-check phases.

[0054] Here, the subsystem that boots the operating system can be called a boot system, and the boot system includes but is not limited to BIOS, Unified Extensible Firmware Interface (UEFI), and Extensible Firmware Interface (EFI).

[0055] The current boot process of electronic devices includes: pressing the power button, booting the system, and entering the operating system. However, when an unexpected situation occurs during the boot system startup, such as a freeze or a black screen, the boot system is no longer able to respond, so it is impossible to locate the problem and troubleshoot. This application utilizes the real-time response characteristics of programmable logic chips to timely record the checkpoint information and memory configuration information output by the boot system during the boot and self-check stages, and uses it as a reference factor for locating problems and troubleshooting.

[0056] Step 402: If a startup failure occurs in the subsystem that boots the operating system, a fault diagnosis result is determined by the programmable logic chip based on the recorded checkpoint information and / or memory configuration information.

[0057] In some embodiments, if the boot system no longer outputs checkpoint information, it is determined that a boot failure occurs in the subsystem started by the boot operating system. Once a boot failure occurs in the subsystem started by the boot operating system, a fault diagnosis result is determined by the programmable logic chip based on the recorded checkpoint information and / or memory configuration information to accurately locate the fault.

[0058] In the embodiment of the present application, in step 402, if a boot failure occurs in the subsystem started by the boot operating system, the programmable logic chip determines the fault diagnosis result based on the recorded checkpoint information and / or memory configuration information, which can be done by Figure 5 The steps shown achieve:

[0059] Step 4021: If a boot failure occurs in the subsystem booting the operating system, the checkpoint information is compared with the pre-stored checkpoint information through the programmable logic chip, and / or the memory configuration information is compared with the pre-stored memory configuration information through the programmable logic chip to obtain a comparison result.

[0060] The pre-stored checkpoint information and pre-stored memory configuration information are stored in the internal storage area. The pre-stored checkpoint information and pre-stored memory configuration information include pre-set checkpoint information and pre-set memory configuration information; and / or the checkpoint information and memory configuration information of the most recent successful startup.

[0061] In the embodiment of the present application, in the process of locating the fault through the programmable logic chip, at least one of the checkpoint information and the memory configuration information is used as a reference factor for fault location, and the real-time detected information is compared with the pre-stored information. Here, when comparing, the programmable logic chip can compare the information output by the boot system obtained in real time with the information that should be output under the preset normal startup or the information of the most recent successful startup to obtain the fault diagnosis result.

[0062] Step 4022: Determine the fault diagnosis result based on the comparison result through the programmable logic chip.

[0063] In the first feasible scenario, after determining the fault diagnosis result based on the comparison result by the programmable logic chip in step 4022, the following step may be performed: repairing the fault associated with the fault diagnosis result by the programmable logic chip.

[0064] That is to say, when a fault is located through a programmable logic chip, the fault associated with the fault diagnosis result can be repaired through the programmable logic chip, thereby automatically and quickly repairing the fault.

[0065] In the second possible scenario, if a boot failure occurs in the subsystem that boots the operating system in step 402, after the programmable logic chip determines the fault diagnosis result based on the recorded checkpoint information and / or memory configuration information, the following steps may be performed:

[0066] First, the fault diagnosis result is outputted through an output device connected to the programmable logic chip.

[0067] Here, the output state of the output device is different when it outputs different fault diagnosis results.

[0068] Secondly, a repair event for the fault associated with the fault diagnosis result is obtained, and the fault is repaired based on the repair event.

[0069] The programmable logic chip is connected to an external output device, which can output the fault diagnosis result so that the user can know the fault and then manually repair the fault. Exemplarily, the output device includes but is not limited to a display module and a light emitting diode (LED). Furthermore, when the output device is an LED, a plurality of LEDs of different colors can be set. When LEDs of different colors light up, they correspond to different faults. The correspondence between LEDs of specific colors and faults can be preset. When the output device is a display module, the fault diagnosis result can be displayed through the display module. Exemplarily, the fault diagnosis result is recorded in the form of a log.

[0070] Step 403: If the programmable logic chip receives an access request to the serial peripheral interface chip, the programmable logic chip caches the access request to an internal storage area of ​​the programmable logic chip.

[0071] Step 404: Determine the access rights corresponding to the access request through the programmable logic chip, and process the access request based on the access rights.

[0072] It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.

[0073] Figure 6 The schematic diagram of the scene of locating a fault of an electronic device provided in the embodiment of the present application, for the convenience of explanation, the structure of the electronic device 50 is introduced here, see Figure 6 As shown, the electronic device 50 includes a programmable logic chip 51, a processor 52, a memory 53, a light emitting diode 54, and a queue serial peripheral interface 55; wherein the programmable logic chip 51 is connected to the processor 52, the memory 53, the light emitting diode 54, and the queue serial peripheral interface 55 respectively; in actual application, during the boot process, the programmable logic chip 51 monitors the checkpoint information and memory configuration information output by the processor 52 in real time. The processor 52 can provide checkpoint information through the system management bus (System Management Bus, SMBus), and the programmable logic chip 51 obtains and records the checkpoint information and memory configuration information output by the subsystem started by the boot operating system during the boot and self-check phases through the SMBus, thereby monitoring the system startup process; if the subsystem started by the boot operating system has a boot failure, such as the boot system no longer outputs checkpoint information, the programmable logic chip 51 determines the fault diagnosis result based on the recorded checkpoint information and / or the memory configuration information; for example, the programmable logic chip 51 analyzes and compares the data obtained in real time with the expected or most recent successful startup data to obtain the fault diagnosis result. Furthermore, the fault diagnosis result is outputted through the light emitting diode 54 connected to the programmable logic chip 51. For example, if there are multiple light emitting diodes 54 and two of them are lit, it indicates that a graphics card of the electronic device fails during the boot process.

[0074] The embodiment of the present application provides an electronic device, which can be applied to Figure 1 , 2 In an information processing method provided in the embodiment corresponding to 4, referring to Figure 7 As shown, the electronic device 60 includes:

[0075] Programmable logic chip 61 and serial peripheral interface chip 62; wherein,

[0076] The programmable logic chip 61 is connected to the serial peripheral interface chip 62;

[0077] The programmable logic chip 61 is used to cache the access request to the internal storage area of ​​the programmable logic chip 62 if an access request to the serial peripheral interface chip 62 is received;

[0078] The programmable logic chip 61 is also used to determine the access rights corresponding to the access request and process the access request based on the access rights.

[0079] In other embodiments of the present application, the electronic device further includes a plurality of subsystems ( Figure 6 (not shown in the figure), the programmable logic chip 61 is also used to parse the access request to obtain the addressing address and the chip select signal; wherein the chip select signal is used to indicate the subsystem that sends the access request among the multiple subsystems connected to the serial peripheral interface chip; determine the access rights of the subsystem indicated by the chip select signal to the address space on the serial peripheral interface chip mapped by the addressing address.

[0080] In other embodiments of the present application, the programmable logic chip 61 is also used to open the multiplexer and send an access request to the serial peripheral interface chip if the programmable logic chip determines that the subsystem indicated by the chip select signal has access rights to access the address space, so that the serial peripheral interface chip responds to the access request.

[0081] In other embodiments of the present application, the programmable logic chip 61 is also used to control the multiplexer to close to prohibit the serial peripheral interface chip from responding to the access request if the programmable logic chip determines that the subsystem indicated by the chip select signal does not have the authority to access the address space.

[0082] In other embodiments of the present application, the programmable logic chip 61 is also used to record the subsystem started by the boot operating system, and the checkpoint information and memory configuration information output during the boot and self-test stages during the boot process; if a boot failure occurs in the subsystem started by the boot operating system, the fault diagnosis result is determined based on the recorded checkpoint information and / or memory configuration information.

[0083] In other embodiments of the present application, the programmable logic chip 61 is further used to compare the checkpoint information with the pre-stored checkpoint information, and / or compare the memory configuration information with the pre-stored memory configuration information, to obtain a comparison result if a boot failure occurs in a subsystem that boots the operating system; wherein the pre-stored checkpoint information and the pre-stored memory configuration information are stored in an internal storage area;

[0084] The programmable logic chip 61 is also used to determine the fault diagnosis result based on the comparison result.

[0085] In other embodiments of the present application, the programmable logic chip 61 is also used to repair faults associated with the fault diagnosis results.

[0086] In other embodiments of the present application, the electronic device further includes an output device ( Figure 6 (not shown in the figure), the output device is connected to the programmable logic chip; the programmable logic chip 61 is also used to output the fault diagnosis result through the output device; obtain the repair event of the fault associated with the fault diagnosis result, and repair the fault based on the repair event.

[0087] In other embodiments of the present application, the output state of the output device is different when it outputs different fault diagnosis results.

[0088] In the electronic device provided by the embodiment of the present application, if the programmable logic chip receives an access request to the serial peripheral interface chip, the access request is cached by the programmable logic chip to the internal storage area of ​​the programmable logic chip; the access rights corresponding to the access request are determined by the programmable logic chip, and the access request is processed based on the access rights; that is, the information processing method provided by the present application first caches the received access request by the programmable logic chip, further determines the access rights of the access request, and finally performs corresponding processing on the access request based on the determination result, thereby standardizing the access to the serial peripheral interface chip and avoiding potential security issues and crash failures to a certain extent.

[0089] It should be noted that in the embodiments of the present application, the electronic device 30, the electronic device 50 and the electronic device 60 correspond to each other and all represent the electronic devices provided by the present application. The programmable logic chip 31, the programmable logic chip 51 and the programmable logic chip 61 correspond to each other and all represent the programmable logic chips provided by the present application. The serial peripheral interface chip 33 and the serial peripheral interface chip 62 correspond to each other and all represent the serial peripheral interface chips provided by the present application.

[0090] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0091] It should be noted that in the embodiment of the present application, if the above-mentioned information processing method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions for a terminal device to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0092] The embodiment of the present application provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the following steps:

[0093] If the programmable logic chip receives an access request to the serial peripheral interface chip, the access request is cached by the programmable logic chip to an internal storage area of ​​the programmable logic chip;

[0094] The access rights corresponding to the access request are determined through a programmable logic chip, and the access request is processed based on the access rights.

[0095] In other embodiments of the present application, the one or more programs may be executed by one or more processors, and the following steps may also be implemented:

[0096] The access request is parsed by the programmable logic chip to obtain an addressing address and a chip select signal; wherein the chip select signal is used to indicate the subsystem that sends the access request among the multiple subsystems connected to the serial peripheral interface chip;

[0097] The subsystem indicated by the chip select signal determines through the programmable logic chip the access rights to the address space on the address-mapped serial peripheral interface chip.

[0098] In other embodiments of the present application, the one or more programs may be executed by one or more processors, and the following steps may also be implemented:

[0099] If the programmable logic chip determines that the subsystem indicated by the chip select signal has access rights to the address space, the programmable logic chip opens the multiplexer and sends an access request to the serial peripheral interface chip, so that the serial peripheral interface chip responds to the access request.

[0100] In other embodiments of the present application, the one or more programs may be executed by one or more processors, and the following steps may also be implemented:

[0101] If the programmable logic chip determines that the subsystem indicated by the chip select signal does not have the authority to access the address space, the programmable logic chip controls the multiplexer to be closed to prohibit the serial peripheral interface chip from responding to the access request.

[0102] In other embodiments of the present application, the one or more programs may be executed by one or more processors, and the following steps may also be implemented:

[0103] During the boot process, the programmable logic chip records the subsystem started by the boot operating system, the checkpoint information and memory configuration information output during the boot and self-check phases;

[0104] If a subsystem that boots the operating system fails to start, a fault diagnosis result is determined based on recorded checkpoint information and / or memory configuration information through a programmable logic chip.

[0105] In other embodiments of the present application, the one or more programs may be executed by one or more processors, and the following steps may also be implemented:

[0106] If a boot failure occurs in a subsystem booting the operating system, the checkpoint information is compared with the pre-stored checkpoint information through the programmable logic chip, and / or the memory configuration information is compared with the pre-stored memory configuration information through the programmable logic chip to obtain a comparison result; wherein the pre-stored checkpoint information and the pre-stored memory configuration information are stored in the internal storage area;

[0107] The fault diagnosis result is determined based on the comparison result through the programmable logic chip.

[0108] In other embodiments of the present application, the one or more programs may be executed by one or more processors, and the following steps may also be implemented:

[0109] The faults associated with the fault diagnosis results are repaired through a programmable logic chip.

[0110] In other embodiments of the present application, the one or more programs may be executed by one or more processors, and the following steps may also be implemented:

[0111] outputting the fault diagnosis result through an output device connected to the programmable logic chip;

[0112] A repair event for the fault associated with the fault diagnosis result is obtained, and the fault is repaired based on the repair event.

[0113] In other embodiments of the present application, the output device has different output states when outputting different fault diagnosis results.

[0114] The computer-readable storage medium provided in the embodiment of the present application, if the programmable logic chip receives an access request to the serial peripheral interface chip, the access request is cached to the internal storage area of ​​the programmable logic chip through the programmable logic chip; the access rights corresponding to the access request are determined through the programmable logic chip, and the access request is processed based on the access rights; that is, the information processing method provided in the present application, first caches the received access request through the programmable logic chip, further determines the access rights of the access request, and finally performs corresponding processing on the access request based on the determination result, thereby standardizing the access to the serial peripheral interface chip and avoiding potential security issues and crash failures to a certain extent.

[0115] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0116] The above-mentioned computer storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and the like; it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0117] It should be understood that the "one embodiment" or "an embodiment" or "an embodiment of the present application" or "the aforementioned embodiment" or "some embodiments" or "some implementation methods" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "an embodiment of the present application" or "the aforementioned embodiment" or "some embodiments" or "some implementation methods" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0118] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0119] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0120] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0121] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or new product embodiments.

[0122] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0123] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0124] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0125] It is worth noting that the drawings in the embodiments of the present application are only for illustrating the schematic positions of various components on the terminal device and do not represent the actual positions in the terminal device. The actual positions of various components or areas may be changed or offset accordingly according to actual conditions (for example, the structure of the terminal device), and the proportions of different parts of the terminal device in the drawings do not represent the actual proportions.

[0126] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An information processing method, the method include: If the programmable logic chip receives an access request to the serial peripheral interface chip, the programmable logic chip caches the access request to an internal storage area of ​​the programmable logic chip; The access request is parsed by the programmable logic chip to obtain an addressing address and a chip select signal; wherein the chip select signal is used to indicate a subsystem that sends the access request among multiple subsystems connected to the serial peripheral interface chip; The subsystem indicated by the chip select signal is determined through the programmable logic chip, and the access rights to the address space on the serial peripheral interface chip mapped by the addressing address are determined, and the access request is processed based on the access rights.

2. The method according to claim 1, wherein the access request is processed based on the access permission. include: If the programmable logic chip determines that the subsystem indicated by the chip select signal has access rights to access the address space, the programmable logic chip opens the multiplexer and sends the access request to the serial peripheral interface chip so that the serial peripheral interface chip responds to the access request.

3. The method according to claim 1, wherein the access request is processed based on the access permission. include: If the programmable logic chip determines that the subsystem indicated by the chip select signal does not have permission to access the address space, the programmable logic chip controls the multiplexer to be closed to prohibit the serial peripheral interface chip from responding to the access request.

4. An information processing method, the method include: During the boot process, the programmable logic chip records the subsystem started by the boot operating system, the checkpoint information and memory configuration information output during the boot and self-check phases; If a startup failure occurs in the subsystem started by the booting operating system, a fault diagnosis result is determined by the programmable logic chip based on the recorded checkpoint information and / or the memory configuration information; If the programmable logic chip receives an access request to the serial peripheral interface chip, the programmable logic chip caches the access request to an internal storage area of ​​the programmable logic chip; In a plurality of subsystems connected by the programmable logic chip, the access request is processed based on the access permission.

5. The method according to claim 4, wherein if a startup failure occurs in the subsystem started by the booting operating system, the fault diagnosis result is determined by the programmable logic chip based on the recorded checkpoint information and / or the memory configuration information, include: If a boot failure occurs in the subsystem started by the boot operating system, the checkpoint information is compared with the pre-stored checkpoint information through the programmable logic chip, and / or the memory configuration information is compared with the pre-stored memory configuration information through the programmable logic chip to obtain a comparison result; wherein the pre-stored checkpoint information and the pre-stored memory configuration information are stored in the internal storage area; The programmable logic chip determines a fault diagnosis result based on the comparison result.

6. The method according to claim 5, after determining the fault diagnosis result based on the comparison result by the programmable logic chip, the method include: The fault associated with the fault diagnosis result is repaired by the programmable logic chip.

7. The method according to claim 4, wherein if a startup failure occurs in the subsystem started by the boot operating system, after the programmable logic chip determines the fault diagnosis result based on the recorded checkpoint information and / or the memory configuration information, the method include: Outputting the fault diagnosis result through an output device connected to the programmable logic chip; A repair event for the fault associated with the fault diagnosis result is obtained, and the fault is repaired based on the repair event.

8. The method according to claim 7, wherein the output device has different output states when outputting different fault diagnosis results.

9. An electronic device, the electronic device include: Programmable logic chip and serial peripheral interface chip; among which, The programmable logic chip is connected to the serial peripheral interface chip; The programmable logic chip is used to cache an access request to the serial peripheral interface chip in an internal storage area of ​​the programmable logic chip if the access request is received; The programmable logic chip is used to parse the access request through the programmable logic chip to obtain the addressing address and the chip select signal; wherein the chip select signal is used to indicate the subsystem that sends the access request among multiple subsystems connected to the serial peripheral interface chip; the programmable logic chip determines the access rights of the subsystem indicated by the chip select signal to the address space on the serial peripheral interface chip mapped to the addressing address, and processes the access request based on the access rights.

Citation Information

Patent Citations

  • Information processing device

    CN101620574A

  • Virtual machine system and passive hardware device access method

    CN101937407A

  • Fibre channel input / output data routing system and method

    CN102819505A

  • Circuits and methods for inter-processor communication

    CN105938466A

  • Virtualization of memory for programmable logic

    CN106663061A