Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp22736lqp; Thu, 4 Apr 2024 06:14:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVrkeWrFAc5/DNo64cxXNR1wQ3G/nBbt+2zj9NeW4+IdOacDy0ZqinOIfYql0xxDJdqosXaNmUCjP+B9x2HxOBBa9301/K+1UkHljfUWw== X-Google-Smtp-Source: AGHT+IGxn07/IKmjmHOb/JwmyKqelO9hj69EMN1i3JCjDBbeqCFzyTheGrbWimPO7SOfsXN/+b3J X-Received: by 2002:a05:6512:36c2:b0:513:e249:65fc with SMTP id e2-20020a05651236c200b00513e24965fcmr1661278lfs.61.1712236460116; Thu, 04 Apr 2024 06:14:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712236460; cv=pass; d=google.com; s=arc-20160816; b=qbMrfG4P87aS54xSCE3pvK2em+VcT92PGX8rIAZHVHw6rns/+eBFuHfpry8gaZ5xD6 JmV2GMIgox99lFd4e2D2/TjV/fWDxtDMzjxe6px1Q8pDLKy0OJFG72rgOkAys/r+x/2W 2EtQJ+7mIs6CrTttF7iOa4dJEHUyuCcSmkgVbOGFxqnG2PHHgG1Xtfz1KQzb/52jn1Ek WeWBpqE2PXnCTXzBlvsGTJFYBm+6nqKfvHv0YYTFNIWZGXOD+7+s0WzVXFwm2Q0/twtp mVjGPg87yf6cYLU8hCKp/RA9FRz00L86mpYCPGEkMHXBjtfw0Et1cnLE8Id+HP2c7C03 Xxvg== 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=tknSODYMU/l/2VPgjwwryjgmML6llAA/U7CzR6kpVHI=; fh=1Y6RKfLoK4BWQvlHDmDtIZZu/jYMXjcTuK/Hd1RDVu0=; b=R/+FhXTKism6mXzg04bSsa1Ur1RfnPs8lZ50RH/YqsjB2A9K2zqEV6UmqKpnvl+N8q 2z74GzyaIy0Dhsd843nFjT51jCj2At3/XdEdCzZxMI8y7lOKeWyu5C4hJbrcyouo9DOq vHX7zpN1lx6Ms7LD4Y+vIKhZYNhXk8uC95DTrHEYCjHS35GKKCTP8sFvdUmUUGQ6x2gI wyVsclb+Y/GXhIRZQcs5oLhqiJMX6Q9eTvloHEdi2CqwvihZuu//FdGq8qLNVjd2ZsfL Q0XOL7VcOIRCyROTxwFdxNfpevmfv0nYL839uQTxoLEpX8/jglVyfpnm8mZnsb4FsvZs 6DFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QCwQTXUs; 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-5873-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5873-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b11-20020a056402350b00b0056e13602f7esi858478edd.583.2024.04.04.06.14.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 06:14:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5873-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QCwQTXUs; 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-5873-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5873-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6FD5E1F23009 for ; Thu, 4 Apr 2024 13:14:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E86E1272A3; Thu, 4 Apr 2024 13:14:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QCwQTXUs" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) (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 70899126F2F for ; Thu, 4 Apr 2024 13:14:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712236455; cv=none; b=Y049jo0w/dfmlqn5Ut8bxgtUT6zk8OEqNhJ/CiNaivggrT+DHQcFdQy1L3JOJBNW2KIKk5ttLbKoE+AgrDDyEdYT47VC7+1/5vVZKxNHnEh+PGStthQpUH0SZ8QExo7d5clQ5hoZ0M50xwo6OavxYR0ekvXYhMwRzM0JF0tZIkI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712236455; c=relaxed/simple; bh=TvVo9cCYyR632GL7Cc0fqR3Kh9+qrXT134eJYEYfMZI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=pc9IeTk2zxUfps/7moCWXdwFTxZGk3lzjt+MgeVjk6zLOoU03PXYWJL786niHq7knShQx31t6UvgQ9H+9w9i7K5+ccYTmzaKoKBo96heKVrg5LKjszyDy3yVU+0CcZN873H6TP/lkkb2ttvSMLJNID81ryFmOTDRwSbHVDMZ+58= 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=QCwQTXUs; arc=none smtp.client-ip=209.85.128.169 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-yw1-f169.google.com with SMTP id 00721157ae682-6152be7c58bso10527437b3.0 for ; Thu, 04 Apr 2024 06:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712236452; x=1712841252; 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=tknSODYMU/l/2VPgjwwryjgmML6llAA/U7CzR6kpVHI=; b=QCwQTXUsjxHVDw6kc1QhrXrHBl7OZSxalSAqJgIWQorp1SSNS7tcpYj8+KxuymXMAG 3l5SZy8RPm9EfT6De3dAeiFjf3rZXtzdqlhG1xVjxEluN+zqn0hh1qLBbr8wzi4wDyUE v/juRr40Bpln/wr5QopjwTep8aCQmeqrckSgU31vPKcIS3MK1S5G8RxITI2xM8FGhd85 MYoB+MALAEt1iXahOqSnrsDvMZlx/JSll/y0l6OuqQ9A2OYg6xOZ6B7DgurpVWEk44FU kwSoXsUJrs4RFC/HAE7AcKksifNIZldTWhXu3qeH66VBSQ6nK96C7jiwsc8ATq3wvUYl iaIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712236452; x=1712841252; 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=tknSODYMU/l/2VPgjwwryjgmML6llAA/U7CzR6kpVHI=; b=NN0ahR1P54++4FkRjflNCDlJVX/1Kl+zC8hltUhCPV9knRR0s5pX8rNlZS6bvgsg/d 6vf6fILwtzpH4Sn+5WggzfTUgziwzIdNJ8Jyc+DdZKwzOvETQ2CB1Kh8eQWrD0xmy+ke hOKAHa/lg9x8UvOkYiRe+F9FZJx3XgU001QAdp1m2WKMYRlyRZbnDQd8V/VauBhomsPO sZAFESt4q76InvryzV8ZVJfEJphY8yFy9/afRHHimE8+BjARS5BfL/ZUj8dOHiWvcx9H HMEpzAT/VHCUULva0rsi02/2ccwYrsDlRRI4rHhbFuFT1xOhdcXPT0P6tvhgo49Sh9J9 WU0A== X-Forwarded-Encrypted: i=1; AJvYcCX8FKU8VuSj4/BifgjgAVIKOF9lg7YDFxpJXsLuCKow2FaCSs93JWINAUr2J/MBjaGj9KSgvpUOj92dqUKtEEltU+itSFjpKKRAGOnfrGA= X-Gm-Message-State: AOJu0YwH8/Jci4AJKAfY73qyfYQBAhbXtul8PjSdz6cUQQun/7j8i+AS 1+PzMSLytEO0YyEADuLZW/I7mY3YfwNDTesi4iOhdEWDAYTVL+QcHk5u1JREthrbZc7XgF1lXoO 8rSBzksz/RvsneH6Q0nisuvQpqleg4GBr+/motw== X-Received: by 2002:a25:2e4b:0:b0:dc6:8534:bb06 with SMTP id b11-20020a252e4b000000b00dc68534bb06mr2340069ybn.17.1712236452434; Thu, 04 Apr 2024 06:14:12 -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> <87ttkh49xi.fsf@kernel.org> In-Reply-To: From: Dmitry Baryshkov Date: Thu, 4 Apr 2024 16:14:01 +0300 Message-ID: Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: msm8998: set qcom,no-msa-ready-indicator for wifi To: Marc Gonzalez Cc: Kalle Valo , Konrad Dybcio , Krzysztof Kozlowski , Jeff Johnson , 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 Thu, 4 Apr 2024 at 15:30, Marc Gonzalez wrote: > > On 04/04/2024 13:57, Kalle Valo wrote: > > > Dmitry Baryshkov wrote: > > > >> I'd say, we should take a step back and actually verify how this was > >> handled in the vendor kernel. > > > > One comment related to this: usually vendor driver and firmware branches > > go "hand in hand", meaning that a version of driver supports only one > > specific firmware branch. And there can be a lot of branches. So even if > > one branch might have a check for something specific, there are no > > guarantees what the other N+1 branches do :/ > > The consequences and ramifications of the above comment are not clear to me. > > Does this mean: > "It is pointless to analyze a given version (or even several versions) > of the vendor driver downstream, because there are exist a large number > of variations of the code." ? > > And thus, "it is nonsensical to try to "align" the mainline driver to > "the" vendor driver, as there is no single "vendor driver"" ? > > Thus, the following patch (or one functionally-equivalent) is not acceptable? For reference, I tested this patch on sdm845 (db845c), qcm2290 aka qrb2210 (rb1), sm6115 aka qrb4210 (rb2) and sm8150 platforms. I was not able to fully test it on sda660, modem crashes without this patch (there is no MSA_READY indication) and with the patch applied the device hangs, most likely because of the IOMMU or clocking issue. > > diff --git a/drivers/net/wireless/ath/ath10k/qmi.c b/drivers/net/wireless/ath/ath10k/qmi.c > index 38e939f572a9e..fd9ac9717488a 100644 > --- a/drivers/net/wireless/ath/ath10k/qmi.c > +++ b/drivers/net/wireless/ath/ath10k/qmi.c > @@ -1040,6 +1040,8 @@ static void ath10k_qmi_driver_event_work(struct work_struct *work) > switch (event->type) { > case ATH10K_QMI_EVENT_SERVER_ARRIVE: > ath10k_qmi_event_server_arrive(qmi); > + printk(KERN_NOTICE "NOT WAITING FOR MSA_READY INDICATOR"); > + ath10k_qmi_event_msa_ready(qmi); > break; > case ATH10K_QMI_EVENT_SERVER_EXIT: > ath10k_qmi_event_server_exit(qmi); > @@ -1048,7 +1050,7 @@ static void ath10k_qmi_driver_event_work(struct work_struct *work) > ath10k_qmi_event_fw_ready_ind(qmi); > break; > case ATH10K_QMI_EVENT_MSA_READY_IND: > - ath10k_qmi_event_msa_ready(qmi); > + printk(KERN_NOTICE "IGNORING ACTUAL MSA_READY INDICATOR"); > break; > default: > ath10k_warn(ar, "invalid event type: %d", event->type); > > > > Regards > -- With best wishes Dmitry