Skip to content

dwc_otg: make periodic scheduling behave properly for FS buses - #2038

Merged
popcornmix merged 1 commit into
raspberrypi:rpi-4.9.yfrom
P33M:usb-microframe-fixes
May 26, 2017
Merged

popcornmix merged 1 commit into
raspberrypi:rpi-4.9.yfrom
P33M:usb-microframe-fixes

Conversation

@P33M

@P33M P33M commented May 25, 2017

Copy link
Copy Markdown
Contributor

see #2020

This is a fix for the default parameters (microframe scheduling) not behaving well when the root port is in full-speed mode.

As a semi-bandaid fix, transfers in FS mode are not nominated for execution by FIQ code - there's still a bug in there relating to isochronous transfers misbehaving when the endpoint is being shutdown.

If the root port is in full-speed mode, transfer times at 12mbit/s
would be calculated but matched against high-speed quotas.

Reinitialise hcd->frame_usecs[i] on each port enable event so that
full-speed bandwidth can be tracked sensibly.

Also, don't bother using the FIQ for transfers when in full-speed
mode - at the slower bus speed, interrupt frequency is reduced by
an order of magnitude.

Related issue: raspberrypi#2020
@popcornmix
popcornmix merged commit ed0a64f into raspberrypi:rpi-4.9.y May 26, 2017
@popcornmix

Copy link
Copy Markdown
Collaborator

No complaints from last night's Milhouse LibreELEC build.

popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jun 8, 2017
kernel: dwc_otg: make periodic scheduling behave properly for FS buses
See: raspberrypi/linux#2038

kernel: dwc_otg: fiq_fsm: Make isochronous compatibility checks work properly
See: raspberrypi/linux#2049

kernel: Add support for Allo Digione Driver
See: raspberrypi/linux#2048

kernel: config: Adding SENSOR_JC42
See: raspberrypi/linux#2046

kernel: BCM270X_DT: Improve i2c-sensor and i2c-rtc overlay
kernel: overlays: Fix i2c-rtc order and fragment numbering
See: raspberrypi/linux#2059

kernel: BCM270X_DT: Add midi-uart1 overlay
See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=183860

firmware: dtoverlay: Short-circuit empty parameter handling
See: raspberrypi/linux#2028

firmware: rtos: Protect against null timer callback
See: http://forum.kodi.tv/showthread.php?tid=280408

firmware: arm_dt: Add txp node to device tree parsing to mask off transposer interrupt

firmware: venc: Correct the validation on custom mb/mbps/br settings
See: #819
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Jun 8, 2017
kernel: dwc_otg: make periodic scheduling behave properly for FS buses
See: raspberrypi/linux#2038

kernel: dwc_otg: fiq_fsm: Make isochronous compatibility checks work properly
See: raspberrypi/linux#2049

kernel: Add support for Allo Digione Driver
See: raspberrypi/linux#2048

kernel: config: Adding SENSOR_JC42
See: raspberrypi/linux#2046

kernel: BCM270X_DT: Improve i2c-sensor and i2c-rtc overlay
kernel: overlays: Fix i2c-rtc order and fragment numbering
See: raspberrypi/linux#2059

kernel: BCM270X_DT: Add midi-uart1 overlay
See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=183860

firmware: dtoverlay: Short-circuit empty parameter handling
See: raspberrypi/linux#2028

firmware: rtos: Protect against null timer callback
See: http://forum.kodi.tv/showthread.php?tid=280408

firmware: arm_dt: Add txp node to device tree parsing to mask off transposer interrupt

firmware: venc: Correct the validation on custom mb/mbps/br settings
See: raspberrypi/firmware#819
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants