Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3673530ybd; Tue, 25 Jun 2019 06:39:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPfjfYkx3l628o2IossQb2fiA6Q3tPfqlefrnH13oG3GwXJcAcC8tWL2ugDeAAb/b989rh X-Received: by 2002:a17:90a:372a:: with SMTP id u39mr32231356pjb.2.1561469990260; Tue, 25 Jun 2019 06:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561469990; cv=none; d=google.com; s=arc-20160816; b=GelGfgRAoQJ3G/QmsO3UxHWfIuXxf1yn24Yc9GTX9VvCC8wKKPz1vyXDMAS14KNEoc 3CDx6LHE66La/51uGEFT3xhEekFSQZPFhlz4QQvSiAvhzDzORNFt/n+3Ug0IqDIVt29L 5KP0C3PvbYlaY5ZbZuzuL+2HP3eFNbZ1zzieR0GN60t9x+ecd6Sz2Q6ec1TPrmY34vcV FD9bgsopjJDqQPb7cwuGhqGPHfymzufem0/ENbqzP4MkJSwsNe301W3c8Xu5SQ8i32ny Shhx0THhBllISz6SjEnMgcO0jVtx6A3fcMGrSEHH5n52+Jf7nKZ5oVzaJOOHe6502PjY FAHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:user-agent:cc:to :references:in-reply-to:from:subject:content-transfer-encoding :mime-version:dmarc-filter:dkim-signature:dkim-signature; bh=dOfklz3LpUIPut0fjjL6rl4/Q6sCzLnZlmkl1r0e9E8=; b=Y/eoHuFVWKaezqF94H6FyqRY5zbBVatD4RM5nzRcBO9OETCMeevVKvuFCydDAk0Rd8 QA73cNl7VIUm6DPvPQeS6yLbztTQwxwPUyeolI9dAy6gSNYHHSOFoysxSiZj8s+D4Ay5 fTg2fEmUwsoSnXhFdF0WZTAFqiKtTCc6lDLUk74aKrkTW0pTdMjODhZsqD9QedsqabiC xUrx5SUAVnABL5onUytLDJKPmbhYUDBHDUkr8CoXoXWc7Kb4E4X64Fx7hg08knF4A45q Ed/0yN0yx2j7/oKh7lkcrdGDMW0tpePhyX86FcSorXzae3T7HETtquN22xfyH5sw1AtF ycwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=KgXcpo5r; dkim=pass header.i=@codeaurora.org header.s=default header.b=Hhe28dB6; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m26si12483274pgv.388.2019.06.25.06.39.36; Tue, 25 Jun 2019 06:39:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=KgXcpo5r; dkim=pass header.i=@codeaurora.org header.s=default header.b=Hhe28dB6; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729896AbfFYNDd (ORCPT + 99 others); Tue, 25 Jun 2019 09:03:33 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:44602 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728449AbfFYNDc (ORCPT ); Tue, 25 Jun 2019 09:03:32 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 31D9F60300; Tue, 25 Jun 2019 13:03:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561467812; bh=um0kHOu56NQbK5nO8lUc7zcQhQj4obdC0w6F4FGf9D4=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=KgXcpo5rkLVxVfTZeUZybrFUh2lr8YmlVrInBwI0DEIQZHuiMu7O/A6ZiFii4co1V ehqVMRJDhhhJGLNAoh5ox2jk5kmd4De3whC4eOuowy+FWEWGNBbArkjYhRciV2Zkup +EXWjGqIdqw0GpgajwRLLNmnl3dkIbdGFZ0fWhUM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MISSING_DATE,MISSING_MID,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id CB62360254; Tue, 25 Jun 2019 13:03:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561467811; bh=um0kHOu56NQbK5nO8lUc7zcQhQj4obdC0w6F4FGf9D4=; h=Subject:From:In-Reply-To:References:To:Cc:From; b=Hhe28dB69sZBItE+56FZ02t2jUHK37GZ4DS8o801xrm5hq1L7vEkvMSUPrae35iXP TmEGYaa35xrRDPDyIe+qRuf1gsIuvBBqzRDgyK/Wbi9PwVHJ0sqUB3HpvUUm0HwoLn oMaN0oXh+Wjd0D4qCGfDnmGL+Mm90/baxBmuN30Q= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CB62360254 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] ath10k: fix PCIE device wake up failed From: Kalle Valo In-Reply-To: <1559180960-13565-1-git-send-email-miaoqing@codeaurora.org> References: <1559180960-13565-1-git-send-email-miaoqing@codeaurora.org> To: Miaoqing Pan Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, Miaoqing Pan User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20190625130332.31D9F60300@smtp.codeaurora.org> Date: Tue, 25 Jun 2019 13:03:32 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Miaoqing Pan wrote: > Observed PCIE device wake up failed after ~120 iterations of > soft-reboot test. The error message is > "ath10k_pci 0000:01:00.0: failed to wake up device : -110" > > The call trace as below: > ath10k_pci_probe -> ath10k_pci_force_wake -> ath10k_pci_wake_wait -> > ath10k_pci_is_awake > > Once trigger the device to wake up, we will continuously check the RTC > state until it returns RTC_STATE_V_ON or timeout. > > But for QCA99x0 chips, we use wrong value for RTC_STATE_V_ON. > Occasionally, we get 0x7 on the fist read, we thought as a failure > case, but actually is the right value, also verified with the spec. > So fix the issue by changing RTC_STATE_V_ON from 0x5 to 0x7, passed > ~2000 iterations. > > Tested HW: QCA9984 > > Signed-off-by: Miaoqing Pan > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 011d4111c8c6 ath10k: fix PCIE device wake up failed -- https://patchwork.kernel.org/patch/10968039/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches