Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #59212 > unrolled thread

Bug#878866: usbip configuration is not usable

Started byGianluigi Tiesi <sherpya@netfarm.it>
First post2017-10-17 12:40 +0200
Last post2018-01-29 01:10 +0100
Articles 5 — 3 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#878866: usbip configuration is not usable Gianluigi Tiesi <sherpya@netfarm.it> - 2017-10-17 12:40 +0200
    Bug#878866: Debian bug #878866 usbip - does mass storage work for you ? borissh1983@gmail.com - 2017-12-02 19:40 +0100
      Bug#878866: Debian bug #878866 usbip - does mass storage work for you ? Gianluigi Tiesi <sherpya@netfarm.it> - 2017-12-04 13:40 +0100
      Bug#878866: Debian bug #878866 usbip - does mass storage work for you ? Gianluigi Tiesi <sherpya@netfarm.it> - 2017-12-04 13:50 +0100
    Bug#878866: [PATCH] usbip: Correct maximum value of CONFIG_USBIP_VHCI_HC_PORTS Ben Hutchings <ben@decadent.org.uk> - 2018-01-29 01:10 +0100

#59212 — Bug#878866: usbip configuration is not usable

FromGianluigi Tiesi <sherpya@netfarm.it>
Date2017-10-17 12:40 +0200
SubjectBug#878866: usbip configuration is not usable
Message-ID<uBxrX-V2-1@gated-at.bofh.it>
Package: linux-source-4.13
Version: 4.13.4-2
Severity: normal


Hi, the current debian configuration of usbip is unusable (client):

CONFIG_USBIP_CORE=m
CONFIG_USBIP_VHCI_HCD=m
CONFIG_USBIP_VHCI_HC_PORTS=31
CONFIG_USBIP_VHCI_NR_HCS=8
CONFIG_USBIP_HOST=m
CONFIG_USBIP_VUDC=m
# CONFIG_USBIP_DEBUG is not set

usbip attach fails with "too many ports" error.

I've lowerd to 4 ports and 1 host and it works,
the kernel default is 8 ports 1 host, but I think 4 is enough

Regards



-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages linux-source-4.13 depends on:
ii  binutils  2.29.1-4
ii  xz-utils  5.2.2-1.3

Versions of packages linux-source-4.13 recommends:
ii  bc                    1.06.95-9+b3
ii  gcc                   4:7.2.0-1d1
ii  libc6-dev [libc-dev]  2.24-17
ii  make                  4.1-9.1

Versions of packages linux-source-4.13 suggests:
ii  libncurses5-dev [ncurses-dev]  6.0+20170902-1
pn  libqt4-dev                     <none>
ii  pkg-config                     0.29-4+b1

[toc] | [next] | [standalone]


#59531 — Bug#878866: Debian bug #878866 usbip - does mass storage work for you ?

Fromborissh1983@gmail.com
Date2017-12-02 19:40 +0100
SubjectBug#878866: Debian bug #878866 usbip - does mass storage work for you ?
Message-ID<uSkRH-4VK-1@gated-at.bofh.it>
In reply to#59212
Hi, 

I have noticed that when I used the suggested port number 4 , I'm getting an 
oops on mass storage devices.

Does mass storage devices work on your setup with usbip (https://
bugs.debian.org/cgi-bin/bugreport.cgi?bug=883345) ?

[toc] | [prev] | [next] | [standalone]


#59552 — Bug#878866: Debian bug #878866 usbip - does mass storage work for you ?

FromGianluigi Tiesi <sherpya@netfarm.it>
Date2017-12-04 13:40 +0100
SubjectBug#878866: Debian bug #878866 usbip - does mass storage work for you ?
Message-ID<uSYcq-4SL-9@gated-at.bofh.it>
In reply to#59531
On 12/02/2017 07:30 PM, borissh1983@gmail.com wrote:
> Hi,
> 
> I have noticed that when I used the suggested port number 4 , I'm getting an
> oops on mass storage devices.
> 
> Does mass storage devices work on your setup with usbip (https://
> bugs.debian.org/cgi-bin/bugreport.cgi?bug=883345) ?
> 

more infos:

[ 1102.862905] kernel BUG at drivers/usb/usbip/vhci_hcd.c:683!
[ 1102.862925] invalid opcode: 0000 [#1] SMP
[ 1102.862929] Modules linked in: uas usb_storage vhci_hcd usbip_core 
ctr ccm cpufreq_userspace cpufreq_powersave cpufreq_conservative 
pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) bnep 
bbswitch(O) binfmt_misc snd_hda_codec_conexant snd_hda_codec_generic 
fuse intel_rapl arc4 x86_pkg_temp_thermal intel_powerclamp iwldvm 
coretemp iTCO_wdt btusb mac80211 iTCO_vendor_support btrtl kvm_intel 
wmi_bmof uvcvideo btbcm kvm btintel cdc_mbim irqbypass bluetooth 
videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 drbg videobuf2_core 
iwlwifi crct10dif_pclmul cdc_ncm snd_hda_intel crc32_pclmul videodev 
ansi_cprng snd_hda_codec cdc_acm cdc_wdm usbnet ghash_clmulni_intel 
media snd_hda_core ecdh_generic mii i915 snd_hwdep cfg80211 
thinkpad_acpi snd_pcm evdev intel_cstate nvram snd_timer drm_kms_helper 
joydev
[ 1102.863026]  intel_uncore mei_me snd drm lpc_ich intel_rapl_perf 
soundcore i2c_algo_bit pcspkr shpchp sg mei serio_raw mfd_core rfkill ac 
video battery wmi button tpm_rng rng_core tun loop nfsd firewire_sbp2 
auth_rpcgss nfs_acl lockd grace parport_pc sunrpc ppdev lp parport 
ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto ecb raid10 
raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor 
raid6_pq libcrc32c crc32c_generic raid1 raid0 multipath linear md_mod 
dm_mirror dm_region_hash dm_log dm_mod sd_mod hid_logitech_hidpp 
hid_logitech_dj usbhid hid crc32c_intel ahci libahci aesni_intel 
aes_x86_64 crypto_simd cryptd glue_helper libata xhci_pci scsi_mod 
psmouse sdhci_pci ehci_pci xhci_hcd ehci_hcd sdhci i2c_i801 
firewire_ohci firewire_core mmc_core crc_itu_t e1000e usbcore ptp
[ 1102.863141]  usb_common pps_core thermal
[ 1102.863152] CPU: 6 PID: 2498 Comm: usb-storage Tainted: G           O 
    4.14.2 #1
[ 1102.863155] Hardware name: LENOVO 4276CTO/4276CTO, BIOS 8BET62WW 
(1.42 ) 07/26/2013
[ 1102.863160] task: ffff9317e66d1040 task.stack: ffffaa39012fc000
[ 1102.863174] RIP: 0010:vhci_urb_enqueue+0x2e8/0x4c0 [vhci_hcd]
[ 1102.863178] RSP: 0018:ffffaa39012ffb58 EFLAGS: 00010206
[ 1102.863183] RAX: 0000000000000024 RBX: ffff931830c35000 RCX: 
ffff9317d8418098
[ 1102.863187] RDX: 0000000001400000 RSI: ffff93180eb28c00 RDI: 
ffff931830c35000
[ 1102.863190] RBP: ffffaa39012ffbb8 R08: 0000000000000024 R09: 
0000000000000000
[ 1102.863193] R10: 00000000ffffffff R11: fffffa1108cd5060 R12: 
0000000000000001
[ 1102.863197] R13: ffff93173e8c7860 R14: 0000000000000001 R15: 
ffff93180eb28c00
[ 1102.863201] FS:  0000000000000000(0000) GS:ffff93183e380000(0000) 
knlGS:0000000000000000
[ 1102.863205] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1102.863208] CR2: 00007fc00e8ee020 CR3: 0000000076e09006 CR4: 
00000000000606e0
[ 1102.863213] Call Trace:
[ 1102.863229]  ? __schedule+0x296/0x880
[ 1102.863257]  usb_hcd_submit_urb+0xad/0xb50 [usbcore]
[ 1102.863265]  ? schedule+0x2c/0x80
[ 1102.863287]  usb_submit_urb+0x22d/0x560 [usbcore]
[ 1102.863306]  ? usb_alloc_urb+0x19/0x50 [usbcore]
[ 1102.863326]  usb_sg_wait+0xa0/0x190 [usbcore]
[ 1102.863336]  usb_stor_bulk_transfer_sglist.part.1+0x67/0xc0 [usb_storage]
[ 1102.863344]  usb_stor_bulk_srb+0x4b/0x80 [usb_storage]
[ 1102.863351]  usb_stor_Bulk_transport+0x175/0x400 [usb_storage]
[ 1102.863357]  ? schedule+0x2c/0x80
[ 1102.863365]  usb_stor_invoke_transport+0x3b/0x520 [usb_storage]
[ 1102.863374]  ? wait_for_completion_interruptible+0x175/0x1d0
[ 1102.863380]  ? wake_up_q+0x80/0x80
[ 1102.863388]  usb_stor_transparent_scsi_command+0xe/0x10 [usb_storage]
[ 1102.863395]  usb_stor_control_thread+0x1c7/0x280 [usb_storage]
[ 1102.863404]  kthread+0x125/0x140
[ 1102.863411]  ? usb_stor_disconnect+0xc0/0xc0 [usb_storage]
[ 1102.863418]  ? kthread_create_on_node+0x70/0x70
[ 1102.863424]  ret_from_fork+0x25/0x30
[ 1102.863429] Code: f1 48 89 fa 48 c7 c6 40 fe b3 c0 48 c7 c7 20 1e b4 
c0 e8 8c bf e6 c3 e9 6f fd ff ff 41 8b 87 88 00 00 00 85 c0 0f 84 79 fd 
ff ff <0f> 0b 48 8b 7d d0 48 c7 c6 76 ed b3 c0 e8 96 39 fa c3 4c 89 fe
[ 1102.863506] RIP: vhci_urb_enqueue+0x2e8/0x4c0 [vhci_hcd] RSP: 
ffffaa39012ffb58
[ 1102.863513] ---[ end trace f9a5d6bac7cf5a83 ]---

the relevant source code:


/* patch to usb_sg_init() is in 2.5.60 */
BUG_ON(!urb->transfer_buffer && urb->transfer_buffer_length);




-- 
Gianluigi Tiesi <sherpya@netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/

Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?

[toc] | [prev] | [next] | [standalone]


#59553 — Bug#878866: Debian bug #878866 usbip - does mass storage work for you ?

FromGianluigi Tiesi <sherpya@netfarm.it>
Date2017-12-04 13:50 +0100
SubjectBug#878866: Debian bug #878866 usbip - does mass storage work for you ?
Message-ID<uSYm5-4VS-1@gated-at.bofh.it>
In reply to#59531
On 12/02/2017 07:30 PM, borissh1983@gmail.com wrote:
> Hi,
> 
> I have noticed that when I used the suggested port number 4 , I'm getting an
> oops on mass storage devices.
> 
> Does mass storage devices work on your setup with usbip (https://
> bugs.debian.org/cgi-bin/bugreport.cgi?bug=883345) ?
> 

It oops also on my box, I doubt it works with debian config, I suppose 
this driver is not much used/tested, it works fine for my with an usb 
serial device


-- 
Gianluigi Tiesi <sherpya@netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/

Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?

[toc] | [prev] | [next] | [standalone]


#60092 — Bug#878866: [PATCH] usbip: Correct maximum value of CONFIG_USBIP_VHCI_HC_PORTS

FromBen Hutchings <ben@decadent.org.uk>
Date2018-01-29 01:10 +0100
SubjectBug#878866: [PATCH] usbip: Correct maximum value of CONFIG_USBIP_VHCI_HC_PORTS
Message-ID<vd5bj-5hy-1@gated-at.bofh.it>
In reply to#59212

[Multipart message — attachments visible in raw view] — view raw

Now that usbip supports USB3, the maximum number of ports allowed
on a hub is 15 (USB_SS_MAXPORTS), not 31 (USB_MAXCHILDREN).

Reported-by: Gianluigi Tiesi <sherpya@netfarm.it>
Reported-by: Borissh1983 <borissh1983@gmail.com>
References: https://bugs.debian.org/878866
Fixes: 1c9de5bf4286 ("usbip: vhci-hcd: Add USB3 SuperSpeed support")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 drivers/usb/usbip/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/usbip/Kconfig b/drivers/usb/usbip/Kconfig
index eeefa29f8aa2..a20b65cb6678 100644
--- a/drivers/usb/usbip/Kconfig
+++ b/drivers/usb/usbip/Kconfig
@@ -27,7 +27,7 @@ config USBIP_VHCI_HCD
 
 config USBIP_VHCI_HC_PORTS
 	int "Number of ports per USB/IP virtual host controller"
-	range 1 31
+	range 1 15
 	default 8
 	depends on USBIP_VHCI_HCD
 	---help---

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web