docs: fusa: Add Assumption of Use (AoU)
PATCH v3 1/1 docs: fusa: Add Assumption of Use (AoU)
From: Michal Orzel <[email protected]>
AoU are the assumptions that Xen relies on other components (eg platform platform, domains)
to fulfill its requirements. In our case, platform means a combination of hardware, firmware and bootloader.
We have defined AoU in the intro.rst and added AoU for the generic timer.
Also, fixed a requirement to denote that Xen shall **not** expose the system counter frequency via the "clock-frequency" device tree property. The reason being the device tree documentation strongly discourages the use of this peoperty. Further if the "clock-frequency" is exposed, then it overrides the value programmed in the CNTFRQ_EL0 register.
So, the frequency shall be exposed via the CNTFRQ_EL0 register only and consequently there is an assumption on the platform to program the register correctly.
---
Changes from :-
v1 - 1. Removed the part of requirement which states that Xen exposes the frequency of the system timer by reading the "clock-frequency" property.
2. Added a rationale for AoU.
3. Reworded the AoU.
v2 - 1. Reworded the commit message. Added R-b.
.../reqs/design-reqs/arm64/generic-timer.rst | 24 ++++++++++++++++++- docs/fusa/reqs/intro.rst | 10 ++++++++ 2 files changed, 33 insertions(+), 1 deletion(-)
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +23 -1
@@ -30,7 +30,7 @@ Read system counter frequency Description: Xen shall expose the frequency of the system counter to the domains in -CNTFRQ_EL0 register and/or domain device tree's "clock-frequency" property. +CNTFRQ_EL0 register. Rationale:
@@ -116,6 +116,28 @@ Rationale: Comments: +Covers: + - `XenProd~emulated_timer~1` + +Assumption of Use on the Platform +================================= + +Expose system timer frequency via register +------------------------------------------ + +`XenSwdgn~arm64_generic_timer_pf_program_cntfrq_el0~1` + +Description: +Underlying platform shall program CNTFRQ_EL0 register with the value of system +timer frequency. + +Rationale: +Xen reads the CNTFRQ_EL0 register to get the value of system timer frequency. +While there is a provision to get this value by reading the "clock-frequency" +dt property [2], the use of this property is strongly discouraged. + +Comments: + Covers: - `XenProd~emulated_timer~1`
docs/fusa/reqs/intro.rst +10 -0
@@ -38,6 +38,16 @@ The requirements are linked using OpenFastTrace OpenFastTrace parses through the requirements and generates a traceability report. +Assumption of Use +================= + +To fulfill one or more design requirements, there may be underlying assumptions +on one or more components that Xen interacts with directly or indirectly. For +eg, there may be assumptions on the underlying platform (hardware + firmware + +bootloader) to set certain registers, etc. The important thing here is that +anyone who validates these requirements, need to consider the assumption on the +other components. + The following is the skeleton for a requirement. Title of the requirement
Signature · 1 line
2.25.1
Hi Ayan,
Quoted 62 lines · Ayan Kumar Halder
From: Michal Orzel <[email protected]>
AoU are the assumptions that Xen relies on other components (eg platform platform, domains)
to fulfill its requirements. In our case, platform means a combination of hardware, firmware and bootloader.We have defined AoU in the
intro.rstand added AoU for the generic timer.Also, fixed a requirement to denote that Xen shall **not** expose the system counter frequency via the "clock-frequency" device tree property. The reason being the device tree documentation strongly discourages the use of this peoperty. Further if the "clock-frequency" is exposed, then it overrides the value programmed in the
CNTFRQ_EL0register.So, the frequency shall be exposed via the
CNTFRQ_EL0register only and consequently there is an assumption on the platform to program the register correctly.Signed-off-by Michal Orzel <[email protected]>Signed-off-by Ayan Kumar Halder <[email protected]>Reviewed-by Julien Grall <[email protected]>---
Changes from :-v1 - 1. Removed the part of requirement which states that Xen exposes the frequency of the system timer by reading the "clock-frequency" property.
2. Added a rationale for AoU.
3. Reworded the AoU.
v2 - 1. Reworded the commit message. Added R-b.
.../reqs/design-reqs/arm64/generic-timer.rst| 24 ++++++++++++++++++-docs/fusa/reqs/intro.rst| 10 ++++++++2 files changed, 33 insertions(+), 1 deletion(-)docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +0
-0@@ -30,7 +30,7 @@ Read system counter frequencyDescription:
Xen shall expose the frequency of the system counter to the domains indocs/fusa/reqs/design-reqs/arm64/generic-timer.rst +1
-1-CNTFRQ_EL0 register and/or domain device tree's "clock-frequency" property. +CNTFRQ_EL0 register.Rationale:
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +0
-0@@ -116,6 +116,28 @@ Rationale:Comments:
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +4
-0+Covers: + - `XenProd~emulated_timer~1` + +Assumption of Use on the Platform
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst Rationale: · line 132
Quoted 10 lines
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +10
-0+================================= + +Expose system timer frequency via register +------------------------------------------ + +`XenSwdgn~arm64_generic_timer_pf_program_cntfrq_el0~1` + +Description: +Underlying platform shall program CNTFRQ_EL0 register with the value of system +timer frequency.
How about: CNTFRQ_EL0 register shall be programmed with the value of the system timer frequency.
It prevent to use "platform" which is quite undefined here.
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst Rationale: · line 137
Quoted 5 lines
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +5
-0+ +Rationale: +Xen reads the CNTFRQ_EL0 register to get the value of system timer frequency. +While there is a provision to get this value by reading the "clock-frequency" +dt property [2], the use of this property is strongly discouraged.
I would put the second sentence as a comment as only the first one is the rationale explaining why we need it to be correct.
Quoted 14 lines
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +3
-0+ +Comments: +Covers:
-XenProd~emulated_timer~1docs/fusa/reqs/intro.rst +0
-0@@ -38,6 +38,16 @@ The requirements are linked using OpenFastTraceOpenFastTrace parses through the requirements and generates a traceability report.
docs/fusa/reqs/intro.rst The requirements are linked using OpenFastTrace · line 49
Quoted 9 lines
docs/fusa/reqs/intro.rst +9
-0+Assumption of Use +================= + +To fulfill one or more design requirements, there may be underlying assumptions +on one or more components that Xen interacts with directly or indirectly. For +eg, there may be assumptions on the underlying platform (hardware + firmware + +bootloader) to set certain registers, etc. The important thing here is that +anyone who validates these requirements, need to consider the assumption on the +other components.
I would simplify a bit:
Xen is making several assumptions on the status of the platform or on some functions being present and functional. For example, Xen might assume that some registers are set.
Anybody who wants to use Xen must validate that the platform it is used on (meaning the hardware and any software running before Xen like the firmware) fulfils all the AoU described by Xen.
What do you think ?
Cheers
Bertrand
Quoted 7 lines
+
The following is the skeleton for a requirement.Title of the requirement
Signature · 1 line
2.25.1
Quoted 1 line · Bertrand Marquis
Hi Ayan,
Hi Bertrand,
Quoted 99 lines
Quoted 63 lines · Ayan Kumar Halder
From: Michal Orzel <[email protected]>
AoU are the assumptions that Xen relies on other components (eg platform platform, domains)
to fulfill its requirements. In our case, platform means a combination of hardware, firmware and bootloader.We have defined AoU in the
intro.rstand added AoU for the generic timer.Also, fixed a requirement to denote that Xen shall **not** expose the system counter frequency via the "clock-frequency" device tree property. The reason being the device tree documentation strongly discourages the use of this peoperty. Further if the "clock-frequency" is exposed, then it overrides the value programmed in the
CNTFRQ_EL0register.So, the frequency shall be exposed via the
CNTFRQ_EL0register only and consequently there is an assumption on the platform to program the register correctly.Signed-off-by Michal Orzel <[email protected]>Signed-off-by Ayan Kumar Halder <[email protected]>Reviewed-by Julien Grall <[email protected]>---
Changes from :-v1 - 1. Removed the part of requirement which states that Xen exposes the frequency of the system timer by reading the "clock-frequency" property.
2. Added a rationale for AoU.
3. Reworded the AoU.
v2 - 1. Reworded the commit message. Added R-b.
.../reqs/design-reqs/arm64/generic-timer.rst| 24 ++++++++++++++++++-docs/fusa/reqs/intro.rst| 10 ++++++++2 files changed, 33 insertions(+), 1 deletion(-)docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +0
-0@@ -30,7 +30,7 @@ Read system counter frequencyDescription:
Xen shall expose the frequency of the system counter to the domains indocs/fusa/reqs/design-reqs/arm64/generic-timer.rst +1
-1-CNTFRQ_EL0 register and/or domain device tree's "clock-frequency" property. +CNTFRQ_EL0 register.Rationale:
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +0
-0@@ -116,6 +116,28 @@ Rationale:Comments:
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +4
-0+Covers: + - `XenProd~emulated_timer~1` + +Assumption of Use on the Platformdocs/fusa/reqs/design-reqs/arm64/generic-timer.rst Rationale: · line 132
Quoted 10 lines
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +10
-0+================================= + +Expose system timer frequency via register +------------------------------------------ + +`XenSwdgn~arm64_generic_timer_pf_program_cntfrq_el0~1` + +Description: +Underlying platform shall program CNTFRQ_EL0 register with the value of system +timer frequency.How about:
CNTFRQ_EL0register shall be programmed with the value of the system timer frequency.It prevent to use "platform" which is quite undefined here.
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst Rationale: · line 137
Quoted 5 lines
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +5
-0+ +Rationale: +Xen reads the CNTFRQ_EL0 register to get the value of system timer frequency. +While there is a provision to get this value by reading the "clock-frequency" +dt property [2], the use of this property is strongly discouraged.I would put the second sentence as a comment as only the first one is the rationale explaining why we need it to be correct.
Quoted 14 lines
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +3
-0+ +Comments: +Covers:
-XenProd~emulated_timer~1docs/fusa/reqs/intro.rst +0
-0@@ -38,6 +38,16 @@ The requirements are linked using OpenFastTraceOpenFastTrace parses through the requirements and generates a traceability report.
Quoted 9 lines
docs/fusa/reqs/intro.rst The requirements are linked using OpenFastTrace · line 49
Quoted 9 lines
docs/fusa/reqs/intro.rst +9
-0+Assumption of Use +================= + +To fulfill one or more design requirements, there may be underlying assumptions +on one or more components that Xen interacts with directly or indirectly. For +eg, there may be assumptions on the underlying platform (hardware + firmware + +bootloader) to set certain registers, etc. The important thing here is that +anyone who validates these requirements, need to consider the assumption on the +other components.
I think there is a typo.
Quoted 3 lines
I would simplify a bit:
Xen is making several assumptions on the status of the platform or on some functions being present and functional.
s/functional/functionality.
Quoted 7 lines
For example, Xen might assume that
some registers are set.
Anybody who wants to use Xen must validate that the platform it is used on (meaning the hardware and any software running before Xen like the firmware) fulfils all the AoU described by Xen.What do you think ?
It sounds ok.
- Ayan
Hi Ayan,
Quoted 115 lines · Ayan Kumar Halder
Quoted 1 line · Bertrand Marquis
Hi Ayan,
Hi Bertrand,
Quoted 99 lines
Quoted 63 lines · Ayan Kumar Halder
From: Michal Orzel <[email protected]>
AoU are the assumptions that Xen relies on other components (eg platform platform, domains)
to fulfill its requirements. In our case, platform means a combination of hardware, firmware and bootloader.We have defined AoU in the
intro.rstand added AoU for the generic timer.Also, fixed a requirement to denote that Xen shall **not** expose the system counter frequency via the "clock-frequency" device tree property. The reason being the device tree documentation strongly discourages the use of this peoperty. Further if the "clock-frequency" is exposed, then it overrides the value programmed in the
CNTFRQ_EL0register.So, the frequency shall be exposed via the
CNTFRQ_EL0register only and consequently there is an assumption on the platform to program the register correctly.Signed-off-by Michal Orzel <[email protected]>Signed-off-by Ayan Kumar Halder <[email protected]>Reviewed-by Julien Grall <[email protected]>---
Changes from :-v1 - 1. Removed the part of requirement which states that Xen exposes the frequency of the system timer by reading the "clock-frequency" property.
2. Added a rationale for AoU.
3. Reworded the AoU.
v2 - 1. Reworded the commit message. Added R-b.
.../reqs/design-reqs/arm64/generic-timer.rst| 24 ++++++++++++++++++-docs/fusa/reqs/intro.rst| 10 ++++++++2 files changed, 33 insertions(+), 1 deletion(-)docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +0
-0@@ -30,7 +30,7 @@ Read system counter frequencyDescription:
Xen shall expose the frequency of the system counter to the domains indocs/fusa/reqs/design-reqs/arm64/generic-timer.rst +1
-1-CNTFRQ_EL0 register and/or domain device tree's "clock-frequency" property. +CNTFRQ_EL0 register.Rationale:
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +0
-0@@ -116,6 +116,28 @@ Rationale:Comments:
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +4
-0+Covers: + - `XenProd~emulated_timer~1` + +Assumption of Use on the Platformdocs/fusa/reqs/design-reqs/arm64/generic-timer.rst Rationale: · line 132
Quoted 10 lines
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +10
-0+================================= + +Expose system timer frequency via register +------------------------------------------ + +`XenSwdgn~arm64_generic_timer_pf_program_cntfrq_el0~1` + +Description: +Underlying platform shall program CNTFRQ_EL0 register with the value of system +timer frequency.How about:
CNTFRQ_EL0register shall be programmed with the value of the system timer frequency.It prevent to use "platform" which is quite undefined here.
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst Rationale: · line 137
Quoted 5 lines
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +5
-0+ +Rationale: +Xen reads the CNTFRQ_EL0 register to get the value of system timer frequency. +While there is a provision to get this value by reading the "clock-frequency" +dt property [2], the use of this property is strongly discouraged.I would put the second sentence as a comment as only the first one is the rationale explaining why we need it to be correct.
Quoted 14 lines
docs/fusa/reqs/design-reqs/arm64/generic-timer.rst +3
-0+ +Comments: +Covers:
-XenProd~emulated_timer~1docs/fusa/reqs/intro.rst +0
-0@@ -38,6 +38,16 @@ The requirements are linked using OpenFastTraceOpenFastTrace parses through the requirements and generates a traceability report.
Quoted 9 lines
docs/fusa/reqs/intro.rst The requirements are linked using OpenFastTrace · line 49
Quoted 9 lines
docs/fusa/reqs/intro.rst +9
-0+Assumption of Use +================= + +To fulfill one or more design requirements, there may be underlying assumptions +on one or more components that Xen interacts with directly or indirectly. For +eg, there may be assumptions on the underlying platform (hardware + firmware + +bootloader) to set certain registers, etc. The important thing here is that +anyone who validates these requirements, need to consider the assumption on the +other components.I think there is a typo.
Quoted 4 lines
Quoted 3 lines
I would simplify a bit:
Xen is making several assumptions on the status of the platform or on some functions being present and functional.s/functional/functionality.
no that sounds weird, functional is right in the sentence i think.
Quoted 9 lines
Quoted 7 lines
For example, Xen might assume that
some registers are set.
Anybody who wants to use Xen must validate that the platform it is used on (meaning the hardware and any software running before Xen like the firmware) fulfils all the AoU described by Xen.What do you think ?
It sounds ok.
Good
Cheers
Bertrand
Quoted 2 lines
- Ayan
Quoted 18 lines · Bertrand Marquis
Quoted 18 lines
Quoted 8 lines
Quoted 8 lines
docs/fusa/reqs/intro.rst +0
-0@@ -38,6 +38,16 @@ The requirements are linked using OpenFastTraceOpenFastTrace parses through the requirements and generates a traceability report.
Quoted 9 lines
docs/fusa/reqs/intro.rst The requirements are linked using OpenFastTrace · line 49
Quoted 9 lines
docs/fusa/reqs/intro.rst +9
-0+Assumption of Use +================= + +To fulfill one or more design requirements, there may be underlying assumptions +on one or more components that Xen interacts with directly or indirectly. For +eg, there may be assumptions on the underlying platform (hardware + firmware + +bootloader) to set certain registers, etc. The important thing here is that +anyone who validates these requirements, need to consider the assumption on the +other components.I think there is a typo.
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines
I would simplify a bit:
Xen is making several assumptions on the status of the platform or on some functions being present and functional.s/functional/functionality.
no that sounds weird, functional is right in the sentence i think.
"functional" is correct grammar here. "functionality" would not be.
However, "functions being present and functional" less than ideal. I'd suggest "present and working", "present and operational" instead, or to rework the first "functions" into something else.
~Andrew
Hi Andrew,
Quoted 24 lines · Andrew Cooper
Quoted 21 lines · Bertrand Marquis
Quoted 21 lines
Quoted 8 lines
Quoted 8 lines
docs/fusa/reqs/intro.rst +0
-0@@ -38,6 +38,16 @@ The requirements are linked using OpenFastTraceOpenFastTrace parses through the requirements and generates a traceability report.
Quoted 9 lines
docs/fusa/reqs/intro.rst The requirements are linked using OpenFastTrace · line 49
Quoted 9 lines
docs/fusa/reqs/intro.rst +9
-0+Assumption of Use +================= + +To fulfill one or more design requirements, there may be underlying assumptions +on one or more components that Xen interacts with directly or indirectly. For +eg, there may be assumptions on the underlying platform (hardware + firmware + +bootloader) to set certain registers, etc. The important thing here is that +anyone who validates these requirements, need to consider the assumption on the +other components.I think there is a typo.
Quoted 3 lines
I would simplify a bit:
Xen is making several assumptions on the status of the platform or on some functions being present and functional.
Quoted 8 lines
Quoted 2 lines
Quoted 1 line
s/functional/functionality.
no that sounds weird, functional is right in the sentence i think.
"functional" is correct grammar here. "functionality" would not be.
However, "functions being present and functional" less than ideal. I'd suggest "present and working", "present and operational" instead, or to rework the first "functions" into something else.
"Present and operational" sounds good to me as they might be working but be deactivated by firmware for example.
Cheers
Bertrand
Quoted 2 lines
~Andrew
Quoted 1 line · Bertrand Marquis
Hi Andrew,
Hi Andrew/Bertrand,
Quoted 22 lines
Quoted 22 lines · Andrew Cooper
Quoted 18 lines · Bertrand Marquis
Quoted 18 lines
Quoted 8 lines
Quoted 8 lines
docs/fusa/reqs/intro.rst +0
-0@@ -38,6 +38,16 @@ The requirements are linked using OpenFastTraceOpenFastTrace parses through the requirements and generates a traceability report.
Quoted 9 lines
docs/fusa/reqs/intro.rst The requirements are linked using OpenFastTrace · line 49
Quoted 9 lines
docs/fusa/reqs/intro.rst +9
-0+Assumption of Use +================= + +To fulfill one or more design requirements, there may be underlying assumptions +on one or more components that Xen interacts with directly or indirectly. For +eg, there may be assumptions on the underlying platform (hardware + firmware + +bootloader) to set certain registers, etc. The important thing here is that +anyone who validates these requirements, need to consider the assumption on the +other components.I think there is a typo.
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines
I would simplify a bit:
Xen is making several assumptions on the status of the platform or on some functions being present and functional.s/functional/functionality.
no that sounds weird, functional is right in the sentence i think.
"functional" is correct grammar here. "functionality" would not be.
Yes, I have left it as "functional" in my v4. I saw this message after I had sent out the patch.
Quoted 6 lines
Quoted 4 lines
However, "functions being present and functional" less than ideal. I'd suggest "present and working", "present and operational" instead, or to rework the first "functions" into something else.
"Present and operational" sounds good to me as they might be working but be deactivated by firmware for example.
I think the definition of AoU, seems clear to us.
Also any of the suggestions made by Andrew or Bertrand seems ok. (I don't have any opinion which one sounds better).
I will leave it to Stefano to fix the patch on commit (as suggested by Bertrand in v4).
- Ayan