Skip to content

fby4: ff: Switch PMIC and DIMM MUX after checking CXL is ready#1429

Closed
BonnieLo wants to merge 1 commit into
facebook:mainfrom
Wiwynn:Jeff/FF/Check_CXL_is_ready
Closed

fby4: ff: Switch PMIC and DIMM MUX after checking CXL is ready#1429
BonnieLo wants to merge 1 commit into
facebook:mainfrom
Wiwynn:Jeff/FF/Check_CXL_is_ready

Conversation

@BonnieLo

Copy link
Copy Markdown

Description:

After ten seconds of power on, if CXL heartbeat is at the normal frequency, BIC will switch the PMIC and DIMM MUX from CXL to BIC.

Motivation:

According to the circuit design, VR and DIMM should be switched to BIC after CXL is ready.

Test plan:

1. Check DIMM can be scanned by I2C: Pass
2. Check VR can be scanned by I2C: Pass

Test log:

  1. Check VR address(0x72, 0x76):
    uart:~$ i2c scan I2C_8
    0 1 2 3 4 5 6 7 8 9 a b c d e f
    00: -- -- -- -- -- -- -- -- -- -- -- --
    10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    70: -- -- 72 -- -- -- 76 --
    2 devices found on I2C_8

  2. Check DIMM address(0x500x53):
    uart:
    $ i2c scan I2C_9
    0 1 2 3 4 5 6 7 8 9 a b c d e f
    00: -- -- -- -- -- -- -- -- -- -- -- --
    10: -- -- -- -- -- -- -- -- 18 19 1a 1b -- -- -- --
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    30: -- -- -- -- -- -- 36 37 -- -- -- -- -- -- -- --
    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    50: 50 51 52 53 -- -- -- -- -- -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    70: -- -- -- -- -- -- -- --
    10 devices found on I2C_9

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 24, 2023
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@BonnieLo

Copy link
Copy Markdown
Author

This PR has dependency with PR1402.

#define CXL_READY_INTERVAL_SECONDS 3
#define CXL_HEART_BEAT_LABEL "HB0"

void ISR_MB_DC_STAGUS_CHAGNE();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

typo - void ISR_MB_DC_STATUS_CHANGE();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The function name is revised. Please check.
Thanks.

@JeffShih-wiwynn JeffShih-wiwynn force-pushed the Jeff/FF/Check_CXL_is_ready branch from f69b9ed to ce9753d Compare November 1, 2023 05:19
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@BonnieLo has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@BonnieLo has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@JeffShih-wiwynn JeffShih-wiwynn force-pushed the Jeff/FF/Check_CXL_is_ready branch from bcfefea to 56bf9fa Compare November 1, 2023 09:15
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@BonnieLo has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@JeffShih-wiwynn JeffShih-wiwynn force-pushed the Jeff/FF/Check_CXL_is_ready branch from 56bf9fa to d629834 Compare November 2, 2023 06:55
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@BonnieLo has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@JeffShih-wiwynn JeffShih-wiwynn force-pushed the Jeff/FF/Check_CXL_is_ready branch from d629834 to e0c876f Compare November 6, 2023 02:12
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@BonnieLo has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@JeffShih-wiwynn JeffShih-wiwynn force-pushed the Jeff/FF/Check_CXL_is_ready branch from e0c876f to be1ead7 Compare November 8, 2023 06:08
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@BonnieLo has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@JeffShih-wiwynn JeffShih-wiwynn force-pushed the Jeff/FF/Check_CXL_is_ready branch from be1ead7 to 2fa09f0 Compare November 10, 2023 01:42
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@BonnieLo has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

#define CXL_READY_INTERVAL_SECONDS 3
#define CXL_HEART_BEAT_LABEL "HB0"

void ISR_MB_DC_STATUS_CHAGNE();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/CHAGNE/CHANGE/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The function name is revised. Please check.
Thanks.

@amithash amithash left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

still another typo.

Description:
	After ten seconds of power on, if CXL heartbeat is at the normal frequency, BIC will switch the PMIC and DIMM MUX from CXL to BIC.

Motivation:
	According to the circuit design, VR and DIMM should be switched to BIC after CXL is ready.
Test plan:
	1. Check DIMM can be scanned by I2C: Pass
	2. Check VR can be scanned by I2C: Pass
Test log:
1. Check VR address(0x72, 0x76):
	uart:~$ i2c scan I2C_8
		 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
	00:             -- -- -- -- -- -- -- -- -- -- -- --
	10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
	20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
	30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
	40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
	50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
	60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
	70: -- -- 72 -- -- -- 76 --
	2 devices found on I2C_8

2. Check DIMM address(0x50~0x53):
	uart:~$ i2c scan I2C_9
		 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
	00:             -- -- -- -- -- -- -- -- -- -- -- --
	10: -- -- -- -- -- -- -- -- 18 19 1a 1b -- -- -- --
	20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
	30: -- -- -- -- -- -- 36 37 -- -- -- -- -- -- -- --
	40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
	50: 50 51 52 53 -- -- -- -- -- -- -- -- -- -- -- --
	60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
	70: -- -- -- -- -- -- -- --
	10 devices found on I2C_9
@JeffShih-wiwynn JeffShih-wiwynn force-pushed the Jeff/FF/Check_CXL_is_ready branch from 2fa09f0 to 2752d4a Compare November 13, 2023 01:30
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@BonnieLo has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 7f6333e.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged

5 participants