Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp4282619rba; Tue, 2 Apr 2024 12:16:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXBbUPxsdasso9iSZIshv7okICSuc9A1AF2QDdovVVMEAMwUc6eQBLXHFuTAx3TUy4nZIr03qIwKqlnX1Iht++wkZwv6aTEch1y6pwF3w== X-Google-Smtp-Source: AGHT+IGzPPfY1xrIw1A0q7DH3WfnCvojHWckaAL3zyyhPDrdmcxFXrrdwYKqKVYNAl/0iMXQzbyZ X-Received: by 2002:a05:6122:30aa:b0:4d3:3236:e91 with SMTP id cd42-20020a05612230aa00b004d332360e91mr9601658vkb.11.1712085360695; Tue, 02 Apr 2024 12:16:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712085360; cv=pass; d=google.com; s=arc-20160816; b=Xe3/OsnS+z3eJsPgnYAPjQuu5Im/psk0JYuKsbOgTtz0TMnXTecMsCIucILylbFoBN T0zrJMyGKtamEA6so6n4GTtJIqFDKp38xc3gbHeAeOF4U2v//fSpn3msbE8B/9s9DQ4d gxUAUMbg5NntYg63Kw7ouP5NJaUvCFHShDElCbD/rvEUJscd/Tc+ss4vmXwlEktb+5RY iUlCZXPU5gSjcFln6jLJgo18UTjyaDiulArIWDy9ccZOBRW/mRfIa5YMai2HlsrGAKLj YFx4zfgXmxjdPLWSmfzrKm6m3CIgngUZAdw84ozmiAg67KOFWAlsL2Xg8ZEldR8wYCdT IKbw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=EX892uaKTvbPiElfAXE8taGWdycpJIJZ2ztX2TZ+lMk=; fh=xVtAXV1xlWeXPb6BBVAIcj5WVKexP/w42QEhc5OZ7nM=; b=SvfKumuFng2qSFVAFpkJGMXqaox699mlOhCKx9sW8B0k19JVg4sDxcuw8exAV+TVz2 ZoBbEbIImZ32ZNiWfCBETd1RTGgFhjSlUvG6WqqcLGUZAxZ33rd9FtYzt9NizBvWXWwP JwvpLkNh3ATnadXAumycuAZ86EAl/DgNSEFvbpPo2fPQXAE6mxnlk/AAt7elOeMQE6GK PRPS3u15+pmD+uv8C+MhfMf+GW34F5Wzq+n8DZBFFVkohWcA5ZYmRueQIriGo2VVaGcQ YeVAdu3av1qJqS+Z2ZZtzJ0pBWUQrfNo1tzAg8lcqXLVzhh2iJikgGTercy6DUudAq/i 0Q7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="fnm/fKA0"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-wireless+bounces-5759-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5759-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i19-20020a056122209300b004d3335daa95si1856687vkd.31.2024.04.02.12.16.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 12:16:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5759-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="fnm/fKA0"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-wireless+bounces-5759-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5759-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 89B2E1C21BBA for ; Tue, 2 Apr 2024 19:15:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68DE315B56B; Tue, 2 Apr 2024 19:15:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="fnm/fKA0" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A220A15B117 for ; Tue, 2 Apr 2024 19:15:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712085355; cv=none; b=aqklw9fX6vLtYfh9l4aL35/nkbjHs2aDf4Uwinjz+zxBDfZFWGZinQULr7DzOPvOQQ2+z5RUYqRLsJeOcn0ffUv3LmtYwlWh/N6zGO2hinESNe0ZhJ8FGxudtK1PcoxqKea1u4EnFymG1oY6ePYe+kmhxqBPEz1pkM0w64auw+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712085355; c=relaxed/simple; bh=erM4PWYWMUDv33GGqtPcaVibRwm0VbUgeCYyZHRWsr8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=dTirMX0ejbkh+1NJLrpks5KBMSGOTQWiL8IsjVNw7V5Xvgs3oyFdOR8V/q63lXA2O370/xnxQe8FT8JnSGjma3l1EqAvHrYp5oyq/9tNmTa9QKc6DK/g/xQ8he6jFeWRrM1AoOSE26WAmV3iSJ/yU0oClHctqdq47EpdU/Ngyos= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=fnm/fKA0; arc=none smtp.client-ip=209.85.219.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f175.google.com with SMTP id 3f1490d57ef6-dcbc6a6808fso5182399276.2 for ; Tue, 02 Apr 2024 12:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712085352; x=1712690152; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EX892uaKTvbPiElfAXE8taGWdycpJIJZ2ztX2TZ+lMk=; b=fnm/fKA039ki9MhaENaloyJxdqhqHnsglSgWZVDdrwJOU+3xGprw322WWYdiZyOyaW I8JJ3u/gZOhIrhV38WenJGFFtTcu8Aopb+Imzj3NWUdoX0nkKtB/YWOI+5VZZNKHA7DS W4py0+Fo6yqPPRmoiOU716tDsj6rJ1NWiar/0R9MAlH0BipIiq8Z+MVKwSueastpEgtg IMLoiWfBg1TRYR9PAAu/ebLHnVWOvJaxfZj5bsPGzFdzSRHmuuReBGU9VSv4LUNfjIUb isDCvfvCjT9lIqQPjPD00nYzZQIYrtBfKpw/+b6A2L5lw6vjtcgT78a7x3YT4mb/9gUK FDaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712085352; x=1712690152; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EX892uaKTvbPiElfAXE8taGWdycpJIJZ2ztX2TZ+lMk=; b=P/7U0S9Hr/UracTz5yyV4o3Vyx7Ef15TB4shkp/yjetnxpopftfwAygAUCOAViTa3u wnqTdScfvb+Rk6Fi0QvPtYIqHQ/MamjBwPYvDWrNAiQSJL4ONpTyS//4eaYJ1deMQ3Ha 9S80aWzqoJRqxLwMEXhOP3rmHSITSIyzJoZP5FPV0xHma+LDc3g3YCLCUTikQITfsa51 O4kbDTtzhPBvUcQnoFnKKfXdmCb+38khg0YbcHalv5/Ang6e27TM9QJ/opRG6DTJ9nz3 vim5fhrzQ3MUWwHdgnRv9TXIBl4pInbAU8nqOF4TLbHosnSTOl0g8k7m0N9aHoyFKoSs QkXw== X-Forwarded-Encrypted: i=1; AJvYcCWb70Wy/LjeG0ObSz9IsHkT9TDDGDOv7nOrC6q8jVDcfe79exg3MUXsARBhDTjFzSIhLRICiEPdobqWjPbPxT4cLRgHLzmcqpG9ygxPXsI= X-Gm-Message-State: AOJu0YyrMq/2y6Ve7DdnNBgXu1Nv9u2b+2z4JFAl2QZzUUn7d6JnZ6y5 VJkZU7NKLCEyfXlgPULgOPOlim6ciJ2X4IYTUYXNf1x1oA+KCxPHoVpqrpINuXg7sQwO6rdjh3J m3Z+KQoRSY6+TF2iEXmuYFOfjRZIi6W1BN44jAA== X-Received: by 2002:a25:98c7:0:b0:dcc:7b05:4cbb with SMTP id m7-20020a2598c7000000b00dcc7b054cbbmr11583196ybo.31.1712085352700; Tue, 02 Apr 2024 12:15:52 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <5cdad89c-282a-4df5-a286-b8404bc4dd81@freebox.fr> <252618e8-9e80-4774-a96c-caa7f838ef01@linaro.org> <502322f1-4f66-4922-bc4e-46bacac23410@linaro.org> <0ca1221b-b707-450f-877d-ca07a601624d@freebox.fr> <36890ee7-ab9e-448c-ae30-7a75ac28b496@quicinc.com> In-Reply-To: <36890ee7-ab9e-448c-ae30-7a75ac28b496@quicinc.com> From: Dmitry Baryshkov Date: Tue, 2 Apr 2024 22:15:40 +0300 Message-ID: Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: msm8998: set qcom,no-msa-ready-indicator for wifi To: Jeff Johnson Cc: Marc Gonzalez , Konrad Dybcio , Krzysztof Kozlowski , Kalle Valo , ath10k , wireless , DT , MSM , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Pierre-Hugues Husson , Arnaud Vrac , Bjorn Andersson , Jami Kettunen , Jeffrey Hugo Content-Type: text/plain; charset="UTF-8" On Tue, 2 Apr 2024 at 21:22, Jeff Johnson wrote: > > On 4/2/2024 8:55 AM, Dmitry Baryshkov wrote: > > I'd say, we should take a step back and actually verify how this was > > handled in the vendor kernel. > > (error handling and other non-QMI code removed from the following for readability) > > In ath10k we unconditionally call the following in > ath10k_qmi_event_server_arrive(): > ret = ath10k_qmi_host_cap_send_sync(qmi); > ret = ath10k_qmi_msa_mem_info_send_sync_msg(qmi); > ret = ath10k_qmi_setup_msa_permissions(qmi); > ret = ath10k_qmi_msa_ready_send_sync_msg(qmi); > ret = ath10k_qmi_cap_send_sync_msg(qmi); > > In vendor icnss2 there is conditional logic in icnss_driver_event_server_arrive(): Note, wcn3990 is icnss, not icnss2 > if (priv->device_id == WCN6750_DEVICE_ID || > priv->device_id == WCN6450_DEVICE_ID) { > ret = wlfw_host_cap_send_sync(priv); > } > > if (priv->device_id == ADRASTEA_DEVICE_ID) { > ret = wlfw_msa_mem_info_send_sync_msg(priv); > ret = wlfw_msa_ready_send_sync_msg(priv); > } The problem with applying this approach is that here the discriminator is the WiFi device ID. WCN6750, WCN6450 and this ADRASTEA are different WiFi/BT chips. However for msm8998 and e.g. sdm845 there is no easy way to distinguish the WiFi chips. Both platforms use wcn3990 device. > > ret = wlfw_cap_send_sync_msg(priv); > > reference: > https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/wlan/platform/-/blob/wlan-platform.lnx.1.0.r1-rel/icnss2/main.c?ref_type=heads#L890 > > /jeff -- With best wishes Dmitry