Skip to contentSkip to conversation

UFS: MPHY configuration issue

DISCUSSION Joao Pinto 1 participant 1 message Jan 20, 2016 SCSI

lore
Share & tools
lore

Joao Pinto

author
#0 lore raw

Hi,

I am trying to configure my MPHY through UNIPRO but I am experiencing a kernel crash when executing a dme instruction:

As an example I am executing the following:

result = ufshcd_dme_set(hba, UIC_ARG_MIB_SEL(PA_RXHSUNTERMCAP, 0), 1);

In ufshcd_dme_set_attr() I have the following data ready to execute:

set = dme-set
uic_cmd.command:2
uic_cmd.argument1 = 15a50000
uic_cmd.argument2 = 0
uic_cmd.argument3 = 1

And then the ufshcd_send_uic_cmd() procedure originates a crash as you can see below.

Crash log:

Path: /bin/busybox

CPU: 0 PID: 97 Comm: modprobe Not tainted 4.4.0-rc1 #26
task: 9f1f9c00 ti: 9f1ba000 task.ti: 9f1ba000

[ECR ]: 0x00220200 => Invalid Write @ 0x00000000 by insn @ 0x80a8a8c2
[EFA ]: 0x00000000
[BLINK ]: ufshcd_release+0x14a2/0x1738 [ufshcd] [ERET ]: __mutex_lock_slowpath+0x46/0x100
[STAT32]: 0x0000080e : K A1 E2 E1
BTA: 0x70054f4e SP: 0x9f1bbc64 FP: 0x00000000
LPS: 0x808765b8 LPE: 0x808765bc LPC: 0x00000000
r00: 0x9f2b5b50 r01: 0x9f1bbcb4 r02: 0x00000000
r03: 0x9f1bbc64 r04: 0x00000000 r05: 0x00000002
r06: 0x6affd617 r07: 0x00000000 r08: 0x6affd617
r09: 0x00000000 r10: 0x00000008 r11: 0x0000403f
r12: 0x00000000

Stack Trace:

  __mutex_lock_slowpath+0x46/0x100
  ufshcd_release+0x14a2/0x1738 [ufshcd]

I would like to hear some opinions about this issue!

Thank you very much!

BR
Joao