Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp392357rdb; Thu, 15 Feb 2024 03:35:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXmeL0ZKCuyXVg2asP4xy7dwmKmDoIEijrFFmA6j9dpvEDoD4Ny/vLgUweGxFvaJCrxPLhGGMJDYY+pT44ouEXhDFC+aLitnt1/+T7+yA== X-Google-Smtp-Source: AGHT+IER1mXLPJc0sdl26hT5YRpUKuFj4Ksdf+1BRsz6E2sX0lDAc7jHW4r7ykpMNJjHez7o23ak X-Received: by 2002:a17:906:f147:b0:a3d:23d0:1b06 with SMTP id gw7-20020a170906f14700b00a3d23d01b06mr1149581ejb.70.1707996945676; Thu, 15 Feb 2024 03:35:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707996945; cv=pass; d=google.com; s=arc-20160816; b=t08ra5m2IciLzQPLmjRcb8Q6M2VhtkTdJ+sgnhzyVsK7+5nZ/b+u//5DCvYr39Hdpr ArFyvBb/M28PiEd1CNnmJ84UWDPU1HNb5CtCunMxQN/GzQtBCBUY1AaotY2HRuu4MhI9 33XkljcBxeeokTLGNGCDCNNWuLjv220FSnVvw0TTZer5DeHg7m1IVAvIQ5YWfWTwqWFP AA2XzIirB4/6Av7VsEK72eYM6Jpn0GKE9tWOPWV4qvPQ+CaxbW0k+xY8TYp6vpWM4gYK wseTsrgKKH9XRfV87VWKUdzbVifubPANdraDS+4iblBGYYHXuM4vwrDQ7+n2FPtu7F3r E8TA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=8pVE2IbgSesPWu1LL1kYYO9zJ5PGzbkhAEFW8uh3t2U=; fh=ZAkFERYjl7N8I9vHTKqiYIwPdHliIJsn14pc6xQBngU=; b=nyO7K7tNcBrcKgMK6Oz8Vm2mFB+wpuJtha7HdWLqTAQmSwo5S7ywWJyo9Y5HA1qH2v GbprMw8oTKaudVzoHDlgcvHgDLURmULl/rjyAbGU76mmC1k9tZ6crrs+gEdoYQpoDRPv Poro5JWXSB3WWvibnQ4Z8urj9XENKdEwQxYbCRlqs3qXNS+HE0EvfMPuzdeJG+UypFRh ehGvIXXaxtu/0AVtlDTSLDF5pMWVRV0kDtznbLkyrfft9Y51ezWSXUTg89DeUlpinQHa 4dzM2mnXMVrRfuDNEmkhkyD8c4YlJdbvIL+zPbnm/OFHgF+TnqGAkGcNrsf2J+gj8W1+ 92tA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rBuiQTs6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3624-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3624-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p16-20020a1709060dd000b00a385635ef7fsi550546eji.962.2024.02.15.03.35.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 03:35:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3624-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=@kernel.org header.s=k20201202 header.b=rBuiQTs6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3624-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3624-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 65D241F227DF for ; Thu, 15 Feb 2024 11:35:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0DE9B12FB39; Thu, 15 Feb 2024 11:32:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rBuiQTs6" 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 DBDA912FB32 for ; Thu, 15 Feb 2024 11:32:44 +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=1707996764; cv=none; b=XPxlCAJGFDQOPUlPzLDxejCdq0ewLlg5F695+m82MMTfiijn2hN7RaLUhWfZItCUvnKxiQn5SVZn/ClNKW6MOrMbfSTBvoRwZOEyDCov7YyS2nV85ChP+6FBLBVEHN28xcvVcdjXxHhZwD2YfkYqVgC2h2RgG2fO2SqYY+yXf/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707996764; c=relaxed/simple; bh=Y75MeSiVwPc8AkG3sXMXhAT4eHoFE1miiimyMA/OJ7M=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=uFvrogu0pzDo/bif/eTbqnpeXUyBVw5Wzc33rQEkFOvn26Bb8EpxRKwLU4UBbp3sRUKH8CO0g3tCElHoFKemu0EEBeeGmMAS/AJIGAhWuWwpVY7ID7OHV7xvfC47oFuMU2fJgqjqQbVktYb53kNW6jhz6ZUSI3qK/wnWd6P3u3Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rBuiQTs6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A250C433C7; Thu, 15 Feb 2024 11:32:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707996764; bh=Y75MeSiVwPc8AkG3sXMXhAT4eHoFE1miiimyMA/OJ7M=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=rBuiQTs6ju7+wsFmHunT5vuKkQT1FKtI8m5SXkyx1vL3Mpecw+3E1EdRwzihtCYZo bIl7HXM0qJ0qqv3tVQYsORBAk++LPn5jrZnZoXnN2ZqCDpq7+p0RtZ72jIL0h+ewmO l9sIn27n5wNC1+QyCZEQ2W2b32Vw3u30kYaPiD6bYK6siPXGbH6WAppY2h+MpOYeP1 blh5fVeeeYrKAJGurZ1CMVppgEA7WU/V69YI9RoXiXBgj6KzLu+GV9lQTXTw1UgdXS jcdM0MbF6PZLGb0IzlorhPPGRgz4f+wiQOWty8RjCWc3n14FiWz1rPrOtJ20OcDMJT VLrYlb7rMGDIQ== From: Kalle Valo To: Sven Eckelmann Cc: ath12k@lists.infradead.org, Raj Kumar Bhagat , linux-wireless@vger.kernel.org, Ganesh Babu Jothiram Subject: Re: [PATCH v3 12/13] wifi: ath12k: Read board id to support split-PHY QCN9274 References: <20240129065724.2310207-1-quic_rajkbhag@quicinc.com> <20240129065724.2310207-13-quic_rajkbhag@quicinc.com> <23399810.6Emhk5qWAg@ripper> Date: Thu, 15 Feb 2024 13:32:41 +0200 In-Reply-To: <23399810.6Emhk5qWAg@ripper> (Sven Eckelmann's message of "Wed, 14 Feb 2024 15:17:11 +0100") Message-ID: <87bk8inesm.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Sven Eckelmann writes: > On Monday, 29 January 2024 07:57:23 CET Raj Kumar Bhagat wrote: >> diff --git a/drivers/net/wireless/ath/ath12k/fw.c >> b/drivers/net/wireless/ath/ath12k/fw.c >> index fbcf40c97792..5be4b2d4a19d 100644 >> --- a/drivers/net/wireless/ath/ath12k/fw.c >> +++ b/drivers/net/wireless/ath/ath12k/fw.c >> @@ -119,6 +119,13 @@ static int >> ath12k_fw_request_firmware_api_n(struct ath12k_base *ab, > [...] >> + case ATH12K_FW_IE_AMSS_DUALMAC_IMAGE: >> + ath12k_dbg(ab, ATH12K_DBG_BOOT, >> + "found dualmac fw image ie (%zd B)\n", >> + ie_len); >> + ab->fw.amss_dualmac_data = data; >> + ab->fw.amss_dualmac_len = ie_len; >> + break; >> default: >> ath12k_warn(ab, "Unknown FW IE: %u\n", ie_id); >> break; > >> @@ -371,16 +375,43 @@ int ath12k_mhi_register(struct ath12k_pci *ab_pci) > [...] >> + if (dualmac) { >> + if (ab->fw.amss_dualmac_data && ab->fw.amss_dualmac_len > 0) { >> + /* use MHI firmware file from firmware-N.bin */ >> + mhi_ctrl->fw_data = ab->fw.amss_dualmac_data; >> + mhi_ctrl->fw_sz = ab->fw.amss_dualmac_len; >> + } else { >> + ath12k_warn(ab, "dualmac firmware IE not present in >> firmware-N.bin\n"); >> + ret = -ENOENT; >> + goto free_controller; >> + } > > I saw this now already multiple times that the source code was referencing the > firmware-N.bin (like we had with ath10k). But they aren't published anywhere. > I can't find a single one at: > > * > https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ath11k > * > https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/ath12k > * https://github.com/kvalo/ath11k-firmware > * https://github.com/quic/upstream-wifi-fw > > So I find it odd that the new code now seems to depend on it without actually > providing these files anywhere. For example, firmware-2.bin will be used for qrtr id to support multiple devices on the same host. > Might be good to have these soon in linux-firmware.git. Yeah, we will but just slowly. We are currently moving ath1?k-firmware.git repos to a new location, firmware-N.bin files should start emerging after that. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches