NetBSD-Bugs archive

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

Re: kern/50038: udl (DisplayLink GX-DVI_U2B) alignment fault on earmv6hf NETWALKER



The following reply was made to PR kern/50038; it has been noted by GNATS.

From: Nick Hudson <skrll%netbsd.org@localhost>
To: MOCHIDA Shuji <mochid%netside.co.jp@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, kern-bug-people%netbsd.org@localhost,
 gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: kern/50038: udl (DisplayLink GX-DVI_U2B) alignment fault on
 earmv6hf NETWALKER
Date: Wed, 16 Nov 2016 14:25:59 +0000

 This is a multi-part message in MIME format.
 --------------070209080704090605080902
 Content-Type: text/plain; charset=utf-8; format=flowed
 Content-Transfer-Encoding: 7bit
 
 On 11/16/16 13:32, MOCHIDA Shuji wrote:
 >>>    In these functions, (curcpu()->ci_ctrl & CPU_CONTROL_AFLT_ENABLE) is zero.
 >> We should be running with SCTLR.A =0 and SCTLR.U = 1, i.e.
 >> CPU_CONTROL_AFLT_ENABLE unset and CPU_CONTROL_UNAL_ENABLE set, but
 >> I think the usb transfer buffer is being marked as device/strongly ordered memory and
 >> we get an unaligned access fault because of this.
 > be32enc(sc->sc_cmd_buf, val) -- sc_cmd_buf is allocated in
 > usbdi.c:414 usbd_alloc_buffer() using kmem_alloc()..
 
 nearly... usbd_alloc_buller() using  usb_allocmem_flags()
 
 https://nxr.netbsd.org/xref/src/sys/dev/usb/usbdi.c#403
 
 You could try removing BUS_DMA_COHERENT from the bus_dmamem_map call - 
 see diff.
 
 > -mochid
 >
 >
 
 Nick
 
 --------------070209080704090605080902
 Content-Type: text/plain; charset=UTF-8;
  name="diff"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
  filename="diff"
 
 SW5kZXg6IHN5cy9kZXYvdXNiL3VzYl9tZW0uYwo9PT09PT09PT09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAv
 Y3Zzcm9vdC9zcmMvc3lzL2Rldi91c2IvdXNiX21lbS5jLHYKcmV0cmlldmluZyByZXZpc2lv
 biAxLjY4CmRpZmYgLXUgLXAgLXIxLjY4IHVzYl9tZW0uYwotLS0gc3lzL2Rldi91c2IvdXNi
 X21lbS5jCTMwIEFwciAyMDE2IDE0OjMxOjM5IC0wMDAwCTEuNjgKKysrIHN5cy9kZXYvdXNi
 L3VzYl9tZW0uYwkxNiBOb3YgMjAxNiAxNDoyNDo1MCAtMDAwMApAQCAtMTY4LDcgKzE2OCw3
 IEBAIHVzYl9ibG9ja19hbGxvY21lbShidXNfZG1hX3RhZ190IHRhZywgc2kKIAkJZ290byBm
 cmVlMDsKIAogCWVycm9yID0gYnVzX2RtYW1lbV9tYXAodGFnLCBiLT5zZWdzLCBiLT5uc2Vn
 cywgYi0+c2l6ZSwKLQkJCSAgICAgICAmYi0+a2FkZHIsIEJVU19ETUFfV0FJVE9LfEJVU19E
 TUFfQ09IRVJFTlQpOworCQkJICAgICAgICZiLT5rYWRkciwgQlVTX0RNQV9XQUlUT0spOwog
 CWlmIChlcnJvcikKIAkJZ290byBmcmVlMTsKIAoK
 --------------070209080704090605080902--
 


Home | Main Index | Thread Index | Old Index