[VA][TX1][Customized Carrier board]How to disable the POWER MONITORS feature.

precondition:

ROM version R24.2.1
Customized carriy board
Customized kernel

Operational:

  1. Insert USB storage.

Problem:
The sda devices can’t be detected successly.

The hardware team think it must be “POWER MONITORS” problem.
So how can we disable the feature?

logs:

[ 2099.696697] usb 1-3: new high-speed USB device number 16 using tegra-xhci
[ 2099.718894] usb 1-3: New USB device found, idVendor=03f0, idProduct=1640
[ 2099.718902] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2099.718907] usb 1-3: Product: v229g
[ 2099.718911] usb 1-3: Manufacturer: HP
[ 2099.718916] usb 1-3: SerialNumber: AA00000000000192
[ 2099.719089] usb 1-3: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
[ 2099.719103] usb 1-3: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
[ 2099.719618] usb-storage 1-3:1.0: USB Mass Storage device detected
[ 2099.719783] scsi0 : usb-storage 1-3:1.0
[ 2099.720115] platform 7.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.720348] platform d.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.720503] platform c9.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.720638] platform ca.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.720775] platform cb.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.720914] platform cc.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.721050] platform cd.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.721156] reg-fixed-sync-voltage ce.regulator: Consumer c0 does not have device name
[ 2099.721183] platform ce.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.721321] platform d1.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.721466] platform d3.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.721584] reg-fixed-sync-voltage 5.regulator: Consumer c1 does not have device name
[ 2099.721617] platform 5.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.836724] usb 1-4: new low-speed USB device number 17 using tegra-xhci
[ 2099.837885] usb 1-4: Device not responding to set address.
[ 2100.047817] usb 1-4: Device not responding to set address.
[ 2100.256685] usb 1-4: device not accepting address 17, error -71
[ 2100.376715] usb 1-4: new low-speed USB device number 18 using tegra-xhci
[ 2100.377855] usb 1-4: Device not responding to set address.
[ 2100.587821] usb 1-4: Device not responding to set address.
[ 2100.796708] usb 1-4: device not accepting address 18, error -71
[ 2100.976731] usb 1-4: new low-speed USB device number 19 using tegra-xhci
[ 2100.977876] usb 1-4: Device not responding to set address.
[ 2101.187819] usb 1-4: Device not responding to set address.
[ 2101.396708] usb 1-4: device not accepting address 19, error -71
[ 2101.516656] usb 1-4: new low-speed USB device number 20 using tegra-xhci
[ 2101.517822] usb 1-4: Device not responding to set address.
[ 2101.727759] usb 1-4: Device not responding to set address.
[ 2101.936633] usb 1-4: device not accepting address 20, error -71
[ 2101.942602] hub 1-0:1.0: unable to enumerate USB device on port 4           
[ 2101.948882] usb 1-3: USB disconnect, device number 16
[ 2102.226642] usb 1-3: new high-speed USB device number 21 using tegra-xhci
[ 2102.951073] usb 1-3: Device not responding to set address.
[ 2103.156945] tegra-xhci tegra-xhci: ERROR: unexpected command completion code 0x11

Hi
Can you tell what kind of power monitor?
Have you check the same config on reference carry board? (Customized kernel on reference carry board)

hi Shane:

The “POWER MONITORS” appear in Page 31 of P2597_B04_OrCAD_schematics.pdf.

Yes. We had checked on the refernce carriy board.

开发套件基板+开发套件SOM+NV发布镜像:

[  117.148515] usb 1-3: new high-speed USB device number 7 using tegra-xhci
[  117.171972] usb 1-3: New USB device found, idVendor=03f0, idProduct=1640
[  117.172032] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  117.172071] usb 1-3: Product: v229g
[  117.172107] usb 1-3: Manufacturer: HP
[  117.172140] usb 1-3: SerialNumber: AA00000000000192
[  117.173298] usb 1-3: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
[  117.173379] usb 1-3: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
[  117.179536] usb-storage 1-3:1.0: USB Mass Storage device detected
[  117.181944] scsi0 : usb-storage 1-3:1.0
[  118.369734] scsi 0:0:0:0: Direct-Access     hp       v229g            1100 PQ: 0 ANSI: 4
[  118.378411] sd 0:0:0:0: [sda] 15581184 512-byte logical blocks: (7.97 GB/7.42 GiB)
[  118.380140] sd 0:0:0:0: [sda] Write Protect is off
[  118.380247] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[  118.381854] sd 0:0:0:0: [sda] No Caching mode page found
[  118.387301] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  118.402457] sd 0:0:0:0: [sda] No Caching mode page found
[  118.408903] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  118.422334]  sda: sda1
[  118.424188] sd 0:0:0:0: [sda] No Caching mode page found
[  118.429713] sd 0:0:0:0: [sda] Assuming drive cache: write through
[  118.435922] sd 0:0:0:0: [sda] Attached SCSI removable disk
[  120.049094] usb 1-3: USB disconnect, device number 7
[  120.069378] sd 0:0:0:0: [sda] Unhandled error code
[  120.069487] sd 0:0:0:0: [sda]  
[  120.069553] Result: hostbyte=0x01 driverbyte=0x00
[  120.069629] sd 0:0:0:0: [sda] CDB:

开发套件基板+自调SOM+自编镜像

[   89.866146] usb 1-3: new high-speed USB device number 16 using tegra-xhci
[   89.888619] usb 1-3: New USB device found, idVendor=03f0, idProduct=1640
[   89.888627] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   89.888633] usb 1-3: Product: v229g
[   89.888637] usb 1-3: Manufacturer: HP
[   89.888641] usb 1-3: SerialNumber: AA00000000000192
[   89.888817] usb 1-3: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
[   89.888829] usb 1-3: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
[   89.889802] usb-storage 1-3:1.0: USB Mass Storage device detected
[   89.890174] scsi1 : usb-storage 1-3:1.0
[   90.006367] usb 1-4: new low-speed USB device number 17 using tegra-xhci
[   90.007732] usb 1-4: Device not responding to set address.
[   90.217327] usb 1-4: Device not responding to set address.
[   90.426181] usb 1-4: device not accepting address 17, error -71
[   90.546163] usb 1-4: new low-speed USB device number 18 using tegra-xhci
[   90.547314] usb 1-4: Device not responding to set address.
[   90.757310] usb 1-4: Device not responding to set address.
[   90.966127] usb 1-4: device not accepting address 18, error -71
[   91.071975] scsi 1:0:0:0: Direct-Access     hp       v229g            1100 PQ: 0 ANSI: 4
[   91.073499] sd 1:0:0:0: [sda] 15581184 512-byte logical blocks: (7.97 GB/7.42 GiB)
[   91.073953] sd 1:0:0:0: [sda] Write Protect is off
[   91.073960] sd 1:0:0:0: [sda] Mode Sense: 43 00 00 00
[   91.074407] sd 1:0:0:0: [sda] No Caching mode page found
[   91.079822] sd 1:0:0:0: [sda] Assuming drive cache: write through
[   91.086194] usb 1-4: new low-speed USB device number 19 using tegra-xhci
[   91.087290] usb 1-4: Device not responding to set address.
[   91.088489] sd 1:0:0:0: [sda] No Caching mode page found
[   91.094231] sd 1:0:0:0: [sda] Assuming drive cache: write through
[   91.105194]  sda: sda1
[   91.107430] sd 1:0:0:0: [sda] No Caching mode page found
[   91.112744] sd 1:0:0:0: [sda] Assuming drive cache: write through
[   91.118965] sd 1:0:0:0: [sda] Attached SCSI removable disk

自制基板+自调SOM +自编镜像

[ 2099.696697] usb 1-3: new high-speed USB device number 16 using tegra-xhci
[ 2099.718894] usb 1-3: New USB device found, idVendor=03f0, idProduct=1640
[ 2099.718902] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2099.718907] usb 1-3: Product: v229g
[ 2099.718911] usb 1-3: Manufacturer: HP
[ 2099.718916] usb 1-3: SerialNumber: AA00000000000192
[ 2099.719089] usb 1-3: ep 0x81 - rounding interval to 128 microframes, ep desc says 255 microframes
[ 2099.719103] usb 1-3: ep 0x2 - rounding interval to 128 microframes, ep desc says 255 microframes
[ 2099.719618] usb-storage 1-3:1.0: USB Mass Storage device detected
[ 2099.719783] scsi0 : usb-storage 1-3:1.0
[ 2099.720115] platform 7.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.720348] platform d.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.720503] platform c9.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.720638] platform ca.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.720775] platform cb.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.720914] platform cc.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.721050] platform cd.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.721156] reg-fixed-sync-voltage ce.regulator: Consumer c0 does not have device name
[ 2099.721183] platform ce.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.721321] platform d1.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.721466] platform d3.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.721584] reg-fixed-sync-voltage 5.regulator: Consumer c1 does not have device name
[ 2099.721617] platform 5.regulator: Driver reg-fixed-sync-voltage requests probe deferral
[ 2099.836724] usb 1-4: new low-speed USB device number 17 using tegra-xhci
[ 2099.837885] usb 1-4: Device not responding to set address.
[ 2100.047817] usb 1-4: Device not responding to set address.
[ 2100.256685] usb 1-4: device not accepting address 17, error -71
[ 2100.376715] usb 1-4: new low-speed USB device number 18 using tegra-xhci
[ 2100.377855] usb 1-4: Device not responding to set address.
[ 2100.587821] usb 1-4: Device not responding to set address.
[ 2100.796708] usb 1-4: device not accepting address 18, error -71
[ 2100.976731] usb 1-4: new low-speed USB device number 19 using tegra-xhci
[ 2100.977876] usb 1-4: Device not responding to set address.
[ 2101.187819] usb 1-4: Device not responding to set address.
[ 2101.396708] usb 1-4: device not accepting address 19, error -71
[ 2101.516656] usb 1-4: new low-speed USB device number 20 using tegra-xhci
[ 2101.517822] usb 1-4: Device not responding to set address.
[ 2101.727759] usb 1-4: Device not responding to set address.
[ 2101.936633] usb 1-4: device not accepting address 20, error -71
[ 2101.942602] hub 1-0:1.0: unable to enumerate USB device on port 4           
[ 2101.948882] usb 1-3: USB disconnect, device number 16
[ 2102.226642] usb 1-3: new high-speed USB device number 21 using tegra-xhci
[ 2102.951073] usb 1-3: Device not responding to set address.
[ 2103.156945] tegra-xhci tegra-xhci: ERROR: unexpected command completion code 0x11

Hi You could comment below include from tegra210-jetson-cv-base-p2597-2180-a00.dts to disable the power monitor to try if it cause by the power monitor.

#include "tegra210-platforms/tegra210-jetson-cv-powermon-p2180-1000-a00.dtsi"
#include "tegra210-platforms/tegra210-jetson-cv-powermon-p2597.dtsi"

hi ShaneCCC:

I found the ti_ina3221x’s slave address is as same as schematic diagram.

whether I just set the status as “disable” , is it closed?

tegra210-platforms/tegra210-jetson-cv-powermon-p2597.dtsi

i2c@7000c400 {
		ina3221x@42 {
			compatible = "ti,ina3221x";
			reg = <0x42>;
			ti,trigger-config = <0x7003>;
			ti,continuous-config = <0x7607>;
			ti,enable-forced-continuous;
			#io-channel-cells = <1>;
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";

You can try and both of the @42 @43 set the status as disable.
And check the /sys/bus/i2c/devices/1-004x/xxx should disappear from the sysfs.