Skip to content

hv/trace_isp.py: add ISP tracer - #223

Merged
marcan merged 1 commit into
AsahiLinux:mainfrom
kellermanrivero:isp-tracer
Nov 4, 2022
Merged

marcan merged 1 commit into
AsahiLinux:mainfrom
kellermanrivero:isp-tracer

Conversation

@kellermanrivero

Copy link
Copy Markdown
Contributor

Image Signal Processor is a co-processor in charge of Facetime camera
in Apple laptops. This tracer is based on ISP found in M1 processor.

The ISP in M1 SoC exposes seven inter-process communication channels.
Using those channels Application Processor (AP) can perform a variety of
task in the ISP and viceversa. All channels seems to be bidirectional, with
unique exception of TERMINAL channel.

DART translation is used often to translate control structures passed
over IPC channels to IO virtual addresses.

How those channels are used is still unclear but tracer should allow us
to dive deep on high-level protocol to communicate with Facetime camera.
ISP exposes also some I2C peripheral and SPMI registers but I haven't
dive into their working or purpose.

This is early implementation, that mostly dumps ISP internal log buffer and
memory allocation calls.

@kellermanrivero
kellermanrivero force-pushed the isp-tracer branch 2 times, most recently from cce1862 to 8206496 Compare June 21, 2022 19:46
@marcan

marcan commented Jul 1, 2022

Copy link
Copy Markdown
Contributor

Looks good! Don't forget the DCO signoff on the commits :)

@kellermanrivero

kellermanrivero commented Jul 1, 2022 •

Copy link
Copy Markdown
Contributor Author

@marcan thanks! I'm glad to collaborate. I actually have no idea why it fails DCO check since the commit ends with:

"Signed-off-by: Kellerman Rivero krsloco@gmail.com"


EDIT:
Nevermind, it's actually looking for my work email (probably I pushed this from my work laptop) instead of my personal one. Let me fix this and resend it.

@marcan

marcan commented Jul 1, 2022 •

Copy link
Copy Markdown
Contributor

If you click on Details it will tell you: the signoff and the commit author differ.

Commit sha: 8206496, Author: Kellerman Rivero, Committer: Kellerman Rivero; Expected "Kellerman Rivero kellerms@amazon.com", but got "Kellerman Rivero krsloco@gmail.com".

Edit: it's not about where you push from, it's about where you commit and what your .gitconfig says. Use git commit --amend --reset-author to fix it for an existing commit, after changing your config.

Image Signal Processor is a co-processor in charge of Facetime camera
in Apple laptops. This tracer is based on ISP found in M1 processor.

The ISP in M1 SoC exposes seven inter-process communication channels.
Using those channels Application Processor (AP) can perform a variety of
task in the ISP and viceversa. All channels seems to be bidirectional, with
unique exception of TERMINAL channel.

DART translation is used often to translate control structures passed
over IPC channels to IO virtual addresses.

How those channels are used is still unclear but tracer should allow us
to dive deep on high-level protocol to communicate with Facetime camera.
ISP exposes also some I2C peripheral and SPMI registers but I haven't
dive into their working or purpose.

Signed-off-by: Kellerman Rivero <krsloco@gmail.com>
@kellermanrivero

Copy link
Copy Markdown
Contributor Author

@marcan sorry for the delay. I'm resurrecting this (assuming m1n1 hasn't changed too much that can be actually merged). I will resume work on this.

@kellermanrivero

Copy link
Copy Markdown
Contributor Author

Hi @marcan, anything I need to do on my side to get this merged? thanks in advance.

@marcan
marcan merged commit 404ab21 into AsahiLinux:main Nov 4, 2022
@marcan

marcan commented Nov 4, 2022

Copy link
Copy Markdown
Contributor

Sorry for the delay, this one dropped off my radar.

@kellermanrivero
kellermanrivero deleted the isp-tracer branch November 4, 2022 03:34
@kellermanrivero

Copy link
Copy Markdown
Contributor Author

Thanks! no worries.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants