Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2943189pxb; Thu, 10 Feb 2022 08:49:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJySYRTuwDosOBSMqY7W22FAEo18IQV/OeBYXswAnVHG+noEDym5QRSC8kfvbbGV3VxyPPbq X-Received: by 2002:aa7:cc09:: with SMTP id q9mr9246722edt.101.1644511749648; Thu, 10 Feb 2022 08:49:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644511749; cv=none; d=google.com; s=arc-20160816; b=YI2+425Kl3ybKBsgzcSZhQ3AT5FN/7yL2grg3uZVThw+B27Q7TwKR9MxW3PFBZdc5S Bowy4g1NJh2zJeGvYS/T9Oh8cmfE//AG5jS6HMcnIBe/yNLDDB5OgsRPYQviJV2hBtTN ewULxKWvN0XFBgNklDOsDW4YjhnlqNaDtPzrqzjeKGIbiS8+b4bJ/rpgp1MC7OjbMYMo s5tiBusngmjGUNQ2GOeWfTP/Gze3zd9MjuqDsfYPDmo3/9igBiU863W4QH+Jgqf8Ol0p ZzbLW46+Xf/YWyjjqktycf5MtQ5zolVE9VlWmzb31XkAqFlpFWTivTeVsKmG1NDodlU2 DiFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=gF4mmpXNke8QdC4vxtrWXw2FNcuMOE5UsS9FMhOjFjk=; b=bnYdHsblWJvLA76X5nF0BEb9xZ82kLbprVIggk2a/pzden91H+ZdFqc5aNyQJKKppl YuoHboHPT4B7JOsT8dIHEtgFk5kj52fAG4U+Ndaswv+1rLpxxPQ6XooW6FRWpGVaBYlQ uFvcCBk1qVhTpfrNkEfd9JK8oIwwy8ADD/xgLiXx5IFsqQEqFPN5xx+NUG+SGbawg0gf RnrjNOAgmaq1dD0XjQJOwWgouIRwyE9QFRwdtWSAKr84ksEnNtbRfQ0bCRwF1OEl7VUo jSa4q96D8gRV0keRp29GImcK2UGB6syqvm225YpMBIpNFELtBwNpAcPRfo7Xe13C+vQA 5fpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=AHKBLziF; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fy1si16249267ejc.492.2022.02.10.08.48.51; Thu, 10 Feb 2022 08:49:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=AHKBLziF; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244158AbiBJQZf (ORCPT + 73 others); Thu, 10 Feb 2022 11:25:35 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239459AbiBJQZe (ORCPT ); Thu, 10 Feb 2022 11:25:34 -0500 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 212D7C26 for ; Thu, 10 Feb 2022 08:25:35 -0800 (PST) Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id EE214811BB; Thu, 10 Feb 2022 17:25:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1644510330; bh=gF4mmpXNke8QdC4vxtrWXw2FNcuMOE5UsS9FMhOjFjk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=AHKBLziF6z0wHs91cwsYMzUjuo3b7YdHqKSir5ouVRO+peF9bJL91DHHJTPtuTECb s55/9VBu+gSfr8V8ax7zA6ByEATCPkkYPL/4VcPc0C8SPfkGFbv92dj97h/TtUnsPO /ZvNfaCnd7VRSyCxXGiPMMHZlRuJ2Sohob7o7vlZ/ap/C1JRpWGmo65oshcLNMBKZz 3/DNQy0r+rrbcjvdTdPQFQYLPgmy1yICZJ79mjF/vgK54+ztrP1IXcSuWqvGo3AG4X GmwA42VY2qpXlcA5GQMyDQbSPDBKRW8NZYG8mRng+6B7KYmfPdKtKtgJ6RzVlFB4W5 c4SBNSs+4ZB0w== Message-ID: <786b6ca3-1377-fc3d-8c74-d6625a9b4ee4@denx.de> Date: Thu, 10 Feb 2022 17:25:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: Possible bug on wilc1000 [Klartext] Content-Language: en-US To: Ajay.Kathat@microchip.com, cniedermaier@dh-electronics.com, linux-wireless@vger.kernel.org Cc: Claudiu.Beznea@microchip.com, Tudor.Ambarus@microchip.com, ageisreiter@dh-electronics.com References: <3994a34bb0d84e9d8181ec490a3f71d2@dh-electronics.com> <97d9da81-f15b-33dd-a66e-9f6dbe2c3b0c@microchip.com> <14d8dbd0f9de4bcdb50bd1983b2e4f31@dh-electronics.com> <74d9191d-7bf6-2beb-2d3b-700b6a355f68@microchip.com> From: Marek Vasut In-Reply-To: <74d9191d-7bf6-2beb-2d3b-700b6a355f68@microchip.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2/10/22 17:19, Ajay.Kathat@microchip.com wrote: Hi, > On 10/02/22 14:10, Christoph Niedermaier wrote: >> From: Ajay.Kathat@microchip.com [mailto:Ajay.Kathat@microchip.com] >> Sent: Wednesday, February 9, 2022 3:37 PM >>> On 08/02/22 21:56, Christoph Niedermaier wrote: >>>> Hello, >>>> >>>> I tested the wireless chip wilc1000 with the 5.16.5 Kernel and the firmware v15.4.1 >>>> (https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/atmel/wilc1000_wifi_firmware-1.bin) >>>> on an i.MX6 QUAD with iperf3: >>>> >>>> # iperf3 -c IP_ADDR -P 16 -t 0 >>>> >>>> After a while the test gets stuck and I got the following kernel messages: >>>> mmc0: Timeout waiting for hardware interrupt. >>>> mmc0: sdhci: ============ SDHCI REGISTER DUMP =========== >>>> mmc0: sdhci: Sys addr: 0x138f0200 | Version: 0x00000002 >>>> mmc0: sdhci: Blk size: 0x00000158 | Blk cnt: 0x00000001 >>>> mmc0: sdhci: Argument: 0x14000158 | Trn mode: 0x00000013 >>>> mmc0: sdhci: Present: 0x01d88a0a | Host ctl: 0x00000013 >>>> mmc0: sdhci: Power: 0x00000002 | Blk gap: 0x00000080 >>>> mmc0: sdhci: Wake-up: 0x00000008 | Clock: 0x0000009f >>>> mmc0: sdhci: Timeout: 0x0000008f | Int stat: 0x00000000 >>>> mmc0: sdhci: Int enab: 0x107f100b | Sig enab: 0x107f100b >>>> mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000003 >>>> mmc0: sdhci: Caps: 0x07eb0000 | Caps_1: 0x0000a000 >>>> mmc0: sdhci: Cmd: 0x0000353a | Max curr: 0x00ffffff >>>> mmc0: sdhci: Resp[0]: 0x00001000 | Resp[1]: 0x00000000 >>>> mmc0: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000 >>>> mmc0: sdhci: Host ctl2: 0x00000000 >>>> mmc0: sdhci: ADMA Err: 0x00000007 | ADMA Ptr: 0x4c041200 >>>> mmc0: sdhci-esdhc-imx: ========= ESDHC IMX DEBUG STATUS DUMP ========= >>>> mmc0: sdhci-esdhc-imx: cmd debug status: 0x2100 >>>> mmc0: sdhci-esdhc-imx: data debug status: 0x2200 >>>> mmc0: sdhci-esdhc-imx: trans debug status: 0x2300 >>>> mmc0: sdhci-esdhc-imx: dma debug status: 0x2402 >>>> mmc0: sdhci-esdhc-imx: adma debug status: 0x25b4 >>>> mmc0: sdhci-esdhc-imx: fifo debug status: 0x2610 >>>> mmc0: sdhci-esdhc-imx: async fifo debug status: 0x2751 >>>> mmc0: sdhci: ============================================ >>>> wilc1000_sdio mmc0:0001:1: wilc_sdio_cmd53..failed, err(-110) >>>> wilc1000_sdio mmc0:0001:1: Failed cmd53 [0], bytes read... >>>> >>>> I tried to reduce the clock speed to 20MHz in the devicetree with >>>> max-frequency = <20000000>; >>>> but the problem then also occurs. >>>> >>>> Is this a possible bug? >>>> >>>> >> Hi Ajay, >> Thanks for the answer. >> >>> The bus error seems to be specific to the host during the SDIO transfer. >>> How long does it take to reproduce it? Does the issue also happen >>> without "-P 16" iPerf3 option? >> It takes about 10s (something a bit longer) till I got this kernel error >> messages and it doesn't matter if I use it with "-P 16" or without. > > > I did not observe the issue with my setup(SAMA5D4 XPLAINED + WILC1000 > SDIO) when tested iPerf for a longer duration(~1000sec). I suspect the > issue could be related to the SDHCI host controller. > Try to debug the host controller side for the possible cause of timeout. It seems the timeout happens because the card fails to respond to SDIO command 53, right ? Is there some error logging/tracing functionality in the WILC1000 firmware which can provide further information why the card did not respond ? Could it be the card suffered some sort of FIFO overflow ? The MX6Q is a bit more performant than the CA7 (I think?) SAMA5D4, so maybe that plays some role ?