-
Notifications
You must be signed in to change notification settings - Fork 92
[Deepin-Kernel-SIG] [linux 6.6-y] [Linkdata] scsi: linkdata ps3stor compilation problem solved #902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Deepin-Kernel-SIG] [linux 6.6-y] [Linkdata] scsi: linkdata ps3stor compilation problem solved #902
Conversation
Reviewer's GuideAdjust endianness conversion for dumpDmaBufLen to match its 32-bit field and resolve compilation break on CPU_BIG_ENDIAN. Class diagram for updated endianness conversion in ps3_ioc_init_cmd_prepareclassDiagram
class ps3_instance
class dump_context {
+u64 dump_dma_addr
}
class irq_context {
+u32 dump_isrSN
}
class init_frame_msg {
+u64 dumpDmaBufAddr
+u32 dumpDmaBufLen
+u32 dumpIsrSN
}
ps3_instance --> dump_context
ps3_instance --> irq_context
ps3_instance --> init_frame_msg
%% Highlight the change: dumpDmaBufLen is now set with cpu_to_le32
init_frame_msg : dumpDmaBufLen = cpu_to_le32(PS3_DUMP_DMA_BUF_SIZE)
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR resolves a compilation issue encountered when turning on the CPU_BIG_ENDIAN configuration by updating the DMA buffer length conversion.
- Change the conversion function for dumpDmaBufLen from cpu_to_le64 to cpu_to_le32
- Ensures the buffer length is correctly interpreted as a 32-bit value under the new configuration
Comments suppressed due to low confidence (1)
drivers/scsi/linkdata/ps3_ioc_manager.c:598
- Changing the conversion from cpu_to_le64 to cpu_to_le32 indicates that dumpDmaBufLen is intended to be a 32-bit value. Please confirm that PS3_DUMP_DMA_BUF_SIZE and corresponding usage consistently align with a 32-bit representation.
init_frame_msg->dumpDmaBufLen = cpu_to_le32(PS3_DUMP_DMA_BUF_SIZE);
category: bugfix Solve the compilation problem of turning on CPU_BIG_ENDIAN configuration Link: https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel/pulls/425 Signed-off-by: liujie_answer <[email protected]> Signed-off-by: WangYuli <[email protected]>
6089070
to
674acd6
Compare
deepin pr auto review关键摘要:
是否建议立即修改:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Avenger-285714 - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: opsiff The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Solve the compilation problem of turning on CPU_BIG_ENDIAN configuration
Link: https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel/pulls/425
Summary by Sourcery
Bug Fixes: