The NetBSD Project

CVS log for src/sys/dev/usb/if_run.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / usb

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.42 / (download) - annotate - [select for diffs], Wed Jun 24 21:06:39 2020 UTC (3 years, 8 months ago) by jdolecek
Branch: MAIN
CVS Tags: triaxx-drm, thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.41: +6 -6 lines
Diff to previous 1.41 (colored)

disable inlining for couple functions which allocate usb_device_request_t
on stack to reduce total run_init() stack usage from 7KB to 2KB

Revision 1.41 / (download) - annotate - [select for diffs], Thu Jun 11 09:56:57 2020 UTC (3 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.40: +4 -3 lines
Diff to previous 1.40 (colored)

Better bounds checking for oversized packets, to avoid kernel memory
corruption. Pointed out by Ilja Van Sprundel.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jun 6 13:53:43 2020 UTC (3 years, 9 months ago) by gson
Branch: MAIN
Changes since 1.39: +70 -28 lines
Diff to previous 1.39 (colored)

Conditionally enable the formerly #if'ed-out code to use the
WRITE_REGION_1 command for writing blocks of data to the device.
This is to address a performance issue where "ifconfig run0 up" would
take as long as 20-30 seconds when using a UHCI or OHCI host
controller due to the large number of control transfers performed by
the driver in combination with the inability of those host controllers
to perform multiple control transfers per USB frame.  Limit the
transfers to 64 bytes as in the corresponding #if'ed-out code in
FreeBSD.  Currently only enabled for mac_ver 0x5390 as it is the only
version tested so far.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Mar 15 23:04:51 2020 UTC (4 years ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.38: +7 -3 lines
Diff to previous 1.38 (colored)

Define and implement a locking protocol for the ifmedia / mii layers:
- MP-safe drivers provide a mutex to ifmedia that is used to serialize
  access to media-related structures / hardware regsiters.  Converted
  drivers use the new ifmedia_init_with_lock() function for this.  The
  new name is provided to ease the transition.
- Un-converted drivers continue to call ifmedia_init(), which will supply
  a compatibility lock to be used instead.  Several media-related entry
  points must be aware of this compatibility lock, and are able to acquire
  it recursively a limited number of times, if needed.  This is a SPIN
  mutex with priority IPL_NET.
- This same lock is used to serialize access to PHY registers and other
  MII-related data structures.

The PHY drivers are modified to acquire and release the lock, as needed,
and assert the lock is held as a diagnostic aid.

The "usbnet" framework has had an overhaul of its internal locking
protocols to fit in with the media / mii changes, and the drivers adapted.

USB wifi drivers have been changed to provide their own adaptive mutex
to the ifmedia later via a new ieee80211_media_init_with_lock() function.
This is required because the USB drivers need an adaptive mutex.

Besised "usbnet", a few other drivers are converted: vmx, wm, ixgbe / ixv.

mcx also now calls ifmedia_init_with_lock() because it needs to also use
an adaptive mutex.  The mcx driver still needs to be fully converted to
NET_MPSAFE.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Mar 14 02:35:33 2020 UTC (4 years ago) by christos
Branch: MAIN
Changes since 1.37: +12 -12 lines
Diff to previous 1.37 (colored)

revert the 0x% -> %# change for fixed width formats pointed out by uwe.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Mar 13 18:17:40 2020 UTC (4 years ago) by christos
Branch: MAIN
Changes since 1.36: +12 -12 lines
Diff to previous 1.36 (colored)

PR/55068: sc.dying: Fix printf formats:
- no %s/%p for kernel log
- 0x% -> %#
- always %j for kernel log

Revision 1.36 / (download) - annotate - [select for diffs], Wed Jan 29 06:35:28 2020 UTC (4 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3
Changes since 1.35: +14 -14 lines
Diff to previous 1.35 (colored)

Adopt <net/if_stats.h>.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Jan 4 22:30:06 2020 UTC (4 years, 2 months ago) by mlelstv
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.34: +7 -4 lines
Diff to previous 1.34 (colored)

Avoid race condition. Patch from bouyer@

Revision 1.34 / (download) - annotate - [select for diffs], Thu Dec 19 15:17:30 2019 UTC (4 years, 3 months ago) by gson
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Code that's #if'ed out still ought to compile.

Revision 1.33 / (download) - annotate - [select for diffs], Tue Oct 8 07:30:58 2019 UTC (4 years, 5 months ago) by mlelstv
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.32: +249 -92 lines
Diff to previous 1.32 (colored)

Merge more changes from FreeBSD/OpenBSD. My two run(4) devices now work
again.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Jan 22 06:47:20 2019 UTC (5 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.31: +6 -6 lines
Diff to previous 1.31 (colored)

KNF

Revision 1.31 / (download) - annotate - [select for diffs], Thu Nov 29 18:53:42 2018 UTC (5 years, 3 months ago) by jakllsch
Branch: MAIN
CVS Tags: pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.30: +11 -11 lines
Diff to previous 1.30 (colored)

Correct abuses of aprint_error_dev(9).

Revision 1.30 / (download) - annotate - [select for diffs], Wed Sep 12 21:57:18 2018 UTC (5 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Don't have modules depend on bpf; they will find the dependency dynamically
at runtime. Otherwise builtin modules will complain about non-builtin bpf.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Aug 2 06:09:04 2018 UTC (5 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-0906, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Changes since 1.28: +4 -3 lines
Diff to previous 1.28 (colored)

Fix usb_rem_task_wait API.

- Return whether it removed task from queue or not.
  . True if it was on the queue and we intercepted it before it ran.
  . False if we could not intercept it: either it wasn't queued,
    or it already ran.  (Up to caller to distinguish these cases.)
- Pass an optional interlock like callout_halt.

While here, simplify.

ok mrg@

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jul 29 02:01:22 2018 UTC (5 years, 7 months ago) by riastradh
Branch: MAIN
Changes since 1.27: +5 -3 lines
Diff to previous 1.27 (colored)

Use callout_halt and usb_rem_task_wait in run(4) detach.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jun 26 06:48:02 2018 UTC (5 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728
Branch point for: phil-wifi
Changes since 1.26: +6 -6 lines
Diff to previous 1.26 (colored)

 Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.

 This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Feb 1 16:49:34 2018 UTC (6 years, 1 month ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Replace ovbcopy -> memmove, same.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jan 21 13:57:12 2018 UTC (6 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

PR kern/52931 Kernel panics with Atheros usb wireless interface

Audit the flags to usbd_create_xfer so that USBD_FORCE_SHORT_XFER is
supplied wherever such a transfer is setup.  We can drop
USBD_SHORT_XFER_OK as it has not bearing on number of TDs

Revision 1.24 / (download) - annotate - [select for diffs], Fri Nov 17 13:08:48 2017 UTC (6 years, 4 months ago) by skrll
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored)

Use a #define instead of a magic number

Revision 1.23 / (download) - annotate - [select for diffs], Fri Nov 17 12:55:16 2017 UTC (6 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.22: +33 -33 lines
Diff to previous 1.22 (colored)

Trailing whitespace

Revision 1.22 / (download) - annotate - [select for diffs], Thu May 4 14:07:34 2017 UTC (6 years, 10 months ago) by hauke
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (colored)

Recognize the Ralink RT5370 adapter. It has been in usbdevs for a while.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Nov 25 12:56:29 2016 UTC (7 years, 3 months ago) by skrll
Branch: MAIN
CVS Tags: prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, nick-nhusb-base-20170204, nick-nhusb-base-20161204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2
Changes since 1.20: +6 -2 lines
Diff to previous 1.20 (colored)

+#include "opt_usb.h"

Revision 1.20 / (download) - annotate - [select for diffs], Sat Oct 1 11:09:12 2016 UTC (7 years, 5 months ago) by mlelstv
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161004
Changes since 1.19: +5 -2 lines
Diff to previous 1.19 (colored)

Ignore completed transfers when detaching. This avoids a race condition
where the detach code has already freed the xfer structures.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Oct 1 11:07:30 2016 UTC (7 years, 5 months ago) by mlelstv
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Use pointer passed as argument. This is not really a change as
data->xfer is supposed to be the same.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Oct 1 07:23:40 2016 UTC (7 years, 5 months ago) by mlelstv
Branch: MAIN
Changes since 1.17: +1 -1 lines
Diff to previous 1.17 (colored)

Use splusb() like the other drivers instead of splnet().

Revision 1.17 / (download) - annotate - [select for diffs], Sat Oct 1 07:21:45 2016 UTC (7 years, 5 months ago) by mlelstv
Branch: MAIN
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

mcs is a 16bit value.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Sep 16 09:25:30 2016 UTC (7 years, 6 months ago) by mlelstv
Branch: MAIN
Changes since 1.15: +1220 -115 lines
Diff to previous 1.15 (colored)

Merge enough FreeBSD code to make RT5592 work.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:15 2016 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.

Revision 1.14 / (download) - annotate - [select for diffs], Thu May 26 05:04:46 2016 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Introduce M_CLEARCTX and use it instead of open-coding rcvif

No functional change.

Revision 1.13 / (download) - annotate - [select for diffs], Thu May 26 05:01:12 2016 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Use M_GETCTX

No functional change.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Apr 23 10:15:31 2016 UTC (7 years, 10 months ago) by skrll
Branch: MAIN
Changes since 1.11: +126 -133 lines
Diff to previous 1.11 (colored)

Merge nick-nhusb

- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
    - kern/48308
    - uhub status notification improvements
    - umass(4) probe fix (applied to HEAD already)
    - ohci(4) short transfer fix

Revision 1.11 / (download) - annotate - [select for diffs], Fri Mar 13 15:33:04 2015 UTC (9 years ago) by nonaka
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406
Changes since 1.10: +7 -2 lines
Diff to previous 1.10 (colored)

Add pmf hooks.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jan 28 13:08:13 2014 UTC (10 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, nick-nhusb-base, netbsd-7-base
Branch point for: nick-nhusb, netbsd-7
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

Quell maybe-uninitialized false positives from gcc 4.8

Revision 1.9 / (download) - annotate - [select for diffs], Sat Mar 30 03:17:33 2013 UTC (10 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

replace macro with inline function

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 22 12:40:42 2013 UTC (11 years, 1 month ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base8, agc-symver-base, agc-symver
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

- Add a USBD_MPSAFE flag to usbd_open_pipe. If not set, acquire KERNEL_LOCK
  before invoking xfer callbacks on this pipe.
- Add an extra flags parameter to usb_init_task. If USBD_TASKQ_MPSAFE is not
  present, acquire KERNEL_LOCK before invoking the task callback.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jan 5 23:34:17 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.6: +2 -10 lines
Diff to previous 1.6 (colored)

fix debug variables.
- include opt_usb.h in usb.h so that USB_DEBUG gets set properly in it.
- normalize and sort debugging variables

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jan 5 01:30:16 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.5: +6 -2 lines
Diff to previous 1.5 (colored)

- need opt_usb.h if depending on USB_DEBUG
- remove trailing whitespace
- add missing KERNEL_RCSID

Revision 1.5 / (download) - annotate - [select for diffs], Thu Dec 27 16:42:32 2012 UTC (11 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.4: +6 -5 lines
Diff to previous 1.4 (colored)

Consistent/Correct error message from failing usbd_set_config.

Use aprint_error_dev.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 20 07:32:49 2012 UTC (11 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.3: +2 -3 lines
Diff to previous 1.3 (colored)

remove duplicated QoS definitions

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jun 1 13:19:39 2012 UTC (11 years, 9 months ago) by nonaka
Branch: MAIN
CVS Tags: jmcneill-usbmp-base10
Branch point for: jmcneill-usbmp
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Use /libdata/firmware/run instead of /libdata/firmware/rum for run(4) firmwares.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jun 1 12:38:25 2012 UTC (11 years, 9 months ago) by nonaka
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Add a dependency on bpf module.

Revision 1.1 / (download) - annotate - [select for diffs], Wed May 30 14:30:35 2012 UTC (11 years, 9 months ago) by nonaka
Branch: MAIN

Add a driver for Ralink Technology RT2700U/RT2800U/RT3000U USB IEEE
802.11a/b/g/n wireless network devices, ported from OpenBSD by FUKAUMI Naoki,
arranged by me.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>