Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1049416lqd; Thu, 25 Apr 2024 04:51:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXY21WOVcz13QrWjxEG6i8+VpZ8U7BwlsSBUDbJ6OHf+JXTTjU5sGXKFsBOeg5c4jr+6Ieo7QRri7bhQuyNhabQrxBgci4L8pcmqGuugQ== X-Google-Smtp-Source: AGHT+IFaDUHpa7DEQsr2TaXfksZoUSEawjwk0Zp5rTZn5dGQ54+JcLfWk9fYc/TgxAPI2zGX66+Y X-Received: by 2002:a17:902:f945:b0:1e0:bc64:a37a with SMTP id kx5-20020a170902f94500b001e0bc64a37amr2794206plb.8.1714045897560; Thu, 25 Apr 2024 04:51:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714045897; cv=pass; d=google.com; s=arc-20160816; b=lioxmzmqj7XAnrcaq8w5ChQ4goaXezCueLvhI+rXXmPqnkW07hdMwetEf9+jLsKeTs lTjM1RuMfH0sWz9YSCf8cjIZ/vyTxrqKGv5WCcLzIkK7veiguXegP7+ozg7k5mQ7Ow12 c97rdZe0ivXDOxZYfnkwPrpjYxgfe0y3OyXoYpJRMJFMn0sEmE+oaepBiljyzXNahuLl cgeQcVant5yYSd/pIIFud0u/GNr0nSMvMV6ZsNZ/NDDUXtyUAQiY+zO0eDExNka5OwJf LBiBUBr4L+v0GjAe3hO1JLfzNd0K1lPb/Wsv7h1/5TrrSyDnwWg5X89/xYlzg1aTqC4w jPzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=HaiwvUlPF7WAHLG6FS4I2jCzZYZaAZS8Db4/cIEwfh4=; fh=efBTy/EL4uDVB2pnz4MLOfSHy6AniA8ZYTAJsLkjLhY=; b=anwt3OttyfXDpHqJbaMGDvELDfNcJe/dRkS8Mey/jO9KQjkdFCBiltOd+zIMMhWAvE GhfDrbtFFn5svIam5MMwkYCzJRaRcIntGmZpPfHX1nyln43a3FJPOqL6xTkyWB0ETGmp i7FhZR9clxAHxJGFhMFtlEDxxTkMdmPS16nE5FcJvPsxqi85qqyNXcmlIjWAlsxckXWw rFcT+/qRaVhj9HK+U8NyK1fEHefJWMwAWbq4NWJyF7dBlBosSyTbAm/5B0v8knXB8Q75 TEs9dHT/RFwszJJsamjgSHR49bqxmgV9x/B9AdvARl1aEJLPzvY4SxxJP+3Mhmy5nBpO 3XUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@freebox-fr.20230601.gappssmtp.com header.s=20230601 header.b=dTyOCpXn; arc=pass (i=1 spf=pass spfdomain=freebox.fr dkim=pass dkdomain=freebox-fr.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-6847-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6847-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h127-20020a636c85000000b005d8b57bc704si13244756pgc.389.2024.04.25.04.51.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 04:51:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6847-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@freebox-fr.20230601.gappssmtp.com header.s=20230601 header.b=dTyOCpXn; arc=pass (i=1 spf=pass spfdomain=freebox.fr dkim=pass dkdomain=freebox-fr.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-6847-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6847-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 55969289373 for ; Thu, 25 Apr 2024 11:48:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37ED512AADC; Thu, 25 Apr 2024 11:48:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=freebox-fr.20230601.gappssmtp.com header.i=@freebox-fr.20230601.gappssmtp.com header.b="dTyOCpXn" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 5DB058526B for ; Thu, 25 Apr 2024 11:48:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714045735; cv=none; b=DucrsG5RmHUvmQ9Kr4kBfR7tQxPL2N+XaG2LpalkF5d5jTGhfinPhjNJU5JGdPQF/gUW/OshLUoRDPs7uXzPypv2rBm6FG/d6tnv3gbj76sogyOvqgTAWXeY0Cn25aTSI5pCoH4Nuh15Jq23u4SPDQpRwXTyZY99EDPWKC9JbFo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714045735; c=relaxed/simple; bh=iRqZJGzbLO7immaT4nudfgfXnI3zAGjQPmg5oNwp8Jg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DHWyCDqYf66YJkdF3iBWWZyXOva19W+bTZRupCxdp8RwkFLeqWrLYyApzv1NOkrvf7G0w5m1YypfS/uaeyj0ArV069YU6+L+/y1dANOB3kwu+AVcUoxokvsylMahw6pwmn4mSnEbdSrmpiG375FfjAZiIsWZslqh+dwreTQmpQ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=freebox.fr; spf=pass smtp.mailfrom=freebox.fr; dkim=pass (2048-bit key) header.d=freebox-fr.20230601.gappssmtp.com header.i=@freebox-fr.20230601.gappssmtp.com header.b=dTyOCpXn; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=freebox.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freebox.fr Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-34b3374ae22so860823f8f.0 for ; Thu, 25 Apr 2024 04:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebox-fr.20230601.gappssmtp.com; s=20230601; t=1714045732; x=1714650532; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=HaiwvUlPF7WAHLG6FS4I2jCzZYZaAZS8Db4/cIEwfh4=; b=dTyOCpXnj5OIawdlvw+4hKKvxtK2Lv8kA3qTHHWaPQ2ygYnudRZ2Smpo0El6KIIndF 24nVoGpAVJoOZRs9rloecX4UyAJzDmzRIIXH4FEIqrDuLkQ2QJJi+MqxszhiyjcKFm/0 doX/WjCWimogxslA8Ba+wjKTmbP76ZV9kn0F70ur+AILRDzGS+9b8Yq25WBRLeoHVWfx wWXMgkCDbi80LSrRH2Ee48jPkL+81GR6J0MAR5oQ+mapHGQUFbPCgVTEv1SNz4IDmamf 8ynCc/K0KRWfgwyuEoW1KrNFv2LEX7TR/8E3B3M7fkQzqoFBvfZxwalrWMwW/Kabj5lN IkBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714045732; x=1714650532; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HaiwvUlPF7WAHLG6FS4I2jCzZYZaAZS8Db4/cIEwfh4=; b=Ku878K+rb/nsDmB8UncHaOm4v7rh1Q5rPDIuXXvnoLHoNQKDzmfD8ZA522WzmAZqkM aSYMzuwVYhoSr9AFhwelJk1vzGBhA5lgwligwX/dIZkOo//pMgnt/mBPAKsfa6Ay5XaV wjMOwlKWt2Yfn7N81kbaE76JacnZFFVh0aIZlnNVZhYYegGnaf3VvEeBL/fkOEQMhEAd DsXjdCabmths/yAS5MR+xgzsjp3lmuxqVBftBDyY4VQLVaO/RhFt+SM3fI/pOi1LxQhL 27mH87blBxfAbmGcLwlK6hhUYQDRd9Zbv8V4fhlPgISU7uIOCfqupUNXYQVNLruELV/X MGCA== X-Forwarded-Encrypted: i=1; AJvYcCXOnMUSWDgYV0lT8Ftp7x4RdD01A9i9vUBNoJXcM6msINQg+fyCQO9wV5CwVpPEwO8Rl5/0eYpKc4kFhYpclcgmlz3xPiAKA3NSKfIHcsA= X-Gm-Message-State: AOJu0YwvgDSPTlC0e+frSyxn7VJOHLUmyQEGmcLSuz2Chj/X6Kmf55ID /Hwx2v6QCaGeTPFOA7mMgd4STkD14LuUxKsGRNN1PFMaImfS9+h58xA0j4RSg8w= X-Received: by 2002:a05:6000:12c3:b0:34a:d130:611b with SMTP id l3-20020a05600012c300b0034ad130611bmr4607478wrx.17.1714045731749; Thu, 25 Apr 2024 04:48:51 -0700 (PDT) Received: from [192.168.108.81] (freebox.vlq16.iliad.fr. [213.36.7.13]) by smtp.gmail.com with ESMTPSA id p17-20020a5d4591000000b0034658db39d7sm19844255wrq.8.2024.04.25.04.48.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Apr 2024 04:48:51 -0700 (PDT) Message-ID: Date: Thu, 25 Apr 2024 13:48:50 +0200 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: msm8998: set qcom,no-msa-ready-indicator for wifi To: Kalle Valo Cc: Dmitry Baryshkov , Konrad Dybcio , Krzysztof Kozlowski , Jeff Johnson , ath10k , wireless , DT , MSM , Rob Herring , Conor Dooley , Pierre-Hugues Husson , Arnaud Vrac , Bjorn Andersson , Jami Kettunen , Marijn Suijten , Jeffrey Hugo 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> <87h6gh406w.fsf@kernel.org> <871q6tu6bn.fsf@kernel.org> Content-Language: en-US From: Marc Gonzalez In-Reply-To: <871q6tu6bn.fsf@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 25/04/2024 11:42, Kalle Valo wrote: > Marc Gonzalez wrote: > >> Do you prefer: >> >> Option A = never waiting for the MSA_READY indicator for ANYONE >> Option B = not waiting for the MSA_READY indicator when >> qcom,no-msa-ready-indicator is defined >> Option C = not waiting for the MSA_READY indicator for certain >> platforms (based on root compatible) >> Option D = some other solution not yet discussed > > After firmware-N.bin solution didn't work (sorry about that!) my > preference is option B. Actually, Option B is this patch series. Could you formally review it? Perhaps one thing I could do slightly differently is to NOT call ath10k_qmi_event_msa_ready() a second time if we DO receive the indicator later. >> Dmitry has tested Option A on 5 platforms, where it does not induce regressions. >> I worked on msm8998, where Option A (or any equivalent) unbreaks WiFi. > > What do you mean here? Are you saying that option A works on all > devices? I'm guessing I'm misunderstanding something. No one serious would ever claim "this works on all devices". Dmitry and I tested the following patch: 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); Dmitry tested several platforms: > 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. I tested on apq8098 (msm8998 sibling). Patch makes adapter work on my msm8998 platform. Regards