From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758766Ab0EYTed (ORCPT ); Tue, 25 May 2010 15:34:33 -0400 Received: from hera.kernel.org ([140.211.167.34]:49306 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758533Ab0EYTea (ORCPT ); Tue, 25 May 2010 15:34:30 -0400 Message-ID: <4BFC2642.1050600@kernel.org> Date: Tue, 25 May 2010 21:34:26 +0200 From: Tejun Heo User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: =?UTF-8?B?Q2VuZ2l6IEfDvG5heQ==?= CC: Robert Hancock , "linux-kernel@vger.kernel.org" , "linux-ide@vger.kernel.org" Subject: Re: sata_nv times out for BD-ROM iHOS104-08 References: <4B7C9CEE.4080902@kernel.org> <4B8085E7.5000501@kernel.org> <4B833FA1.8030207@kernel.org> <4B8CFAF4.7030303@kernel.org> <4B95A27E.9010302@kernel.org> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: multipart/mixed; boundary="------------040108020408040202060109" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (hera.kernel.org [127.0.0.1]); Tue, 25 May 2010 19:34:28 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --------------040108020408040202060109 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello, Alright, I don't have access to mcp51 but tested with mcp55 and could reproduce similar problem. It seems nIEN on mcp55 is stuck once set and iHOS104 doesn't set I on D2H FIS if nIEN is set on command H2D FIS, which the SATA standard specifically mandates not to do. So, the combination of buggy mcp55 ctl handling + buggy iHOS104 nIEN handling leads to nobody raising interrupt. The problem is that the problem I'm seeing is not completely identical to the one you're seeing. The difference could be coming from different firmware version on the drives or different controllers. Anyways, can you please give a shot at the attached patch? Thanks. -- tejun --------------040108020408040202060109 Content-Type: text/x-patch; name="dont-diddle-with-nIEN.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="dont-diddle-with-nIEN.patch" diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c index baa8f0d..69d23c2 100644 --- a/drivers/ata/sata_nv.c +++ b/drivers/ata/sata_nv.c @@ -1669,7 +1669,6 @@ static void nv_mcp55_freeze(struct ata_port *ap) mask = readl(mmio_base + NV_INT_ENABLE_MCP55); mask &= ~(NV_INT_ALL_MCP55 << shift); writel(mask, mmio_base + NV_INT_ENABLE_MCP55); - ata_sff_freeze(ap); } static void nv_mcp55_thaw(struct ata_port *ap) @@ -1683,7 +1682,6 @@ static void nv_mcp55_thaw(struct ata_port *ap) mask = readl(mmio_base + NV_INT_ENABLE_MCP55); mask |= (NV_INT_MASK_MCP55 << shift); writel(mask, mmio_base + NV_INT_ENABLE_MCP55); - ata_sff_thaw(ap); } static void nv_adma_error_handler(struct ata_port *ap) --------------040108020408040202060109--