[PATCH v9 4/4] arm64: Add APM X-Gene SoC SATA host controller DTS entries

2014-01-14 Thread Loc Ho
Signed-off-by: Loc Ho Signed-off-by: Tuan Phan Signed-off-by: Suman Tripathi --- arch/arm64/boot/dts/apm-storm.dtsi | 75 1 files changed, 75 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dt

[PATCH v9 2/4] Documentation: Add documentation for APM X-Gene SoC SATA host controller DTS binding

2014-01-14 Thread Loc Ho
Signed-off-by: Loc Ho Signed-off-by: Tuan Phan Signed-off-by: Suman Tripathi --- .../devicetree/bindings/ata/apm-xgene.txt | 68 1 files changed, 68 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/ata/apm-xgene.txt diff --git

[PATCH v9 1/4] ata: Export required functions by APM X-Gene SATA driver

2014-01-14 Thread Loc Ho
This patch exports functions required by APM X-Gene SoC SATA host controller driver to avoid duplication of code. Signed-off-by: Loc Ho Signed-off-by: Tuan Phan Signed-off-by: Suman Tripathi --- drivers/ata/ahci.h|9 + drivers/ata/libahci.c | 16 ++-- 2 files chan

[PATCH v9 3/4] ata: Add APM X-Gene SoC SATA host controller driver

2014-01-14 Thread Loc Ho
This patch adds support for the APM X-Gene SoC SATA host controller driver. It requires the corresponding APM X-Gene SoC PHY driver. Signed-off-by: Loc Ho Signed-off-by: Tuan Phan Signed-off-by: Suman Tripathi --- drivers/ata/Kconfig |8 + drivers/ata/Makefile |1 + drivers/at

[PATCH v9 0/4] ata: Add APM X-Gene SoC SATA host controller support

2014-01-14 Thread Loc Ho
This patch adds support for the APM X-Gene SoC SATA host controller. In order for the host controller to work, the corresponding PHY driver musts also be available. v9: * Remove ACPI/EFI include files * Remove the IO flush support, interrupt routine, and DTS resources * Remove function xgene_rd

[PATCH v7 4/4] arm64: Add APM X-Gene SoC 15Gbps Multi-purpose PHY DTS entries

2014-01-14 Thread Loc Ho
This patch adds the DTS entries for the APM X-Gene SoC 15Gbps Multi-purpose PHY driver. The PHY for SATA controller 2 and 3 are enabled by default. Signed-off-by: Loc Ho Signed-off-by: Tuan Phan Signed-off-by: Suman Tripathi --- arch/arm64/boot/dts/apm-storm.dtsi | 76 +++

[PATCH v7 1/4] PHY: Add function set_speed to generic PHY framework

2014-01-14 Thread Loc Ho
This patch adds function set_speed to the generic PHY framework operation structure. This function can be called to instruct the PHY underlying layer at specified lane to configure for specified speed in hertz. Signed-off-by: Loc Ho --- drivers/phy/phy-core.c | 21 + inclu

[PATCH v7 0/4] PHY: Add APM X-Gene SoC 15Gbps Multi-purpose PHY support

2014-01-14 Thread Loc Ho
This patch adds support for APM X-Gene SoC 15Gbps Multi-purpose PHY. This is the physical layer interface for the corresponding host controller. This driver uses the new PHY generic framework posted by Kishon Vijay Abrahm. In addition, the new PHY generic framework is patched to provide an function

[PATCH v7 2/4] Documentation: Add APM X-Gene SoC 15Gbps Multi-purpose PHY driver binding documentation

2014-01-14 Thread Loc Ho
Signed-off-by: Loc Ho Signed-off-by: Tuan Phan Signed-off-by: Suman Tripathi --- .../devicetree/bindings/phy/apm-xgene-phy.txt | 94 1 files changed, 94 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/apm-xgene-phy.txt diff --

[PATCH] qla2xxx: Configure NPIV fc_vport via tcm_qla2xxx_npiv_make_lport

2014-01-14 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Hi Saurav & Co, Here is the updated NPIV patch on top of the original here: [PATCH] qla2xxx: Enhancements to enable NPIV support for QLOGIC ISPs with TCM/LIO. http://marc.info/?l=linux-scsi&m=138930044930212&w=2 As previously dicussed, it moves fc_vport creatio

Re: [PATCH V2] virtio-scsi: Fix hotcpu_notifier use-after-free with virtscsi_freeze

2014-01-14 Thread Rusty Russell
Jason Wang writes: > From: Asias He > > vqs are freed in virtscsi_freeze but the hotcpu_notifier is not > unregistered. We will have a use-after-free usage when the notifier > callback is called after virtscsi_freeze. > > Fixes: 285e71ea6f3583a85e27cb2b9a7d8c35d4c0d558 > ("virtio-scsi: reset virt

[PATCH v3 2/2] Hard disk S3 resume time optimization

2014-01-14 Thread Todd E Brandt
On resume, the SD driver currently waits until the block driver finishes executing a disk start command with blk_execute_rq. This patch changes the sd_resume callback to use blk_execute_rq_nowait instead, which allows it to return immediately, thus allowing the next device in the pm queue to resume

[PATCH v3 0/2] Hard disk S3 resume time optimization

2014-01-14 Thread Todd E Brandt
This patch reduces S3 resume time from 10+ seconds to less than a second on systems with SATA drives. It does this by making ata port and scsi disk resume non-blocking. This is another resend of the patch I send out in early December. I've addressed all the feedback I received from list members, s

[PATCH v3 1/2] Hard disk S3 resume time optimization

2014-01-14 Thread Todd E Brandt
On resume, the ATA port driver currently waits until the AHCI controller finishes executing the port wakeup command. This patch changes the ata_port_resume callback to issue the wakeup and then return immediately, thus allowing the next device in the pm queue to resume. Any commands issued to the A

Re: [PATCH/RESEND v2 0/2] Hard disk S3 resume time optimization

2014-01-14 Thread Todd E Brandt
On Tue, Jan 14, 2014 at 09:43:25AM -0500, Tejun Heo wrote: > Hello, Gwendal. > > On Mon, Jan 13, 2014 at 04:36:52PM -0800, Gwendal Grignou wrote: > > Won't this patch defeat staggered spinup at resume? If you have a jbod > > with a smallish power supply, with a 12V rail designed for the steady > >

Re: [PATCH 3.12 033/118] usb: xhci: Link TRB must not occur within a USB payload burst [NEW HARDWARE]

2014-01-14 Thread walt
On 01/14/2014 09:20 AM, Sarah Sharp wrote: > On Mon, Jan 13, 2014 at 03:39:07PM -0800, walt wrote: >> Sarah, I just fixed my xhci bug for US$19.99 :) >> >> #lspci | tail -1 >> 04:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller >> (rev 03) >> >> This new NEC usb3 controller

Re: [PATCH 3.12 033/118] usb: xhci: Link TRB must not occur within a USB payload burst [NEW HARDWARE]

2014-01-14 Thread Sarah Sharp
On Mon, Jan 13, 2014 at 03:39:07PM -0800, walt wrote: > On 01/09/2014 03:50 PM, Sarah Sharp wrote: > > >>> On Tue, Jan 07, 2014 at 03:57:00PM -0800, walt wrote: > >> > >> I've wondered if my xhci problems might be caused by hardware quirks, and > >> wondering why I seem to be the only one who has

[PATCH 1/2] scsi: hpsa, add new PCI Ids

2014-01-14 Thread Mike Miller
From: Mike Miller This patch adds 4 more PCI ID's for HP Gen9 servers. These new ID's were just made known this week. Signed-off-by: Mike Miller --- drivers/scsi/hpsa.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c ind

[PATCH 2/2] scsi: hpsa, remove cancelled ID's and add a new one

2014-01-14 Thread Mike Miller
From: Mike Miller 3 controllers have been cancelled and one new has been added. Please consider this for inclusion. Signed-off-by: Mike Miller --- drivers/scsi/hpsa.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index

Re: [PATCH v8 3/4] ata: Add APM X-Gene SoC SATA host controller driver

2014-01-14 Thread Tejun Heo
On Tue, Jan 14, 2014 at 08:37:18AM -0800, Loc Ho wrote: > This issue has NOT been observed but the design has this issue and > observed from verification. As a mean to ensure that this never occur > from design itself, this is the workaround and only apply to SATA and > SDIO. The SDIO don't need th

Re: [PATCH v8 3/4] ata: Add APM X-Gene SoC SATA host controller driver

2014-01-14 Thread Loc Ho
Hi, >> In the ISR, the AHCI library code reads the CI register and then >> performs XOR to determine which commands are completed. Then it goes >> and processes the completed command(s). I am worry that the process of >> processing the completed command(s), the upper layer may act on the >> data b

Re: [PATCH v8 3/4] ata: Add APM X-Gene SoC SATA host controller driver

2014-01-14 Thread Tejun Heo
On Tue, Jan 14, 2014 at 08:21:28AM -0800, Loc Ho wrote: > In the ISR, the AHCI library code reads the CI register and then > performs XOR to determine which commands are completed. Then it goes > and processes the completed command(s). I am worry that the process of > processing the completed comma

Re: [PATCH v8 3/4] ata: Add APM X-Gene SoC SATA host controller driver

2014-01-14 Thread Loc Ho
Hi, >> > As mentioned, the flush requires immediately after reading the CI. >> > Otherwise, there is still an chance that the command is completed and >> > the OS notified the upper layer while the data is still in flight. For >> > the initial version, I will remove the flush (IRQ wrapper) and su

Re: [PATCH v8 3/4] ata: Add APM X-Gene SoC SATA host controller driver

2014-01-14 Thread Tejun Heo
On Tue, Jan 14, 2014 at 11:03:12AM -0500, Tejun Heo wrote: > > As mentioned, the flush requires immediately after reading the CI. > > Otherwise, there is still an chance that the command is completed and > > the OS notified the upper layer while the data is still in flight. For > > the initial vers

Re: [PATCH v8 3/4] ata: Add APM X-Gene SoC SATA host controller driver

2014-01-14 Thread Tejun Heo
Hey, On Tue, Jan 14, 2014 at 07:57:19AM -0800, Loc Ho wrote: > > No, they don't and the comments in your driver don't really explain > > what's going on. Why are we having retry loops inside hardreset > > itself? This can prolong recovery time significantly in corner cases. > > Why is this neces

Re: [PATCH v8 3/4] ata: Add APM X-Gene SoC SATA host controller driver

2014-01-14 Thread Loc Ho
Hi, >> >> 1. For Query ID, these two functions - ahci_read_id and ahci_qc_issue >> requires override. > > But the comment in ahci_qc_issue() says it's for PMP. Yes... ahci_qc_issue is only needed with PMP due to query ID errata. I will drop the ahci_qc_issue in the next version as I will only pro

Re: [PATCH/RESEND v2 0/2] Hard disk S3 resume time optimization

2014-01-14 Thread Tejun Heo
Hello, Gwendal. On Mon, Jan 13, 2014 at 04:36:52PM -0800, Gwendal Grignou wrote: > Won't this patch defeat staggered spinup at resume? If you have a jbod > with a smallish power supply, with a 12V rail designed for the steady > state and 1 or 2 devices spinning up at once, you may be in trouble >

Re: [PATCH/RESEND v2 1/2] Hard disk S3 resume time optimization

2014-01-14 Thread Tejun Heo
Hello, Todd. On Mon, Jan 13, 2014 at 03:30:26PM -0800, Todd E Brandt wrote: > Ahh, sorry, yea I think async should work for the entire resume pathway. Would > you be willing to accept this ata patch separately from the scsi one? It > wouldn't provide any performance benefit on its own, but would p

Re: Terrible performance of sequential O_DIRECT 4k writes in SAN environment. ~3 times slower then Solars 10 with the same HBA/Storage.

2014-01-14 Thread Sergey Meirovich
Hi Cristoph, On 8 January 2014 16:03, Christoph Hellwig wrote: > On Tue, Jan 07, 2014 at 08:37:23PM +0200, Sergey Meirovich wrote: >> Actually my initial report (14.67Mb/sec 3755.41 Requests/sec) was about ext4 >> However I have tried XFS as well. It was a bit slower than ext4 on all >> occasion

Re: [PATCH 02/14] target: Add DIF CHECK_CONDITION ASC/ASCQ exception cases

2014-01-14 Thread Sagi Grimberg
On 1/14/2014 10:53 AM, Nicholas A. Bellinger wrote: On Tue, 2014-01-14 at 09:44 +0200, Sagi Grimberg wrote: On 1/10/2014 8:53 AM, Nicholas A. Bellinger wrote: On Thu, 2014-01-09 at 12:43 +0200, Sagi Grimberg wrote: On 1/8/2014 10:36 PM, Nicholas A. Bellinger wrote: From: Nicholas Bellinger

RE: [PATCH 3.12 033/118] usb: xhci: Link TRB must not occur within a USB payload burst [NEW HARDWARE]

2014-01-14 Thread David Laight
From: walt > On 01/09/2014 03:50 PM, Sarah Sharp wrote: > > >>> On Tue, Jan 07, 2014 at 03:57:00PM -0800, walt wrote: > >> > >> I've wondered if my xhci problems might be caused by hardware quirks, and > >> wondering why I seem to be the only one who has this problem. > >> > >> Maybe I could "take

[PATCH] [scsi] : pm80xx : fix problem of pm8001_work_fn reseting uncorrect phy device

2014-01-14 Thread XinHong Zhu
If a phy device is removed ,the device can get error of I/O and HBA maybe receieve IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS of event which causes pm8001_work_fn to reset the phy device ,but in pm8001_task_exec don't assign a value for field device of ccb and in other case a ccb used have device field se

[PATCH] bfa: set correct command return code

2014-01-14 Thread Hannes Reinecke
For various error conditions the bfa driver just returns 'DID_ERROR', which carries no information at all about the actual source of error. This patch updates the error handling to return a correct error code, depending on the type of error occurred. Signed-off-by: Hannes Reinecke --- drivers/sc

Re: [PATCH 02/14] target: Add DIF CHECK_CONDITION ASC/ASCQ exception cases

2014-01-14 Thread Nicholas A. Bellinger
On Tue, 2014-01-14 at 09:44 +0200, Sagi Grimberg wrote: > On 1/10/2014 8:53 AM, Nicholas A. Bellinger wrote: > > On Thu, 2014-01-09 at 12:43 +0200, Sagi Grimberg wrote: > >> On 1/8/2014 10:36 PM, Nicholas A. Bellinger wrote: > >>> From: Nicholas Bellinger > >>> > >>> This patch adds support for DI