AGX Xavier freeze in MAXN mode

I am using the power supply that was shipped with my AGX Xavier DevKit (LiteOn PA-1650-90, 19V, 65W).

1 Like

I did a fresh install of JetPack 4.4 - unfortunately I still see same behaviour: Xavier AGX shuts down unexspectedly and without any warning/error as soon as its powermode/nvpmodel is switched to MAXN/0 while running a CPU&GPU hungry application.

I also encountered an auto-reboot issue in maxn/fan:cool mode.

Did you check bluetooth interrupt counter in your device?

$ grep blue /proc/interrupts

It increased faster and faster utill cpu or net stalled in my devkit

This returns

 392:        165          0          0          0          0          0          0          0  tegra-gpio  192 Edge      bluetooth hostwake

but what do these numbers tell me?
And why is there bluetooth at all - to my knowledge Xavier AGX DevKit has no BlueTooth on board?

Does this counter increase very fast while running your intensive application?

Please check if this patch can help the interrupt in bluetooth hostwake and also the reboot/shutdown issue.

Patch 1.

diff --git a/drivers/misc/bluedroid_pm.c b/drivers/misc/bluedroid_pm.c
index 3708edd..9bfe1d7 100644
--- a/drivers/misc/bluedroid_pm.c
+++ b/drivers/misc/bluedroid_pm.c
@@ -332,7 +332,7 @@
 		BDP_DBG("found host_wake irq\n");
 		ret = request_irq(bluedroid_pm->host_wake_irq,
 					bluedroid_pm_hostwake_isr,
-					IRQF_TRIGGER_RISING,
+					IRQF_TRIGGER_NONE,
 					"bluetooth hostwake", bluedroid_pm);
 		if (ret) {
 			BDP_ERR("Failed to get host_wake irq\n");

Patch 2.

diff --git a/common/tegra194-p2888-0001-p2822-0000-common.dtsi b/common/tegra194-p2888-0001-p2822-0000-common.dtsi
index 3453ce4..079f785 100644
--- a/common/tegra194-p2888-0001-p2822-0000-common.dtsi
+++ b/common/tegra194-p2888-0001-p2822-0000-common.dtsi
@@ -73,7 +73,7 @@
 		bluedroid_pm,host-wake-gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Y, 0) 0>;
 		bluedroid_pm,ext-wake-gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(M, 7) 0>;
 		interrupt-parent = <&tegra_main_gpio>;
-		interrupts = <TEGRA194_MAIN_GPIO(Y, 0) 0x01>;
+		interrupts = <TEGRA194_MAIN_GPIO(Y, 0) IRQ_TYPE_LEVEL_LOW>;
 	};
 
 	spi@c260000 {

Hello Wayne,

Is this patch for JetPack 4.4 or 4.5?
Am I right that I apply the patch to my Tegra_for_Linux installation and then flash my Xavier AGX again?

Both jp4.4.1 or 4.5.1 can apply this. You need to rebuild both kernel image and dtb.

I have a hard time identifying the correct files, which one must be patched?

~/Linux_for_Tegra/sources$ find . -name 'bluedroid_pm.c'
./kernel/kernel-4.9/drivers/misc/bluedroid_pm.c
./kernel/nvidia/drivers/misc/bluedroid_pm.c

Is this the correct file?

~/Linux_for_Tegra/sources$ find . -name 'tegra194-p2888-0001-p2822-0000-common.dtsi'
./hardware/nvidia/platform/t19x/galen/kernel-dts/common/tegra194-p2888-0001-p2822-0000-common.dtsi

Please use the one in kernel-4.9.

./kernel/kernel-4.9/drivers/misc/bluedroid_pm.c

Yes, this is the correct file.

~/Linux_for_Tegra/sources$ find . -name ‘tegra194-p2888-0001-p2822-0000-common.dtsi’
./hardware/nvidia/platform/t19x/galen/kernel-dts/common/tegra194-p2888-0001-p2822-0000-common.dtsi

Hello Wayne,
thanks for constant support. (I think) I have build kernel image and dtd by following instructions of https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/kernel_custom.html documentation (except the optional step no. 8)

Am I now ready for ./flash and do I have to use -r option or not?

Hi,

Please make sure the dts and image file are put into the Linux_for_Tegra/kernel/dtb and Linux_for_Tegra/kernel/. Running the flash.sh without -r.

The “-r” option is to re-use previous system.img. We should do a clean setup at this moment so do not use -r.

Looks like I have succesfully applied the patch. My Xavier AGX DevKit is now running for more than 3 hours in MAXN mode while performing a CPU&GPU hungry task (Training of a Tacotron2 TTS model). No freeze or shutdowns so far. The “bluetooth hostwake” proc counter, which went up before, is still at “0”.

I will keep this running for another 24h and report back again…

1 Like

Thanks. Waiting for your reply.

My Xavier-AGX is running now for more than 60 hours (about 48h in MAXN mode) without any issues.

Will the Patch be included in a future JetPack Release (4.5.x)?

We will try to merge it so it will be in next release.

1 Like

Did this make it into Jetpack 4.6?

1 Like

same question as snarky, did this make it into 4.6?

thanks

Don’t know who you are adressing. I didn’t install 4.6 yet…

Maybe @WayneWWW can confirm if the bluedroid-patch made it into JetPack 4.6?

Sorry that it looks like those patches are not yet merged…

I will check what is going on internally. Currently still need to manually add this to your driver/dts.