{"action":"created","issue":{"url":"https://api.github.com/repos/raspberrypi/linux/issues/777","labels_url":"https://api.github.com/repos/raspberrypi/linux/issues/777/labels{/name}","comments_url":"https://api.github.com/repos/raspberrypi/linux/issues/777/comments","events_url":"https://api.github.com/repos/raspberrypi/linux/issues/777/events","html_url":"https://github.com/raspberrypi/linux/issues/777","id":56127062,"number":777,"title":"external USB drive: blk_update_request: I/O error and the USB drive gets another /dev/sd node","user":{"login":"f18m","id":9748595,"avatar_url":"https://avatars.githubusercontent.com/u/9748595?v=3","gravatar_id":"","url":"https://api.github.com/users/f18m","html_url":"https://github.com/f18m","followers_url":"https://api.github.com/users/f18m/followers","following_url":"https://api.github.com/users/f18m/following{/other_user}","gists_url":"https://api.github.com/users/f18m/gists{/gist_id}","starred_url":"https://api.github.com/users/f18m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f18m/subscriptions","organizations_url":"https://api.github.com/users/f18m/orgs","repos_url":"https://api.github.com/users/f18m/repos","events_url":"https://api.github.com/users/f18m/events{/privacy}","received_events_url":"https://api.github.com/users/f18m/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"P33M","id":2474547,"avatar_url":"https://avatars.githubusercontent.com/u/2474547?v=3","gravatar_id":"","url":"https://api.github.com/users/P33M","html_url":"https://github.com/P33M","followers_url":"https://api.github.com/users/P33M/followers","following_url":"https://api.github.com/users/P33M/following{/other_user}","gists_url":"https://api.github.com/users/P33M/gists{/gist_id}","starred_url":"https://api.github.com/users/P33M/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/P33M/subscriptions","organizations_url":"https://api.github.com/users/P33M/orgs","repos_url":"https://api.github.com/users/P33M/repos","events_url":"https://api.github.com/users/P33M/events{/privacy}","received_events_url":"https://api.github.com/users/P33M/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-01-31T14:44:05Z","updated_at":"2015-02-26T22:09:02Z","closed_at":null,"body":"Hi,\r\nI found a quite-reproducible problem (happens quite often!) with the following setup:\r\n\r\n- HW: Raspberry model B+, powered by its own 5V, 2A power supply\r\n- USB HUB 3.0 (Trascend TS-HUB3K), powered by its own 12V, 1.5A power supply (15W)\r\n- 2 external hard disks (the problem happens also with just 1 hard disk!)\r\n\r\n- root@rasptorrent:~# cat /etc/os-release\r\nPRETTY_NAME=\"Raspbian GNU/Linux 7 (wheezy)\"\r\nNAME=\"Raspbian GNU/Linux\"\r\nVERSION_ID=\"7\"\r\nVERSION=\"7 (wheezy)\"\r\nID=raspbian\r\nID_LIKE=debian\r\nANSI_COLOR=\"1;31\"\r\nHOME_URL=\"http://www.raspbian.org/\"\r\nSUPPORT_URL=\"http://www.raspbian.org/RaspbianForums\"\r\nBUG_REPORT_URL=\"http://www.raspbian.org/RaspbianBugs\"\r\n\r\n- root@rasptorrent:~# uname -a\r\nLinux rasptorrent 3.18.5+ #744 PREEMPT Fri Jan 30 18:19:07 GMT 2015 armv6l GNU/Linux\r\n\r\n(did \"rpi-update\" on Jan 31 2015)\r\n\r\n\r\nHOW TO REPRODUCE: just producing traffic on the USB external drives at some point produces:\r\n```\r\n[ 1116.317108] sd 1:0:0:0: [sdb]  \r\n[ 1116.317199] Result: hostbyte=0x07 driverbyte=0x00\r\n[ 1116.317220] sd 1:0:0:0: [sdb] CDB: \r\n[ 1116.317233] cdb[0]=0x28: 28 00 13 7b 13 08 00 00 f0 00\r\n[ 1116.317297] blk_update_request: I/O error, dev sdb, sector 326832904\r\n```\r\n(several times, for different sectors)\r\n\r\nand the USB device (e.g., /dev/sdb1) is destroyed and a new dev node is created (e.g., /dev/sdc1).\r\n\r\nThe dwc_otg driver seems latest one:\r\n```\r\nroot@rasptorrent:~# dmesg | grep dwc_otg\r\n[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708.boardrev=0x10 bcm2708.serial=0xee394e21 smsc95xx.macaddr=B8:27:EB:39:4E:21 bcm2708_fb.fbswap=1 bcm2708.disk_led_gpio=47 bcm2708.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait\r\n[    1.583112] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)\r\n[    2.027416] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xdbc14000 dma = 0x5bc14000 len=9024\r\n[    2.054741] dwc_otg: Microframe scheduler enabled\r\n[    2.087234] dwc_otg bcm2708_usb: DWC OTG Controller\r\n[    2.097477] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1\r\n[    2.110137] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000\r\n[    2.173907] usb usb1: Manufacturer: Linux 3.18.5+ dwc_otg_hcd\r\n[    2.215058] dwc_otg: FIQ enabled\r\n[    2.215085] dwc_otg: NAK holdoff enabled\r\n[    2.215098] dwc_otg: FIQ split-transaction FSM enabled\r\n[    2.696903] usb 1-1: new high-speed USB device number 2 using dwc_otg\r\n[    3.257234] usb 1-1.1: new high-speed USB device number 3 using dwc_otg\r\n[    3.617035] usb 1-1.2: new low-speed USB device number 4 using dwc_otg\r\n[    4.117189] usb 1-1.3: new low-speed USB device number 5 using dwc_otg\r\n[    4.647235] usb 1-1.5: new high-speed USB device number 6 using dwc_otg\r\n[    5.287832] usb 1-1.5.2: new high-speed USB device number 7 using dwc_otg\r\n[    5.757505] usb 1-1.5.4: new high-speed USB device number 8 using dwc_otg\r\n[ 1116.837726] usb 1-1.5.4: new high-speed USB device number 9 using dwc_otg\r\n```\r\nand it seems that \"FIQ enabled\", \"NAK holdoff enabled\" \" FIQ split-transaction FSM enabled\" features are there.\r\n\r\nI'm going to attach the dmsg and lsusb outputs. Please let me know if I can try some fix. \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/raspberrypi/linux/issues/comments/76285155","html_url":"https://github.com/raspberrypi/linux/issues/777#issuecomment-76285155","issue_url":"https://api.github.com/repos/raspberrypi/linux/issues/777","id":76285155,"user":{"login":"f18m","id":9748595,"avatar_url":"https://avatars.githubusercontent.com/u/9748595?v=3","gravatar_id":"","url":"https://api.github.com/users/f18m","html_url":"https://github.com/f18m","followers_url":"https://api.github.com/users/f18m/followers","following_url":"https://api.github.com/users/f18m/following{/other_user}","gists_url":"https://api.github.com/users/f18m/gists{/gist_id}","starred_url":"https://api.github.com/users/f18m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f18m/subscriptions","organizations_url":"https://api.github.com/users/f18m/orgs","repos_url":"https://api.github.com/users/f18m/repos","events_url":"https://api.github.com/users/f18m/events{/privacy}","received_events_url":"https://api.github.com/users/f18m/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T22:09:02Z","updated_at":"2015-02-26T22:09:02Z","body":"Actually I found that this bug is possibly related to the following long-standing issue in Linux kernel:\r\n\r\n https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625922\r\n\r\n"}}