Skip to content
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

Improve the way data from FAST RAM is accessed by the PPC #10

Open
DvdBoon opened this issue Feb 26, 2020 · 1 comment
Open

Improve the way data from FAST RAM is accessed by the PPC #10

DvdBoon opened this issue Feb 26, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request nice to have Feature at the bottom of the to do list

Comments

@DvdBoon
Copy link
Contributor

DvdBoon commented Feb 26, 2020

Currently, the PPC asks the 68K to fetch it data 1-4 bytes at the time when this data is in FAST RAM. This is a context switch every time this happens:

I am thinking of moving a 4096 bytes block of FAST RAM in which the data is contained to PPC RAM and point the 68K MMU to it. The PPC MMU also has to be updated accordingly.

E.g. access by the PPC to 0x08100000 (FAST RAM) with PPC base at 0x6c000000 as seen from 68K:

  1. Send request to 68K
  2. 68K moves 0x08100000 - 0x08101000 (an MMU page) to 0x6c3d0000
  3. 68K MMU is updated to point to 0x6c3d0000 when 0x08100000 is addressed.
  4. 68K tells PPC it is done
  5. PPC MMU is updated to point to 0x003d0000 when 0x08100000 is addressed.

Every access within this page now does not trigger a context switch.

Maybe have 2 of those pages active. copy back the oldest one when a new one is needed.

@DvdBoon DvdBoon added the enhancement New feature or request label Feb 26, 2020
@DvdBoon
Copy link
Contributor Author

DvdBoon commented Feb 26, 2020

There is plenty of room within the first 4.5 MB of the PPC cards. This is only used for the kernel (50k) and messages (2MB).

@DvdBoon DvdBoon self-assigned this Feb 13, 2024
@DvdBoon DvdBoon added the nice to have Feature at the bottom of the to do list label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request nice to have Feature at the bottom of the to do list
Projects
None yet
Development

No branches or pull requests

1 participant