Re: Kernel doesn't call spi driver's _match() and _attach()

2024-09-17 Thread Nick Hudson
acing the same issue). The "normal" way of doing this is using overlays https://mail-index.netbsd.org/port-arm/2018/12/12/msg005320.html https://www.raspberrypi.com/documentation/computers/configuration.html#part2 Should help here. Nick

Re: PR review process?

2023-07-30 Thread Nick Hudson
;ll take a look. Thanks, Nick

MI boot option helper functions

2023-02-25 Thread Nick Hudson
Any objections / improvements to this diff to add MI boot option helper functions? Thanks, Nickdiff --git a/sys/kern/subr_optstr.c b/sys/kern/subr_optstr.c index c557dc71e341..0e7cf76d27ef 100644 --- a/sys/kern/subr_optstr.c +++ b/sys/kern/subr_optstr.c @@ -43,13 +43,15 @@ __KERNEL_RCSID(0, "$Ne

Re: ci_want_resched bits vs. MD ci_data.cpu_softints bits

2022-12-04 Thread Nick Hudson
achdep.c that sets and clears PSL_SE in md_flags could also be removed. l_md is already zeroed by the memset(&l2->l_startzero, 0, ... ) calls https://nxr.netbsd.org/search?q=l_startzero&project=src&defs=&refs=&path=&hist= I've taken to just asserts that md_astpending is zero. Nick

Re: boothowto(9) options with Raspberry Pi

2022-10-06 Thread Nick Hudson
This patch adds the missing boot options. Why not use BOOT_FLAG (as well as the get_bootconf_option for the long format)? Nick

Re: libsa and 4K devices

2022-04-23 Thread Nick Hudson
On 23/04/2022 15:25, Tobias Nygren wrote: On Sat, 23 Apr 2022 14:17:09 - (UTC) Michael van Elst wrote: nick.hud...@gmx.co.uk (Nick Hudson) writes: To enable efiboot to work from Apple M1 nvme I had to apply this diff so that libsa picks up the fs_fshift based FFS_FSBTODB. Is this

libsa and 4K devices

2022-04-22 Thread Nick Hudson
Hi, To enable efiboot to work from Apple M1 nvme I had to apply this diff so that libsa picks up the fs_fshift based FFS_FSBTODB. Is this correct or does it mean the FS has an incorrect fs_fsbtodb? (and there's a bug in mkfs somewhere) Thanks, Nick Index: sys/ufs/ffs

Re: uhidev(9) improvements

2022-01-25 Thread Nick Hudson
, &dev); I think yes. I have tested uhid(4) and ukbd(4). I haven't tested ucycom(4), which uses uhidev(9) in a way that nothing else does -- to do async xfers on the output pipe. Can anyone review and/or test ucycom(4)? ucycom(4) works as well as it did before the change. Nick

Re: uscanner

2021-06-25 Thread Nick Hudson
mistakenly enables it thinking it will help them scan things when in reality enabling the driver will just break scanning. Fine by me. Nick

Re: Check in cpu_switchto triggering crash with PARANOIA on

2021-02-21 Thread Nick Hudson
d) 277 { 278 struct lwp *l = curlwp; 279 280 KERNEL_UNLOCK_ALL(l, &l->l_biglocks); 281 lwp_lock(l); lwp_lock will raise the IPL to IPL_SCHED. spc_{lock,mutex} are used by lwp_lock (maybe others) HTH, Nick

Re: USB lockup

2020-11-26 Thread Nick Hudson
caused the mixup. The change I referred to was Revision 1.254.2.76 / (download) - annotate - [select for diffs], Mon May 30 06:46:50 2016 UTC (4 years, 5 months ago) by skrll Branch: nick-nhusb Changes since 1.254.2.75: +181 -48 lines Diff to previous 1.254.2.75 (colored) to branchpoint 1.254 (colored)

Re: USB lockup

2020-11-26 Thread Nick Hudson
cular and enter ddb / dump usbhist when it does... I had a fix on my nick-nhusb branch that might help here, but other updates broke it and I've not looked as to why. Nick

Re: Scheduling problem - need some help here

2020-07-28 Thread Nick Hudson
hed is an MI variable for the scheduler which is why its use in vax cpu_need_resched got removed. End of ramblings... Nick

Re: style change: explicitly permit braces for single statements

2020-07-11 Thread Nick Hudson
, permitting braces to be consistently used: | - Adds to clarity of intent. | - Aids code review. | - Avoids gotofail: https://en.wikipedia.org/wiki/Unreachable_code#goto_fail_bug | | regards, | Luke. I was asked to CC this thread to tech-kern@, so I'm doing that. yes please Nick

Re: vmspace refcnt refactor patch

2020-05-16 Thread Nick Hudson
On 16/05/2020 12:45, Kamil Rytarowski wrote: On 16.05.2020 07:48, Nick Hudson wrote: On 15/05/2020 17:35, Kamil Rytarowski wrote: I propose the following patch: http://netbsd.org/~kamil/patch-00253-refactor-vmspace-refcnt.txt Does it look good? Nick, does it fix the hppa locking problem

Re: vmspace refcnt refactor patch

2020-05-15 Thread Nick Hudson
On 15/05/2020 17:35, Kamil Rytarowski wrote: I propose the following patch: http://netbsd.org/~kamil/patch-00253-refactor-vmspace-refcnt.txt Does it look good? Nick, does it fix the hppa locking problem? Thanks for working on this. Unfortunately, it doesn't fix all the pro

Re: [PATCH] xhci: Reduce ring memory usage

2020-04-02 Thread Nick Hudson
ng in xhci_endpoint. Committed. Thanks, Nick

Re: panic: softint screwup

2020-02-10 Thread Nick Hudson
ed the LW_RUNNING flag on softclk/0 between where it is > set (unlocked) at line 884 of kern_softint.c and callout_softclock(). Isn't it the case that softclk/0 is the victim/interrupted LWP for a soft{serial,net,bio}. That's certainly how I read the FP values. the callout handler blocked and softclk/0 became a victim as well maybe? http://src.illumos.org/source/xref/netbsd-src/sys/kern/kern_synch.c#687 a soft{serial,net,bio} happends before curlwp is changed away from the blocking softint thread Nick

Re: [PATCH] Address USB abort races

2019-12-23 Thread Nick Hudson
ese diffs caused the issue. I have some changes to ohci aborting on nhusb which I'll try and fixup when this diff goes in. Thanks, Nick

Re: evbarm hang

2019-04-19 Thread Nick Hudson
you if dwc_gmac interrupts are being distributed to both cpus? I think we need to prevent or protect against this. Nick

Re: evbarm hang

2019-04-19 Thread Nick Hudson
ling the spin lock, and it looks like it's itself waiting for a mutex. Now I have to find why "mach cpu 1" hangs, and how to avoid it ... The kdb_trap code is racey and needs to look more like the mips version. Feel free to beat me to fixing it. Nick

Re: evbarm hang

2019-04-18 Thread Nick Hudson
1: db{0}> mach cpu 1 kdb_trap: switching to cpu1 Stopped in pid 26110.1 (gcc) at netbsd:_kernel_lock+0xc4: Maybe you can get it by looking for the lwp on the other cpu using ps/l and using bt/a? Nick

Re: Multiple outstanding transfer vs xhci / ehci (Re: CVS commit: src/sys/dev/usb)

2019-02-15 Thread Nick Hudson
On 15/02/2019 13:44, Rin Okuyama wrote: On 2019/02/15 21:57, Jonathan A. Kollasch wrote: On Wed, Feb 13, 2019 at 06:35:14PM +0900, Rin Okuyama wrote: Hi, On 2019/02/13 3:54, Nick Hudson wrote: On 12/02/2019 16:02, Rin Okuyama wrote: Hi, The system freezes indefinitely with xhci(4) or ehci

Re: Multiple outstanding transfer vs xhci / ehci (Re: CVS commit: src/sys/dev/usb)

2019-02-12 Thread Nick Hudson
te loop in usbd_ar_pipe(); xfers with USBD_NOT_STARTED remain in a queue forever because upm_abort [= xhci_device_bulk_abort() etc.] cannot remove them. Why not the attached patch instead? Nick ? sys/dev/usb/cscope.out Index: sys/dev/u

Re: USB error checking

2018-12-29 Thread Nick Hudson
7;s a bug). An ECHI_DEBUG/ehcidebug=1 log when it happens would be interesting. Thanks, Nick Index: sys/dev/usb/ehci.c === RCS file: /cvsroot/src/sys/dev/usb/ehci.c,v retrieving revision 1.265 diff -u -p -r1.265 ehci.c --- sys

Re: fdtbus_intr_establish

2018-10-20 Thread Nick Hudson
) } } -    if (ic != NULL) +    if (ic == NULL) panic("%s: interrupt handle not valid", __func__); return ic->ic_funcs->disestablish(ic->ic_dev, cookie); Fixed. Thanks, Nick

Re: Reboot resistant USB bug

2018-10-16 Thread Nick Hudson
usbd_probe_and_attach#2@1: port 5, set config at addr 2 failed, er ror=4 Any hint? Can you make the trace available somewhere, please? Nick

Re: Reboot resistant USB bug

2018-10-16 Thread Nick Hudson
ion in usbd_get_desc() and inject fake descriptors (see below), the device is correctly attached on reboot, and it works again. Is it an acceptable workaround? [snip] Isn't there a way to reset it? Doesn't the hub power the port down? The bug is probably in uhub.c christos Nick

Re: mutex vs turnstile

2018-01-18 Thread Nick Hudson
;locking against myself");     546 2. owned by a different owner, which is NOT running Is this still a possibility given the above? Nick

Re: struct ifnet locking [was Re: IFEF_MPSAFE]

2017-12-21 Thread Nick Hudson
On 12/19/17 08:21, Ryota Ozaki wrote: On Tue, Dec 19, 2017 at 4:52 PM, Nick Hudson wrote: On 19/12/2017 03:43, Ryota Ozaki wrote: BTW I committed a change that disables IFEF_MPSAFE by default on all interfaces because it seems that IFEF_MPSAFE requires additional changes to work safely with

Re: xhci spec (mis?)interpretation on hubs

2017-12-20 Thread Nick Hudson
On 12/20/17 12:18, Sprow wrote: In article <3ef1728a-54fb-6c89-5634-e39ca9808...@netbsd.org>, Nick Hudson wrote: How so? It used to read #define IS_TTHUB(dd) \ ((dd)->bDeviceProtocol == UDPROTO_HSHUBSTT || \ (dd)->bDeviceProtocol == UDPROTO_HSHUBMTT) th

Re: xhci spec (mis?)interpretation on hubs

2017-12-20 Thread Nick Hudson
On 12/19/17 20:32, Sprow wrote: In article <5fc73ccd-26a2-7919-17e3-8098ccb3f...@netbsd.org>, Nick Hudson wrote: On 12/17/17 10:40, Nick Hudson wrote: On 12/08/17 18:25, Sprow wrote: I've been having a look on a USB analyser at a class of hubs that don't seem to work on a

Re: xhci spec (mis?)interpretation on hubs

2017-12-20 Thread Nick Hudson
On 12/17/17 10:40, Nick Hudson wrote: On 12/08/17 18:25, Sprow wrote: Hi, I've been having a look on a USB analyser at a class of hubs that don't seem to work on a driver based on    src/sys/dev/usb/xhci.c Comparing the dialogue for a non XHCI controller I see the issue is that t

Re: struct ifnet locking [was Re: IFEF_MPSAFE]

2017-12-18 Thread Nick Hudson
additional changes? Thanks, Nick

Re: xhci spec (mis?)interpretation on hubs

2017-12-17 Thread Nick Hudson
ecking the adjacent hub (5 in my example). As a result the expression evaluates to false and the ttportnum & tthubslot are 0, which blocks the controller from routing the GetDescriptor properly. I didn't look too closely yet, but I'm pretty sure the upstream HS hub is required here as you stated. Nick

Re: struct ifnet locking [was Re: IFEF_MPSAFE]

2017-12-14 Thread Nick Hudson
On 14/12/2017 10:48, Ryota Ozaki wrote: On Fri, Dec 8, 2017 at 7:53 PM, Nick Hudson wrote: Not sure I follow this. I think we agree that the driver should not use if_flags in the rx/tx path (anymore). Yes. Drivers should provide their own method. Great. Anyway I updated the document

Re: struct ifnet locking [was Re: IFEF_MPSAFE]

2017-12-08 Thread Nick Hudson
On 12/06/17 11:11, Ryota Ozaki wrote: On Tue, Nov 28, 2017 at 6:40 PM, Ryota Ozaki wrote: On Mon, Nov 27, 2017 at 12:24 AM, Nick Hudson wrote: On 11/17/17 07:44, Ryota Ozaki wrote: [snip] Hi, (Sorry for late replying. I was sick in bed for days...) Can you document the protection

Re: kernel condvars: how to use?

2017-12-08 Thread Nick Hudson
On 12/08/17 09:04, Nick Hudson wrote: On 12/08/17 03:26, Mouse wrote: [Brian Buhrow] 1.  [...].  Mutexes that use spin locks can't be used in interrupt context. Sure you don't have that backwards?  I _think_ mutex(9) says that spin mutexes are the only ones that _can_ be us

Re: kernel condvars: how to use?

2017-12-08 Thread Nick Hudson
kwards. To quote mutex(9)...    IPL_VM, IPL_SCHED, IPL_HIGH A spin mutex will be returned.  Spin mutexes provide mutual exclusion between LWPs, and between LWPs and interrupt handlers. Nick

struct ifnet locking [was Re: IFEF_MPSAFE]

2017-11-26 Thread Nick Hudson
macros: http://www.netbsd.org/~ozaki-r/if_ioctl-no-KERNEL_LOCK.revised.diff ozaki-r Hi, Can you document the protection requirements of the struct ifnet members, e.g. if_flags. Ideally by annotating it like struct proc http://src.illumos.org/source/xref/netbsd-src/sys/sys/proc.h#230 Thanks, Nick

Re: kmodule: absolute symbols

2017-11-04 Thread Nick Hudson
, uintptr_t, uintptr_t *);  int    kobj_reloc(kobj_t, uintptr_t, const void *, bool, bool);  int    kobj_machdep(kobj_t, void *, size_t, bool); This broke the arm builds Why uintptr_t * and not Elf_Addr *? Nick

Re: USB fixes hopefully getting in to -8

2017-10-03 Thread Nick Hudson
going on like cvs updates and compiling. Does anyone who might know what's been fixed know if the changes are going to be pulled in to -8? There are no changes in sys/dev/usb worth note. Maybe git bisect to find out what fixed it? Nick

Re: vrele vs. syncer deadlock

2016-12-19 Thread Nick Hudson
On 12/12/16 09:55, J. Hannken-Illjes wrote: On 11 Dec 2016, at 22:33, Nick Hudson wrote: On 12/11/16 21:05, J. Hannken-Illjes wrote: On 11 Dec 2016, at 21:01, David Holland wrote: On a low-memory machine Nick ran into the following deadlock: (a) rename -> vrele on child -> in

Re: vrele vs. syncer deadlock

2016-12-11 Thread Nick Hudson
On 12/11/16 21:05, J. Hannken-Illjes wrote: On 11 Dec 2016, at 21:01, David Holland wrote: On a low-memory machine Nick ran into the following deadlock: (a) rename -> vrele on child -> inactive -> truncate -> getblk -> no memory in buffer pool -> wait for syncer

Re: pmap attempts at copying to executable pages both on mips and powerpc/booke

2016-09-30 Thread Nick Hudson
On 09/28/16 16:13, Rin Okuyama wrote: On 2016/09/28 20:40, Nick Hudson wrote: [snip] if the mapping changes PA then the resident_count gets reduced by pmap_{,pte_}remove, but not increased again. I'm working on a fix. Thank you very much for your analysis. I'm looking

Re: pmap attempts at copying to executable pages both on mips and powerpc/booke

2016-09-28 Thread Nick Hudson
ges PA then the resident_count gets reduced by pmap_{,pte_}remove, but not increased again. I'm working on a fix. Nick

Re: pmap attempts at copying to executable pages both on mips and powerpc/booke

2016-09-16 Thread Nick Hudson
ot;, line 628 kernel: breakpoint trap Stopped in pid 2328.1 (sed) at netbsd:cpu_Debugger+0x4: jr ra bdslot: nop Matt fixed it with src/sys/uvm/pmap/pmap.c:1.22 Nick

Re: [patch] xhci patch 20160809

2016-08-18 Thread Nick Hudson
On 08/09/16 11:09, Takahiro Hayashi wrote: Hello, I'll post xhci patches for HEAD. x-addrendian.diff + Fix endian issue of device address. x-linktrb2.diff + Put Link TRB always at the end of ring. Should fix ctrl xfer problem on Intel xHC. Thanks, Committed. Thanks, Nick

Re: CVS commit: src/sys

2016-07-25 Thread Nick Hudson
). src/sys/arch/mips/mips/spl.S:1.11 helps in most places. My cobalt (real hw) still has a problem here. Martin Nick

Re: CVS commit: src/sys

2016-07-14 Thread Nick Hudson
ll rights reserved. NetBSD 7.99.34 (GENERIC) #8: Thu Jul 14 06:19:34 BST 2016 nick@

Re: SOSEND_LOAN problems in MIPS

2016-07-12 Thread Nick Hudson
16K page kernel, the problem will go away -- though I'll lose a little bit of efficiency? yes. That said, I think the pmap deals with virtual cache aliasing correctly now. Thor Nick

Re: device-major question

2016-05-11 Thread Nick Hudson
On 05/11/16 11:52, Kimihiro Nonaka wrote: 2016-05-11 15:41 GMT+09:00 Nick Hudson: I'd be happy (as a tegra owner/user) to move hdmicec to 206. I don't think hdmicec is use anywhere else yet. char 206 is already used by seeprom. - sys/conf/majors device-major seeprom char 2

Re: device-major question

2016-05-10 Thread Nick Hudson
char 260com - Regards, I'd be happy (as a tegra owner/user) to move hdmicec to 206. I don't think hdmicec is use anywhere else yet. Anyone else have an opinion? NIck

Re: nick-nhusb merge coming soon

2016-04-14 Thread Nick Hudson
nected every several minutes repeatedly. ENOHARDWARE regards, -- t-hash Thanks, Nick

Re: nick-nhusb merge coming soon

2016-04-13 Thread Nick Hudson
On 04/13/16 11:58, Dave Tyson wrote: On Wednesday 13 Apr 2016 07:59:20 Nick Hudson wrote: Hi, I think the first phase of nick-nhusb is in a state ready to be merged. I'd like to merge it in the next few days, but in the meantime I've put some kernels for testing here:

Re: nick-nhusb merge coming soon

2016-04-13 Thread Nick Hudson
On 04/13/16 08:15, Paul Goyette wrote: On Wed, 13 Apr 2016, Nick Hudson wrote: Hi, I think the first phase of nick-nhusb is in a state ready to be merged. I'd like to merge it in the next few days, but in the meantime I've put some kernels for testing here: http://www.netbsd.

Re: nick-nhusb merge coming soon

2016-04-13 Thread Nick Hudson
On 04/13/16 08:05, Taylor R Campbell wrote: Date: Wed, 13 Apr 2016 07:59:20 +0100 From: Nick Hudson I think the first phase of nick-nhusb is in a state ready to be merged. I'd like to merge it in the next few days, but in the meantime I've put some kernels for te

nick-nhusb merge coming soon

2016-04-13 Thread Nick Hudson
Hi, I think the first phase of nick-nhusb is in a state ready to be merged. I'd like to merge it in the next few days, but in the meantime I've put some kernels for testing here: http://www.netbsd.org/~skrll/nick-nhusb Please test and report success or failure. I can provide

Re: asynchronous ugen(4) bulk transfers

2016-04-05 Thread Nick Hudson
On 04/04/16 08:45, Nick Hudson wrote: On 04/04/16 05:25, Brian Buhrow wrote: hello. I did a lot of work on this under NetBSD-5 to allow the libimobiledevice tools to work with iOS based Apple devices. I have some simple patches for libusb1 and a re-working of the ugen(4) driver to

Re: asynchronous ugen(4) bulk transfers

2016-04-04 Thread Nick Hudson
nks -Brian Thanks, Nick

Re: RFC: softint-based if_input

2016-02-03 Thread Nick Hudson
27;t know how to get level. Is there API?). There isn't an API afaik. ozaki-r Nick

Re: Potential problem with reading data from usb devices with ugen(4)

2016-01-27 Thread Nick Hudson
little guidance on what's going on. I'll continue to poke at it as well, but another set of eyes looking at the issue would be much appreciated. I see the bug(s) and will try and cook up diffs soon. They'll be against -current, though -thanks -Brian Nick

Re: arm/arm32/pmap.c assert

2016-01-20 Thread Nick Hudson
On 01/20/16 16:16, Frank Zerangue wrote: Thanks Nick, Here are the pertinent options in my kernel config: options CPU_ARM1136 # Support the ARM1136 core options CPU_ARM11 # Support the ARM11 core options FPU_VFP

Re: On softints, softnet_lock and sleeping (aka ipv6 vs USB network interfaces)

2016-01-01 Thread Nick Hudson
callbacks to run at IPL_SOFTSERIAL really means that the USB callbacks should be re-checked that they provide the right protection when calling into the subsystems they access. Let me know if the patch fixes things for you. Thanks, Nick

Re: Potential problem with reading data from usb devices with ugen(4)

2015-12-29 Thread Nick Hudson
On 27/12/2015 20:00, Brian Buhrow wrote: hello Nick. I've been doing this work under NetBSD-5 and the ehci(4) driver definitely doesn't behave well when sent a zero-length packet under that branch. Define "doesn't behave well" I also checked out your U

Re: Potential problem with reading data from usb devices with ugen(4)

2015-12-09 Thread Nick Hudson
ally, the chain allocators get confused about the fact that the lengths of the xfer are zero. send-pr please. Hopefully I've fixed these on my branch. Nick

Re: On softints, softnet_lock and sleeping (aka ipv6 vs USB network interfaces)

2015-12-07 Thread Nick Hudson
On 12/06/15 16:01, Taylor R Campbell wrote: Date: Sun, 6 Dec 2015 09:22:05 + From: Nick Hudson It seems to me that nd6_timer is either expecting too much of the USB stack by expecting a synchronous interface to changing multicast filters that doesn't sleep; or th

On softints, softnet_lock and sleeping (aka ipv6 vs USB network interfaces)

2015-12-06 Thread Nick Hudson
m CPU N and schedules softint process (at IPL_SOFTNET) which never runs as the lwp is blocked in step 3) Maybe 290 #define IPL_SOFTUSB IPL_SOFTNET http://nxr.netbsd.org/xref/src/sys/dev/usb/usbdi.h#290 should be changed to IPL_SOFTBIO? Thoughts? Nick

Re: Potential problem with reading data from usb devices with ugen(4)

2015-12-06 Thread Nick Hudson
ers to be 16384 bytes in length. Our USB system seems to prefer breaking these down into 1024 byte transfers. My question is this: USB transfers can be greater than 1024. http://nxr.netbsd.org/search?q=UGEN_BBSIZE&project=src I think we should look to other ugen drivers to make sure we behave similarly Nick

Re: Potential problem with reading data from usb devices with ugen(4)

2015-11-05 Thread Nick Hudson
zero length packets. Re-reading what Nick wrote on this thread about USB writes consisting of USB transactions on the bus, I think this means you just initiate a transfer to the device in question with no payload. I believe I know how to do this from within the ugen(4) driver itself, and I ha

Re: RPI2: Mutex related KASSERT when entering ddb(4)

2015-10-04 Thread Nick Hudson
k for you? There are almost certainly other KASSERTs that need adapting to polling. Nick

Re: Potential problem with reading data from usb devices with ugen(4)

2015-09-26 Thread Nick Hudson
drivers are a little inconsistent in their handling of the USBD_SHORT_XFER flag, but without it a short transfer will always result in a callback status of USBD_SHORT_XFER http://nxr.netbsd.org/xref/src/sys/dev/usb/usbdi.c#883 Nick

Re: RPI2: Mutex related KASSERT when entering ddb(4)

2015-09-26 Thread Nick Hudson
´m not an USB guy so I don´t really understand what this all is. I hope someone can fix this. cvs update and try again. The locking is not required when polling. Nick

Re: Potential problem with reading data from usb devices with ugen(4)

2015-09-24 Thread Nick Hudson
On 09/24/15 15:52, Brian Buhrow wrote: On Sep 24, 12:00pm, Nick Hudson wrote: } Are you sure about this? I'm not sure why ugen_bulkra_intr doesn't start } a new transfer, but see below. } } I wonder if } } http://nxr.netbsd.org/xref/src/sys/dev/usb/ugen.c#697 }

Re: Potential problem with reading data from usb devices with ugen(4)

2015-09-24 Thread Nick Hudson
n.c#697 http://nxr.netbsd.org/xref/src/sys/dev/usb/ugen.c#1221 needs USBD_SHORT_XFER_OK adding to the flags arg. UGEN_DEBUG output will help? Nick

Re: [patch] xhci patch 20150911

2015-09-13 Thread Nick Hudson
On 09/11/15 11:07, Takahiro Hayashi wrote: Hello, Here is xhci patches for nick-nhusb branch. nhusb-xhci-lock.diff + Fix lock error. Same as https://mail-index.netbsd.org/tech-kern/2015/07/15/msg019170.html nhusb-xhci-evh.diff + Split xhci_handle_event() into 3 functions

Re: [patch] xhci patch 20150911

2015-09-11 Thread Nick Hudson
On 09/11/15 11:07, Takahiro Hayashi wrote: Hello, Here is xhci patches for nick-nhusb branch. I'll look into this. nhusb-xhci-lock.diff + Fix lock error. Same as https://mail-index.netbsd.org/tech-kern/2015/07/15/msg019170.html iirc, I wanted to do this differently nhusb

Re: Very slow transfers to/from micro SD card on a RPi B+

2015-08-18 Thread Nick Hudson
is a regression in WAPBL. Can you tell me how I can extract a kernel for the Pi using objdump, so I can conduct some experimentation? What do you want to do with objdump? Nick

Re: USB, NetBSD 6.1.5/amd64: freezes when 2 umass connected

2015-07-02 Thread Nick Hudson
is causing this misbehavior. And a freeze is rather annoying for a node that is mainly supposed to be administrated from remote... TIA, Can you try netbsd-7 or better still -current? Thanks, Nick

Re: x96 cannot build without MULTIPROCESSOR

2015-07-01 Thread Nick Hudson
can be useful, sometime you get a computer model where it crashes. The only workaround I see is to build with MEMORY_DISK_RBFLAGS=0x1000 # RB_AUTOBOOT | RB_MD1 This is how you're supposed to do it, I believe. The boot loader helps as well. Nick

Re: xhci patch 20150623

2015-06-23 Thread Nick Hudson
On 06/23/15 07:43, takahiro hayashi wrote: Hello, Here is xhci patch for nick-nhusb branch. nh-xhci-check.diff + Add port range check in xhci_rhpsc(). + Add sanity check if xfer->ux_pipe != NULL in xhci_handle_event(). nh-xhci-prc.diff + Remove SET_FEATURE C_PORT_RESET(

Re: usbd_do_request_flags_pipe diagnostic panic

2015-06-07 Thread Nick Hudson
On 06/07/15 14:33, takahiro hayashi wrote: Hi, On 2015/06/07 19:50, Nick Hudson wrote: On 06/06/15 05:39, takahiro hayashi wrote: Hello, On nick-nhusb branch kernel panics in usbd_transfer() when the zero-length request gets stalled. This happens when the uhidev driver issues usbd_set_idle

Re: usbd_do_request_flags_pipe diagnostic panic

2015-06-07 Thread Nick Hudson
On 06/06/15 05:39, takahiro hayashi wrote: Hello, On nick-nhusb branch kernel panics in usbd_transfer() when the zero-length request gets stalled. This happens when the uhidev driver issues usbd_set_idle to my USB keyboard, one of its uhidevs returns stall for SET_IDLE request. While

Re: xhci patch 20150606

2015-06-07 Thread Nick Hudson
On 06/06/15 18:51, takahiro hayashi wrote: On 2015/06/07 01:51, takahiro hayashi wrote: On 2015/06/07 01:39, Nick Hudson wrote: I don't think XHCI_* defines should appear in usb.h. Oh that's my fault. I'll fix it... New diff of usb.h attached. Thanks. All committed now. Nick

Re: xhci patch 20150606

2015-06-06 Thread Nick Hudson
FTOUT(x, __BITS(31,16)) } UPACKED usb_devcap_ssp_descriptor_t; #define USB_DEVCAP_SSP_DESCRIPTOR_SIZE 12 /* variable length */ I don't think XHCI_* defines should appear in usb.h. Nick

Re: patch: 3.0 hub support for xhci

2015-04-06 Thread Nick Hudson
On 04/06/15 00:15, Takahiro HAYASHI wrote: Hello, On 2015/04/02 21:10, Nick Hudson wrote: On 03/24/15 13:30, Robert Sprowson wrote: b) some experimental USB 3 work that might break it for some people, this should probably be on a private branch I'm happy to do this on my nick-

Re: Brainy: Set of 11 potential bugs

2015-04-04 Thread Nick Hudson
On 04/04/15 16:15, Nick Hudson wrote: On 04/04/15 10:12, Maxime Villard wrote: Hi, here is a new list of 11 potential bugs: http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-5 Please carefully test/investigate these bugs before fixing them. Also, please include the keyword

Re: Brainy: Set of 11 potential bugs

2015-04-04 Thread Nick Hudson
essages so that I can easily keep track of what is/isn't fixed - or send me a mail directly. The sys/dev/usb/umass_isdata.c report looks like a false +ve to me. Found by The Brainy Code Scanner. Regards, Maxime Nick

Re: patch: 3.0 hub support for xhci

2015-04-02 Thread Nick Hudson
e people, this should probably be on a private branch I'm happy to do this on my nick-nhusb branch, but maybe this isn't what you want. c) some port specific tweaks for Intel chipsets, which should probably be compile time bracketed or taken out with quirks on other ports

Re: patch: 3.0 hub support for xhci

2014-11-18 Thread Nick Hudson
On 10/31/14 03:59, Takahiro HAYASHI wrote: hello, This patch tries to support 3.0 hubs for xhci. still xhci is at best experimental. Thanks for working on this. Are you tracking other BSDs? Can you update the diff to -current? Thanks, Nick

Re: MI linker script

2014-11-07 Thread Nick Hudson
side of this is that build uses more disk space. I mean to compensate that by making kernel build share objects in the long run, but it will take Long Time... Another downside is that you're going to break quite a few kernels that rely on linker scripts. Nick

Re: Patch: xhci controller driver improvements

2014-09-20 Thread Nick Hudson
On 08/12/14 17:20, Takahiro HAYASHI wrote: On 08/12/14 23:07, Nick Hudson wrote: On 08/12/14 10:42, Takahiro HAYASHI wrote: On 08/12/14 07:45, Takahiro HAYASHI wrote: Please send diff :) Wait for a while plz. lessprf.diff replaces most of device_printf. I define new macros DPRINTD and

tmpfs projects

2014-09-08 Thread Nick
Hello, I am new to NetBSD and would like to see if there is any chance that I could find something related to file system to work on (I am working on networking/platform SW full-time) Are these two projects already complete or been taken care of by people? Those look like a good entry point to th

Re: Patch: xhci controller driver improvements

2014-08-12 Thread Nick Hudson
On 08/12/14 15:07, Nick Hudson wrote: On 08/12/14 10:42, Takahiro HAYASHI wrote: I'll dump my local misc patches too. usb3.diff tries to make usb stack recognize super speed and make usbdevs(8) print super speed. This patch also adds XHCI_DEBUG flag to opt_usb.h. I committed mo

Re: Patch: xhci controller driver improvements

2014-08-12 Thread Nick Hudson
evice. http://mail-index.netbsd.org/source-changes/2013/03/20/msg042367.html Committed. Thanks, Nick

Re: Patch: xhci controller driver improvements

2014-08-11 Thread Nick Hudson
On 08/10/14 12:54, Takahiro HAYASHI wrote: Hi, Hi, On 08/10/14 17:06, Nick Hudson wrote: Some comments... @@ -2889,6 +3028,7 @@ xhci_timeout(void *addr) struct xhci_softc * const sc = xfer->pipe->device->bus->hci_private; if (sc->sc_dying) { +xhci_

Re: Patch: xhci controller driver improvements

2014-08-10 Thread Nick Hudson
t xhci_softc * const sc = xfer->pipe->device->bus->hci_private; if (sc->sc_dying) { + xhci_abort_xfer(xfer, USBD_TIMEOUT); return; } This looks very strange. The driver makes far too much use of device_printf and all USB should move to KERNHIST. Nick

Re: CVS commit: src/sys/kern

2014-07-22 Thread Nick Hudson
uctures is detected. These checks can decrease performance up to 15%. I'd guess that KMEM_REDZONE add much less than 15%. Nick

Re: one time crash in usb_allocmem_flags

2014-02-10 Thread Nick Hudson
oesn't look like that usb_frag_freelist isn't protected correctly. I looks more like random corruption. What was the value of %edx? Thanks, Nick

Re: Sudden reboot

2013-12-02 Thread Nick Hudson
dump -d or nm -n or gdb or whatever to find the code that's at 0x8031162f in your kernel, you'll probably get a fairly good idea of what broke. backtrace is always useful as well. Nick

  1   2   >