Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp377571ybg; Wed, 3 Jun 2020 03:09:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy917qaXQEq2GgMiWxWj/GorRkKVUFTdGdMsPfdDjSyM7rgPYRGXdrhZOmf2Eant76V2kVf X-Received: by 2002:a05:6402:30ae:: with SMTP id df14mr22036991edb.310.1591178991084; Wed, 03 Jun 2020 03:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591178991; cv=none; d=google.com; s=arc-20160816; b=biz9PAbmX7BVLsyrb5OvN88Ft6x6Ld2KNxfTbU61FAwhNdLdeNlW79iWwVq8UgexIr gfsgaxGz9C2c3Biz3SCS41akUTtglmhc2JkstTAwFIi/yzAmVnUB0VSpIYYmFUdXY8KM gspOC/ZS38uV9MGM/G78EJCEH/DArfkqU6gNqgdU6nDXzD4AJxq2w5nErB3B4PGKefOY AdpA4Jo+RNXJdQaXjVYHUlKguj8/eiJCYAaXiK7v7una1NIDtHWVJDVSCf9JSlXDfnrG 0nQt7XjqDrxvLssvdeWYcyyQm6QDopg5cMh99S5w59KdLLyWfX+/GAiTlDgUCq3D+ghQ R6/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=uyzsI0JW6ZqWgRjfRioirvwF2C7h2JnRAHdFXXPljts=; b=pbstuln1wLAz692nq0PE2dnyn1BhyAFsza0d8prNzzyTZcGilASutND4l53awfBxuq hQ6F7AT00joMbMSEXm7AShcAOJIiZdI0c5VKKJil8M/EE1nCt7yWlYqp6D8dp/ykBMbM vovnS4lSKT1/F9l4Dz8aeIQwA+fCEdjKXNMBzF5CDu101eyriumBXu0inNxIgWCqQkDk J7O6vGkfSEEIJngUHJjE5RJ9tjk8drvrFhCcsWldJ1M2PYRK2hN6XxsIK/Te3y//DdCc M1c7dWgOpsQR7Eey/uwkCErBPqcKq+1K+ekhDfouhzruGxo3NfXUvIzq7ci5RSlgqdkf mvxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=nhVTSB5y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr11si1056748ejc.254.2020.06.03.03.09.28; Wed, 03 Jun 2020 03:09:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=nhVTSB5y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726735AbgFCKH3 (ORCPT + 99 others); Wed, 3 Jun 2020 06:07:29 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:43406 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbgFCKH3 (ORCPT ); Wed, 3 Jun 2020 06:07:29 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1591178848; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=uyzsI0JW6ZqWgRjfRioirvwF2C7h2JnRAHdFXXPljts=; b=nhVTSB5ybpO8RoJvH6Vwv2fEnQSzpCs+jXlDfuDB4IJzdTs87+7MTqls/dnq6rnv0vnNcFwo Z5HT6r1LUmMh2tBGS3S2uM9TFE9iQ2xm6kiy0qhrc7X/UZX5ovnugnCWYcUVdX9oEKq2VJeh gzg36FXRcqVXnVEo8sj5jUeIBSg= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n12.prod.us-west-2.postgun.com with SMTP id 5ed7764f09c3530d1278f8ad (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 03 Jun 2020 10:07:11 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id AD5D4C4339C; Wed, 3 Jun 2020 10:07:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: govinds) by smtp.codeaurora.org (Postfix) with ESMTPSA id EB560C433CA; Wed, 3 Jun 2020 10:07:10 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 03 Jun 2020 15:37:10 +0530 From: govinds@codeaurora.org To: Manivannan Sadhasivam Cc: Brian Norris , John Stultz , lkml , Rakesh Pillai , Bjorn Andersson , Niklas Cassel , Amit Pundir , Kalle Valo , ath10k , Sibi Sankar Subject: Re: [PATCH] wireless: ath10k: Return early in ath10k_qmi_event_server_exit() to avoid hard crash on reboot In-Reply-To: <20200603002715.GA5349@Mani-XPS-13-9360> References: <20200602052533.15048-1-john.stultz@linaro.org> <20200603002715.GA5349@Mani-XPS-13-9360> Message-ID: <4e0642b9882c41f4c10963b265bf6d9f@codeaurora.org> X-Sender: govinds@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mani, On 2020-06-03 05:57, Manivannan Sadhasivam wrote: > On Tue, Jun 02, 2020 at 01:04:26PM -0700, Brian Norris wrote: >> On Tue, Jun 2, 2020 at 12:40 PM John Stultz >> wrote: >> > On Tue, Jun 2, 2020 at 12:16 PM Brian Norris wrote: >> > > On Mon, Jun 1, 2020 at 10:25 PM John Stultz wrote: >> > > > >> > > > Ever since 5.7-rc1, if we call >> > > > ath10k_qmi_remove_msa_permission(), the db845c hard crashes on >> > > > reboot, resulting in the device getting stuck in the usb crash >> > > > debug mode and not coming back up wihthout a hard power off. >> > > > >> > > > This hack avoids the issue by returning early in >> > > > ath10k_qmi_event_server_exit(). >> > > > >> > > > A better solution is very much desired! >> > > >> > > Any chance you can bisect what caused this? There are a lot of >> > > non-ath10k pieces involved in this stuff. >> > >> > Amit had spent some work on chasing it down to the in kernel qrtr-ns >> > work, and reported it here: >> > https://lists.infradead.org/pipermail/ath10k/2020-April/014970.html >> > >> > But that discussion seemingly stalled out, so I came up with this hack >> > to workaround it for us. >> >> If I'm reading it right, then that means we should revert this stuff >> from v5.7-rc1: >> >> 0c2204a4ad71 net: qrtr: Migrate nameservice to kernel from userspace >> >> At least, until people can resolve the tail end of that thread. New >> features (ath11k, etc.) are not a reason to break existing features >> (ath10k/wcn3990). > > I don't agree with this. If you read through the replies to the bug > report, > it is clear that NS migration uncovered a corner case or even a bug. So > we > should try to fix that indeed. > > Govind: Did you get chance to work on fixing this issue? > I have done basic testing by moving msa map/unmap from qmi service callbacks to init/de-init path. I will send patch for review. Reason for del_server needs to investigated from rproc side. > Thanks, > Mani > >> >> Brian Thanks, Govind