RESOLVED FIXED 221198
CeilingOnPageSize too low for Loongson CPUs
https://bugs.webkit.org/show_bug.cgi?id=221198
Summary CeilingOnPageSize too low for Loongson CPUs
Alberto Garcia
Reported 2021-02-01 02:26:46 PST
CeilingOnPageSize is set to 4KB for MIPS on Linux, but that value is not permitted on Loongson CPUs which have a 16KB page size: https://sources.debian.org/src/linux/5.10.9-1/arch/mips/Kconfig/#L2213-L2215
Attachments
Patch (1.48 KB, patch)
2021-05-15 15:57 PDT, Alberto Garcia
no flags
Xan Lopez
Comment 1 2021-02-01 02:56:04 PST
Our guess is that we are crashing in WTF::pageSize(): RELEASE_ASSERT_WITH_MESSAGE(s_pageSize <= CeilingOnPageSize, "CeilingOnPageSize is too low, raise it in PageBlock.h!"); For Loongson CPUs that will be 16 <= 4, which won't work. We can change the general ceiling value for MIPS to something else, at least 16KB, or try to detect Loongson CPUs and change it just for those.
Alberto Garcia
Comment 2 2021-02-01 02:59:32 PST
(In reply to Xan Lopez from comment #1) > We can change the general ceiling value for MIPS to something else, > at least 16KB, or try to detect Loongson CPUs and change it just for > those. For distributions I don't think the latter is an option, because there's no guarantee that the machine where the package is built is the same where it is installed and run. But I can patch that downstream if there's no good general solution.
Radar WebKit Bug Importer
Comment 3 2021-02-08 02:27:13 PST
Alberto Garcia
Comment 4 2021-05-15 14:13:58 PDT
This was fixed for 32-bit MIPS in r276583 (bug 225030), I think we should also do it for MIPS64.
Michael Catanzaro
Comment 5 2021-05-15 15:46:19 PDT
(In reply to Alberto Garcia from comment #4) > This was fixed for 32-bit MIPS in r276583 (bug 225030), I think we should > also do it for MIPS64. Do it!
Alberto Garcia
Comment 6 2021-05-15 15:57:25 PDT
EWS
Comment 7 2021-05-15 16:55:01 PDT
Committed r277551 (237779@main): <https://commits.webkit.org/237779@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 428747 [details].
Michael Catanzaro
Comment 8 2022-02-15 07:47:51 PST
*** Bug 223721 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.