Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752638AbbGXOeS (ORCPT ); Fri, 24 Jul 2015 10:34:18 -0400 Received: from mga09.intel.com ([134.134.136.24]:45063 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751109AbbGXOeR (ORCPT ); Fri, 24 Jul 2015 10:34:17 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,538,1432623600"; d="scan'208";a="769000197" Message-ID: <55B24DB8.4080703@linux.intel.com> Date: Fri, 24 Jul 2015 17:37:44 +0300 From: Mathias Nyman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Peter Stuge CC: arekm@maven.pl, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: xhci_hcd 0000:00:14.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 2 comp_code 1 References: <201507181649.37745.a.miskiewicz@gmail.com> <201507202213.29189.a.miskiewicz@gmail.com> <55AE5B02.1000908@linux.intel.com> <201507221612.58846.a.miskiewicz@gmail.com> <55B228A4.2020604@linux.intel.com> <55B24006.7020300@linux.intel.com> <20150724135332.2022.qmail@stuge.se> In-Reply-To: <20150724135332.2022.qmail@stuge.se> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 872 Lines: 25 On 24.07.2015 16:53, Peter Stuge wrote: > Mathias Nyman wrote: >> +++ b/drivers/usb/host/xhci-ring.c >> @@ -82,7 +82,7 @@ dma_addr_t xhci_trb_virt_to_dma(struct xhci_segment *seg, >> return 0; >> /* offset in TRBs */ >> segment_offset = trb - seg->trbs; >> - if (segment_offset > TRBS_PER_SEGMENT) >> + if (segment_offset > TRBS_PER_SEGMENT - 1) > > Maybe change the > comparison to >= rather than add the extra "- 1"? Yes, sure, I'll change it if this really was the cause. Just happy to finally find a probable cause after staring at logs and code for some time -Mathias -- 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/