From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: macbook pro dvd playback after suspend Buffer I/O error Date: Thu, 12 Jun 2008 13:15:52 +0900 Message-ID: <4850A2F8.3050404@gmail.com> References: <20080404012147.abf8a598.akpm@linux-foundation.org> <484F31B8.8030001@gmail.com> <485048EC.2080608@gmail.com> <4850794F.3000200@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020908080006080203010206" Return-path: Received: from ti-out-0910.google.com ([209.85.142.188]:1337 "EHLO ti-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753361AbYFLEP7 (ORCPT ); Thu, 12 Jun 2008 00:15:59 -0400 Received: by ti-out-0910.google.com with SMTP id b6so925940tic.23 for ; Wed, 11 Jun 2008 21:15:57 -0700 (PDT) In-Reply-To: Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Justin Mattock Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org This is a multi-part message in MIME format. --------------020908080006080203010206 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello, Please do the followings. 1. apply the attached patch 2. turn on device drivers -> SCSI -> SCSI verbose logging 3. rebuild the kernel and boot the new kernel. 4. run "sysctl -w dev.scsi.logging_level=1" 5. run the suspend/resume test w/ dd and report the result. Thanks. -- tejun --------------020908080006080203010206 Content-Type: text/plain; name="debug" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="debug" --- drivers/ata/libata-eh.c | 6 ++++++ 1 file changed, 6 insertions(+) Index: work/drivers/ata/libata-eh.c =================================================================== --- work.orig/drivers/ata/libata-eh.c +++ work/drivers/ata/libata-eh.c @@ -2507,6 +2507,9 @@ static int atapi_eh_clear_ua(struct ata_ return -EIO; } + ata_dev_printk(dev, KERN_WARNING, "XXX: TUR err_mask=0x%x sense_key=0x%x\n", + err_mask, sense_key); + if (!err_mask || sense_key != UNIT_ATTENTION) return 0; @@ -2516,6 +2519,9 @@ static int atapi_eh_clear_ua(struct ata_ "UNIT ATTENTION (err_mask=0x%x)\n", err_mask); return -EIO; } + + ata_dev_printk(dev, KERN_WARNING, "XXX: REQUEST SENSE err_mask=0x%x ASC=0x%x ASCQ=0x%x\n", + err_mask, sense_buffer[12], sense_buffer[13]); } ata_dev_printk(dev, KERN_WARNING, --------------020908080006080203010206--