Return-path: Received: from mail-gw1-out.broadcom.com ([216.31.210.62]:54412 "EHLO mail-gw1-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756366AbaKSRyZ (ORCPT ); Wed, 19 Nov 2014 12:54:25 -0500 Message-ID: <546CD94D.9060509@broadcom.com> (sfid-20141119_185436_318257_CF68EF00) Date: Wed, 19 Nov 2014 18:54:21 +0100 From: Arend van Spriel MIME-Version: 1.0 To: Michael Tokarev CC: Maximilian Engelhardt , =?UTF-8?B?UmFmYcWCIE1pxYJl?= =?UTF-8?B?Y2tp?= , Seth Forshee , brcm80211 development , "linux-wireless@vger.kernel.org" , Network Development Subject: Re: BCM4313 & brcmsmac & 3.12: only semi-working? References: <53FDACD1.8090805@msgid.tls.msk.ru> <54363ED0.605@broadcom.com> <3543341.FmUQFH9nrl@eisbaer> <546C5D1F.108@msgid.tls.msk.ru> In-Reply-To: <546C5D1F.108@msgid.tls.msk.ru> Content-Type: multipart/mixed; boundary="------------050002020006070408060304" Sender: linux-wireless-owner@vger.kernel.org List-ID: --------------050002020006070408060304 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit On 11/19/14 10:04, Michael Tokarev wrote: > 18.11.2014 01:36, Maximilian Engelhardt wrote: > [] >> I just wanted to ask if there is any progress on this issue since I haven't >> heard anything for a month. Please let me know if you need any additional >> information. > > I've no idea if there's any progress. Meanwhile I've an easy way of > testing of my brcm4313 card in a mini-itx board with mini-PCIe slot. > It works rather nicely and the stalls are easy to trigger. > Running 3.16 kernel right now, tried to d/load a file from the > AP, -- boom, it stalled after 77Kb. > > Since the previous discussion apparently ended prematurely and no patches > to try emerged, I don't have anything to try on it... In our last email exchange I got the impression you switch to Intel board and did not want to keep replacing cards for testing. Nice to hear you have an alternative setup for this and I assume are willing to do some testing. I submitted two patches upstream and additionally I have attached two other that are still under review. Could you try these patches and sent me the content of the two debugfs files 'macstat' and 'hardware' after a stall has occurred. Regards, Arend --------------050002020006070408060304 Content-Type: text/plain; name="0001-brcmutil-add-helper-function-to-format-board-revisio.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename*0="0001-brcmutil-add-helper-function-to-format-board-revisio.pa"; filename*1="tch" RnJvbSBkYmM2OWY5NzY5YjkyZjNjZTExNWZhYmY4ODBmNzY3ZDZiZDRjNDM2IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBBcmVuZCB2YW4gU3ByaWVsIDxhcmVuZEBicm9hZGNv bS5jb20+CkRhdGU6IFRodSwgMTMgTm92IDIwMTQgMTQ6MTY6MzQgKzAxMDAKU3ViamVjdDog W1BBVENIIDEvMl0gYnJjbXV0aWw6IGFkZCBoZWxwZXIgZnVuY3Rpb24gdG8gZm9ybWF0IGJv YXJkIHJldmlzaW9uCgpUaGUgYm9hcmQgcmV2aXNpb24gdGhhdCBpcyBhdmFpbGFibGUgaW4g aGFyZHdhcmUgY2FuIGJlIHRyYW5zbGF0ZWQKc28gaXQgbWF0Y2hlcyB0aGUgbGFiZWxsaW5n IG9uIHRoZSBib2FyZC4gVGhpcyBpcyBhY2NvbXBsaXNoZWQgYnkKdGhpcyBoZWxwZXIgZnVu Y3Rpb24uCgpSZXZpZXdlZC1ieTogSGFudGUgTWV1bGVtYW4gPG1ldWxlbWFuQGJyb2FkY29t LmNvbT4KUmV2aWV3ZWQtYnk6IFBpZXRlci1QYXVsIEdpZXNiZXJ0cyA8cGlldGVycGdAYnJv YWRjb20uY29tPgpTaWduZWQtb2ZmLWJ5OiBBcmVuZCB2YW4gU3ByaWVsIDxhcmVuZEBicm9h ZGNvbS5jb20+Ci0tLQogZHJpdmVycy9uZXQvd2lyZWxlc3MvYnJjbTgwMjExL2JyY211dGls L3V0aWxzLmMgICAgICB8IDE2ICsrKysrKysrKysrKysrKysKIGRyaXZlcnMvbmV0L3dpcmVs ZXNzL2JyY204MDIxMS9pbmNsdWRlL2JyY211X3V0aWxzLmggfCAgMiArKwogMiBmaWxlcyBj aGFu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TChicmNtdV9ib2FyZHJldl9zdHIpOworCiAjZW5kaWYJCQkJLyogZGVmaW5lZChERUJV RykgKi8KZGlmZiAtLWdpdCBhL2RyaXZlcnMvbmV0L3dpcmVsZXNzL2JyY204MDIxMS9pbmNs dWRlL2JyY211X3V0aWxzLmggYi9kcml2ZXJzL25ldC93aXJlbGVzcy9icmNtODAyMTEvaW5j bHVkZS9icmNtdV91dGlscy5oCmluZGV4IDhiYTQ0NWIuLmEwNDNlMjkgMTAwNjQ0Ci0tLSBh L2RyaXZlcnMvbmV0L3dpcmVsZXNzL2JyY204MDIxMS9pbmNsdWRlL2JyY211X3V0aWxzLmgK KysrIGIvZHJpdmVycy9uZXQvd2lyZWxlc3MvYnJjbTgwMjExL2luY2x1ZGUvYnJjbXVfdXRp bHMuaApAQCAtMjE4LDQgKzIxOCw2IEBAIHZvaWQgYnJjbXVfZGJnX2hleF9kdW1wKGNvbnN0 IHZvaWQgKmRhdGEsIHNpemVfdCBzaXplLCBjb25zdCBjaGFyICpmbXQsIC4uLikKIH0KICNl bmRpZgogCitjaGFyICpicmNtdV9ib2FyZHJldl9zdHIodTMyIGJyZXYsIGNoYXIgKmJ1Zik7 CisKICNlbmRpZgkJCQkvKiBfQlJDTVVfVVRJTFNfSF8gKi8KLS0gCjEuOS4xCgo= --------------050002020006070408060304 Content-Type: text/plain; name="0002-brcmsmac-extend-hardware-info-shown-in-debugfs.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0002-brcmsmac-extend-hardware-info-shown-in-debugfs.patch" RnJvbSBhMTk3Y2Y0NGVmMDU4OTQyOTI4YjQ4MjIzZmNlOWQzZjExMmJlOWQwIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBBcmVuZCB2YW4gU3ByaWVsIDxhcmVuZEBicm9hZGNv bS5jb20+CkRhdGU6IFRodSwgMTMgTm92IDIwMTQgMTQ6MTk6NDkgKzAxMDAKU3ViamVjdDog W1BBVENIIDIvMl0gYnJjbXN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 ICAgImNoaXBwYWNrYWdlIDB4JXhcbiIKKwkJICAgImNvcmVyZXYgMHgleFxuIgorCQkgICAi Ym9hcmRpZCAweCV4XG4iCisJCSAgICJib2FyZHZlbmRvciAweCV4XG4iCisJCSAgICJib2Fy ZHJldiAlc1xuIgorCQkgICAiYm9hcmRmbGFncyAweCV4XG4iCisJCSAgICJib2FyZGZsYWdz MiAweCV4XG4iCisJCSAgICJ1Y29kZXJldiAweCV4XG4iCisJCSAgICJyYWRpb3JldiAweCV4 XG4iCisJCSAgICJwaHl0eXBlIDB4JXhcbiIKKwkJICAgInBoeXJldiAweCV4XG4iCisJCSAg ICJhbmFyZXYgMHgleFxuIgorCQkgICAibnZyYW1yZXYgJWRcbiIsCisJCSAgIGJ1cy0+Y2hp cGluZm8uaWQsIGJ1cy0+Y2hpcGluZm8ucmV2LCBidXMtPmNoaXBpbmZvLnBrZywKKwkJICAg Y29yZS0+aWQucmV2LCBidXMtPmJvYXJkaW5mby50eXBlLCBidXMtPmJvYXJkaW5mby52ZW5k b3IsCisJCSAgIGJyY211X2JvYXJkcmV2X3N0cihody0+Ym9hcmRyZXYsIGJvYXJkcmV2KSwK KwkJICAgZHJ2ci0+d2xjLT5ody0+Ym9hcmRmbGFncywgZHJ2ci0+d2xjLT5ody0+Ym9hcmRm bGFnczIsCisJCSAgIGRydnItPndsYy0+dWNvZGVfcmV2LCBody0+YmFuZC0+cmFkaW9yZXYs CisJCSAgIGh3LT5iYW5kLT5waHl0eXBlLCBody0+YmFuZC0+cGh5cmV2LCBody0+YmFuZC0+ cGktPmFuYV9yZXYsCisJCSAgIGh3LT5zcm9tcmV2KTsKIAlyZXR1cm4gMDsKIH0KIAotLSAK MS45LjEKCg== --------------050002020006070408060304--