foss-for-synopsys-dwc-arc-processors / linux

Helpful resources for users & developers of Linux kernel for ARC
22 stars 13 forks source link

Refactoring of the bolsh-arc64-event-logger branch #107

Closed pavelvkozlov closed 1 year ago

pavelvkozlov commented 1 year ago

This PR is a result of refactoring of the bolsh-arc64-event-logger branch. Here I've collected most of commits from the bolsh-arc64-event-logger branch.

What this branch do: The main idea of this branch is providing most valuable changes from the bolsh-arc64-event-logger branch to the arc64 branch. Some of commits in this branch have been modified (removed changes of clock freq and base address). But main code hasn't changed.

What this branch doesn't do: I've dropped commits:

As they deserve their own branches, where they can be developed and prepared for merge into the arc64 Also dropped commits:

Also:

I have some doubts about commits: ARCv3: increase mmap address space for HS6x ARCv3: Add the ability to change the size of mapped kernel address space

I think some parameters of System Memory Map can be changed, but as current variant was widly used and tested, I think I should offer my changes in a separate branch after merge of these changes.

Compatible with current buildroot. Tested on QEMU and nSIM arc32/arc64.

pavelvkozlov commented 1 year ago

Dropped commit: ARCv3: Add option to select chunk size of kernel mapping. This commit prevents kernel boot and causes to CI fails in configuration with 64K pages. It is open question should we add this commit to the arc64 branch. This commit offers tradeof of some benefits from using large blocks (2Mb PMD) and increasing the kernel image size. It doesn't work in all configurations and perhaps extra option should be added to the menuconfig to enable this feature. It should be dropped or reworked and fixed in separate branch.

pavelvkozlov commented 1 year ago

Fixed build of arc64 configuration with 16K pages after drop of commit: ARCv3: Add option to select chunk size of kernel mapping.