METHOD AND SYSTEM FOR IMPROVING EFFICIENCY OF PROTECTING MULTI-CONTENT PROCESS
20220035751 · 2022-02-03
Inventors
Cpc classification
G06F21/10
PHYSICS
G06F12/1491
PHYSICS
G06F2221/2141
PHYSICS
International classification
Abstract
The invention provides method and system for improving efficiency of protecting multi-content process. The system may cooperate with a memory, and may comprise one or more hardware IPs (intellectual properties) for content processing, one of the one or more IPs may be associated with multiple access identities. The memory may comprise multiple different ranges, each range may register an access of one of the multiple access identities as a permissible access. The method may comprise: selecting one of the access identities for processing a first content, and using the selected access identity when said IP accesses the memory during processing of the first content; selecting a different one of the access identities for processing a second content, and using the selected different access identity when said IP accesses the memory during processing of the second content.
Claims
1. A method applied to a system for improving efficiency of protecting multi-content process; the system cooperating with a memory, and comprising one or more hardware IPs (intellectual properties) for content processing: wherein: one of the one or more IPs is associated with multiple access identities; the memory comprises multiple different ranges, each said range is configurable to register an access of one of the multiple access identities as a permissible access; and the method comprises: selecting one of the multiple access identities for processing a first content, and using the selected access identity when said IP accesses the memory during processing of the first content; and selecting a different one of the multiple access identities for processing a second content, and using the selected different access identity when said IP accesses the memory during processing of the second content.
2. The method of claim 1 further comprising: between processing of the first content and the second content, not reconfiguring the registered permissible access of each said range.
3. The method of claim 1 further comprising: when selecting one of the multiple access identities, determining which one to select by a non-secure CPU.
4. The method of claim 1, wherein each said range is configured by a secure CPU to register an access of one of the multiple access identities as a permissible access.
5. The method of claim 1, wherein: the one or more IPs further include a preceding IP coupled to said IP; the preceding IP is associated with multiple preceding-IP access identities, and is arranged to select one of the multiple preceding-IP access identities; each said access identity is bound to one of the multiple preceding-IP access identities; and the method further comprises: when selecting one of the multiple access identities, selecting a said access identity that is bound to the selected preceding-IP access identity.
6. The method of claim 5, wherein selecting the said access identity that is bound to the selected preceding-IP access identity is performed without intervention of a secure CPU, and regardless of whether and how a non-secure CPU instructs.
7. The method of claim 1, wherein: the one or more IPs further include a succeeding IP coupled to said IP; and the method further comprises: when one of the multiple access identities is selected, propagating the selected access identity to the succeeding IP, and using the selected access identity when the succeeding IP accesses the memory.
8. The method of claim 1, wherein: the one or more IPs further include a plurality of preceding IPs coupled to said IP; each said access identity is associated with one of a plurality security levels; each said preceding IP is associated with multiple corresponding access identities, and is arranged to select one of the multiple corresponding access identities; each said corresponding access identity is associated with one of the plurality of security levels; and the method further comprises: when selecting one of the multiple access identities, selecting a said access identity according to the security levels associated with the selected corresponding access identities of the plurality of preceding IPs.
9. The method of claim 1, wherein: the one or more IPs further include a plurality of preceding IPs coupled to said IP; each said access identity is associated with one of a plurality security levels: each said preceding IP is associated with multiple corresponding access identities, and is arranged to select one of the multiple corresponding access identities; each said corresponding access identity is associated with one of the plurality of security levels; and the method further comprises: when selecting one of the multiple access identities, applying a predefined rule to the security levels associated with the selected corresponding access identities of the plurality of preceding IPs to evaluate a resultant security level, and selecting a said access identity that is associated with the resultant security level.
10. The method of claim 1, wherein: each said access identity is associated with one of a plurality of security levels; the first content is associated with one of the plurality of security levels; and the method further comprises: when selecting one of the multiple access identities for processing the first content, selecting a said access identity according to the security level associated with the first content.
11. A system with improved efficiency of protecting multi-content process, comprising: one or more hardware IPs for content processing, a subset of the one or more hardware IPs implementing a secure CPU and a non-secure CPU; wherein: the system cooperates with a memory which comprises multiple different ranges; one of the one or more IPs is associated with multiple access identities; each said range is configurable to register an access of one of the multiple access identities as a permissible access; and said IP is arranged to: select one of the multiple access identities for processing a first content, and use the selected access identity when accessing the memory to process the first content; and select a different one of the multiple access identities for processing the second content, and use the selected different access identity when accessing the memory to process the second content.
12. The system of claim 11, wherein the secure CPU is further arranged not to reconfigure the registered permissible access of each said range between processing of the first content and the second content.
13. The system of claim 11, wherein the non-secure CPU is arranged to instruct said IP which one of the multiple access identities to select when said IP selects one of the multiple access identities.
14. The system of claim 11, wherein: the one or more IPs further include a preceding IP coupled to said IP; the preceding IP is associated with multiple preceding-IP access identities, and is arranged to select one of the multiple preceding-IP access identities; each of the multiple access identities is bound to one of the multiple preceding-IP access identities; and said IP is further arranged to: when selecting one of the multiple access identities, select a said access identity that is bound to the selected preceding-IP access identity.
15. The system of claim 14, wherein said IP is further arranged to: when selecting one of the multiple access identities, determine which one to select without intervention of the secure CPU, and regardless of whether and how the non-secure CPU instructs.
16. The system of claim 11 further comprising an internal link, wherein: the one or more IPs further include a succeeding IP coupled to said IP via the internal link: the internal link is arranged to: when said IP selects one of the multiple access identities, propagate the selected access identity to the succeeding IP; and the succeeding IP is arranged to: use the selected access identity when the succeeding IP accesses the memory.
17. The system of claim 11, wherein: the one or more IPs further include a plurality of preceding IPs coupled to said IP; each said access identity is associated with one of a plurality of security levels; each said preceding IP is associated with multiple corresponding access identities, and is arranged to select one of the multiple corresponding access identities; each of the multiple corresponding access identities is associated with one of the plurality of security levels; and said IP is further arranged to: when selecting one of the multiple access identities, select a said access identity according to the security levels associated with the selected corresponding access identities of the plurality of preceding IPs.
18. The system of claim 17, wherein said IP is further arranged to: when selecting one of the multiple access identities, determine which one to select without intervention of the secure CPU, and regardless of whether and how the non-secure CPU instructs.
19. The system of claim 11, wherein: the one or more IPs further include a plurality of preceding IPs coupled to said IP; each said access identity is associated with one of a plurality of security levels; each said preceding IP is associated with multiple corresponding access identities, and is arranged to select one of the multiple corresponding access identities; each of the multiple corresponding access identities is associated with one of the plurality of security levels; and said IP is further arranged to: when selecting one of the multiple access identities, apply a predefined rule to the security levels associated with the selected corresponding access identities of the plurality of preceding IPs to evaluate a resultant security level, and select a said access identity that is associated with the resultant security level.
20. The system of claim 11, wherein: each said access identity is associated with one of a plurality of security levels; the first content is associated with one of the plurality of security levels; and said IP is further arranged to: when selecting one of the multiple access identities for processing the first content, select a said access identity that is associated with a said security level equal to the security level associated with the first content.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above objects and advantages of the present invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which:
[0024]
[0025]
[0026]
[0027]
DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS
[0028]
[0029] In an embodiment, the processor IP(s) may provide two different hardware circuits to respectively implement the secure CPU 230 and the non-secure CPU 240; in a different embodiment, the processor IP(s) may provide a common hardware circuit which switches to operate between a secure state and a non-secure state to function as the secure CPU 230 and the non-secure CPU 240.
[0030] In an embodiment, the system 200 may be integrated in a semiconductor chip (e.g., SoC, silicon on chip), and the memory 220 may be an external DRAM (dynamic random access memory) formed by one or more memory dices. The memory 220 may have one or more ranges (not shown in
[0031] According to the invention, each IP ip[n] (for n=1 to N) may be associated with a number K (more than one) access identities aid[n]_1 to aid[n]_K. Each IP ip[n] may select one of the access identities aid[n]_1 to aid[n]_K, and use the selected access identity to access an address of the memory 220 via the access checker 210, and the access checker 210 may determine whether to permit the access according to whether the address is in a range which registers an access of the selected access identity as a permissible access. For example, the IP ip[n] may select to use an access identity aid[n]_k1 (for k1 being one of 1 to K) to read an address of the memory 220; in response, the access checker 210 may permit the read if the address is in a range which already registers read of the access identity aid[n]_k1 as a permissible access, and may deny the read if the address is in a range which registers read of the access identity aid[n]_k1 as an impermissible access (or a range which does not register read of the access identity aid[n]_k1 as a permissible access). For security and content protection, permissions (registered permissible and impermissible accesses) of a secure range can only be configured by the secure CPU 230. By accessing the memory 220, each IP ip[n] may obtain (fetch or extract, etc.) data to be processed, buffer data under processing, and/or store processed data.
[0032] Along with
[0033] As shown in
[0034] At step 303, in order to process the first content, each IP ip[n] may select an access identity aid[n]_k1 (with k1 being one of 1 to K).
[0035] At step 305, the IPs ip[1] to ip[N] may process an (i)-th portion of the first content, wherein each IP ip[n] may use the selected access identity aid[n]_k1 when accessing the memory 220 during processing. After the (i)-th portion of the first content is processed, the flowchart 300 may continue to step 307.
[0036] At step 307, in order to process the second content, each IP ip[n] may select another access identity aid[n]_k2 (with k2 being one of 1 to K but not equal to k1).
[0037] At step 309, the IPs ip[1] to ip[N] may process a (j)-th portion of the second content, wherein each IP ip[n] may use the selected access identity aid[n]_k2 when accessing the memory 220 during processing. After the (j)-th portion of the second content is processed, the flowchart 300 may iterate back to step 303 to start another cycle of steps 303, 305, 307 and 309 for processing other portions of the first content and the second content.
[0038] Along with
[0039] At step 303, to process the (i)-th portion of the first content, the IPs ip[1], ip[2] and ip[3] may respectively select the access identities aid[1]_1, aid[2]_ and aid[3]_1.
[0040] At step 305, the IPs ip[1], ip[2] and ip[3] may process the (i)-th portion of the first content. During processing, the IPs ip[1], ip[2] and ip[3] may respectively use the selected access identities aid[1]_1, aid[2]_1 and aid[3]_1 when accessing the memory 220. Since write of the access identity aid[1]L and read of the access identity aid[2]_1 are permissible in the range sr1, write and read of the access identity aid[3]_1 are permissible in the range sr2, the IPs ip1[1] to ip[3] may cooperate with the ranges sr1 and sr2 to form a first content path (e.g., SMP) to process the first content. As an example, the IP ip[1] may obtain data (e.g., extract encrypted and encoded video frames and/or audio tracks) from the (i)-th portion of the first content, and use the access identity aid[1]_1 to write the obtained data to the range sr1; the IP ip[2] may use the access identity aid[2]_1 to read data from the range sr1, perform operation(s) on the read data (e.g., decrypt and decode encrypted and encoded video frames and/or audio tracks to retrieve clear video frames and/or audio tracks) and output resultant data to the IP ip[3], then the IP ip[3] may use the access identity aid[3]_1 to read and write the range sr2 when the IP ip[3] performs further operation(s) on the data from the IP ip[2] (e.g., performs image enhancing, color adjusting and/or audio equalization, etc.).
[0041] At step 307, to process the (j)-th portion of the first content, the IPs ip[1], ip[2] and ip[3] may respectively select the access identities aid[1]_, aid[2]_2 and aid[3]_2.
[0042] At step 309, the IPs ip[1], ip[2] and ip[3] may process the (j)-th portion of the second content. During processing, the IPs ip[1], ip[2] and ip[3] may respectively use the access identities aid[1]_2, aid[2]_2 and aid[3]_2 when accessing the memory 220. As write of the access identity aid[1]_2 and read of the access identity aid[2]_2 are permissible in the range sr3, write and read of the access identity aid[3]_2 are permissible in the range sr4, the IPs ip[1] to ip[3] may cooperate with the ranges sr3 and sr4 to form a second content path to process the second content.
[0043] Since the first content path (step 305) and the second content path (step 309) may utilize different ranges of the memory 220, the flowchart 300 may achieve memory isolation between processing of the first content and the second content. According to the invention, because each IP ip[n] has multiple access identities aid[n]_1 to aid[n]_K, the flowchart 300 may only need the secure CPU 230 to configure range permissions once (at step 301) with different access identities aid[n]_k1 and aid[n]_k2 of the same IP ip[n] being respectively permissible in different ranges, then the flowchart 300 may achieve memory isolation between processing of different contents (steps 305 and 309) by selecting between different access identities aid[n]_ and aid[n]_k2 of each IP ip[n] (steps 303 and 307). The flowchart 300 may therefore not need the secure CPU 230 to repeatedly reconfigure range permissions between processing of different contents. In other words, the range permissions configured at step 301 may remain unchanged when cycling steps 303, 305, 307 and 309. Hence, the flowchart 300 according to the invention may improve efficiency of protecting multi-content process.
[0044] Selecting access identities at steps 303 and 307 may not involve the secure CPU 230. For steps 303 and 307, each IP ip[n] may have its own identity decision mechanism to determine which one of the access identities aid[n]_1 to aid[n]_K to select, and the identity decision mechanism may not need the secure CPU 230 to intervene. Different ones of the IP ip[1] to ip[N] may adopt different identity decision mechanisms or a same identity decision mechanism.
[0045] In an embodiment, an IP ip[n2] (for n2 being one of 1 to N, not shown) of the IPs ip[1] to ip[N] may adopt a non-secure CPU instructed identity decision mechanism. As the IP ip[n2] may be associated with access identities aid[n2]_1 to aid[n2]_K, which one of the access identities aid[n2]_1 to aid[n2]_K should be selected at step 303/307 for processing the first/second content at step 305/309 may be determined by the non-secure CPU 240; e.g., the non-secure CPU 240 may determine and instruct the IP ip[n2] which one of the access identities aid[n2]_1 to aid[n2]_K to select at steps 303 and 307. In an embodiment, the IP ip[n2] may be an IP which reads the memory 220 (
[0046] Though it is possible to compromise the non-secure CPU 240 so the compromised non-secure CPU 240 might maliciously instruct the IP ip[n2] to select a wrong one of the access identities aid[n2]_1 to aid[n2]_K, the malicious instruction could only sabotage content process, but will not breach content protection. For example, in
[0047] Along with
[0048] In the example shown in
[0049] Along with
[0050] In the example shown in
[0051] Along with
[0052] At step 303/307 (
[0053] As an example, in an embodiment, the IP ip[c1], which may be a video module for processing protected video content, may select an access identity aid[c1]L2 associated with a high security level L[2] to access the memory 220 for processing a secure media content to retrieve a clear frame to be displayed in a window; the IP ip[c2], which may be a window manager, may select an access identity id[c2]_1 associated with a low security level L[1] (L[1]<L[2]) to access the memory 220 for generating a normal image of a dropdown menu; and the IP ip[n6], which may be an image mixer, may then select the secure access identity id[n6]_2 that is associated with the highest security level L[2] to access the memory 220 for overlaying the dropdown menu over the clear frame, so the clear frame of the secure content may remain protected.
[0054] In an embodiment, the secure priority identity decision mechanism may be implemented by the IP ip[n6] in cooperation of the preceding IP(s) and related link(s), so the IP ip[n6] may select its own access identity at step 303/307 without intervention of the secure CPU 230, and regardless of whether and how the non-secure CPU 240 instructs.
[0055] Along with
[0056] In an embodiment, the content to be processed by the IP ip[n7] (e.g., the first content and/or the second content) may be provided by a media receiver 700 coupled to the IP ip[n7]. For example, in an embodiment, the media receiver 700 may be an HDMI (high-definition multimedia interface) receiver. The media receiver 700 may analyze whether said content is protected under digital content protection (such as DRM or HDCP, high-bandwidth digital content protection); if the content is protected under digital content protection, the content may be associated with a higher security level; if the content is not protected under digital content protection, the content may be associated with a lower security level. The media receiver 700 may inform the IP ip[n7] about the security level with which the content is associated. As shown in
[0057] To sum up, according to the invention, each IP for content processing may have different access identities respectively permissible in different ranges of a memory, and may select and use different ones of the access identities to access the memory when cycling between processing of multiple contents. According to the invention, each IP may adopt its own identity decision mechanism to decide which access identity to use, and the identity decision mechanism may not involve secure CPU, so the IPs may rapidly and frequently switch between different access identities when cycling between processing of multiple contents, and may therefore effectively improve efficiency of protecting multi-content process.
[0058] While the invention has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention needs not be limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.