Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1219824lqh; Mon, 6 May 2024 00:06:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhtuv3L97zyVodb3TxfdH9fx4TKGT2WTKEH24Bpa24CPS68hTE9bkjVl1Mkj2igfVvyL8F5eUESMj/msFGsMcsRbYRdwXlTW5nEtkwzQ== X-Google-Smtp-Source: AGHT+IGbpND52Pd7Tre9rMLT6lovxqITf9prDAXALoeEa8h58fst9/OsL5KcGAc95CY2NECLU78C X-Received: by 2002:a50:9fcb:0:b0:56d:b7d6:d64b with SMTP id c69-20020a509fcb000000b0056db7d6d64bmr7913500edf.29.1714979194341; Mon, 06 May 2024 00:06:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714979194; cv=pass; d=google.com; s=arc-20160816; b=bcFx8PphiI4mD/7alk/E4uHE3fsk54g1nbhc4qoLov/s4t9EUfT9RChAAtJPZJ7l+u YWTz/B/d1So9jY30TRZ2BbAtCZNJM9TwfYxbVq6iYAzlkUYXhuoVBPvz71zKS3slTGFx TQtTLVxypiIYOvUGpSLlJX59+KGBk/uuaQBH2hB8XnsX+aKa4+bNkaVQs7AYWyvJzgrl QHGtOY6AVpyZ/IfmFbkl4HXShKHkizZdL6AdK9EAuHp6bCL06BNKEiP2YmxLXaPNNCdr Ns4inzvZ3jBQ6TBUEQgOBsI+fUSBPny1V/9lJqDpvOeT1dQCDZ1l47RU5nJ+VatSpFEF lHiQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:organization:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=/ys+UyBMfLO8rCPvwdrkLzeURxNAHVi9t6+M3kqz4BE=; fh=tBgr+T+TiPcTvhsa754J6OPS59ZLfz6pwBcm+A3IRTc=; b=0CSBoCA61agkw/ryAS+JGtys9Z3OYzyj6Nhz4viBgkRpNUlG7aOJv2MN4jBRLR8NcY Y6qLqnD1+50AsqlMrBH6DP/e566A0DLowRY3rVryhOLEORBnG8pNdFkuSRqsmAne5uBe 46iAWxrc2PPivxZ1yitUVp0QHMBiAqQsMBtPaWSHufiD8knBW87LbGs3flt6VY6rgPQV dLc3hKGnnlxc3LHPpief5nLYmONID484hntWmGwT81WifxFtKwTjPbFZ31qfFZUVqdp/ yrsZ7tTIFMFgHV4uYIARn/0Jxi+Hk3FXiEdZdHpxbGbi5emFCuxNIWorfinKQwvIgUnw GNgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WgnZgFqa; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-7212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c14-20020a05640227ce00b00572478f4ad9si4836489ede.678.2024.05.06.00.06.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 00:06:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WgnZgFqa; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-7212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id DF9DF1F22386 for ; Mon, 6 May 2024 07:06:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBDA31420BB; Mon, 6 May 2024 07:05:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="WgnZgFqa" X-Original-To: linux-wireless@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (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 1EF5D1411D2 for ; Mon, 6 May 2024 07:05:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714979113; cv=none; b=iPdKQ+b/ytfMuIK5Kc2c3uQ0e8/NsHbMa/PIxf4CWsSk1ffHKIcbCRCRO3Zw89ZNs9wR1fDhJ8LY476v31QJaXgluHCdq5CR81oY1iK2y5QtGQNUljXgBu9rZg3hhg5aHMzH1Hj6zls8dBeQGiSVtz5O2yjFW7hASlwr2rLbNv0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714979113; c=relaxed/simple; bh=lDyyMbX2KSSAd9eXyMw8vJtuphu3BM/G1JlzRaTQe6w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oHmeD5mHbM0+pk/BxTt0xwHMUFXaC+/EdZJy5E70vgDXIXWHcIJmUNuB+IXtrvhF5kNdJvxo5VcK/EodZ1HO28RF8rDlwOo9dHeL9CjhlAdluG1oyPUeLJ+CTEgmtBnCaAjWqFvHF3d3SE0Y+X4Ca85k3pzWH3tHwjmynt+B/xE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=WgnZgFqa; arc=none smtp.client-ip=198.175.65.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714979112; x=1746515112; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lDyyMbX2KSSAd9eXyMw8vJtuphu3BM/G1JlzRaTQe6w=; b=WgnZgFqaxY7nj6G0x9nhKeM6O1V8ZqpdCXng9c3mfaVFCfI2KgvZ3V7Y AXDi+UuHfCiIq8/BFmMV9fGa6ac2PJ2Kf/RVMTh+R/yQdJqmo3P5JemJb Cpa5/R/Fo4R5T9IJcGUQkkzqKzKpRjZrSZiAG3A95VCls2HVFDNNuh0R/ 6tDykVafNb4h+0eweOt31afBqp6OpiRX197WkIZSq6/CQdWL+BE6MoqaH 5pelgPJM9CDiure9eHidRFpPFJyj/vB5Ieh4WSN8v7jqc+VlTXZqc5iqm izGXwrRIt+nOXa/GXuQhu3j8+gyzD3p1sV1DDTFrm3WZdfM7oy8vAR+VR w==; X-CSE-ConnectionGUID: HdzEpT83RRaaUbA8+Xi2sQ== X-CSE-MsgGUID: jDkp5ZEJTxqZT88ehK1aXw== X-IronPort-AV: E=McAfee;i="6600,9927,11064"; a="10638272" X-IronPort-AV: E=Sophos;i="6.07,257,1708416000"; d="scan'208";a="10638272" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2024 00:04:54 -0700 X-CSE-ConnectionGUID: E+tfNewQR2G+dxfDaLtjzQ== X-CSE-MsgGUID: Sfz5taGNT7iYfRuzao9pDQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,257,1708416000"; d="scan'208";a="59265016" Received: from weis0040.iil.intel.com ([10.12.217.108]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2024 00:04:52 -0700 From: Miri Korenblit To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Daniel Gabay , Eilon Rinat Subject: [PATCH 15/15] wifi: iwlwifi: Ensure prph_mac dump includes all addresses Date: Mon, 6 May 2024 10:04:19 +0300 Message-Id: <20240506095953.31fa9ce91a1c.Ia0c86f70c7a6874c15ffc6f8235aa88530208546@changeid> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240506070419.1821330-1-miriam.rachel.korenblit@intel.com> References: <20240506070419.1821330-1-miriam.rachel.korenblit@intel.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Organization: Intel Israel (74) Limited Content-Transfer-Encoding: 8bit From: Daniel Gabay In prph_mac_iter, ensure that all required addresses are dumped even if a read fails. Currently, if a read fails, the region dump is stopped, preventing the creation of prph_mac.lst. By dumping all addresses even if a read fails, we can accurately determine which addresses were successfully read and which were not. Signed-off-by: Daniel Gabay Reviewed-by: Eilon Rinat Signed-off-by: Miri Korenblit --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c index fe4e1bea30bb..945ffc083d25 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c @@ -1026,17 +1026,12 @@ static int iwl_dump_ini_prph_mac_iter_common(struct iwl_fw_runtime *fwrt, { struct iwl_fw_ini_error_dump_range *range = range_ptr; __le32 *val = range->data; - u32 prph_val; int i; range->internal_base_addr = cpu_to_le32(addr); range->range_data_size = size; - for (i = 0; i < le32_to_cpu(size); i += 4) { - prph_val = iwl_read_prph(fwrt->trans, addr + i); - if (iwl_trans_is_hw_error_value(prph_val)) - return -EBUSY; - *val++ = cpu_to_le32(prph_val); - } + for (i = 0; i < le32_to_cpu(size); i += 4) + *val++ = cpu_to_le32(iwl_read_prph(fwrt->trans, addr + i)); return sizeof(*range) + le32_to_cpu(range->range_data_size); } -- 2.34.1