feat[DSS7]: Document SELF_REFRESH and ALWAYS_ON_DISPLAY properties - #760
feat[DSS7]: Document SELF_REFRESH and ALWAYS_ON_DISPLAY properties#760devarsht wants to merge 1 commit into
Conversation
StaticRocket
left a comment
There was a problem hiding this comment.
There's also some unnecessary use of passive voice in here
|
Don't have any comments, looks good to me. |
@StaticRocket Yeah but re-reading those sentences which vale reported, those sentences look very much understandable/readable to me and I would prefer to keep that way. But if it's a more popular opinion to always use active voice I can always modify. |
|
Technical documentation is normally declarative and uses active voice. As an example of what I mean: We are dictating the way something behaves under optimal conditions. We are not writing to a friend about something that may or may not happen due to circumstance. It makes it dry, but brief, easier to translate, and usually easier to understand. |
|
You're also bugging commit-check with that patch formatting |
Hmm, but when describing properties, passive voice is what is mostly what is preferred. See below examples from kernel docs and gstreamer docs: Kernel docs : For e.g. kernel doc uses passive voice: And here too: Gstreamer docs: force-aspect-ratio Flags : Read / Write Default value : true |
|
All of those examples could easily use active voice to convey the same thing in fewer words:
Peak video bitrate in bits per second. Must be larger or equal to the average video bitrate. When using a constant bitrate this value does nothing.
The Coded Picture Buffer size in kilobytes. This can be a limitation of frame skip. That sentence is a little weird as written though. Think you may have left some part of it off. The way it was written is a little vague. Any project is free to do what it wants, I'm just trying to enforce standard practices here. |
a4434a1 to
ff79076
Compare
Add the SELF_REFRESH (plane) and ALWAYS_ON_DISPLAY (crtc) DRM properties to the tidss properties table, along with usage sections describing their behaviour and modetest examples, following the format used for the other documented properties. Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
Alright, thanks for sharing, Updated the PR as suggested. |
Yes, fixed that too. |
| +----------------------------------+-----------------------------------+ | ||
|
|
||
| If the frame exceeds the internal buffer size for the given SoC, ``SELF_REFRESH`` | ||
| will not activate for that plane. |
There was a problem hiding this comment.
So, Self refresh property will still be set to 1 but nothing will be visible on display or neither property will be set to 1 nor will anything be displayed?
Can you please add this clearly so that the user can know how to recover from such scenarios (activate is a bit confusing to understand)
| reinitialization of the DSI and D-PHY link the next time an application opens the | ||
| device, at the cost of keeping that hardware powered while idle. | ||
|
|
||
| The driver applies two complementary PM holds to tidss and to every bridge/PHY |
There was a problem hiding this comment.
PM holds is a confusing term, can we make it simpler
| However, surviving an actual system-wide low power state (for example | ||
| ``echo mem > /sys/power/state``) additionally requires cooperation from the | ||
| device firmware, which must also be told to keep the display power rails on | ||
| during that low power state. This firmware-side support is currently only |
There was a problem hiding this comment.
is currently gives an impression that it is possible to add support for this to other devices in future, which is not correct.
Can we reword it to state that this is only possible on AM62L SoC.
| .. ifconfig:: CONFIG_part_variant in ('J721E', 'J721S2', 'J784S4','J742S2') | ||
|
|
||
| .. Image:: /images/DSS7_HW.png | ||
|
|
||
| .. ifconfig:: CONFIG_part_variant in ('AM62X', 'AM65X', 'AM62AX', 'AM62PX', 'J722S') | ||
|
|
||
| .. Image:: /images/DSS7Lite_HW.png | ||
|
|
||
|
|
||
| The above image gives an overview of the DSS hardware. | ||
| .. ifconfig:: CONFIG_part_variant in ('J721E', 'J721S2', 'J784S4', 'J742S2', 'AM62X', 'AM65X', 'AM62AX', 'AM62PX', 'J722S') | ||
|
|
||
| The above image gives an overview of the DSS hardware. |
There was a problem hiding this comment.
| The above image gives an overview of the DSS hardware. | |
| .. ifconfig:: CONFIG_part_variant in ('J721E', 'J721S2', 'J784S4','J742S2') | |
| .. figure:: /images/DSS7_HW.png | |
| Overview of DSS Hardware | |
| .. ifconfig:: CONFIG_part_variant in ('AM62X', 'AM65X', 'AM62AX', 'AM62PX', 'J722S') | |
| .. figure:: /images/DSS7Lite_HW.png | |
| Overview of DSS Hardware | |
| to 1, the DSS hardware loops the last frame the plane received from its internal | ||
| buffer. The driver silently ignores any new framebuffer that userspace submits | ||
| while the property remains set. The display resumes normal operation, taking new | ||
| framebuffers into account, only after userspace clears the property (sets it back |
There was a problem hiding this comment.
Please update the vale accept.txt for the plural form of framebuffer.
[Ff]ramebuffers?
| | SELF_REFRESH | plane | Boolean property. When set, plays the last displayed frame in a loop from the DSS internal buffer; | | ||
| | | | the driver ignores new framebuffers submitted by userspace until userspace clears the property. | | ||
| +--------------------+----------+------------------------------------------------------------------------------------------------------+ | ||
| | ALWAYS_ON_DISPLAY | crtc | Boolean property. When set, keeps the video port, along with its associated bridges and PHYs, | |
There was a problem hiding this comment.
CRTC is an acronym. Why is it lowercase in this file?
| Abbreviations | ||
| ============= | ||
|
|
||
| +-----------------+--------------------------------------------------------------+ | ||
| | Abbreviation | Description | | ||
| +=================+==============================================================+ |
There was a problem hiding this comment.
| Abbreviations | |
| ============= | |
| +-----------------+--------------------------------------------------------------+ | |
| | Abbreviation | Description | | |
| +=================+==============================================================+ | |
| Acronyms | |
| ======== | |
| +-----------------+--------------------------------------------------------------+ | |
| | Acronym | Description | | |
| +=================+==============================================================+ |
I appreciate this effort, but it doesn't really make vale happy. Still looking at adding a global glossary for all of this. Unfortunately even with a global glossary I think we'll have domain specific overlaps. Still not entirely sure how I want that to work.
Add the SELF_REFRESH (plane) and ALWAYS_ON_DISPLAY (crtc) DRM properties to the tidss properties table, along with usage sections describing their behaviour and modetest examples, following the format used for the other documented properties.