Skip to content

Conversation

@superm1
Copy link
Contributor

@superm1 superm1 commented Nov 6, 2025

This at least fixes up the code in XRT. I think there is more work to be done in libqdma.

See #9300

@superm1 superm1 requested a review from maxzhen as a code owner November 6, 2025 06:07
@gbuildx
Copy link
Collaborator

gbuildx commented Nov 6, 2025

superm1 - is not a collaborator
Can XRT admins please validate PR

Copy link
Collaborator

@maxzhen maxzhen left a comment

Choose a reason for hiding this comment

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

Please add kernel version check for the iommu and timer related changes so that we can keep the same logic and not break build with older kernel version.

@superm1 superm1 changed the title Fixups on bin_attribute handling necessary for newer kernels xocl: Fixes for compilation on kernel 6.16+ Nov 6, 2025
@superm1 superm1 requested a review from maxzhen November 6, 2025 17:21
@maxzhen
Copy link
Collaborator

maxzhen commented Nov 6, 2025

ok to test

@gbuildx
Copy link
Collaborator

gbuildx commented Nov 6, 2025

superm1 - is not a collaborator
Can XRT admins please validate PR

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

clang-tidy review says "All clean, LGTM! 👍"

@gbuildx
Copy link
Collaborator

gbuildx commented Nov 6, 2025

superm1 - is not a collaborator
Can XRT admins please validate PR

@maxzhen
Copy link
Collaborator

maxzhen commented Nov 6, 2025

ok to test

@gbuildx
Copy link
Collaborator

gbuildx commented Nov 6, 2025

superm1 - is not a collaborator
Can XRT admins please validate PR

1 similar comment
@gbuildx
Copy link
Collaborator

gbuildx commented Nov 7, 2025

superm1 - is not a collaborator
Can XRT admins please validate PR

@superm1
Copy link
Contributor Author

superm1 commented Nov 12, 2025

Anything else needed for me for this?

@gbuildx
Copy link
Collaborator

gbuildx commented Nov 12, 2025

⚠️ Authorization Failed

@superm1 is not a repository collaborator.

To proceed:

  • XRT Admins: Add the build label to authorize this PR build
  • OR Add @superm1 as a repository collaborator

3 similar comments
@gbuildx
Copy link
Collaborator

gbuildx commented Nov 12, 2025

⚠️ Authorization Failed

@superm1 is not a repository collaborator.

To proceed:

  • XRT Admins: Add the build label to authorize this PR build
  • OR Add @superm1 as a repository collaborator

@gbuildx
Copy link
Collaborator

gbuildx commented Nov 12, 2025

⚠️ Authorization Failed

@superm1 is not a repository collaborator.

To proceed:

  • XRT Admins: Add the build label to authorize this PR build
  • OR Add @superm1 as a repository collaborator

@gbuildx
Copy link
Collaborator

gbuildx commented Nov 12, 2025

⚠️ Authorization Failed

@superm1 is not a repository collaborator.

To proceed:

  • XRT Admins: Add the build label to authorize this PR build
  • OR Add @superm1 as a repository collaborator

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@superm1 superm1 force-pushed the xocl-dkms branch 2 times, most recently from 1b084e0 to 6d32b7a Compare November 19, 2025 04:26
Newer kernels are more stringent about the use of const.

Link: Xilinx#9300
Signed-off-by: Mario Limonciello (AMD) <[email protected]>
Signed-off-by: Mario Limonciello (AMD) <[email protected]>
  CC [M]  ../../common/kds_hwctx.o
../../common/kds_hwctx.c: In function ‘show_kds_cuctx_stat_raw’:
../../common/kds_hwctx.c:59:41: error: ‘__seg_gs’ specified for auto variable ‘res’
   59 |                                         cu_stat_read(cu_mgmt, usage[i]), type);
      |                                         ^~~~~~~~~~~~
../../common/kds_hwctx.c:99:49: error: ‘__seg_gs’ specified for auto variable ‘res’
   99 |                                                 cu_stat_read(cu_mgmt, usage[i]), type);
      |                                                 ^~~~~~~~~~~~
make[5]: *** [/usr/src/linux-headers-6.17.6+deb14-common/scripts/Makefile.build:292: ../../common/kds_hwctx.o] Error 1

The issue is that the stat_read macro is using typeof on a per-CPU variable field, which newer GCC versions handle
differently for segment-register-based per-CPU variables. The __seg_gs attribute is getting applied to the local
res variable, which is causing a compilation error.

Modify the stat_read macro to avoid the issue with typeof and segment registers.

Signed-off-by: Mario Limonciello (AMD) <[email protected]>
@superm1
Copy link
Contributor Author

superm1 commented Nov 19, 2025

Matching change in libqdma: Xilinx/dma_ip_drivers#358

@superm1
Copy link
Contributor Author

superm1 commented Nov 19, 2025

Is that latest CI failure real? Can you upload the log? http://fisweb.xilinx.com:8080/proj/fis/scripts/buildNumber:3714_1_boardfarm_xilinx_u250_gen3x16_xdma_4_1_202210_1.log seems to be 404 for me.

@superm1
Copy link
Contributor Author

superm1 commented Nov 19, 2025

But FYI this patch series + libqdma one does work properly on kernel 6.17 now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants