Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3207955rdb; Tue, 6 Feb 2024 10:06:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IHPHMNGDipIbeZUFIRLMGK2hssja6onz6tyPFJ4v/oH9+D9xi6I2/yyj7KNw/BMCupZKsAk X-Received: by 2002:a17:90a:f408:b0:296:940d:281f with SMTP id ch8-20020a17090af40800b00296940d281fmr333968pjb.22.1707242810134; Tue, 06 Feb 2024 10:06:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707242810; cv=pass; d=google.com; s=arc-20160816; b=NGtN3li7z9hLD85hB8EnVrdL7tXKgtmsZduRI/2ZrFRxaZ9Jx9gBTJIriPV3TKUSRY G1/aD1sMJHeGUnhpEbJy9l7udo3SdevZp2eVQgs6co3934/1h9KFh6O7VIFdF3Vd3FiF XnLc9mpP0Ts8uSUGTWDw4ZBBklPOpIhtXKq1+ZgrS767G574ifD0Qgqg4L4UIlPZThge dJe2+GbXU0sF12JXH7uInbKErMYiU3z7RzDGN8MWKLNyO4XgtgpUhg/KDL1e7SC3+reo RUjor4S0f7gX2+lBmuYTZ4Ky2sxshD2iSsWI2wxd+dTpL3/Ziqae9F2Cx14ycP31Ctmc rKFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=lmVHptBtBhFsQpJXcRi2FAOB9BdH9yOKeJxzUUIKBi8=; fh=NNbZaOPNw0BVYvsJwDb/+V+7sP2sG3danEK+8Ck6qkw=; b=c5y6g5FTE+nXmBf1Rc4n5CndJogswLGC6EGolSV7Kuw6KFBJYxEwvn+4b/DZjO3tLY qx+923XLEKK//3oFHPOiLhWPrviIrlRhsJmgg1VTNLKWpFocgIlPEBggVnfPmYIQUmZC ySIZB76iR5uh8loS5W6UJenuovVkGAQbyNdsVTig1VkacLUxx0fk9xr7uinHqKdk5Ete 4Bca5SuyLaCzfFt3/7DkBm58LFkAAYpPDiI4LeXCDRzlqK8wEQEUHvJXcRDuezY5kIWU cQbvbJgRw7GK499LNAfch0Bd3waU3UmIQ1IT0TFLsjHZ8MukcbeyjvUAiP5joUvIsgXz gXhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lAdi+PgT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCU/WQJ4GAa64TV7K1UJ4bs+MUgyPS7RRGrFXb82qDGACDI8u1GbKSA0kRfNtQAWC4bC+7JBpzJbxKCwwAAgnh+kotkAD+U7LZq2fnvZQg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id mw4-20020a17090b4d0400b002967d86f14csi1519389pjb.68.2024.02.06.10.06.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 10:06:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lAdi+PgT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id EFE1AB24AB2 for ; Tue, 6 Feb 2024 18:06:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B1A3DF5C; Tue, 6 Feb 2024 18:05:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lAdi+PgT" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 47916DF43 for ; Tue, 6 Feb 2024 18:05:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707242758; cv=none; b=so+hQn2oK+Kl8UH/rd0x4Si8mSySCpNEIqW6L6ZQPyfy6QRpJxe2fxl8XNitVLaS1e79ympP/rhssNFXgXFsbSGxcjUPfEU7CQEjMMeerjdpp3+K49oK41LR+2TsyVcKGQQos1y/6gnKBk7RnQcBS+P0vIYXeYnBihZ4UMUOJbU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707242758; c=relaxed/simple; bh=EqrTtYcwu2dr3vRT3cx3p2ooIu+Mb0J9bFPgpzlZTOc=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=gHTCGNvZ3P5v/vlYLlz7cDdiiuB7gbnhZdgK3jOPiJo42sl4V4jxWMaoqqsfJUSxR1RN/SQR4iO0Xr0KvEdCQzYnKrlR69Io/VxBVXM3K1AT1172eN74pQK6zyJld4luwHvoKP+jMlIJlOEqyRIMm3JAzxFQ3Irj0+aajwTVvfc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lAdi+PgT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5019AC433F1; Tue, 6 Feb 2024 18:05:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707242757; bh=EqrTtYcwu2dr3vRT3cx3p2ooIu+Mb0J9bFPgpzlZTOc=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=lAdi+PgT5ztSlY6Zc/l5M2l/GsLXPcDy+iH1oZTYVl7A7UfFdH3wopY4x7dCz2tDZ bJsw0XHB2AGZwplaW2hCRo5X7lh7Flyn2oRbl5AKDwLkPNrO+AE+ooqO8+SyhRFel6 90MlFGALkkNRzvtS0R0UPYsU6v5f/YxuPE4qoqGlaL8Ic3udoVAKgk/CoNdzL6InNw w9ZlhbqC/RMCMvIz8fhctGQCn2DrljmkjuElD7V+45Jpi6KXmoxfAAZY9C+jaLVX6Q Qz5w8HfqSXVRIKygJmaZR3KvJm7pf/jszKpmPBeSAy9cJyaegdjcgB+JXD7Zijb9rw 9jjwZbmSD7gyw== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 01/11] wifi: rtw89: rfk: add a completion to wait RF calibration report from C2H event From: Kalle Valo In-Reply-To: <20240202030642.108385-2-pkshih@realtek.com> References: <20240202030642.108385-2-pkshih@realtek.com> To: Ping-Ke Shih Cc: User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170724275520.1979906.333537049933941766.kvalo@kernel.org> Date: Tue, 6 Feb 2024 18:05:57 +0000 (UTC) Ping-Ke Shih wrote: > The RF calibrations should be executed one by one, so add a completion > to ensure one is finish before next. The report from C2H event contains > state and optional version, and we only check the state for now. We also > care about the time a RF calibration takes, so record start time before > asking firmware to do calibration and get the delta time when receiving > report. > > Consider SER recovery, we can't receive C2H event, use half of argument > 'ms' as fixed delay that is 2 times of measured maximum time of > calibrations. > > Signed-off-by: Ping-Ke Shih 11 patches applied to wireless-next.git, thanks. ad1c86e92698 wifi: rtw89: rfk: add a completion to wait RF calibration report from C2H event 80f47f82f319 wifi: rtw89: rfk: send channel information to firmware for RF calibrations 9c66da3b19b5 wifi: rtw89: rfk: add H2C command to trigger IQK 32919a043894 wifi: rtw89: rfk: add H2C command to trigger RX DCK b835141be5a9 wifi: rtw89: rfk: add H2C command to trigger DPK 1a0cba5dc983 wifi: rtw89: rfk: add H2C command to trigger DACK af41e89ea323 wifi: rtw89: rfk: add H2C command to trigger TXGAPK bd6f5f27cb2c wifi: rtw89: rfk: add H2C command to trigger TSSI ff146ec22d5f wifi: rtw89: 8922a: rfk: implement chip_ops to call RF calibrations 7e2629dc843f wifi: rtw89: 8922a: add chip_ops::rfk_init_late to do initial RF calibrations later 4dbd964f33aa wifi: rtw89: 8922a: add chip_ops::rfk_hw_init -- https://patchwork.kernel.org/project/linux-wireless/patch/20240202030642.108385-2-pkshih@realtek.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches