Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2105701rwo; Thu, 3 Aug 2023 04:58:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlFin+KbSyHX8cRJPvKLGEJdaE/depBJ8qmdX2UuAhqzhPpwAWu9fAwa1XtO9UkcPXBQ0UId X-Received: by 2002:a17:907:2ce9:b0:993:d7fe:7f1d with SMTP id hz9-20020a1709072ce900b00993d7fe7f1dmr7379788ejc.28.1691063933735; Thu, 03 Aug 2023 04:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691063933; cv=none; d=google.com; s=arc-20160816; b=aXrBzLey0gSyB3FVG3QpJ3SGikKYpBTi0xoXovMUduE66VVsZ2AS2qxBDleBuRYLq4 4wBKP25ihbUjMpSkZufoNIl9ZLxFgJ7CvbZ4awFtTni3AX8c+j2qNRMROtEOc470xRQb sCjh6j4WosBaZ+wYI45NT2cMtkFkmoSbnfyE767d7R1uX9rE4ZOC+ZmU7auPq9x6++rd z81tCvGJj8Dwf6mulSoyAhmBzef7MzqhElWOrKDGldeqIk8yBHDRZLEHUXBiRnF82nAV +xEQCxkOPUumy25Luk600vY+UavfnHl06IuD11gMmgrgXjeB7eqC0FMoWElJ+YcsCgtO zi1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=/JwdHFSbGjaLKZz1K+VV3/ZtZi1334huHSmJyTvRBpI=; fh=HByH4kpDkildgdSbmkjug2ic4H8gJnIo2i9K3xNihmc=; b=IX5luUP5etzY+um4X27z9q/AAFvbT7fDqmtHuUIH9ebu4raju2wTA+ZzX4TsLqicsR 33U1SuApPZSstuVKobQtOpJW/gzwFiFjAmvEasnzXfhuyAMiruYeFRd2AeRthVuxn06J Y+AGtYLuNAFR9MvVEC3VblgKr+/W8ErBBiM3UIhzcrVLlSvFADWLQdyxQoyUV3jkoMEc NQWEmbX/9nzMGG8Wb/UAspeBuBGfbrMLFE0bgiodWUxFMTVGGmObEG2rRJtm7LYu24r9 cYDiF1rbr+yGCVHqCFCmyQvlSpFrkz5kvHldA7xAFPbyiIkiHQvjsQwqOM//kUsnxJNf eFOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HiX0gQle; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qu12-20020a170907110c00b00993470682e9si11698227ejb.739.2023.08.03.04.58.38; Thu, 03 Aug 2023 04:58:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HiX0gQle; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234541AbjHCLc3 (ORCPT + 58 others); Thu, 3 Aug 2023 07:32:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234572AbjHCLc1 (ORCPT ); Thu, 3 Aug 2023 07:32:27 -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 DEB9F1FCB for ; Thu, 3 Aug 2023 04:32:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 628F561D29 for ; Thu, 3 Aug 2023 11:32:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08F0AC433C8; Thu, 3 Aug 2023 11:32:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691062339; bh=2mgGVC2Dfs7rGuoAE5V9tx/SPrTMRLD/AfsO+GTjpTI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=HiX0gQleE28pWg1ATJ5Anxo5m1b3U4oe4myCn0Ux9C/9gkdmBTynMVkV//dn3cZjV iQOxHR7vjpGq2wET7Hue9xS/Ot8YklCZCAf3jCBrrP42t179BIM8dKgEv0nyRyNSrQ XcBObVQV33w2opNKEMVWn1VNhTmmUH+GiGQJpNatl5lktysnB+j9Tzl4CSWeNg65SW W6Imemh1QF680itn99b8o9NR7xKObZLGe1NhE3zZUuixKlFdC4FhX12nBnizWqAvA0 ff1c5JO4/kUKinxO7fvorrYO6nvQLp01oewOXjdZOyAaWcxfvCbLULh0mrYpcxsOvq 88L/C8ycNNQ2A== From: Kalle Valo To: Wen Gong Cc: , Subject: Re: [PATCH v2 1/3] wifi: ath12k: configure RDDM size to MHI for device recovery References: <20230721055305.20420-2-quic_wgong@quicinc.com> <169105464227.894438.15435946207134709277.kvalo@kernel.org> <1bbe5e90-1f37-3926-98f7-a685578fef8f@quicinc.com> Date: Thu, 03 Aug 2023 14:32:17 +0300 In-Reply-To: <1bbe5e90-1f37-3926-98f7-a685578fef8f@quicinc.com> (Wen Gong's message of "Thu, 3 Aug 2023 17:40:39 +0800") Message-ID: <87msz8tl8e.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wen Gong writes: > On 8/3/2023 5:24 PM, Kalle Valo wrote: >> Wen Gong wrote: >> >>> RDDM is RAM DUMP DEBUG module, it is used to debug issues when firmware >>> encounters an error. >>> >>> The rddm_size is needed by firmware while MHI enter RDDM state. Add it >>> to support device recovery when ath12k receive MHI_CB_EE_RDDM message. >>> >>> Tested-on: WCN7850 hw2.0 PCI >>> WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 >>> >>> Signed-off-by: Wen Gong >>> Signed-off-by: Kalle Valo >> I'm not sure what "support device recovery" means exactly. How does this patch >> change functionality from user's point of view? >> >> No need to resend because of this, I can add that to the commit log. > Device recovery means SSR(subsystem restart), when firmware happen > crash, ath12k > will receive the RDDM event, and then ath12k/mac80211 begin to > re-start wifi/firmware, > after that, the wifi become normal again. > > This patch is to let firmware report RDDM event correctly to ath12k. > Without this patch, > firmware will not report RDDM event to ath12k correctly, then ath12k > will not begin SSR > process. > > I think it should be changed like this: > > The rddm_size is needed by firmware while MHI enter RDDM state. Add it > and then firmware will report MHI_CB_EE_RDDM correctly while firmware > encounters an error, then ath12k could start the device recovery process. How about this: "RDDM is Ram Dump Debug Module which is used to debug issues when the firmware encounters an error. The rddm_size is needed by the firmware while MHI goes to the RDDM state. Provide the size to MHI subsystem so that the firmware restart works when the firmware crashes." -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches