Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1007305ybl; Fri, 24 Jan 2020 13:40:36 -0800 (PST) X-Google-Smtp-Source: APXvYqxJ4Rb/pvoR71OHRfoLTRvVNtdszMfpeMry3BUj+XDJKB5psi/EBGOT/GA1c9JUsoX0HMnC X-Received: by 2002:a05:6830:194:: with SMTP id q20mr4448842ota.92.1579902036852; Fri, 24 Jan 2020 13:40:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579902036; cv=none; d=google.com; s=arc-20160816; b=Ic8GvqMWMtj6BOB4PURDUvZS/vmAjbKVc5PBCZPzb6VwKPPldMsa4CWn9oB7kGlBvf aeZezm8rdqm2oyqPxdMEuBUVFY+v34RYS9oqfkf5peYzinBRckrwyCFVHFzNHTAprnph /chDsMfJh7QIDlF/gNO5auNMXwwEQwVyXzhOGtp/kUHEyWniIXfF3aD+Aj1tDxpW8Nfh rd6+Dx1JzMYxKhsi7eL6OM5nZ6YS3dnJycbZPI/zsfEgUOq5DaYEpYlxC8W+wSY6cpdt EOk18BmTq7JPjO+B5+cszjMcZ8N+ultHKS5xb9bapvSlnTXhVoSFWHh0RXudkTwaLmJi eB8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JPUjZ35jiwDXQW49rwcMtsfq6BXn4MFG9FEiV5U41rE=; b=mnF7isI1ER9W1CnALs/8iCut4IPzkrSeOD7kUGlyWnJUWMv9l5xhkQYjtBjnhGhP1t 01p3oEUdm6xdqwpf7j+1s2U64BxetQfLjkSU9t6HnjCohb0G3/6Rk5PllMOjKXo0mPvp 9aASQpRcy1XvpuqMwkWr/nE+TIX2MQAp+kl63kaDA4Jt4pfW7nIPjTjVSDScUcbn7kzl wKuDhBcHtbi23LEnMNSO5XQPKOSGt8A8hpGd92ynlMdK8WqeC+310NstQC4P0M1sQHIB AhJnz/8fFJQH1Pzu/3AYmgSNsYNAUs14d+Ve+gXtEpqu7DBMUbtnP9R8knogZjz/Ybyv QIKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZaLoFyM1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23si3405821oto.205.2020.01.24.13.40.23; Fri, 24 Jan 2020 13:40:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZaLoFyM1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726769AbgAXVi1 (ORCPT + 99 others); Fri, 24 Jan 2020 16:38:27 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41134 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbgAXVi1 (ORCPT ); Fri, 24 Jan 2020 16:38:27 -0500 Received: by mail-wr1-f68.google.com with SMTP id c9so3744576wrw.8; Fri, 24 Jan 2020 13:38:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JPUjZ35jiwDXQW49rwcMtsfq6BXn4MFG9FEiV5U41rE=; b=ZaLoFyM1kPanZnCOnNPKAXSWQthVDcubhVQQFC7AiDABfafPmmH+RneRSfuqgIkqt+ XVso8jc6ybReoxy90PpCsQZ+/4FThRCiP27TlXS7fZgetK10FK67TRcZOokBLB9ti+jt 2yawyQMTq5cMJTJBqrtEwQjHplr6byjYyitomfLWwHB5aeHu4mviemP/b4sHOGW5+0V+ LmiwosOL2HWgvH/4OamcAxRIxbbqJa+O8vfYRCqLppaIEVuexaEX01TE4VrCWYKOYmVN 1R9bvOtk3lm0m7ocr8t9K5AO8T51liS3G0iJTZG1ho3SVB4JseLCKfkOdS1N6/9l4Xml Inrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JPUjZ35jiwDXQW49rwcMtsfq6BXn4MFG9FEiV5U41rE=; b=g9Q5f/V9QSTRizoqGPsKKuH3Nags0g6NCDKR94L8jmxHjm9EZ6wGRRRvElKa+99+pV Ipm9hGO3Ks6j9EzumhuN3MFsGIF0gd9ctEwxRE7dewf/gBEMt1vHADBAQweIx+64fI2r JtRfp46Q3madeO4d/+eYQBanNP3jXP1ZuGCMzYxuQDEbwUDy315z9r81qe7Wibhtpv11 oSgQJ2fhDaD4rV5R39dkRVsnKZpxLgMnjcGtRM4kWg/qFucH1LVFpK9/uT8Ys1RKcAXS U8zmmCy2bZgXU8tTtZIRtXncRkTYPU/IObNVlmKpmyHmTZHdornMFAk4EudKp93JcS+e iTGA== X-Gm-Message-State: APjAAAVdoc1VwcFLiYPg6otKs38tpZusEOrHNRIK57t/0G2lF1gxlxq1 WjYANf7T3Ym5ji4NlxRg4Qmgud3Q X-Received: by 2002:a5d:50d2:: with SMTP id f18mr6448507wrt.366.1579901903966; Fri, 24 Jan 2020 13:38:23 -0800 (PST) Received: from debian64.daheim (p4FD0967A.dip0.t-ipconnect.de. [79.208.150.122]) by smtp.gmail.com with ESMTPSA id n8sm9016719wrx.42.2020.01.24.13.38.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2020 13:38:22 -0800 (PST) Received: from localhost.daheim ([127.0.0.1] helo=debian64.localnet) by debian64.daheim with esmtp (Exim 4.93) (envelope-from ) id 1iv6ej-0024sy-TR; Fri, 24 Jan 2020 22:38:21 +0100 From: Christian Lamparter To: Vinod Koul Cc: John Stultz , Mathias Nyman , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, Bjorn Andersson , Yoshihiro Shimoda , USB list , Linux Kernel Mailing List Subject: Re: [PATCH v6 0/5] usb: xhci: Add support for Renesas USB controllers Date: Fri, 24 Jan 2020 22:38:21 +0100 Message-ID: <5878067.luYmtVZgP3@debian64> In-Reply-To: References: <20200113084005.849071-1-vkoul@kernel.org> <20200121064608.GA2841@vkoul-mobl> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, 21 January 2020 21:26:34 CET Christian Lamparter wrote: > Hello, > > On Tue, Jan 21, 2020 at 7:46 AM Vinod Koul wrote: > > > > hey Christian, > > > > On 13-01-20, 21:33, Christian Lamparter wrote: > > > On Mon, Jan 13, 2020 at 9:10 PM John Stultz wrote: > > > > > > > > On Mon, Jan 13, 2020 at 12:42 AM Vinod Koul wrote: > > > > > > > > > > This series add support for Renesas USB controllers uPD720201 and uPD720202. > > > > > These require firmware to be loaded and in case devices have ROM those can > > > > > also be programmed if empty. If ROM is programmed, it runs from ROM as well. > > > > > > > > > > This includes two patches from Christian which supported these controllers > > > > > w/o ROM and later my patches for ROM support and multiple firmware versions, > > > > > debugfs hook for rom erase and export of xhci-pci functions. > > > > > > > > > > > > > Thanks so much for updating these! They are working ok for me in my > > > > testing on db845c. > > > > > > > > Tested-by: John Stultz > > > > > > Nice! I'll definitely give this series another try on my WNDR4700 too > > > (PowerPC Arch) > > > this weekend. > > > > > > and from me: Thanks! > > > > Did you get around to test these? > > Not yet, I was too optimistic that I could get current linux-usb with the > patches running on the WNDR4700 (due to APM82181) over the > weekend. Do you think that It still counts, if I'm going with 5.4.11 on > OpenWrt instead? Because then I just swap out the old patches from > my OpenWrt APM821XX branch: > > > and don't have to figure out what broke with linux-usb on the APM821xx. I could get 5.4.11 to boot on the Netgear WNDR4700 :-). (This has a APM82181 SoC (PowerPC 464)) Here's faillog from the "plain xhci-pci" driver: [ 375.481868] xhci_hcd 0000:45:00.0: xHCI Host Controller [ 375.487149] xhci_hcd 0000:45:00.0: new USB bus registered, assigned bus number 1 [ 385.494590] xhci_hcd 0000:45:00.0: can't setup: -110 [ 385.499558] xhci_hcd 0000:45:00.0: USB bus 1 deregistered [ 385.504963] xhci_hcd 0000:45:00.0: init 0000:45:00.0 fail, -110 [ 385.510889] xhci_hcd: probe of 0000:45:00.0 failed with error -110 (Notice how it gets stuck for 10 seconds there). And this is the successlog from the xhci-pci-renesas module [ 391.555559] renesas xhci 0000:45:00.0: xHCI Host Controller [ 391.561171] renesas xhci 0000:45:00.0: new USB bus registered, assigned bus number 1 [ 391.575068] renesas xhci 0000:45:00.0: hcc params 0x014051cf hci version 0x100 quirks 0x0000000101000090 [ 391.586750] hub 1-0:1.0: USB hub found [ 391.592601] hub 1-0:1.0: 2 ports detected [ 391.597199] renesas xhci 0000:45:00.0: xHCI Host Controller [ 391.602797] renesas xhci 0000:45:00.0: new USB bus registered, assigned bus number 2 [ 391.610537] renesas xhci 0000:45:00.0: Host supports USB 3.0 SuperSpeed [ 391.617719] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 391.626495] hub 2-0:1.0: USB hub found [ 391.630570] hub 2-0:1.0: 2 ports detected this is when I added the usb 3.0-stick: [ 775.403928] usb 2-2: new SuperSpeed Gen 1 USB device number 3 using renesas xhci [ 775.432684] usb-storage 2-2:1.0: USB Mass Storage device detected [ 775.439238] scsi host1: usb-storage 2-2:1.0 [ 776.482556] scsi 1:0:0:0: Direct-Access SanDisk Ultra 1.00 PQ: 0 ANSI: 6 [ 776.492181] sd 1:0:0:0: [sda] 60063744 512-byte logical blocks: (30.8 GB/28.6 GiB) [ 776.501193] sd 1:0:0:0: [sda] Write Protect is off [ 776.507047] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 776.524893] sda: sda1 sda2 [ 776.531062] sd 1:0:0:0: [sda] Attached SCSI removable disk root@(none):/dev# hdparm -t /dev/sda /dev/sda: Timing buffered disk reads: 466 MB in 3.01 seconds = 154.98 MB/sec and this is the log from my usb 2.0-memorystick: [ 1187.113650] usb 2-2: USB disconnect, device number 3 [ 1195.867397] usb 1-2: new high-speed USB device number 2 using renesas xhci [ 1195.895171] usb-storage 1-2:1.0: USB Mass Storage device detected [ 1195.901848] scsi host1: usb-storage 1-2:1.0 [ 1196.962583] scsi 1:0:0:0: Direct-Access SanDisk Cruzer Blade 1.00 PQ: 0 ANSI: 6 [ 1196.978772] sd 1:0:0:0: [sda] 30031872 512-byte logical blocks: (15.4 GB/14.3 GiB) [ 1196.988529] sd 1:0:0:0: [sda] Write Protect is off [ 1196.994498] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 1197.020407] sda: sda1 [ 1197.030458] sd 1:0:0:0: [sda] Attached SCSI removable disk root@(none):/dev# hdparm -t /dev/sda /dev/sda: Timing buffered disk reads: 64 MB in 3.01 seconds = 21.28 MB/sec These speeds for usb3 and usb2 are within what the device can do. So, everything is working fine with the v6. Tested-by: Christian Lamparter Cheers, Christian