From patchwork Mon Jun 20 10:35:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1645380 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LRQzt33Ylz9sGC for ; Mon, 20 Jun 2022 20:36:25 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1o3ElT-0008TT-7Q; Mon, 20 Jun 2022 10:36:15 +0000 Received: from mail-pj1-f47.google.com ([209.85.216.47]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1o3ElR-0008Sx-EN for kernel-team@lists.ubuntu.com; Mon, 20 Jun 2022 10:36:13 +0000 Received: by mail-pj1-f47.google.com with SMTP id 73-20020a17090a0fcf00b001eaee69f600so9908818pjz.1 for ; Mon, 20 Jun 2022 03:36:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rcaLI2V3cjieprAxEWzIdj3FgYEHCPxyzrcYI1whjZ4=; b=CLCVfGwsZz6UHj8UyV3+MfjdVSyAqyWu4ohr+wFngk0ziAUxueZjq70dHIlWGl+fru aVSSuJdwuj+AYj7gCCeheO0MbD3/VBbPCMEcOzGWeEgYYYYejhIhAsT5OSqzq7MzVprv 7O/h2145n+hoJbfqllcUNgJcK4ZDLDxsnrzZO1Rfb3KhvTCas+Nx6afBnqvJsjwBqk3o 6+ceBkXmv848Hg7wgV3fJq7Ah3HsEKKw4PMUGLDS2tu0+CqdtqbfaCqr0XsAJ3nuDdt0 lRLGX77zwsTDR0DCr8zX+cGTGBcwWMGA1msLikqknmr7MtfDoxcZgx9Mzlw1IzgCD6KE jERg== X-Gm-Message-State: AJIora9pzd0qPV3i0N0VwQl5QcBr1J0EzNbMzSlvvrPtQ024489rZF4p bMm1cF/qXExxyEmHrAPI4QUDNe+92Eg= X-Google-Smtp-Source: AGRyM1try3jI2MgVT3kt8Lyj7vhL6rNKNBv3MSHFV53FhCrWWsC4H03H9Q8RWbOZU4GzucPA56Hq6w== X-Received: by 2002:a17:902:cec2:b0:166:4277:e0c0 with SMTP id d2-20020a170902cec200b001664277e0c0mr22824947plg.107.1655721371377; Mon, 20 Jun 2022 03:36:11 -0700 (PDT) Received: from localhost.localdomain (218-173-147-253.dynamic-ip.hinet.net. [218.173.147.253]) by smtp.gmail.com with ESMTPSA id i4-20020aa78b44000000b0051c66160a3asm8735092pfd.181.2022.06.20.03.36.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 03:36:11 -0700 (PDT) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH 1/2][SRU][OEM-5.17] iwlwifi: yoyo: fix DBGC allocation flow Date: Mon, 20 Jun 2022 18:35:26 +0800 Message-Id: <20220620103527.463475-2-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620103527.463475-1-vicamo.yang@canonical.com> References: <20220620103527.463475-1-vicamo.yang@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.216.47; envelope-from=vicamo@gmail.com; helo=mail-pj1-f47.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Rotem Saado BugLink: https://bugs.launchpad.net/bugs/1979182 number of DBGCs and number of fragments per DBGC is hw family dependency and not capability. Signed-off-by: Rotem Saado Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20220129105618.209c6fe4364a.I5b21769d297d6fcfafc58ddf1db87d88349fe06f@changeid Signed-off-by: Luca Coelho (cherry picked from commit ab23da483bd79df414edd652acb5350b1acde566) Signed-off-by: You-Sheng Yang (vicamo) --- drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c b/drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c index 901600ca6f0e..16f60a9b880e 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c +++ b/drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c @@ -577,8 +577,7 @@ static int iwl_dbg_tlv_alloc_fragments(struct iwl_fw_runtime *fwrt, return 0; num_frags = le32_to_cpu(fw_mon_cfg->max_frags_num); - if (!fw_has_capa(&fwrt->fw->ucode_capa, - IWL_UCODE_TLV_CAPA_DBG_BUF_ALLOC_CMD_SUPP)) { + if (fwrt->trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_AX210) { if (alloc_id != IWL_FW_INI_ALLOCATION_ID_DBGC1) return -EIO; num_frags = 1;