From: Florian Fainelli <f.fainelli@gmail.com>
To: Jaedon Shin <jaedon.shin@gmail.com>,
Brian Norris <computersforpeace@gmail.com>,
Tejun Heo <tj@kernel.org>, Kishon Vijay Abraham I <kishon@ti.com>,
Ralf Baechle <ralf@linux-mips.org>,
Rob Herring <robh+dt@kernel.org>
Cc: Kevin Cernekee <cernekee@gmail.com>,
Dragan Stancevic <dragan.stancevic@gmail.com>,
linux-ide@vger.kernel.org, Linux-MIPS <linux-mips@linux-mips.org>,
devicetree@vger.kernel.org
Subject: Re: [v4 00/10] add support SATA for BMIPS_GENERIC
Date: Fri, 13 Nov 2015 12:27:26 -0800 [thread overview]
Message-ID: <564647AE.7070805@gmail.com> (raw)
In-Reply-To: <1446213684-2625-1-git-send-email-jaedon.shin@gmail.com>
On 30/10/15 07:01, Jaedon Shin wrote:
> Hi all,
>
> This patch series add support SATA for BMIPS_GENERIC.
Sorry for the lag.
Tested on 7425b2, there is a small mistake in the interrupt number for
the AHCI controller in the 7425.dtsi file (40 -> 41, see below), after
fixing that, I get both drives (external and internal ports) to be
identified successfully:
# dmesg | grep scsi
<6>[ 0.964097] scsi host0: brcm-ahci
<6>[ 0.967982] scsi host1: brcm-ahci
<5>[ 1.122386] scsi 0:0:0:0: Direct-Access ATA WDC
WD2500AAKX-7 1H19 PQ: 0 ANSI: 5
<5>[ 1.124512] sd 0:0:0:0: Attached scsi generic sg0 type 0
<5>[ 1.411546] scsi 1:0:0:0: Direct-Access ATA WDC
WD2500AAKX-7 1H19 PQ: 0 ANSI: 5
<5>[ 1.428870] sd 1:0:0:0: Attached scsi generic sg1 type 0
#
And performance looks good:
# hdparm -tT /dev/sda
/dev/sda:
[ 48.557068] random: nonblocking pool is initialized
Timing buffer-cache reads: 524 MB in 0.50 seconds = 1052111 kB/s
Timing buffered disk reads: 358 MB in 3.00 seconds = 122132 kB/s
# hdparm -tT /dev/sdb
/dev/sdb:
Timing buffer-cache reads: 528 MB in 0.50 seconds = 1060559 kB/s
Timing buffered disk reads: 374 MB in 3.00 seconds = 127496 kB/s
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
For interrupt numbers, computing them from the HIF_CPU_INTR1 register
works like this this:
HW IRQ# = N * 32 + M
where N ranges from 0->2 and M is the bit within the 32-bits word.
Thanks!
>
> Changes in v4:
> - remove unused properties from bcm{7425,7342,7362}.dtsi
>
> Changes in v3:
> - fix typo quirk instead of quick
> - disable NCQ before initialzing SATA controller endianness
> - fix misnomer controlling phy interface
> - remove brcm,broken-ncq and brcm,broken-phy properties from devicetree
> - use compatible string for quirks
> - use list for compatible strings
> - add "Acked-by:" tags
>
> Changes in v2:
> - adds quirk for ncq
> - adds quirk for phy interface control
> - remove unused definitions in ahci_brcmstb
> - combines compatible string
>
> Jaedon Shin (10):
> ata: ahci_brcmstb: add support MIPS-based platforms
> ata: ahci_brcmstb: add quirk for broken ncq
> ata: ahci_brcmstb: add quirk for different phy
> ata: ahci_brcmstb: remove unused definitions
> phy: phy_brcmstb_sata: remove duplicate definitions
> phy: phy_brcmstb_sata: add data for phy version
> phy: phy_brcmstb_sata: add support MIPS-based platforms
> MIPS: BMIPS: brcmstb: add SATA/PHY nodes for bcm7425
> MIPS: BMIPS: brcmstb: add SATA/PHY nodes for bcm7346
> MIPS: BMIPS: brcmstb: add SATA/PHY nodes for bcm7362
>
> .../devicetree/bindings/ata/brcm,sata-brcmstb.txt | 4 +-
> .../bindings/phy/brcm,brcmstb-sata-phy.txt | 1 +
> arch/mips/boot/dts/brcm/bcm7346.dtsi | 40 +++++++++++++++
> arch/mips/boot/dts/brcm/bcm7362.dtsi | 40 +++++++++++++++
> arch/mips/boot/dts/brcm/bcm7425.dtsi | 40 +++++++++++++++
> arch/mips/boot/dts/brcm/bcm97346dbsmb.dts | 8 +++
> arch/mips/boot/dts/brcm/bcm97362svmb.dts | 8 +++
> drivers/ata/Kconfig | 2 +-
> drivers/ata/ahci_brcmstb.c | 58 +++++++++++++++++++++-
> drivers/phy/Kconfig | 4 +-
> drivers/phy/phy-brcmstb-sata.c | 47 ++++++++++++++----
> 11 files changed, 236 insertions(+), 16 deletions(-)
>
--
Florian
next prev parent reply other threads:[~2015-11-13 20:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-30 14:01 [v4 00/10] add support SATA for BMIPS_GENERIC Jaedon Shin
2015-10-30 14:01 ` [v4 01/10] ata: ahci_brcmstb: add support MIPS-based platforms Jaedon Shin
2015-10-30 14:01 ` [v4 02/10] ata: ahci_brcmstb: add quirk for broken ncq Jaedon Shin
2015-11-17 2:16 ` Brian Norris
2015-11-17 5:31 ` Jaedon Shin
2015-11-17 20:01 ` Tejun Heo
[not found] ` <1446213684-2625-1-git-send-email-jaedon.shin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-10-30 14:01 ` [v4 03/10] ata: ahci_brcmstb: add quirk for different phy Jaedon Shin
[not found] ` <1446213684-2625-4-git-send-email-jaedon.shin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-11-17 20:06 ` Tejun Heo
2015-10-30 14:01 ` [v4 04/10] ata: ahci_brcmstb: remove unused definitions Jaedon Shin
2015-11-17 2:22 ` [v4 00/10] add support SATA for BMIPS_GENERIC Brian Norris
2015-10-30 14:01 ` [v4 05/10] phy: phy_brcmstb_sata: remove duplicate definitions Jaedon Shin
2015-10-30 14:01 ` [v4 06/10] phy: phy_brcmstb_sata: add data for phy version Jaedon Shin
2015-10-30 14:01 ` [v4 07/10] phy: phy_brcmstb_sata: add support MIPS-based platforms Jaedon Shin
2015-10-30 14:01 ` [v4 08/10] MIPS: BMIPS: brcmstb: add SATA/PHY nodes for bcm7425 Jaedon Shin
2015-10-30 14:01 ` [v4 09/10] MIPS: BMIPS: brcmstb: add SATA/PHY nodes for bcm7346 Jaedon Shin
2015-10-30 14:01 ` [v4 10/10] MIPS: BMIPS: brcmstb: add SATA/PHY nodes for bcm7362 Jaedon Shin
2015-11-13 20:27 ` Florian Fainelli [this message]
2015-11-14 2:16 ` [v4 00/10] add support SATA for BMIPS_GENERIC Jaedon Shin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=564647AE.7070805@gmail.com \
--to=f.fainelli@gmail.com \
--cc=cernekee@gmail.com \
--cc=computersforpeace@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dragan.stancevic@gmail.com \
--cc=jaedon.shin@gmail.com \
--cc=kishon@ti.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
--cc=robh+dt@kernel.org \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).