Skip to content

GDB: Added IPC trigger for GDB debug. - #657

Merged
lgirdwood merged 1 commit into
thesofproject:masterfrom
mrajwa:gdb_support
Dec 7, 2018
Merged

lgirdwood merged 1 commit into
thesofproject:masterfrom
mrajwa:gdb_support

Conversation

@mrajwa

@mrajwa mrajwa commented Nov 30, 2018

Copy link
Copy Markdown
Contributor

Signed-off-by: Marcin Rajwa marcin.rajwa@linux.intel.com

This change allows to send an IPC request for FW to start GDB session.
NOTE: In order to provide IPC response which includes new feature update of ABI will be required.

@lgirdwood lgirdwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you also add yourself to CODEOWNERS for GDB related files. Thanks !

Comment thread src/ipc/handler.c Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

C style comments please.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Corrected.

@zrombel

zrombel commented Dec 5, 2018

Copy link
Copy Markdown

CI test will fail because of changes in sof_ipc_fw_ready structure. We will test it manually and give feedback. PR merge have to be synchronized with CI Tests update.

@lgirdwood

Copy link
Copy Markdown
Member

@zrombel @xiulipan given that you guys are doing the CI dev, does it make sense to add you guys to any part of the CODEOWNERS so you are notified on any areas that could impact CI ?

@lgirdwood

Copy link
Copy Markdown
Member

@mrajwa ping, update ready yet ?

@mrajwa

mrajwa commented Dec 5, 2018

Copy link
Copy Markdown
Contributor Author

@lgirdwood , updated now.

@zrombel

zrombel commented Dec 5, 2018

Copy link
Copy Markdown

@lgirdwood that's actually a good idea. As for CI tests we are mainly concerned about IPC structures which changes will affect tests execution.

@zrombel

zrombel commented Dec 5, 2018

Copy link
Copy Markdown

All tests have pass and we are ready with test update so merge whenever you're ready.

@xiulipan

xiulipan commented Dec 5, 2018

Copy link
Copy Markdown
Contributor

@lgirdwood @zrombel
I think for ABI change may need notify CI. For QB, they may need modify their IPC structure for sof-ci the kernel need to be updated as well.

@lgirdwood

Copy link
Copy Markdown
Member

@mrajwa thanks, btw there's a small conflict in CODEOWNERS. Will merge after fixed.

@mrajwa

mrajwa commented Dec 6, 2018

Copy link
Copy Markdown
Contributor Author

@lgirdwood, conflict in CODEOWNERS resolved.

@lgirdwood

Copy link
Copy Markdown
Member

@mrajwa are you sure, I waited a few hours and double checked but it still shows a conflict for me ?

Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
@mrajwa

mrajwa commented Dec 7, 2018

Copy link
Copy Markdown
Contributor Author

@lgirdwood, how about now?

@lgirdwood
lgirdwood merged commit acce742 into thesofproject:master Dec 7, 2018
@lgirdwood

Copy link
Copy Markdown
Member

@mrajwa got it now, it did disappear from github for a few hours though but it's merged now.

@xiulipan

Copy link
Copy Markdown
Contributor

@mrajwa @lgirdwood
Where is the linux kernel part for this ABI change? And where is the ABI version change?

Why not use

	uint32_t gdb_enabled;
 	/* reserved for future use */
	uint32_t reserved[3];

There are 4 uint32_t reserved for the future use. Just change the whole IPC structure size will have a sudden shock for the linux and sof.

@lgirdwood

Copy link
Copy Markdown
Member

@xiulipan no users yet, so ABI part can updated once kernel part is merged (otherwise we increment ABI for no benefit|).

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.

4 participants