Skip to content

Conversation

kwd-doodling
Copy link
Contributor

@kwd-doodling kwd-doodling commented May 16, 2024

This commit enables ISH boards to use APIC timer with TSC time source as
their system timer by replacing CONFIG_HPET with CONFIG_APIC_TIMER_TSC.

@zephyrbot zephyrbot added the platform: Intel ISH Intel Corporation, Integrated Sensor Hub label May 16, 2024
@zephyrbot zephyrbot requested a review from teburd May 16, 2024 06:44
@kwd-doodling kwd-doodling requested a review from tejlmand May 16, 2024 06:45
teburd
teburd previously approved these changes May 16, 2024
@teburd teburd requested review from dcpleung and nashif May 16, 2024 14:20
@teburd
Copy link
Contributor

teburd commented May 16, 2024

I guess a question here would be, as @andyross noted, why don't we use the apic_tsc timer driver in place of apic, if the end goal is using apic tsc with #72839

@teburd teburd dismissed their stale review May 16, 2024 15:30

In light of apic_tsc existing I think we need to ask why we don't use that instead

@kwd-doodling
Copy link
Contributor Author

I guess a question here would be, as @andyross noted, why don't we use the apic_tsc timer driver in place of apic, if the end goal is using apic tsc with #72839

ISH is a legacy CPU in fact :) Run apic_tsc on ISH already, ASSERT on "__ASSERT((ecx & BIT(24)) != 0, "No TSC Deadline support");"

@kwd-doodling kwd-doodling requested a review from teburd May 17, 2024 02:44
teburd
teburd previously approved these changes May 17, 2024
@kwd-doodling kwd-doodling force-pushed the ish_with_apic_timer branch from 079889a to 609cca8 Compare May 22, 2024 01:31
@kwd-doodling kwd-doodling force-pushed the ish_with_apic_timer branch from 609cca8 to 926a3b5 Compare May 31, 2024 03:09
@kwd-doodling kwd-doodling changed the title soc: intel_ish: Add APIC timer support for ISH soc: intel_ish: Make ISH support APIC timer with TSC time source. May 31, 2024
@kwd-doodling
Copy link
Contributor Author

update this patch after #72839 was abandoned and #73185 was merged.

teburd
teburd previously approved these changes May 31, 2024
@teburd teburd requested a review from edersondisouza June 11, 2024 17:50
This commit enables ISH boards to use APIC timer with TSC time source as
their system timer by replacing CONFIG_HPET with CONFIG_APIC_TIMER_TSC.

Signed-off-by: Dong Wang <dong.d.wang@intel.com>
@dleach02 dleach02 merged commit 521a5ca into zephyrproject-rtos:main Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Intel ISH Intel Corporation, Integrated Sensor Hub
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants