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

os/arch/arm/src/amebasmart: Enable/disable loguart rx irq according t… #6534

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhongnuo-tang
Copy link
Contributor

…o driver call

  1. Loguart rx irq should be handled properly with enable/disable

Copy link
Contributor

@ewoodev ewoodev left a comment

Choose a reason for hiding this comment

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

I would like to check how it is currently going from booting to when LOG UART RX is first enabled in this regard.

if we enable here, do we need to set privious changs of LOG UART enable during boot?

@ewoodev
Copy link
Contributor

ewoodev commented Nov 25, 2024

The UART porting layer of TizenRT remains unchanged from amebaD.
I think that routing the LOG UART through up_lowgetc and up_lowputc has caused a number of issues.
Could you please explain why this structure was changed and why it is being maintained?

…o driver call

1. Loguart rx irq should be handled properly with enable/disable
2. let driver re-enable rx irq instead of manually enable during boot.
@zhongnuo-tang
Copy link
Contributor Author

I would like to check how it is currently going from booting to when LOG UART RX is first enabled in this regard.

if we enable here, do we need to set privious changs of LOG UART enable during boot?

Hi @ewoodev, we can remove the enable during boot with this changes.

@zhongnuo-tang
Copy link
Contributor Author

The UART porting layer of TizenRT remains unchanged from amebaD. I think that routing the LOG UART through up_lowgetc and up_lowputc has caused a number of issues. Could you please explain why this structure was changed and why it is being maintained?

amebaD's loguart is a common UART which can use the same set of structure like UART1.. However, in amebasmart, there is a dedicated UART for LOGUART only, that is why we are using a separate set of flow different from UART0/1/2..
image

@sunghan-chang
Copy link
Contributor

@zhongnuo-tang Could you let us know some information as below?

  1. How did you verify the PR?
  2. If we don't apply this, what happen? (I mean what was the issue?)

@zhongnuo-tang
Copy link
Contributor Author

@zhongnuo-tang Could you let us know some information as below?

  1. How did you verify the PR?
  2. If we don't apply this, what happen? (I mean what was the issue?)

Hi @sunghan-chang ,
without this PR, the loguart rx irq is not controlled, meaning it will always be enabled even driver calls disabled.. If uart_disablerxint is called, it will still able to trigger loguart rx irq, which should not be the case.

@sunghan-chang
Copy link
Contributor

@ewoodev @gSahitya-samsung @neel-samsung @ritesh55555 This is necessary to review and to verify. Could you check that?

@ewoodev
Copy link
Contributor

ewoodev commented Dec 10, 2024

Hello @zhongnuo-tang
Could you please verify uart stuck if enter tash during booting??

@zhongnuo-tang
Copy link
Contributor Author

Hello @zhongnuo-tang Could you please verify uart stuck if enter tash during booting??

verified with loadable_ext DDR, spamming tash during booting, no stuck occurred.

sunghan-chang
sunghan-chang previously approved these changes Dec 13, 2024
@ewoodev
Copy link
Contributor

ewoodev commented Dec 13, 2024

Hello @zhongnuo-tang Could you please verify uart stuck if enter tash during booting??

verified with loadable_ext DDR, spamming tash during booting, no stuck occurred.

In my test, the stuck is occurred. Could you please verify psram also?

@sunghan-chang sunghan-chang dismissed their stale review December 13, 2024 10:59

need to retest

@zhongnuo-tang
Copy link
Contributor Author

Hello @zhongnuo-tang Could you please verify uart stuck if enter tash during booting??

verified with loadable_ext DDR, spamming tash during booting, no stuck occurred.

In my test, the stuck is occurred. Could you please verify psram also?

Hi @ewoodev,
Using latest tizenrt sha:511aa520a8c9b080331d60522fe85aa7ba1bfca1
Verified with loadable_ext_psarm: spamming tash during booting, no stuck occurred.
Verified with loadable_ext_ddr: spamming tash during booting, no stuck occurred.
Verified with loadable_apps: spamming tash during booting, no stuck occurred.

Maybe you can share with the git sha u tested on? or which defconfig u are using?

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