Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2431543rwr; Fri, 28 Apr 2023 10:11:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5w3NQ25O+ztXHMzOBbIXuOOrKBPtVqrZvXlbRoXW7Uor4SE9S+SORknziBZ/4mbp9hm2rh X-Received: by 2002:a17:902:d1d4:b0:1a8:637:8b17 with SMTP id g20-20020a170902d1d400b001a806378b17mr5097888plb.2.1682701907335; Fri, 28 Apr 2023 10:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682701907; cv=none; d=google.com; s=arc-20160816; b=aGReiRTYZNA4JqnnyCi6vU5UoU0OvQ9tg8eUy4+v+sbxqO4WM8ZoljQEHDb5fVUCzH wz9EkC/tqyVlr5tnC/vLK9Gv6jJYlOYYKJkTL7tn0Np7Ji07vcRpRSfYLi0nNBx1Gr5b 9yjQmlF22ZzMYSgOAdeF7qCjBkW+0But+RNem674nies+GJgH3PtKP1lbF+qT4b+XYN2 IKumz+G8UsnwSTYIzEh3H8xf0vVZWJWFbbY+BCHW9wPzKfuOaakDmmXyR2IY1BzQRJGa HwhqTGA9uXom1j+OFsB28zckWjxwqVqh2nrwJ1paIXpvLuMnBHPi5dZ1N4v9beR+vvZ5 gzmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=ZwebSDbcEiTndvqleOUsphstm5KG1oepB9XO0kR9wf8=; b=0JMiQQmG/ExH5g3W5XNqMu8l2YFLL2gn8VXv6DFKr8m6vAYTb2bAoLShzM4WUfki6D JwzIF6iL8JkFqgoba5JqF0SRK3d4cUPAuHyx/J5jfVLNuTrxfuklTYTbwBsXEvfgJhKG d4ZuRGtEQppA2YHJ51Lf6zww8zZGMWoAvcd6e0obvMfBno7L2zXNjWVlgfihyhX9Ci3B wNknYURaLi6TW4EsTeBrSarpkDbHJoeWiF8MUig3Fs4RaZs0EyfRkiP78rY3pMuIPO2S gpsw2dzt++r+tVTawAOlpnWUAZTBVMvJR4zDGz1X7xs+L0CrU1DxxeVRJ4/8EY4H8jp5 zWYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=BBr99xho; 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 ko6-20020a17090307c600b001a6b0edecc8si13294994plb.519.2023.04.28.10.11.38; Fri, 28 Apr 2023 10:11:47 -0700 (PDT) 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=@gmail.com header.s=20221208 header.b=BBr99xho; 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 S240073AbjD1RGJ (ORCPT + 62 others); Fri, 28 Apr 2023 13:06:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbjD1RGH (ORCPT ); Fri, 28 Apr 2023 13:06:07 -0400 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54D6A2710; Fri, 28 Apr 2023 10:06:06 -0700 (PDT) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-187de655f15so112352fac.3; Fri, 28 Apr 2023 10:06:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682701565; x=1685293565; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:sender:from:to:cc:subject :date:message-id:reply-to; bh=ZwebSDbcEiTndvqleOUsphstm5KG1oepB9XO0kR9wf8=; b=BBr99xho1LlxU8yTwHav1CVabMGj74RB2kcJZSHl1Ixjx+HGbxjXcvOjbgdEbgQPRl BHAqjKhRKP0/nl0ewyz/GN+3tH6/0/LS8cZI6SMwv9cOZnXnAmkBBBeG8nCqvEYO7/m1 sa5miVL3/Gt6znLlvNJ4ODCbiH/HRxxzQmY4Bdy39oEKbRbzz3DW7brnan9YeVOqNPnH W4AgqnkjyLWu0ugyf2IoUX0bkx6Jle+erxffw2Pij9I7ZT7574rpch0SZeDHN5yuswVt oGqb9cnpJrfJvJgciMlJxaSwZ59EIkBRI6OFr5/UUGMVO4nmbbbZrQ1v63cxFRAnQVVk 0/JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682701565; x=1685293565; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZwebSDbcEiTndvqleOUsphstm5KG1oepB9XO0kR9wf8=; b=bJnurwQzwQ5NXyYBQP015Bd8v1S7eDLoUncBtFCd/HhOuH1nEYDDHnmoh3nxB2T+I+ GXf/jqNanRwUkx2QiMf2hLHw1nsCAk5JZWtO7g7Y07BoaheEEwq4pKnO3ScDP4g1hJmI tumR79jVpkY69hX4ijjDZ3TW562enVnTA0j4jiwdVbzFxpO5gkop+0/QQLQxRqd6rKgo 6nlkuwF0PTIvx3tSF4Gy9nkcvyhamo9KvmfzKWBDkBqnRK85k+L7sttyyKgDyGUO97u1 iEZ68b0f/x33+y0l6Y6ZkxpOAXyY7bCF6V7oYA1DWBFv92ezdONqlh0RO5EWmUS28CPT /6sA== X-Gm-Message-State: AC+VfDxR5YmMUbx8pTeKjgHCSRu5bErSt9slaaQ82FLraoJK8McnAWIP pPOyW14mbHdOBWeGWKOH0txbgEER5Q8= X-Received: by 2002:a54:4098:0:b0:384:833:2a79 with SMTP id i24-20020a544098000000b0038408332a79mr2919330oii.48.1682701565329; Fri, 28 Apr 2023 10:06:05 -0700 (PDT) Received: from [192.168.0.162] ([216.130.59.33]) by smtp.gmail.com with ESMTPSA id p203-20020acaf1d4000000b0038cabfcb3ccsm9061020oih.15.2023.04.28.10.06.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Apr 2023 10:06:04 -0700 (PDT) Sender: Larry Finger Content-Type: multipart/mixed; boundary="------------dXNjmVauvoy0tmBnxkx4nmvc" Message-ID: Date: Fri, 28 Apr 2023 12:06:03 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] wifi: rtl8xxxu: fix authentication timeout due to incorrect RCR value Content-Language: en-US To: wo Cc: Jes.Sorensen@gmail.com, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org References: <20230427020512.1221062-1-luyun_611@163.com> <866570c9-38d8-1006-4721-77e2945170b9@lwfinger.net> <76a784b2.2cb3.187c60f0f68.Coremail.luyun_611@163.com> From: Larry Finger In-Reply-To: <76a784b2.2cb3.187c60f0f68.Coremail.luyun_611@163.com> X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 This is a multi-part message in MIME format. --------------dXNjmVauvoy0tmBnxkx4nmvc Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/27/23 23:11, wo wrote: > [  149.595642] [pid:7,cpu6,kworker/u16:0,0]BEFORE: REG_RCR differs from regrcr: > 0x1830613 insted of 0x7000604e > [  160.676422] [pid:237,cpu6,kworker/u16:5,3]BEFORE: REG_RCR differs from > regrcr: 0x70006009 insted of 0x700060ce > [ 327.234588] [pid:7,cpu7,kworker/u16:0,5]BEFORE: REG_RCR differs from regrcr: 0x1830d33 insted of 0x7000604e My patch was messed up, but it got the information that I wanted, which is shown in the quoted lines above. One of these differs only in the low-order byte, while the other 2 are completely different. Strange! It is possible that there is a firmware error. My system, which does not show the problem, reports the following: [54130.741148] usb 3-6: RTL8192CU rev A (TSMC) romver 0, 2T2R, TX queues 2, WiFi=1, BT=0, GPS=0, HI PA=0 [54130.741153] usb 3-6: RTL8192CU MAC: xx:xx:xx:xx:xx:xx [54130.741155] usb 3-6: rtl8xxxu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin [54130.742301] usb 3-6: Firmware revision 88.2 (signature 0x88c1) Which firmware does your unit use? Attached is a new test patch. When it logs a CORRUPTED value, I would like to know what task is attached to the pid listed in the message. Note that the two instances where the entire word was wrong came from pid:7. Could improper locking could produce these results? Larry --------------dXNjmVauvoy0tmBnxkx4nmvc Content-Type: text/x-patch; charset=UTF-8; name="log_data_2.patch" Content-Disposition: attachment; filename="log_data_2.patch" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL01ha2VmaWxlIGIvTWFrZWZpbGUKaW5kZXggZjU1NDNlZWY0ZjgyLi42 ZDk4NWExNzVkNzggMTAwNjQ0Ci0tLSBhL01ha2VmaWxlCisrKyBiL01ha2VmaWxlCkBAIC0x LDggKzEsOCBAQAogIyBTUERYLUxpY2Vuc2UtSWRlbnRpZm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