Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp401172lqp; Wed, 12 Jun 2024 05:20:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUI9fs3GNmB+6daXJmsSGVwX/aS2TzlpBdjNyA2nxV2UQCSbhSsalGK2tW2C1rn1pVXE2kqF9wRRhIK2KDwtHsI+6Vg62YWpyc6Q5yhzg== X-Google-Smtp-Source: AGHT+IFebmxLcAXl5+VBZc73XynpkRECA+QiTdAMYOciYo7wIu4YjVBpX+RpB/725G1eiSKq20EX X-Received: by 2002:a05:6808:1520:b0:3d2:1910:5a9b with SMTP id 5614622812f47-3d23dfdb6c1mr1929377b6e.3.1718194839591; Wed, 12 Jun 2024 05:20:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718194839; cv=pass; d=google.com; s=arc-20160816; b=ZF3aBXpNYMxtLpBnSlQPXPZOe5M3+5a5667EG9WcIwqfJJ4tO4rD0lPLrCHs6MGQJX tnJ1DtWkj4yTgCUaIeMYxbGwlZvRxHNU0/zZe5QGrfMCvg2Z1oGnDSIk3zaD6mo31FrQ QUe8/67Ek0r8Jbijd9utrKwzKCQSW33YlDJGbnEl4krWO9YBUHff3rWIryRAjkx8KQ0h dFQI73CAD0gZJXW2livW5yFB34TLwj/J/+lu4FU+fPJFd4KWmBh9zpp7GR48i+mgH/S/ RhBPeRSWJJ3mpDmo/QOipMgScLgJLzN9jYyrv6MQYmdswvzHa3RSPGe2QCNgjeVO7smm FDSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature :dkim-signature:message-id; bh=ZuNKtumjew5UirDIKR6z2jTulPfrROzSJT3xO8kDV90=; fh=cYRVdE9VSqbVqdcjgNeitgde++6ohYiygPAxDy7SKV8=; b=wMpeWd4eiM8m3KiKgREWjyaZa4hQJ1kkbd4cPR80LC3K30ZusNn9PCwz8xmZrCiYgX ijht5jYFkPEvaOnhTt4wxKgdyl8dbeJ/XrnWwnqhp220i/FkkZzDvxpZB8reJHV6nqlf UICIvqMV5XuzNGjbc4ieN9W/UahiS9rp/uCG6H0aTDFQ5Rfvze4/14nNDY6XKYS+cpGY 3ogLq4rndUn7I9suvINNc+ZfADKYqtLMDI5kJOcMkLX627kmZfoxFjpuP9EH1ZSRZAxh /KfsdDLdrG5LrLO4y/YOSRf9+gNTTFtJZ1fyHX9MI88lUEgDiHXHu/HWNkWN9daJuK8i NWZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=W4is4uPe; dkim=neutral (no key) header.i=@linutronix.de; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-wireless+bounces-8861-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8861-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6f8d6eb7581si2512142a12.788.2024.06.12.05.20.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 05:20:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8861-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=W4is4uPe; dkim=neutral (no key) header.i=@linutronix.de; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-wireless+bounces-8861-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8861-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EBE69282EC0 for ; Wed, 12 Jun 2024 12:20:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C851816E896; Wed, 12 Jun 2024 12:20:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="W4is4uPe"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="nol957Zv" X-Original-To: linux-wireless@vger.kernel.org Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B53F374D3 for ; Wed, 12 Jun 2024 12:20:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718194836; cv=none; b=gYT/dFTCC80u8ztelwOUzV0hxXoMXCtdw8tNd3g3MJulC1T/x4mqsApbCKBbaufz8B77QB7wISaETo+zycrzmj0i7vb2LhUJp7g+/cTCksWSZCpwfIvKv+9NDsFtgkLl7tEIqIFk/fqsaqJWSZPBfvMzDp5X4I8RqoaLslAeQBo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718194836; c=relaxed/simple; bh=0M4WDkNUH4uni+1hP9fzTtfzig7Abw5pL+p6qm/QFoI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bXzcB8sJY1K/xf1eIVYaIDJcYhUMS51QIs2ovuMMpMq7fA/vAbO95cxYHrgTP8lq1cElT82WzOVGJk8pnYlxK3IwsLk1KoRBUkA3N1NUtIRJE8rzvnBbVWLk42psrYNiT3iyGxn9IYb4xCqUlf9MqnYS0VVrWirGoH3RgqQfksE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=W4is4uPe; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=nol957Zv; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Message-ID: <8581983e-714b-4173-9150-061f57516ab8@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1718194833; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZuNKtumjew5UirDIKR6z2jTulPfrROzSJT3xO8kDV90=; b=W4is4uPelp2ecSSKROQLXlCEG4UgyhaoOeyzKjn+x/Oz4GtuD9S4rFk+Zty790ghvDIw7D gzYvhORzPb0wX8dS3+GgGB7h3Fa1dFIopHOSEIsipQosQ14XPmZ6mbuLJLx8/46ygxHNQK jap7EF2QP7W2SUqtkQoaqMYQFqQhTdb2REKhDZLb2/pG7+Gvd7zOUM4rZTSPIAPPT7auxY MqYYcEcJlP2SCv4z9W99sNuf88UEg2+aGmh8griNAUrvjHyi6OTZ+sp8NK6Hs9p1Yh+mCs 7R1e/7Z+uGrnEyPIwoZkrgVKBMQlmX/GXQHMMc9i1jE3eXoyxCmIHj23dAO5ow== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1718194833; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZuNKtumjew5UirDIKR6z2jTulPfrROzSJT3xO8kDV90=; b=nol957ZvuIMFgqVY5/DDMYDguyzHknDn0SjUzm2oPXY3pNFEEg5Ca3sTVC56MYuYv/CAXs pa8y/m8emixt2dCw== Date: Wed, 12 Jun 2024 14:20:33 +0200 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: ETIMEDOUT with rtl8xxxu To: Ping-Ke Shih , Bitterblue Smith Cc: "linux-wireless@vger.kernel.org" References: <1385519564244924a1101770344544a0@realtek.com> Content-Language: de-DE From: Martin Kaistra In-Reply-To: <1385519564244924a1101770344544a0@realtek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Am 12.06.24 um 03:47 schrieb Ping-Ke Shih: > Martin Kaistra wrote: >> Hi Ping-Ke, hi Bitterblue, >> >> I have a problem with the rtl8xxxu driver and 8188f, but only on some boards. >> More specifically, I can see that during the second channel switch (which >> happens when I do "iw dev wlan0 scan"), the rtl8xxxu_read32(0e08) returns -110 >> (ETIMEDOUT) and after that no reads or writes work anymore until I unload and >> reload the driver. > > If this symptom is 100% reproducible, I would add many rtl8xxxu_read32(0xe08) > somewhere to bisect the cause resulting from writing IO or certain H2C commands. Thanks to your suggestion, I found out that 1) the timeouts start occuring right after the first frame is sent (rtl8xxxu_tx) 2) the adress doesn't matter, rtl8xxxu_read8(0x100) also gets a timeout I am now looking into the differences between vendor driver and rtl8xxxu for sending frames. > > Example 1: > > rtl8xxxu_write32(0x1234) // original code > rtl8xxxu_read32(0xe08) // add this to see if problem encounters? > > Example 2: > rtl8xxxu_gen2_h2c_cmd() // original code > mdelay(50) // add some delay to wait firmware complete the work > rtl8xxxu_read32(0xe08) // add this to see if problem encounters? > > The address of 0xe08 is not always on, so you should read it after power-on. > > > >