From patchwork Wed Nov 2 08:38:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1698050 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4N2L085xfdz23lm for ; Wed, 2 Nov 2022 19:39:04 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1oq9Gx-0005Ne-Ca; Wed, 02 Nov 2022 08:38:55 +0000 Received: from mail-ed1-f41.google.com ([209.85.208.41]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1oq9Gv-0005NN-7h for kernel-team@lists.ubuntu.com; Wed, 02 Nov 2022 08:38:53 +0000 Received: by mail-ed1-f41.google.com with SMTP id u24so16074550edd.13 for ; Wed, 02 Nov 2022 01:38:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OfqKCdV4kTNlWVRaAHm+URM2TYnPARtDNPk6Bq3OGGI=; b=My/vZaWbqajnKcP0eHGnh79ruq+eKP4YxLqgBOEay6oDH7u1AvvRvl1uEk98YYVrxa Mg0jCD5HUdVCEomm1MW1Dn4r1I2omfcCZN88id5ojghzLeeuZ2yZoYey7RAersyWbyR8 jMTTlZUjBH/hM4xVljRGbym3i/uKoyKBkuZhgGrFwVUC8xMPJW46XGAWuzVwMsEYFhfM tV32YmKEfUJfl046T/3OuLTvMjhRMwmupZRp3upeMsJtDxG/fuJZ+CA1WDtB7WX8me4B egxBDq0tHvbXHbbgD6a+R2e/kOI5EtSp4xemQDeDzmLn/AcE81wRYIcb3gVJtWqk40b/ 3a4g== X-Gm-Message-State: ACrzQf0lRC4ifOAmTnCNO0XAlPH9pNHgZhdiI0/ImWskZuA0GJtlXL+U qdp8f5GbJov+Og0MaRCHcaDqx+VSKGpAet6M X-Google-Smtp-Source: AMsMyM61M8Hl+/oqlYtUwEFKA0t7hwzrovoP2IQ2Eudz1PdARNCScqe7I2p84fEn6nDaOhubGR22Kg== X-Received: by 2002:a05:6402:440f:b0:45d:297b:c70a with SMTP id y15-20020a056402440f00b0045d297bc70amr23437600eda.187.1667378331953; Wed, 02 Nov 2022 01:38:51 -0700 (PDT) Received: from localhost.localdomain ([213.29.99.90]) by smtp.gmail.com with ESMTPSA id j9-20020aa7c0c9000000b004587f9d3ce8sm5485333edp.56.2022.11.02.01.38.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 01:38:51 -0700 (PDT) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH v2 0/1][SRU][Unstable/Kinetic/OEM-6.0] Fix suspend failure on t7xx equipped platform Date: Wed, 2 Nov 2022 16:38:49 +0800 Message-Id: <20221102083850.550342-1-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.208.41; envelope-from=vicamo@gmail.com; helo=mail-ed1-f41.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: "You-Sheng Yang (vicamo)" BugLink: https://bugs.launchpad.net/bugs/1990700 [Impact] Fibocom WWAN FM350-GL equipped platform fails to suspend. [Fix] Full t7xx driver is still under development and some of them have already accepted and merged in mainline kernel. The following commits are once in the mainline and are reverted in v6.0: d20ef656f994 net: wwan: t7xx: Add AP CLDMA 007f26f0d68e net: wwan: t7xx: Infrastructure for early port configuration 140424d90165 net: wwan: t7xx: PCIe reset rescan 87dae9e70bf7 net: wwan: t7xx: Enable devlink based fw flashing and coredump collection The first patch implemented the other AP-CLDMA, and with that applied, platforms in question may suspend and resume normally as every bits are in position. However, while these patches had been reverted for another revision that is still being worked on by the hardware vendor, a minimum, sauced patch is created to work-around this first to meet project schedules, and will be reverted and superseded with a final, mainline landing revision. [Test Case] Trigger suspend and there should be no more suspend errors from t7xx: mtk_t7xx 0000:58:00.0: [PM] SAP suspend error: -110 mtk_t7xx 0000:58:00.0: PM: pci_pm_suspend(): t7xx_pci_pm_suspend+0x0/0x20 [mtk_t7xx] returns -110 mtk_t7xx 0000:58:00.0: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x1a0 returns -110 mtk_t7xx 0000:58:00.0: PM: failed to suspend async: error -110 [Where problems could occur] The t7xx driver is still incomplete and we're staging aforementioned 4 patches in internal experimental kernels for development use. [Other Info] This affects Kinetic and above, so only Unstable, Kinetic and OEM-6.0 are nominated for fix. Sethuraman, Muralidharan (1): UBUNTU: SAUCE: t7xx: skip suspend to AP-CLDMA drivers/net/wwan/t7xx/t7xx_pci.c | 7 ------- 1 file changed, 7 deletions(-)