New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 776809 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

servo_v4: DUT always selects vSafe5v source cap due to unsupported voltage

Project Member Reported by sha...@chromium.org, Oct 20 2017

Issue description

I didn't run into this issue due to having a 9V-limited servo_v4, but philipchen@ is probably running into this on scarlet -- We'll advertise the 'best' / highest-power PDO from the charge port to the DUT without regard to whether the DUT actually supports charging at that voltage.

We can try parsing sink caps, but it's simpler to just advertise all PDOs to the DUT. Alternatively we can just advertise the 'best' 5V / 9V / 12V / 20V PDOs (we probably won't even need to touch common code for this).
 
Project Member

Comment 1 by bugdroid1@chromium.org, Oct 24 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/ec/+/97a37297557affef46b04330a4b3911b7f822dd7

commit 97a37297557affef46b04330a4b3911b7f822dd7
Author: Shawn Nematbakhsh <shawnn@chromium.org>
Date: Tue Oct 24 17:38:24 2017

servo_v4: Advertise multiple >5V PDOs to DUT

Select optimal PDOs from the charger at various discrete voltage limits
and advertise them all to the DUT, in case the DUT does not support the
"best" > 5V PDO due to voltage limits.

BUG= chromium:776809 
BRANCH=servo
TEST=On {samus, scarlet, kevin}, with zinger attached to DUT port,
verify DUT + CHG negotiate to max supported voltage. On 'black' servo_v4
board, verify scarlet negotiates to 12V.

Change-Id: Iea174e4f6bc303d561e28281b9ff20afb3073c25
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/730877
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>

[modify] https://crrev.com/97a37297557affef46b04330a4b3911b7f822dd7/board/servo_v4/usb_pd_policy.c

Comment 2 by sha...@chromium.org, Oct 24 2017

Status: Verified (was: Started)
Project Member

Comment 3 by bugdroid1@chromium.org, Oct 30 2017

Labels: merge-merged-firmware-servo-9040.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/ec/+/92c81a3e69bb09ad87fe40935eb81a561bca1318

commit 92c81a3e69bb09ad87fe40935eb81a561bca1318
Author: Shawn Nematbakhsh <shawnn@chromium.org>
Date: Mon Oct 30 17:05:16 2017

servo_v4: Advertise multiple >5V PDOs to DUT

Select optimal PDOs from the charger at various discrete voltage limits
and advertise them all to the DUT, in case the DUT does not support the
"best" > 5V PDO due to voltage limits.

BUG= chromium:776809 
BRANCH=servo
TEST=On {samus, scarlet, kevin}, with zinger attached to DUT port,
verify DUT + CHG negotiate to max supported voltage. On 'black' servo_v4
board, verify scarlet negotiates to 12V.

Change-Id: Iea174e4f6bc303d561e28281b9ff20afb3073c25
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/730877
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/740005

[modify] https://crrev.com/92c81a3e69bb09ad87fe40935eb81a561bca1318/board/servo_v4/usb_pd_policy.c

Sign in to add a comment