summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorTim Douglas <me@timdoug.com>2026-11-17 20:25:57 -0500
committerHelge Deller <deller@gmx.de>2026-11-19 07:08:56 +0100
commit3e973ab62c86d620b2db9e90eb8fc3b065929e6e (patch)
tree47a0f53338be6123b15dd33b227a96e43b6fffe5 /rust/kernel/alloc
parentf37d206e145d25607c6a8e920d7bb643d203a1f7 (diff)
fbdev: macmodes: compare the pixel clock of each candidate mode
In the second pass through the mode table in mac_var_to_vmode(), the requested pixel clock period was compared with the first mode's period at every step. The last mode at that resolution was therefore returned even when its period was too short. Compare against the current candidate's period. Tested on a Performa 6200CD using a kernel with local platform support. With video=valkyriefb:vmode:10 (800x600 at 60 Hz), the measured refresh rate was about 72 Hz before the fix and 60 Hz afterward. At 640x480, 67 Hz was also selected for a 60 Hz request before the fix. AI assistance was used to investigate the mode-table walk and draft the fix. Signed-off-by: Tim Douglas <me@timdoug.com> Fixes: d876c11a0fd4 ("fbdev: mac_var_to_mode() fix") Cc: stable@vger.kernel.org Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions