Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/media/platform/apple/avd/avd-drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ static const struct avd_variant avd_t6041_variant = {
.submit_offset = 0x40,
.submit_queue_max_offset = 0x44,
.submit_queue_status_offset = 0x7c,
.quirks = AVD_QUIRK_HEVC_V5_HEADER,
.quirks = AVD_QUIRK_HEVC_V5_HEADER | AVD_QUIRK_NO_RECOVERY_RESET,
};

/*
Expand Down
9 changes: 9 additions & 0 deletions drivers/media/platform/apple/avd/avd-pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,15 @@ int avd_pm_recover(struct avd_dev *avd)
ret = avd_pm_park(avd);
if (ret)
return ret;
/*
* On the J616C the machine hangs right after this reset, while the
* decoder's DART domain is restored. The cause is not known yet, so
* stay parked: players fall back to software.
*/
if (avd->variant && avd->variant->quirks & AVD_QUIRK_NO_RECOVERY_RESET) {
dev_err(avd->dev, "recover: staying parked, no reset on this SoC\n");
return -EIO;
}
dev_warn(avd->dev, "recover: reset\n");
ret = reset_control_reset(avd->rstc);
if (ret) {
Expand Down
2 changes: 2 additions & 0 deletions drivers/media/platform/apple/avd/avd.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
#define AVD_QUIRK_V5_QUEUE_PACING BIT(3)
/* H.264 co-located motion vectors take 128 bytes per macroblock, not 64. */
#define AVD_QUIRK_H264_MV_128 BIT(4)
/* A reset after a timeout hangs the machine: stay parked and retire the decoder */
#define AVD_QUIRK_NO_RECOVERY_RESET BIT(5)

#define VP_SLOT_NONE 255
#define INST_FIFO_SLOT_NONE 255
Expand Down
Loading