drm/amd/display: Simply VRR state handling - #6
Conversation
Enable freesync_on_desktop for HDMI streams so the display can keep FreeSync enabled during normal desktop use. This allows the HDMI VRR path to support fixed-refresh desktop operation while retaining FreeSync signaling for the display. Signed-off-by: Andy East <andy10115@gmail.com>
|
When you send patches what you want to do is send them correct right away for linux maintainers to pickup not adding fixes as more commits. The way I do it is that, if I need to rework 2 commits: git format-patch -2
# this creates two .patch files
git reset --hard HEAD~2
# this removes the latest two commits
git am 0001-*.patch
# apply the first patch
# modify the file manually to resolve issues
git add <file>
git commit --amend
# and 0001 is fixed in-tree with the backup file untouched
# now do the same for 0002, 0003, etc....note that this is how I do it and there are other ways such as interactive rebase, though I find backing up revisions of my patch files is useful. Be mindful not to remove all your patches after a reset or you will lose work. When the thing is fixed I can regenerate the patchset to send upstream with -v{2,3,4,5,....} --cover-letter or do git push --force to brutally overwrite the remote. |
|
I'm at least partially following you. I was trying to modify my original commits, which seems should have been 1. (Been working in web editor up until recently so still learning vscodium). But this helps. I see the point here as well. Makes something they can instantly pull into they like it. Seeing this title format is helpful too. I do want to ask though. Is this actually upstreamable? Works around a issue rather than addressing it. Ha sorry can you tell I just started doing this like maybe a month or two ago? So what needs to be done on this still? |
That I don't know, but I'd say that if this commit makes something work that before didn't work it has a reason to be sent upstream even if just to make other devs aware of what worked for you.
From your message I understand that this is meant to be a single patch, so make these three patches one again:
commands (*): patch -p1 < 0001-*.patch
patch -p1 < 0002-*.patch
patch -p1 < 0003-*.patch
git add .
git commit
The commit message begins with drm/amd/display: <title> The commit message has to respect guidelines, basically write the why you are doing something and what you do as if you were giving git itself a command. Link: the amd issue you linked to me or, if this patch solves the issue: Closes: that same link Signed-off-by: you |
Treat VRR_STATE_INACTIVE as VRR-active when freesync_on_desktop is enabled so HDMI VTEM continues advertising VRR during fixed-refresh desktop use. Use a single vrr_active value for both the VTEM VRR_EN bit and the Data_Set_Length decision. This keeps VTEM signaling consistent while allowing the display to remain in its VRR mode without varying the actual refresh rate. Signed-off-by: Andy East <andy10115@gmail.com>
49e33c7 to
d8f22a8
Compare
|
A piece got lost. What's happening here? |
|
I believe Kyle just included the 2 correct commits. Rather than the first that I corrected. |
The two commits do two different things, one enables HDMI Desktop VRR, the other makes it so VRR on and off are the same thing, off just sets a single refresh rate. Both should be applied, but they do different things individually and dont require eachother. |
|
Looking like maybe this one should be closed? Appreciate the assist on this either way. Hope I can learn a bit more and try and help here as I'm able. |
I am waiting to merge to leave others time to review. Merge will wait at least until tomorrow (a week from first send) |
This isn't the ideal pattern. Instead of resetting your HEAD you can use this pattern: When done,
No reset, no git am, no failed merges from git am on subsequent files. if you make a mistake you can |
I tried for ally v3 because I wanted to... I made a mess and doing the v4 took a long time. I will postpone learning this for now, but thanks for the suggestion! |
|
NVM I'm stupid |
|
Does this conflict with this VRR patch series? https://lore.kernel.org/dri-devel/20260901191251.2653684-1-jerry.zuo@amd.com/ @andy10115 |
|
Intended to workaround an issue, but intent is for it to work with that
patch.
…On Wed, Sep 2, 2026, 6:34 AM Philip Müller ***@***.***> wrote:
*hphilm* left a comment (OpenGamingCollective/linux-unstable#6)
<#6 (comment)>
Does this conflict with this VRR patch series?
***@***.***/
@andy10115 <https://github.com/andy10115>
—
Reply to this email directly, view it on GitHub
<#6?email_source=notifications&email_token=BG3END3RS7RACAPX5DN2YTL5M7ZUVA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNJQHAZDCMBSGI3KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5508210226>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BG3END5GDFAPKUAZJ55NBTD5M7ZUVAVCNFSNUABGKJSXA33TNF2G64TZHMYTGMZWGAZDAMZTHE5US43TOVSTWNJSGQ4TENJSGYZDJILWAI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
No description provided.