Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2576498rwb; Fri, 2 Dec 2022 11:42:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf5SA+1bUYgxp8lrOLgAdqvx3cPaZ4H3Do1lreyUbLMo5f6KKizE+htZTrekqLdgC87o19J0 X-Received: by 2002:aa7:cdd0:0:b0:46b:6bc0:8377 with SMTP id h16-20020aa7cdd0000000b0046b6bc08377mr18372133edw.304.1670010169448; Fri, 02 Dec 2022 11:42:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670010169; cv=none; d=google.com; s=arc-20160816; b=mNQbOjpwXwI19NfDcbwJmB2rlE+q5vEoZ1KDsi2gl6NuBRgwILh+pq/mLhMjf8bpln +eUpfx6tY8oKQGc6EL7IlUDAWpnIF4iJfrGftresxf6gVo9/UsVaFBC2rKQYtc4h5ksW 2kCKrOBYURwRZ+l/zEs1PyJRCeSA6KjUQ9+40f1DTcfTGaxrSX3HlIucNHoIniM/mdLv +EmKrtczxIy9+McRzUsN/xp1aup3f+QIJRM/CxLnYaS/aTp0trlHkhpifM8jRk5JoUoW 8rFSJz1jo48NRkSwduy4YlEF7LQVysH3NrkHQyN24sKt7txYMA4w46SfWZ4OngEmGrck Vcfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=VHJ3Hnz5MvN8Dwd0OuapGRpjxJcB9Irbk24JHOUhkEo=; b=AIXuz2O3zV7WFv000w1/UlT76p4ySBLAY2XdHbg0VEa4UJUJ3MZbAcxd6TM9eL5i5f PFrZn1tY8EjQaDHW4LbRifXZ1jgY/FYInwpUq8NFTxIbeYhgHg7hq1diRXSMtrN7chiI 1zo9pjoBM+IT4KiJJ61d5n6U7tunKut/B+jPsZYDHQ9UYHvtw6voWfj6Jqe5rJ3rX5D7 g5SiEPiCw59CX0/588XEtBKzk1zdWE8nGGj1scb/aUwvUFEYE5leIn1bxNg/PTvOfHsZ PkjxlS9dwS6TL9GFY/A1njes//DrQYWZG6awpkWqRfXBNpsx1u0O8V5CghdYop52FDrl XA5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uKPrkZeA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wy1-20020a170906fe0100b007ba713e241dsi6569952ejb.894.2022.12.02.11.42.27; Fri, 02 Dec 2022 11:42:49 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=uKPrkZeA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234173AbiLBT0c (ORCPT + 66 others); Fri, 2 Dec 2022 14:26:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234772AbiLBT02 (ORCPT ); Fri, 2 Dec 2022 14:26:28 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11547F28B8 for ; Fri, 2 Dec 2022 11:26:27 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C6BEFB8226D for ; Fri, 2 Dec 2022 19:26:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F166C433D6; Fri, 2 Dec 2022 19:26:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670009184; bh=qgX1Ko+B7pKop1NmYhmLmS061eR4kJM7i1u5DkK9TQU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=uKPrkZeAJHo9wMaHJaoiO7+j0mHDu9PZj9mueHlSZAlgbGRt6r18A4q7cMmTjUWoF ZhDsiFuyrD0f63mxengm21rjxhX071JDi2G3v1ydAAtwE54c+DaYRnjGC+3uzU1D64 p2vD44Rwnrb+Ft96DBqAja9RGP+NnrhSqDbTiaGJF+c8F5moiMUkTFnb5gLZhM3Q3L /UxApYE5wKaHJ+stLddO6Gfr0Iy+rv0PIf04AKroZRAqT7XC0mtOjmJD+CnyfXxlIR JpAGLLDUaCoVzf+qmGfJZ2fMspBaItUCayUOz7xqbsi1I4NYtQo067InenUexB0XND +zi1QASq2JoaQ== From: Kalle Valo To: Karthikeyan Kathirvel Cc: , , Sriram R Subject: Re: [PATCHv2 2/8] wifi: ath11k: update hw params for IPQ5018 References: <20221122132152.17771-1-quic_kathirve@quicinc.com> <20221122132152.17771-3-quic_kathirve@quicinc.com> Date: Fri, 02 Dec 2022 21:26:21 +0200 In-Reply-To: <20221122132152.17771-3-quic_kathirve@quicinc.com> (Karthikeyan Kathirvel's message of "Tue, 22 Nov 2022 18:51:46 +0530") Message-ID: <87k03938v6.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Karthikeyan Kathirvel writes: > From: Sriram R > > Add new compatible string for IPQ5018 and add > required hw params for IPQ5018. The hw descriptors size and > datapath ops are similar to QCN9074, hence reuse the same. > > Tested-on : IPQ5018 hw1.0 AHB WLAN.HK.2.6.0.1-00861-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Sriram R > Co-developed-by: Karthikeyan Kathirvel > Signed-off-by: Karthikeyan Kathirvel > --- > drivers/net/wireless/ath/ath11k/core.c | 70 ++++++++++++++++++++++++++ > drivers/net/wireless/ath/ath11k/core.h | 8 +++ > 2 files changed, 78 insertions(+) > > diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c > index edf78df9b12f..d2af175a3d93 100644 > --- a/drivers/net/wireless/ath/ath11k/core.c > +++ b/drivers/net/wireless/ath/ath11k/core.c > @@ -604,6 +604,76 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { > .smp2p_wow_exit = true, > .support_fw_mac_sequence = true, > }, > + { > + .hw_rev = ATH11K_HW_IPQ5018_HW10, > + .name = "ipq5018 hw1.0", > + .fw = { > + .dir = "IPQ5018/hw1.0", > + .board_size = 256 * 1024, > + .cal_offset = 128 * 1024, > + }, > + .max_radios = MAX_RADIOS_5018, > + .bdf_addr = 0x4BA00000, > + /* hal_desc_sz and hw ops are similar to qcn9074 */ > + .hal_desc_sz = sizeof(struct hal_rx_desc_qcn9074), > + .qmi_service_ins_id = ATH11K_QMI_WLFW_SERVICE_INS_ID_V01_IPQ8074, > + .ring_mask = &ath11k_hw_ring_mask_ipq8074, > + .credit_flow = false, > + .max_tx_ring = 1, > + .spectral = { > + .fft_sz = 2, > + .fft_pad_sz = 0, > + .summary_pad_sz = 16, > + .fft_hdr_len = 24, > + .max_fft_bins = 1024, > + }, > + .internal_sleep_clock = false, > + .host_ce_config = ath11k_host_ce_config_qcn9074, > + .ce_count = CE_CNT_5018, > + .rxdma1_enable = true, > + .num_rxmda_per_pdev = RXDMA_PER_PDEV_5018, > + .rx_mac_buf_ring = false, > + .vdev_start_delay = false, > + .htt_peer_map_v2 = true, > + .interface_modes = BIT(NL80211_IFTYPE_STATION) | > + BIT(NL80211_IFTYPE_AP) | > + BIT(NL80211_IFTYPE_MESH_POINT), > + .supports_monitor = false, > + .supports_sta_ps = false, > + .supports_shadow_regs = false, > + .fw_mem_mode = 0, > + .num_vdevs = 16 + 1, > + .num_peers = 512, > + .supports_regdb = false, > + .idle_ps = false, > + .supports_suspend = false, > + .hal_params = &ath11k_hw_hal_params_ipq8074, > + .single_pdev_only = false, > + .cold_boot_calib = true, > + .fix_l1ss = true, > + .supports_dynamic_smps_6ghz = false, > + .alloc_cacheable_memory = true, > + .supports_rssi_stats = false, > + .fw_wmi_diag_event = false, > + .current_cc_support = false, > + .dbr_debug_support = true, > + .global_reset = false, > + .bios_sar_capa = NULL, > + .m3_fw_support = false, > + .fixed_bdf_addr = true, > + .fixed_mem_region = true, > + .static_window_map = false, > + .hybrid_bus_type = false, > + .fixed_fw_mem = false, > + .support_off_channel_tx = false, > + .supports_multi_bssid = false, > + > + .sram_dump = {}, > + > + .tcl_ring_retry = true, > + .tx_ring_size = DP_TCL_DATA_RING_SIZE, > + .smp2p_wow_exit = false, > + }, support_fw_mac_sequence was missing so in the pending branch I added that: --- a/drivers/net/wireless/ath/ath11k/core.c +++ b/drivers/net/wireless/ath/ath11k/core.c @@ -673,6 +673,7 @@ static const struct ath11k_hw_params ath11k_hw_params[] = { .tcl_ring_retry = true, .tx_ring_size = DP_TCL_DATA_RING_SIZE, .smp2p_wow_exit = false, + .support_fw_mac_sequence = false, }, }; -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches