[roll] Roll fuchsia [dwc3] Validate endpoint max packet size against FIFO limit

In ConfigureEndpoint, validate that the requested max packet size
for an IN endpoint does not exceed its physical FIFO size.
If it does, reject the configuration with ZX_ERR_INVALID_ARGS.

This provides defense-in-depth protection against underflow in case
the upper layers (usb-peripheral) misconfigure the endpoints.

Define GHWPARAMS0 and GTXFIFOSIZ registers.
Add a unit test ConfigureEndpoint_FifoTooSmall to verify this.

Original-Original-Bug: 528675012
Test: dwc3-test
Original-Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1683814
Original-Original-Revision: de241d333af22e2224998d467eacac8557e2d332
GitOrigin-RevId: 92121a209bb4666dcc894aeee99cf32b87ecc067
Change-Id: I3e81bf6111356904da7408f56a3abdd566c9480f
Reviewed-on: https://fuchsia-review.googlesource.com/c/integration/+/1685955
Cr-Commit-Position: refs/heads/main@{#195825}
1 file changed
tree: a5eb968484a0699cc785cd0a231748d279d6d3f5
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.