Skip to contentSkip to conversation

imx: Revert "imx: mx6ull: fix REFTOP_VBGADJ setting" and fix comments

PATCH Applied Fabio Estevam 5 participants 12 messages Oct 27, 2025 – Dec 5, 2025

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 imx: Revert "imx: mx6ull: fix REFTOP_VBGADJ setting" and fix comments

From: Ye Li <[email protected]>

The change in commit c1af358cf51a ("imx: mx6ull: fix REFTOP_VBGADJ setting") is not correct. According to latest i.MX6ULL fuse table, the REFTOP_TRIM[2:0] fuse is defined as below. So the previous codes are correct, only need to fix the comments.

Set the REFTOP_VBGADJ field in PMU_MISC0 register based on the REFTOP_TRIM fuse:
'000" - set REFTOP_VBGADJ[2:0] to 3'b000
'001" - set REFTOP_VBGADJ[2:0] to 3'b001
'010" - set REFTOP_VBGADJ[2:0] to 3'b010
'011" - set REFTOP_VBGADJ[2:0] to 3'b011
'100" - set REFTOP_VBGADJ[2:0] to 3'b100
'101" - set REFTOP_VBGADJ[2:0] to 3'b101
'110" - set REFTOP_VBGADJ[2:0] to 3'b110
'111" - set REFTOP_VBGADJ[2:0] to 3'b111

Sven Schwermer reported:

"These are the symptoms: Very few of the thousands of devices that we manufacture (< 1%) fail to decompress a large XZ archive once in Linux userspace. We have not found any form of memory testing or other load that reproduces this issue. Reverting the offending patch fixes this behavior on the affected devices."

Revert the offending commit to fix the regression.

[fabio: Fixed checkpatch warning and added Sven's report]
---
 arch/arm/mach-imx/mx6/soc.c | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)
arch/arm/mach-imx/mx6/soc.c +9 -11
index 50521490b354..02df86156d41 100644
@@ -360,23 +360,21 @@ static void init_bandgap(void)
 	/*
 	 * On i.MX6ULL,we need to set VBGADJ bits according to the
 	 * REFTOP_TRIM[3:0] in fuse table
-	 *	000 - set REFTOP_VBGADJ[2:0] to 3b'110,
-	 *	110 - set REFTOP_VBGADJ[2:0] to 3b'000,
-	 *	001 - set REFTOP_VBGADJ[2:0] to 3b'001,
-	 *	010 - set REFTOP_VBGADJ[2:0] to 3b'010,
-	 *	011 - set REFTOP_VBGADJ[2:0] to 3b'011,
-	 *	100 - set REFTOP_VBGADJ[2:0] to 3b'100,
-	 *	101 - set REFTOP_VBGADJ[2:0] to 3b'101,
-	 *	111 - set REFTOP_VBGADJ[2:0] to 3b'111,
+	 *	000 - set REFTOP_VBGADJ[2:0] to 3'b000
+	 *	001 - set REFTOP_VBGADJ[2:0] to 3'b001
+	 *	010 - set REFTOP_VBGADJ[2:0] to 3'b010
+	 *	011 - set REFTOP_VBGADJ[2:0] to 3'b011
+	 *	100 - set REFTOP_VBGADJ[2:0] to 3'b100
+	 *	101 - set REFTOP_VBGADJ[2:0] to 3'b101
+	 *	110 - set REFTOP_VBGADJ[2:0] to 3'b110
+	 *	111 - set REFTOP_VBGADJ[2:0] to 3'b111
 	 */
 	if (is_mx6ull()) {
-		static const u32 map[] = {6, 1, 2, 3, 4, 5, 0, 7};
-
 		val = readl(&fuse->mem0);
 		val >>= OCOTP_MEM0_REFTOP_TRIM_SHIFT;
 		val &= 0x7;
 
-		writel(map[val] << BM_ANADIG_ANA_MISC0_REFTOP_VBGADJ_SHIFT,
+		writel(val << BM_ANADIG_ANA_MISC0_REFTOP_VBGADJ_SHIFT,
 		       &anatop->ana_misc0_set);
 	}
 }
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 26 lines · Fabio Estevam

From: Ye Li <[email protected]>

The change in commit c1af358cf51a ("imx: mx6ull: fix REFTOP_VBGADJ setting") is not correct. According to latest i.MX6ULL fuse table, the REFTOP_TRIM[2:0] fuse is defined as below. So the previous codes are correct, only need to fix the comments.

Set the REFTOP_VBGADJ field in PMU_MISC0 register based on the REFTOP_TRIM fuse:
'000" - set REFTOP_VBGADJ[2:0] to 3'b000
'001" - set REFTOP_VBGADJ[2:0] to 3'b001
'010" - set REFTOP_VBGADJ[2:0] to 3'b010
'011" - set REFTOP_VBGADJ[2:0] to 3'b011
'100" - set REFTOP_VBGADJ[2:0] to 3'b100
'101" - set REFTOP_VBGADJ[2:0] to 3'b101
'110" - set REFTOP_VBGADJ[2:0] to 3'b110
'111" - set REFTOP_VBGADJ[2:0] to 3'b111

Sven Schwermer reported:

"These are the symptoms: Very few of the thousands of devices that we manufacture (< 1%) fail to decompress a large XZ archive once in Linux userspace. We have not found any form of memory testing or other load that reproduces this issue. Reverting the offending patch fixes this behavior on the affected devices."

Quoted 6 lines

Revert the offending commit to fix the regression.

[fabio: Fixed checkpatch warning and added Sven's report]

And after reading the discussion on the older patch, this does seem to be the right way forward.

Signature · 1 line
Tom
author reviewer Applied
#2 lore raw
In reply to Fabio Estevam
Quoted 27 lines · Fabio Estevam

From: Ye Li <[email protected]>

The change in commit c1af358cf51a ("imx: mx6ull: fix REFTOP_VBGADJ setting") is not correct. According to latest i.MX6ULL fuse table, the REFTOP_TRIM[2:0] fuse is defined as below. So the previous codes are correct, only need to fix the comments.

Set the REFTOP_VBGADJ field in PMU_MISC0 register based on the REFTOP_TRIM fuse:
'000" - set REFTOP_VBGADJ[2:0] to 3'b000
'001" - set REFTOP_VBGADJ[2:0] to 3'b001
'010" - set REFTOP_VBGADJ[2:0] to 3'b010
'011" - set REFTOP_VBGADJ[2:0] to 3'b011
'100" - set REFTOP_VBGADJ[2:0] to 3'b100
'101" - set REFTOP_VBGADJ[2:0] to 3'b101
'110" - set REFTOP_VBGADJ[2:0] to 3'b110
'111" - set REFTOP_VBGADJ[2:0] to 3'b111

Sven Schwermer reported:

"These are the symptoms: Very few of the thousands of devices that we manufacture (< 1%) fail to decompress a large XZ archive once in Linux userspace. We have not found any form of memory testing or other load that reproduces this issue. Reverting the offending patch fixes this behavior on the affected devices."

Quoted 6 lines

Revert the offending commit to fix the regression.

[fabio: Fixed checkpatch warning and added Sven's report]

Applied, thanks.

#3 lore raw
Quoted 28 lines · Fabio Estevam
Quoted 27 lines · Fabio Estevam

From: Ye Li <[email protected]>

The change in commit c1af358cf51a ("imx: mx6ull: fix REFTOP_VBGADJ setting") is not correct. According to latest i.MX6ULL fuse table, the REFTOP_TRIM[2:0] fuse is defined as below. So the previous codes are correct, only need to fix the comments.

Set the REFTOP_VBGADJ field in PMU_MISC0 register based on the REFTOP_TRIM fuse:
'000" - set REFTOP_VBGADJ[2:0] to 3'b000
'001" - set REFTOP_VBGADJ[2:0] to 3'b001
'010" - set REFTOP_VBGADJ[2:0] to 3'b010
'011" - set REFTOP_VBGADJ[2:0] to 3'b011
'100" - set REFTOP_VBGADJ[2:0] to 3'b100
'101" - set REFTOP_VBGADJ[2:0] to 3'b101
'110" - set REFTOP_VBGADJ[2:0] to 3'b110
'111" - set REFTOP_VBGADJ[2:0] to 3'b111

Sven Schwermer reported:

"These are the symptoms: Very few of the thousands of devices that we manufacture (< 1%) fail to decompress a large XZ archive once in Linux userspace. We have not found any form of memory testing or other load that reproduces this issue. Reverting the offending patch fixes this behavior on the affected devices."

Quoted 8 lines
Quoted 6 lines

Revert the offending commit to fix the regression.

[fabio: Fixed checkpatch warning and added Sven's report]

Applied, thanks.

Hi Fabio, Ye,

At Toradex we have been struggling since quite some time (back to 2018) with the temperature readings and the thermal shutdown behavior on i.MX6ULL. The issue we observed is that the thermal shutdown seems to trigger too early.

I have investigated the history around this topic and verified some internal notes in our bug tracker. With this revert applied, and on the devices we have (all trimmed with value 0), the reported temperature increases by about 10 °C compared to before the revert. The absolute accuracy of the readout is
questionable: for example, on a device kept at around 20 °C, the temperature readout was ~19 °C before the revert, and ~31 °C after the revert.

Consider that for devices with fuse value of 6, there is a -10 degrees offset after this revert (so, the other way around).

I understand that for Sven this revert improves stability during large XZ decompression in userspace for few devices, but for us it means that the thermal shutdown happens roughly 10 °C earlier, which is a serious issue in our case.

I would kindly ask NXP to double-check how these devices were trimmed. My gut feeling is that there might be an inconsistency, either the trimming scheme is not backward-compatible (e.g. old and new devices behave differently, and the code should cope, I don't know how, with this), or this patch must be reverted (because introduces a regression).

Thank you and kind regards,
Emanuele

author reviewer
#4 lore raw

Hi Emanuele,

Quoted 3 lines · Emanuele Ghidoli

Hi Fabio, Ye,

At Toradex we have been struggling since quite some time (back to 2018) with

Does this problem only affect early i.MX6ULL silicon samples?

Quoted 18 lines

the temperature readings and the thermal shutdown behavior on i.MX6ULL. The issue we observed is that the thermal shutdown seems to trigger too early.

I have investigated the history around this topic and verified some internal notes in our bug tracker. With this revert applied, and on the devices we have (all trimmed with value 0), the reported temperature increases by about 10 °C compared to before the revert. The absolute accuracy of the readout is
questionable: for example, on a device kept at around 20 °C, the temperature readout was ~19 °C before the revert, and ~31 °C after the revert.

Consider that for devices with fuse value of 6, there is a -10 degrees offset after this revert (so, the other way around).

I understand that for Sven this revert improves stability during large XZ decompression in userspace for few devices, but for us it means that the thermal shutdown happens roughly 10 °C earlier, which is a serious issue in our case.

Quoted 5 lines

I would kindly ask NXP to double-check how these devices were trimmed. My gut feeling is that there might be an inconsistency, either the trimming scheme is not backward-compatible (e.g. old and new devices behave differently, and the code should cope, I don't know how, with this), or this patch must be reverted (because introduces a regression).

Peng/Ye Li,

How does NXP suggest we handle this? Were the early i.MX6ULL parts incorrectly fused?

Can the fuse be read and dynamically adjusted?

Please advise, thanks.

#5 lore raw
Quoted 10 lines · Fabio Estevam

Hi Emanuele,

Quoted 3 lines · Emanuele Ghidoli

Hi Fabio, Ye,

At Toradex we have been struggling since quite some time (back to 2018) with

Does this problem only affect early i.MX6ULL silicon samples?

Hi Emanuele,

I have same question as Fabio. Are these samples are early? Do you
know the time of receiving these sample? And could you show the part number printed on the chip.

Quoted 25 lines
Quoted 19 lines

the temperature readings and the thermal shutdown behavior on i.MX6ULL. The issue we observed is that the thermal shutdown seems to trigger too early.

I have investigated the history around this topic and verified some internal notes in our bug tracker. With this revert applied, and on the devices we have (all trimmed with value 0), the reported temperature increases by about 10 °C compared to before the revert. The absolute accuracy of the readout is
questionable: for example, on a device kept at around 20 °C, the temperature readout was ~19 °C before the revert, and ~31 °C after the revert.

Consider that for devices with fuse value of 6, there is a -10 degrees offset after this revert (so, the other way around).

I understand that for Sven this revert improves stability during large XZ decompression in userspace for few devices, but for us it means that the thermal shutdown happens roughly 10 °C earlier, which is a serious issue in our case.

Quoted 5 lines

I would kindly ask NXP to double-check how these devices were trimmed. My gut feeling is that there might be an inconsistency, either the trimming scheme is not backward-compatible (e.g. old and new devices behave differently, and the code should cope, I don't know how, with this), or this patch must be reverted (because introduces a regression).

Quoted 4 lines

Peng/Ye Li,

How does NXP suggest we handle this? Were the early i.MX6ULL parts incorrectly fused?

I need to discuss it internally, will feedback you later.

Quoted 3 lines

Can the fuse be read and dynamically adjusted?

The fuse is locked by MEM_TRIM_LOCK. Emanuele, can you help to read it by "fuse read 0 0 1".

Best regards,
Ye Li

Quoted 1 line

Please advise, thanks.

#6 lore raw
Quoted 10 lines · Ye Li
Quoted 7 lines · Fabio Estevam

Hi Emanuele,

Quoted 2 lines · Emanuele Ghidoli

Hi Fabio, Ye,

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

At Toradex we have been struggling since quite some time (back to 2018) with

Does this problem only affect early i.MX6ULL silicon samples?

Hi Emanuele,

    I have same question as Fabio. Are these samples are early? Do you know the time of receiving these sample? And could you show the part number printed on the chip.

It could take a little to answer to the first two question. I can say that the SoM I'm using to validate the patch was assembled in September 2021. Let me know if this information are needed giving that I can report the marking on the chip:
MCIMX6Y2CVM08AB CTDQ2107 1N70S CHINA QGDQCTA

Quoted 30 lines
Quoted 26 lines
Quoted 20 lines

the temperature readings and the thermal shutdown behavior on i.MX6ULL. The issue we observed is that the thermal shutdown seems to trigger too early.

I have investigated the history around this topic and verified some internal notes in our bug tracker. With this revert applied, and on the devices we have (all trimmed with value 0), the reported temperature increases by about 10 °C compared to before the revert. The absolute accuracy of the readout is
questionable: for example, on a device kept at around 20 °C, the temperature readout was ~19 °C before the revert, and ~31 °C after the revert.

Consider that for devices with fuse value of 6, there is a -10 degrees offset after this revert (so, the other way around).

I understand that for Sven this revert improves stability during large XZ decompression in userspace for few devices, but for us it means that the thermal shutdown happens roughly 10 °C earlier, which is a serious issue in our case.

Quoted 5 lines

I would kindly ask NXP to double-check how these devices were trimmed. My gut feeling is that there might be an inconsistency, either the trimming scheme is not backward-compatible (e.g. old and new devices behave differently, and the code should cope, I don't know how, with this), or this patch must be reverted (because introduces a regression).

Quoted 4 lines

Peng/Ye Li,

How does NXP suggest we handle this? Were the early i.MX6ULL parts incorrectly fused?

Quoted 7 lines

I need to discuss it internally, will feedback you later.

Quoted 3 lines

Can the fuse be read and dynamically adjusted?

The fuse is locked by MEM_TRIM_LOCK. Emanuele, can you help to read it by "fuse read 0 0 1".

Colibri iMX6ULL # fuse read 0 0 1
Reading bank 0:

Word 0x00000000: 00320003
Colibri iMX6ULL # fuse read 1 0 1
Reading bank 1:

Word 0x00000000: 00000080

Kind regards,
Emanuele

Quoted 5 lines

Best regards,
Ye Li

Quoted 1 line

Please advise, thanks.

#7 lore raw

Hi all

Quoted 66 lines · Emanuele Ghidoli
Quoted 10 lines · Ye Li
Quoted 7 lines · Fabio Estevam

Hi Emanuele,

Quoted 2 lines · Emanuele Ghidoli

Hi Fabio, Ye,

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

At Toradex we have been struggling since quite some time (back to 2018) with

Does this problem only affect early i.MX6ULL silicon samples?

Hi Emanuele,

I have same question as Fabio. Are these samples are early? Do you know
the time of receiving these sample? And could you show the part number printed on the chip.

It could take a little to answer to the first two question. I can say that the SoM I'm using to validate the patch was assembled in September 2021. Let me know if this information are needed giving that I can report the marking on the chip:
MCIMX6Y2CVM08AB CTDQ2107 1N70S CHINA QGDQCTA

Quoted 30 lines
Quoted 26 lines
Quoted 20 lines

the temperature readings and the thermal shutdown behavior on i.MX6ULL. The issue we observed is that the thermal shutdown seems to trigger too early.

I have investigated the history around this topic and verified some internal notes in our bug tracker. With this revert applied, and on the devices we have (all trimmed with value 0), the reported temperature increases by about 10 °C compared to before the revert. The absolute accuracy of the readout is
questionable: for example, on a device kept at around 20 °C, the temperature readout was ~19 °C before the revert, and ~31 °C after the revert.

Consider that for devices with fuse value of 6, there is a -10 degrees offset after this revert (so, the other way around).

I understand that for Sven this revert improves stability during large XZ decompression in userspace for few devices, but for us it means that the thermal shutdown happens roughly 10 °C earlier, which is a serious issue in our case.

Quoted 5 lines

I would kindly ask NXP to double-check how these devices were trimmed. My gut feeling is that there might be an inconsistency, either the trimming scheme is not backward-compatible (e.g. old and new devices behave differently, and the code should cope, I don't know how, with this), or this patch must be reverted (because introduces a regression).

Quoted 4 lines

Peng/Ye Li,

How does NXP suggest we handle this? Were the early i.MX6ULL parts incorrectly fused?

Quoted 7 lines

I need to discuss it internally, will feedback you later.

Quoted 3 lines

Can the fuse be read and dynamically adjusted?

The fuse is locked by MEM_TRIM_LOCK. Emanuele, can you help to read it by "fuse read 0 0 1".

Quoted 9 lines

Colibri iMX6ULL # fuse read 0 0 1
Reading bank 0:

Word 0x00000000: 00320003
Colibri iMX6ULL # fuse read 1 0 1
Reading bank 1:

Word 0x00000000: 00000080

As is clear this problem was the same we had some months ago, so we are on the same page
with Emanuele

Michael

Quoted 9 lines

Kind regards,
Emanuele

Quoted 5 lines

Best regards,
Ye Li

Quoted 1 line

Please advise, thanks.

Signature · 11 lines
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
[email protected]
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
[email protected]
www.amarulasolutions.com
#8 lore raw

Hi Michael, Emanuele,

Quoted 77 lines · Michael Nazzareno Trimarchi

Hi all

Quoted 73 lines · Emanuele Ghidoli
Quoted 10 lines · Ye Li
Quoted 7 lines · Fabio Estevam

Hi Emanuele,

Quoted 2 lines · Emanuele Ghidoli

Hi Fabio, Ye,

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

At Toradex we have been struggling since quite some time (back to 2018) with

Does this problem only affect early i.MX6ULL silicon samples?

Hi Emanuele,

I have same question as Fabio. Are these samples are early? Do you know
the time of receiving these sample? And could you show the part number printed on the chip.

It could take a little to answer to the first two question. I can say that the SoM I'm using to validate the patch was assembled in September 2021. Let me know if this information are needed giving that I can report the marking on the chip:
MCIMX6Y2CVM08AB CTDQ2107 1N70S CHINA QGDQCTA

Quoted 30 lines
Quoted 26 lines
Quoted 20 lines

the temperature readings and the thermal shutdown behavior on i.MX6ULL. The issue we observed is that the thermal shutdown seems to trigger too early.

I have investigated the history around this topic and verified some internal notes in our bug tracker. With this revert applied, and on the devices we have (all trimmed with value 0), the reported temperature increases by about 10 °C compared to before the revert. The absolute accuracy of the readout is
questionable: for example, on a device kept at around 20 °C, the temperature readout was ~19 °C before the revert, and ~31 °C after the revert.

Consider that for devices with fuse value of 6, there is a -10 degrees offset after this revert (so, the other way around).

I understand that for Sven this revert improves stability during large XZ decompression in userspace for few devices, but for us it means that the thermal shutdown happens roughly 10 °C earlier, which is a serious issue in our case.

Quoted 5 lines

I would kindly ask NXP to double-check how these devices were trimmed. My gut feeling is that there might be an inconsistency, either the trimming scheme is not backward-compatible (e.g. old and new devices behave differently, and the code should cope, I don't know how, with this), or this patch must be reverted (because introduces a regression).

Quoted 4 lines

Peng/Ye Li,

How does NXP suggest we handle this? Were the early i.MX6ULL parts incorrectly fused?

Quoted 7 lines

I need to discuss it internally, will feedback you later.

Quoted 3 lines

Can the fuse be read and dynamically adjusted?

The fuse is locked by MEM_TRIM_LOCK. Emanuele, can you help to read it by "fuse read 0 0 1".

Colibri iMX6ULL # fuse read 0 0 1
Reading bank 0:

Word 0x00000000: 00320003
Colibri iMX6ULL # fuse read 1 0 1
Reading bank 1:

Quoted 9 lines
Quoted 2 lines

Word 0x00000000: 00000080

As is clear this problem was the same we had some months ago, so we are on the same page
with Emanuele

Michael

Can you help to measure the VDD_ARM_CAP and VDD_SOC_CAP on your devices with high temperature read issue, when REFTOP_VBGADJ is set to 3'b000 and 3'b110 respectively. Provide the measured voltage and target voltage. And please read the Unique ID fuse of this device by "fuse read 0 1 2".

Best regards,
Ye Li

Quoted 11 lines
Quoted 9 lines

Kind regards,
Emanuele

Quoted 5 lines

Best regards,
Ye Li

Quoted 1 line

Please advise, thanks.

#9 lore raw

Hi All,

Quoted 91 lines · Ye Li

Hi Michael, Emanuele,

Quoted 77 lines · Michael Nazzareno Trimarchi

Hi all

Quoted 73 lines · Emanuele Ghidoli
Quoted 10 lines · Ye Li
Quoted 7 lines · Fabio Estevam

Hi Emanuele,

Quoted 2 lines · Emanuele Ghidoli

Hi Fabio, Ye,

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

At Toradex we have been struggling since quite some time (back to 2018) with

Does this problem only affect early i.MX6ULL silicon samples?

Hi Emanuele,

     I have same question as Fabio. Are these samples are early? Do you know the time of receiving these sample? And could you show the part number printed on the chip.

It could take a little to answer to the first two question. I can say that the SoM I'm using to validate the patch was assembled in September 2021. Let me know if this information are needed giving that I can report the marking on the chip:
MCIMX6Y2CVM08AB CTDQ2107 1N70S CHINA QGDQCTA

Quoted 30 lines
Quoted 26 lines
Quoted 20 lines

the temperature readings and the thermal shutdown behavior on i.MX6ULL. The issue we observed is that the thermal shutdown seems to trigger too early.

I have investigated the history around this topic and verified some internal notes in our bug tracker. With this revert applied, and on the devices we have (all trimmed with value 0), the reported temperature increases by about 10 °C compared to before the revert. The absolute accuracy of the readout is
questionable: for example, on a device kept at around 20 °C, the temperature readout was ~19 °C before the revert, and ~31 °C after the revert.

Consider that for devices with fuse value of 6, there is a -10 degrees offset after this revert (so, the other way around).

I understand that for Sven this revert improves stability during large XZ decompression in userspace for few devices, but for us it means that the thermal shutdown happens roughly 10 °C earlier, which is a serious issue in our case.

Quoted 5 lines

I would kindly ask NXP to double-check how these devices were trimmed. My gut feeling is that there might be an inconsistency, either the trimming scheme is not backward-compatible (e.g. old and new devices behave differently, and the code should cope, I don't know how, with this), or this patch must be reverted (because introduces a regression).

Quoted 4 lines

Peng/Ye Li,

How does NXP suggest we handle this? Were the early i.MX6ULL parts incorrectly fused?

Quoted 7 lines

I need to discuss it internally, will feedback you later.

Quoted 3 lines

Can the fuse be read and dynamically adjusted?

The fuse is locked by MEM_TRIM_LOCK. Emanuele, can you help to read it by "fuse read 0 0 1".

Colibri iMX6ULL # fuse read 0 0 1
Reading bank 0:

Word 0x00000000: 00320003
Colibri iMX6ULL # fuse read 1 0 1
Reading bank 1:

Quoted 9 lines
Quoted 2 lines

Word 0x00000000: 00000080

As is clear this problem was the same we had some months ago, so we are on the same page
with Emanuele

Michael

Quoted 7 lines

Can you help to measure the VDD_ARM_CAP and VDD_SOC_CAP on your devices with high temperature read issue, when REFTOP_VBGADJ is set to 3'b000 and 3'b110 respectively. Provide the measured voltage and target voltage. And please read the Unique ID fuse of this device by "fuse read 0 1 2".

Best regards,
Ye Li

I have confirmed the REFTOP_TRIM fuse is always blank on iMX6ULL. Because the LDO output voltage has meet the iMX6ULL spec, the bandgap trim is not needed. For the REFTOP_VBGADJ register, NXP strongly suggests to use the value from REFTOP_TRIM fuse or keep it default 3'b000. Because ATE test uses the default value, setting to other value like 3'b110 will reduce the LDO voltage, but may introduce unstable issue like what Sven reported on some parts.

For the temperature problem,
1. The temp sensor on iMX6ULL is not designed for temperature meter. It is mainly used for protection at high or low temperature. User can use it as reference, but there is no precision limited in datasheet.
2. All iMX6ULL parts have been temperature trimmed at 25°C on raw die and tested at high temperature 105 °C on final productions. From our factory data, there is no such big gap on 105 °C, the precision looks good.
3. Multiple factors like measurement method, calibration equation, ambient temperature and chip status have impact to the result. We suggest to use updated single point equation (already in uboot and kernel) and below method for board temperature measurement:
a. Using flat thermocouple, better suited for adhering to the
surface of the chip.
b. Shut down board or enter SNVS mode and put the board in chamber
heating 30 mins.
c. Power on, SW print the Temp sensor value in early of uboot to
reduce self-heating impact.
d. Compare the thermocouple value and Temp sensor value.
More information could be found from https://www.nxp.com.cn/docs/en/application-note/AN5215.pdf

Best regards,
Ye Li

Quoted 12 lines
Quoted 11 lines
Quoted 9 lines

Kind regards,
Emanuele

Quoted 5 lines

Best regards,
Ye Li

Quoted 1 line

Please advise, thanks.

#10 lore raw
In reply to Ye Li
Quoted 98 lines · Ye Li

Hi Michael, Emanuele,

Quoted 95 lines · Michael Nazzareno Trimarchi

Hi all

Quoted 77 lines · Emanuele Ghidoli
Quoted 13 lines · Ye Li
Quoted 10 lines · Fabio Estevam

Hi Emanuele,

Quoted 4 lines · Emanuele Ghidoli

Hi Fabio, Ye,

At Toradex we have been struggling since quite some time (back to 2018) with

Quoted 7 lines
Quoted 1 line

Does this problem only affect early i.MX6ULL silicon samples?

Hi Emanuele,

     I have same question as Fabio. Are these samples are early? Do you know the time of receiving these sample? And could you show the part number printed
on the chip.

It could take a little to answer to the first two question. I can say that the SoM I'm using to validate the patch was assembled in September 2021. Let me know if this information are needed giving that I can report the marking on the chip:
MCIMX6Y2CVM08AB CTDQ2107 1N70S CHINA QGDQCTA

Quoted 39 lines
Quoted 35 lines
Quoted 25 lines

the temperature readings and the thermal shutdown behavior on i.MX6ULL. The issue we observed is that the thermal shutdown seems to trigger too early.

I have investigated the history around this topic and verified some internal
notes in our bug tracker. With this revert applied, and on the devices we have
(all trimmed with value 0), the reported temperature increases by about 10 °C
compared to before the revert. The absolute accuracy of the readout is
questionable: for example, on a device kept at around 20 °C, the temperature
readout was ~19 °C before the revert, and ~31 °C after the revert.

Consider that for devices with fuse value of 6, there is a -10 degrees offset
after this revert (so, the other way around).

I understand that for Sven this revert improves stability during large XZ decompression in userspace for few devices, but for us it means that the thermal shutdown happens roughly 10 °C earlier, which is a serious issue in our case.

Quoted 9 lines

I would kindly ask NXP to double-check how these devices were trimmed. My gut
feeling is that there might be an inconsistency, either the trimming scheme is
not backward-compatible (e.g. old and new devices behave differently, and the
code should cope, I don't know how, with this), or this patch must be reverted
(because introduces a regression).

Quoted 4 lines

Peng/Ye Li,

How does NXP suggest we handle this? Were the early i.MX6ULL parts incorrectly fused?

Quoted 7 lines

I need to discuss it internally, will feedback you later.

Quoted 3 lines

Can the fuse be read and dynamically adjusted?

The fuse is locked by MEM_TRIM_LOCK. Emanuele, can you help to read it by "fuse read 0 0 1".

Quoted 9 lines

Colibri iMX6ULL # fuse read 0 0 1
Reading bank 0:

Word 0x00000000: 00320003
Colibri iMX6ULL # fuse read 1 0 1
Reading bank 1:

Word 0x00000000: 00000080

As is clear this problem was the same we had some months ago, so we are on the same page
with Emanuele

Quoted 8 lines
Quoted 2 lines

Michael

Can you help to measure the VDD_ARM_CAP and VDD_SOC_CAP on your devices with high temperature read issue, when REFTOP_VBGADJ is set to 3'b000 and 3'b110 respectively. Provide the measured voltage and target voltage. And please read the Unique ID fuse of this device by "fuse read 0 1 2".

Running u-boot, VDD_ARM_CAP and VDD_SOC_CAP respectively:
- With REFTOP_VBGADJ set to b000: 1.08 V and 1.11 V
- With REFTOP_VBGADJ set to b110: 1.06 V and 1.08 V

Best regards,
Emanuele>

Quoted 16 lines

Best regards,
Ye Li

Quoted 11 lines
Quoted 9 lines

Kind regards,
Emanuele

Quoted 5 lines

Best regards,
Ye Li

Quoted 1 line

Please advise, thanks.

#11 lore raw
Quoted 109 lines · Emanuele Ghidoli
Quoted 98 lines · Ye Li

Hi Michael, Emanuele,

Quoted 95 lines · Michael Nazzareno Trimarchi

Hi all

Quoted 77 lines · Emanuele Ghidoli
Quoted 13 lines · Ye Li
Quoted 10 lines · Fabio Estevam

Hi Emanuele,

Quoted 4 lines · Emanuele Ghidoli

Hi Fabio, Ye,

At Toradex we have been struggling since quite some time (back to 2018) with

Quoted 7 lines
Quoted 1 line

Does this problem only affect early i.MX6ULL silicon samples?

Hi Emanuele,

     I have same question as Fabio. Are these samples are early? Do you know
the time of receiving these sample? And could you show the part number printed
on the chip.

It could take a little to answer to the first two question. I can say that the SoM I'm using to validate the patch was assembled in September 2021. Let me know if this information are needed giving that I can report the marking on the chip:
MCIMX6Y2CVM08AB CTDQ2107 1N70S CHINA QGDQCTA

Quoted 39 lines
Quoted 35 lines
Quoted 25 lines

the temperature readings and the thermal shutdown behavior on i.MX6ULL. The issue we observed is that the thermal shutdown seems to trigger too early.

I have investigated the history around this topic and verified some internal
notes in our bug tracker. With this revert applied, and on the devices we have
(all trimmed with value 0), the reported temperature increases by about 10 °C
compared to before the revert. The absolute accuracy of the readout is
questionable: for example, on a device kept at around 20 °C, the temperature
readout was ~19 °C before the revert, and ~31 °C after the revert.

Consider that for devices with fuse value of 6, there is a -10 degrees offset
after this revert (so, the other way around).

I understand that for Sven this revert improves stability during large XZ decompression in userspace for few devices, but for us it means that the thermal shutdown happens roughly 10 °C earlier, which is a serious issue in our case.

Quoted 9 lines

I would kindly ask NXP to double-check how these devices were trimmed. My gut
feeling is that there might be an inconsistency, either the trimming scheme is
not backward-compatible (e.g. old and new devices behave differently, and the
code should cope, I don't know how, with this), or this patch must be reverted
(because introduces a regression).

Quoted 4 lines

Peng/Ye Li,

How does NXP suggest we handle this? Were the early i.MX6ULL parts incorrectly fused?

Quoted 7 lines

I need to discuss it internally, will feedback you later.

Quoted 3 lines

Can the fuse be read and dynamically adjusted?

The fuse is locked by MEM_TRIM_LOCK. Emanuele, can you help to read it by "fuse read 0 0 1".

Quoted 9 lines

Colibri iMX6ULL # fuse read 0 0 1
Reading bank 0:

Word 0x00000000: 00320003
Colibri iMX6ULL # fuse read 1 0 1
Reading bank 1:

Word 0x00000000: 00000080

As is clear this problem was the same we had some months ago, so we are on the same page
with Emanuele

Quoted 8 lines
Quoted 2 lines

Michael

Can you help to measure the VDD_ARM_CAP and VDD_SOC_CAP on your devices with high temperature read issue, when REFTOP_VBGADJ is set to 3'b000 and 3'b110 respectively. Provide the measured voltage and target voltage. And please read the Unique ID fuse of this device by "fuse read 0 1 2".

Quoted 6 lines

Running u-boot, VDD_ARM_CAP and VDD_SOC_CAP respectively:
- With REFTOP_VBGADJ set to b000: 1.08 V and 1.11 V
- With REFTOP_VBGADJ set to b110: 1.06 V and 1.08 V

Best regards,
Emanuele>

The voltage looks strange. The Vmin of VDD_SOC_CAP is 1.15v when LDO is enabled, your result violates the spec. Do you enable the LDO in uboot? Can you dump the register 0x20c8140 to show LDO setting. And what's the measured voltage of VDD_SOC_IN?

Best regards,
Ye Li>>

Quoted 16 lines
Quoted 15 lines

Best regards,
Ye Li

Quoted 11 lines
Quoted 9 lines

Kind regards,
Emanuele

Quoted 5 lines

Best regards,
Ye Li

Quoted 1 line

Please advise, thanks.