Skip to content

Linux 7.0.2 fix 6490#553

Open
CodeChenL wants to merge 4 commits into
radxa:linux-7.0.2from
CodeChenL:linux-7.0.2-fix_6490
Open

Linux 7.0.2 fix 6490#553
CodeChenL wants to merge 4 commits into
radxa:linux-7.0.2from
CodeChenL:linux-7.0.2-fix_6490

Conversation

@CodeChenL
Copy link
Copy Markdown
Member

@CodeChenL CodeChenL commented May 12, 2026

1:DP显示默认关闭DP音频也要默认关闭
2-3:修复分辨率切换
4:逻辑来自 linux-6.18.2 进行破坏性更小的重构

@CodeChenL
Copy link
Copy Markdown
Member Author

@BigfootACA @strongtz 有空也可以review一下,谢谢

Copy link
Copy Markdown
Member

@RadxaYuntian RadxaYuntian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

topology.num_lm = 2;
else if (dpu_kms->catalog->caps->has_3d_merge)
topology.num_lm = (mode->hdisplay > MAX_HDISPLAY_SPLIT) ? 2 : 1;
topology.num_lm = (mode->hdisplay > max_hdisplay_split) ? 2 : 1;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这儿会让 sc8280xp 对于 4k@120 的mode使用单个 lm 而不是之前的两个,导致输出蓝屏,具体原因暂不确定

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我也发现这个改动在我的采集卡上好像不能设置大于1080P,显示器可以

Copy link
Copy Markdown
Member Author

@CodeChenL CodeChenL May 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

但是之前不加这三个补丁会导致某些分辨率显示不全,我在复测看看,经过那么多更改了,说不定被其他内容修好了

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

取消这三个补丁会报错

[   37.371959] [drm:_dpu_rm_check_lm_and_get_connected_blks] [dpu error]LM_2, invalid DSPP_-1
[   37.380610] [drm:_dpu_rm_check_lm_and_get_connected_blks] [dpu error]LM_3, invalid DSPP_-1
[   37.389462] [drm:_dpu_rm_make_reservation] [dpu error]unable to find appropriate mixers
[   37.397990] [drm:dpu_rm_reserve] [dpu error]failed to reserve hw resources: -119

而且只显示左上角

还在调试怎么解决比较好,而且不影响q8b

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

之前revert掉drm/msm的13个改动倒是没啥问题

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

除了还会报错

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对了蓝屏现象你有尝试过clk_ignore_unused吗
不加这个参数在6490上+drm/msm的13个改动也会蓝屏

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我现在所有测试都是默认加 clk_ignore_unused 的

Comment thread drivers/remoteproc/qcom_q6v5_pas.c Outdated
int crash_reason_smem;
unsigned int smem_host_id;
bool decrypt_shutdown;
bool broken_reset;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种改法可能不太能upstream,最好是不引入qcom,broken-reset,直接能够判断dsp是否已经启动了,至于dsp如果真的crash了那让它restart remoteproc的时候直接fail就行

不过如果功能正常的话先保持这样合进去也行,我后面再想想办法

@CodeChenL CodeChenL marked this pull request as draft May 14, 2026 08:20
CodeChenL added 4 commits May 19, 2026 18:38
Because not all base boards equipped with radxa-cm-q64 will use the DP interface.

So the DisplayPort audio is turned off by default following the display settings.

Avoid sound card probe failure when using WCD Codec alone.

Signed-off-by: Jiali Chen <chenjiali@radxa.com>
Only propagate HPD notifications when
the connector state actually changes
so transient plug interrupts during normal operation
do not trigger unnecessary userspace reprobes and mode fallback.

Signed-off-by: Jiali Chen <chenjiali@radxa.com>
Skip per-CRTC DSPP reservations when color management
would require more DSPP blocks than the platform actually exposes
so high-resolution modesets continue instead of
failing allocation on DSPP-limited hardware.

Signed-off-by: Jiali Chen <chenjiali@radxa.com>
Some Qualcomm platforms may have PAS firmware authenticated and
started by boot firmware before Linux probes the remoteproc device.
In that state Linux cannot safely reload the image,
but it still needs to attach to the already running subsystem.

Detect an externally started remote from the SMP2P boot-state signals
and mark it detached so the remoteproc core can attach instead of
attempting a fresh firmware load. When the remote is
externally managed, reject firmware loading and
avoid issuing PAS shutdown for the main and DTB images.

This allows systems such as SC7280 with UEFI-preloaded firmware
to keep the subsystem available without
transferring firmware lifecycle ownership to Linux.

Signed-off-by: Jiali Chen <chenjiali@radxa.com>
@CodeChenL CodeChenL force-pushed the linux-7.0.2-fix_6490 branch from 2179ecb to 877f6ce Compare May 19, 2026 10:42
@CodeChenL CodeChenL marked this pull request as ready for review May 19, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants