NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-evbarm/54696: Kernel panic in bus_dma.c on Raspberry Pi 3B/3B+



The following reply was made to PR port-evbarm/54696; it has been noted by GNATS.

From: Nick Hudson <nick.hudson%gmx.co.uk@localhost>
To: gnats-bugs%netbsd.org@localhost, port-evbarm-maintainer%netbsd.org@localhost,
 gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, dhop%nwlink.com@localhost
Cc: 
Subject: Re: port-evbarm/54696: Kernel panic in bus_dma.c on Raspberry Pi
 3B/3B+
Date: Sat, 23 Nov 2019 10:25:20 +0000

 This is a multi-part message in MIME format.
 --------------7B5C974A279740D3C01B23C8
 Content-Type: text/plain; charset=utf-8; format=flowed
 Content-Transfer-Encoding: quoted-printable
 
 On 14/11/2019 22:35, sc.dying%gmail.com@localhost wrote:
 [snip]
 
 >   But the transfer length of isoc xfer is sum of xfer->ux_frlengths[i]
 >   where i =3D 0.. xfer->ux_nframes - 1, not zero.
 >   dwc2 should do this usb_syncmem if xfertype =3D=3D UE_{INTERRUPT,BULK}=
 ,
 >   UE_CONTROL that has data phase (that is, len !=3D 0), or if xfertype =
 =3D=3D
 >   UE_ISOCHRONOUS, should do usb_syncmem for each chunk of ux_frlengths.
 >
 >   However, the uaudio works with dwc2 even if avobe usb_syncmem is ignor=
 ed.
 >   I think dwc2 does usb_syncmem for isoc data buf somewhere else, but
 >   I'm not sure where it is.
 
 Please try this patch
 
 thanks,
 Nick
 
 --------------7B5C974A279740D3C01B23C8
 Content-Type: text/plain; charset=UTF-8;
  name="dwc2.c.diff"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
  filename="dwc2.c.diff"
 
 SW5kZXg6IHN5cy9leHRlcm5hbC9ic2QvZHdjMi9kd2MyLmMKPT09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1Mg
 Zml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