Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4688117iob; Sun, 8 May 2022 22:03:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwinxQdPYY0nzF81s3cLtfDO3x1QFJ0G8xPZ3yU1B2PjxQqldCatlK3paMmsriCTcZYrBz2 X-Received: by 2002:a62:a516:0:b0:505:722e:15d5 with SMTP id v22-20020a62a516000000b00505722e15d5mr14543919pfm.52.1652072605776; Sun, 08 May 2022 22:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652072605; cv=none; d=google.com; s=arc-20160816; b=KdJAwAwBJog6w/OwsIsoYI3KjFzhp0WPoEoESQwg7ku7DtWTpYg5KD1+ex4AlOqDdY mVPiDlo6MLJNVq1izwk7sJfJoTdH+ynjTyS1CL/IWAQEJYFb20LohPzrjnhaMnP5cLCr f85LPtFHDXBl1uoX3C8q9cxcLcvDu9XVd8GXj3wP+5x7RvqCFlxPW2kakbqDufLFeASs CeuTLAeAz4o8wmZOQAEbo6C0hMLNW22dwLHBbHKAMOCS8Hwfe+XGQ12JGzNlcIBzr2W5 top8/a5gtVxBFpi+mQQPb45a5Kk5fdZe4VKrEN2eWL87dI3IyNnn6m85HH+2Gp01kYjY KK1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=7qaW61gUqQygO7osHflOwcwiem6hTS7S73PzGXHAqnA=; b=V2LjiaiI5EIZ6TWTSkIGoYiMIImw7tbFXUWpIGdhuV08Iz7SDJA02CS/VnrdL1ih3D 2jd9tb7fNrDgNJFUQg6ebU9yBqyHm80Qbhy3yQ/SBuqPMnHWOhgDBSOrZbJUPZ78JV6B GYUnnGN4mqlmq0M1Do07DOSh7EQcELgLUDdz1N4CHsa4qAtkiTwjKTbpmgHcZC67taZb 8MiMR3CNg5OztPJ5lU/DPKpaNOH5n4D0oQtfkJCSK9LAo8HvwTjAIA3AEKaEWDKodT8A f4lcgXFRH6Ndf0EzqxvXyOtzFQPScEF3zjCaMCmhG42Vn0TcKadZrw1NGrQApzinQ6tn 88Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Td39A2a6; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q192-20020a632ac9000000b003c604c0e2fesi12951921pgq.359.2022.05.08.22.03.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 22:03:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Td39A2a6; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A488913F906; Sun, 8 May 2022 21:58:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389400AbiEFGXj (ORCPT + 68 others); Fri, 6 May 2022 02:23:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1389394AbiEFGXh (ORCPT ); Fri, 6 May 2022 02:23:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC49B5C67A; Thu, 5 May 2022 23:19:55 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 44F7261F09; Fri, 6 May 2022 06:19:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8924C385A8; Fri, 6 May 2022 06:19:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651817994; bh=V11+LAWJ1d5l67vnmx/JvBJkQlrT/ck1awnxoU+USPo=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=Td39A2a6SjBgRUPWf5cFiqwthdL+PTezWMG3cVnxsMqzDIghnZwRiSVZCCJluRK7d D6qfreohXvGy0Qu2Zq89EgecScEo+tIgygb7sO09B514YTaxy6OCPPUx+hZ8iocr8Y 0I0ThOa/ryEEViBVJ1sajMCvuuJQycWDdpBmbRIBXRTN7DoEaqX2c7o+LB867yFE0u A1GXvIuAv7e+OCwAQRc8+GJ/xuBdYfHzFO0DiKQaeOodZlstflCsAFHlCc58bMOCMX 9HcKY8taN/K+ygFkfr9NDOsYexRJWSTQHB5j3XY8qVQ0EJ2oeF+oRi4TufXm5zS7R4 4Hw3vaLXNblqA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] ath10k: support bus and device specific API 1 BDF selection From: Kalle Valo In-Reply-To: <20211009221711.2315352-1-robimarko@gmail.com> References: <20211009221711.2315352-1-robimarko@gmail.com> To: Robert Marko Cc: kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Marko User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <165181799100.13324.13296205363993224857.kvalo@kernel.org> Date: Fri, 6 May 2022 06:19:52 +0000 (UTC) X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Robert Marko wrote: > Some ath10k IPQ40xx devices like the MikroTik hAP ac2 and ac3 require the > BDF-s to be extracted from the device storage instead of shipping packaged > API 2 BDF-s. > > This is required as MikroTik has started shipping boards that require BDF-s > to be updated, as otherwise their WLAN performance really suffers. > This is however impossible as the devices that require this are release > under the same revision and its not possible to differentiate them from > devices using the older BDF-s. > > In OpenWrt we are extracting the calibration data during runtime and we are > able to extract the BDF-s in the same manner, however we cannot package the > BDF-s to API 2 format on the fly and can only use API 1 to provide BDF-s on > the fly. > This is an issue as the ath10k driver explicitly looks only for the > board.bin file and not for something like board-bus-device.bin like it does > for pre-cal data. > Due to this we have no way of providing correct BDF-s on the fly, so lets > extend the ath10k driver to first look for BDF-s in the > board-bus-device.bin format, for example: board-ahb-a800000.wifi.bin > If that fails, look for the default board file name as defined previously. > > Signed-off-by: Robert Marko > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. f2a7064a78b2 ath10k: support bus and device specific API 1 BDF selection -- https://patchwork.kernel.org/project/linux-wireless/patch/20211009221711.2315352-1-robimarko@gmail.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches