From: Baruch Siach <baruch@tkos.co.il>
To: Jeffrey Hugo <quic_jhugo@quicinc.com>,
Carl Vanderlip <quic_carlv@quicinc.com>,
Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
Ramon Fried <ramon@neureality.ai>, Orr Mazor <orrm@neureality.ai>
Subject: QAIC reset failure
Date: Tue, 16 Jan 2024 18:58:30 +0200 [thread overview]
Message-ID: <87ttndw6m6.fsf@tarshish> (raw)
Hi qaic driver maintainers,
I am testing an A100 device on arm64 platform. Kernel version is current
Linus master as of commit 052d534373b7. The driver is unable to reset
the device properly.
[ 137.706765] pci 0000:01:00.0: enabling device (0000 -> 0002)
[ 137.712528] pci 0000:02:00.0: enabling device (0000 -> 0002)
[ 137.718230] qaic 0000:03:00.0: enabling device (0000 -> 0002)
[ 137.725720] [drm] Initialized qaic 0.0.0 20190618 for 0000:03:00.0 on minor 0
[ 137.734326] mhi mhi0: Requested to power ON
[ 137.738520] mhi mhi0: Power on setup success
[ 137.855108] mhi mhi0: Wait for device to enter SBL or Mission mode
[ 137.861578] qaic_timesync mhi0_QAIC_TIMESYNC: 20: Failed to receive START channel command completion
[ 137.870733] qaic_timesync mhi0_QAIC_TIMESYNC: 21: Failed to reset channel, still resetting
[ 137.879063] qaic_timesync mhi0_QAIC_TIMESYNC: 20: Failed to reset channel, still resetting
[ 137.887334] qaic_timesync: probe of mhi0_QAIC_TIMESYNC failed with error -5
[ 137.894866] qaic_timesync mhi0_QAIC_TIMESYNC: 20: Failed to receive START channel command completion
[ 137.904006] qaic_timesync mhi0_QAIC_TIMESYNC: 21: Failed to reset channel, still resetting
[ 137.912263] qaic_timesync mhi0_QAIC_TIMESYNC: 20: Failed to reset channel, still resetting
[ 137.920517] qaic_timesync: probe of mhi0_QAIC_TIMESYNC failed with error -5
[ 140.807091] mhi mhi0: Device failed to enter MHI Ready
[ 143.695094] mhi mhi0: Device failed to enter MHI Ready
This is with firmware from SDK version 1.12.2.0. I tried also version
1.10.0.193 with similar results.
Some more state information from MHI debugfs below.
/sys/kernel/debug/mhi/mhi0/regdump:
Host PM state: SYS ERROR Process Device state: RESET EE: DISABLE
Device EE: PRIMARY BOOTLOADER state: SYS ERROR
MHI_REGLEN: 0x100
MHI_VER: 0x1000000
MHI_CFG: 0x8000000
MHI_CTRL: 0x0
MHI_STATUS: 0xff04
MHI_WAKE_DB: 0x1
BHI_EXECENV: 0x0
BHI_STATUS: 0xa93f0935
BHI_ERRCODE: 0x0
BHI_ERRDBG1: 0xc0300000
BHI_ERRDBG2: 0xb
BHI_ERRDBG3: 0xcabb0
/sys/kernel/debug/mhi/mhi0/states:
PM state: SYS ERROR Process Device: Inactive MHI state: RESET EE: DISABLE wake: true
M0: 2 M2: 0 M3: 0 device wake: 0 pending packets: 0
Any idea?
Thanks,
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
WARNING: multiple messages have this Message-ID (diff)
From: Baruch Siach <baruch@tkos.co.il>
To: Jeffrey Hugo <quic_jhugo@quicinc.com>,
Carl Vanderlip <quic_carlv@quicinc.com>,
Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org, Orr Mazor <orrm@neureality.ai>,
Ramon Fried <ramon@neureality.ai>,
dri-devel@lists.freedesktop.org
Subject: QAIC reset failure
Date: Tue, 16 Jan 2024 18:58:30 +0200 [thread overview]
Message-ID: <87ttndw6m6.fsf@tarshish> (raw)
Hi qaic driver maintainers,
I am testing an A100 device on arm64 platform. Kernel version is current
Linus master as of commit 052d534373b7. The driver is unable to reset
the device properly.
[ 137.706765] pci 0000:01:00.0: enabling device (0000 -> 0002)
[ 137.712528] pci 0000:02:00.0: enabling device (0000 -> 0002)
[ 137.718230] qaic 0000:03:00.0: enabling device (0000 -> 0002)
[ 137.725720] [drm] Initialized qaic 0.0.0 20190618 for 0000:03:00.0 on minor 0
[ 137.734326] mhi mhi0: Requested to power ON
[ 137.738520] mhi mhi0: Power on setup success
[ 137.855108] mhi mhi0: Wait for device to enter SBL or Mission mode
[ 137.861578] qaic_timesync mhi0_QAIC_TIMESYNC: 20: Failed to receive START channel command completion
[ 137.870733] qaic_timesync mhi0_QAIC_TIMESYNC: 21: Failed to reset channel, still resetting
[ 137.879063] qaic_timesync mhi0_QAIC_TIMESYNC: 20: Failed to reset channel, still resetting
[ 137.887334] qaic_timesync: probe of mhi0_QAIC_TIMESYNC failed with error -5
[ 137.894866] qaic_timesync mhi0_QAIC_TIMESYNC: 20: Failed to receive START channel command completion
[ 137.904006] qaic_timesync mhi0_QAIC_TIMESYNC: 21: Failed to reset channel, still resetting
[ 137.912263] qaic_timesync mhi0_QAIC_TIMESYNC: 20: Failed to reset channel, still resetting
[ 137.920517] qaic_timesync: probe of mhi0_QAIC_TIMESYNC failed with error -5
[ 140.807091] mhi mhi0: Device failed to enter MHI Ready
[ 143.695094] mhi mhi0: Device failed to enter MHI Ready
This is with firmware from SDK version 1.12.2.0. I tried also version
1.10.0.193 with similar results.
Some more state information from MHI debugfs below.
/sys/kernel/debug/mhi/mhi0/regdump:
Host PM state: SYS ERROR Process Device state: RESET EE: DISABLE
Device EE: PRIMARY BOOTLOADER state: SYS ERROR
MHI_REGLEN: 0x100
MHI_VER: 0x1000000
MHI_CFG: 0x8000000
MHI_CTRL: 0x0
MHI_STATUS: 0xff04
MHI_WAKE_DB: 0x1
BHI_EXECENV: 0x0
BHI_STATUS: 0xa93f0935
BHI_ERRCODE: 0x0
BHI_ERRDBG1: 0xc0300000
BHI_ERRDBG2: 0xb
BHI_ERRDBG3: 0xcabb0
/sys/kernel/debug/mhi/mhi0/states:
PM state: SYS ERROR Process Device: Inactive MHI state: RESET EE: DISABLE wake: true
M0: 2 M2: 0 M3: 0 device wake: 0 pending packets: 0
Any idea?
Thanks,
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
next reply other threads:[~2024-01-16 17:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-16 16:58 Baruch Siach [this message]
2024-01-16 16:58 ` QAIC reset failure Baruch Siach
2024-01-22 22:57 ` Jeffrey Hugo
2024-01-22 22:57 ` Jeffrey Hugo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ttndw6m6.fsf@tarshish \
--to=baruch@tkos.co.il \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=orrm@neureality.ai \
--cc=quic_carlv@quicinc.com \
--cc=quic_jhugo@quicinc.com \
--cc=quic_pkanojiy@quicinc.com \
--cc=ramon@neureality.ai \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.