Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751008AbbLVFK0 (ORCPT ); Tue, 22 Dec 2015 00:10:26 -0500 Received: from smtprelay0069.b.hostedemail.com ([64.98.42.69]:36329 "EHLO smtprelay.b.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750705AbbLVFKX (ORCPT ); Tue, 22 Dec 2015 00:10:23 -0500 X-Session-Marker: 742E617274656D406C79636F732E636F6D X-Spam-Summary: 30,2,0,,d41d8cd98f00b204,t.artem@lycos.com,:::::::::::::::::::::::,RULES_HIT:41:46:150:153:355:379:582:599:973:988:989:1152:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2194:2199:2393:2559:2562:3138:3139:3140:3141:3142:3308:3353:3865:3868:3872:3873:4321:5007:6119:6261:6671:6742:10004:10400:10848:11026:11232:11473:11658:11914:12043:12114:12296:12438:12517:12519:12555:12740:13007:13255:14659:14685:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: brick30_2c72859e4f61 X-Filterd-Recvd-Size: 3548 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 22 Dec 2015 10:10:18 +0500 From: "Artem S. Tashkinov" To: Tejun Heo Cc: "Artem S. Tashkinov" , Kent Overstreet , Christoph Hellwig , Ming Lin , Jens Axboe , Linus Torvalds , Steven Whitehouse , IDE-ML , Linux Kernel Mailing List , Ming Lei , Tejun Heo Subject: Re: IO errors after "block: remove =?UTF-8?Q?bio=5Fget=5Fnr=5Fvec?= =?UTF-8?Q?s=28=29=22?= In-Reply-To: <20151221200721.GN4026@mtj.duckdns.org> References: <20151221065528.GA3873@htj.duckdns.org> <20151221193550.GM4026@mtj.duckdns.org> <20151221200721.GN4026@mtj.duckdns.org> Message-ID: User-Agent: Roundcube Webmail/1.0.2 X-Originating-IP: [5.166.173.43] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2285 Lines: 61 On 2015-12-22 01:07, Tejun Heo wrote: > Hello, Artem. > > Can you please apply the following patch on top and see whether > anything changes? If it does make the issue go away, can you please > revert the ".can_queue" part and test again? > > Thanks. > > --- > drivers/ata/ahci.h | 2 +- > drivers/ata/libahci.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > --- a/drivers/ata/ahci.h > +++ b/drivers/ata/ahci.h > @@ -365,7 +365,7 @@ extern struct device_attribute *ahci_sde > */ > #define AHCI_SHT(drv_name) \ > ATA_NCQ_SHT(drv_name), \ > - .can_queue = AHCI_MAX_CMDS - 1, \ > + .can_queue = 1/*AHCI_MAX_CMDS - 1*/, \ > .sg_tablesize = AHCI_MAX_SG, \ > .dma_boundary = AHCI_DMA_BOUNDARY, \ > .shost_attrs = ahci_shost_attrs, \ > --- a/drivers/ata/libahci.c > +++ b/drivers/ata/libahci.c > @@ -420,7 +420,7 @@ void ahci_save_initial_config(struct dev > hpriv->saved_cap2 = cap2 = 0; > > /* some chips have errata preventing 64bit use */ > - if ((cap & HOST_CAP_64) && (hpriv->flags & AHCI_HFLAG_32BIT_ONLY)) { > + if ((cap & HOST_CAP_64)/* && (hpriv->flags & > AHCI_HFLAG_32BIT_ONLY)*/) { > dev_info(dev, "controller can't do 64bit DMA, forcing 32bit\n"); > cap &= ~HOST_CAP_64; > } This patch fixes the issue for me. Now rechecking without .can_queue part. BTW, since I left debugging on, here's the part you wanted: [ 0.613851] XXX port 0 dma_sz=91392 mem=c0020000 mem_dma=00020000 cmd_slot=0 rx_fis=1024 cmd_tbl=1280 [ 0.613865] XXX port 1 dma_sz=91392 mem=eea00000 mem_dma=2ea00000 cmd_slot=0 rx_fis=1024 cmd_tbl=1280 [ 0.620464] XXX port 2 dma_sz=91392 mem=eea20000 mem_dma=2ea20000 cmd_slot=0 rx_fis=1024 cmd_tbl=1280 [ 0.627121] XXX port 3 dma_sz=91392 mem=eea40000 mem_dma=2ea40000 cmd_slot=0 rx_fis=1024 cmd_tbl=1280 [ 0.633791] XXX port 4 dma_sz=91392 mem=eea60000 mem_dma=2ea60000 cmd_slot=0 rx_fis=1024 cmd_tbl=1280 [ 0.640445] XXX port 5 dma_sz=91392 mem=eea80000 mem_dma=2ea80000 cmd_slot=0 rx_fis=1024 cmd_tbl=1280 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/