Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp519804imu; Wed, 23 Jan 2019 00:28:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN4iOnxvaqB6VyvO/gq1LIKj/b1nojVV9y1lnkqqL97GvoDn5fWXaqItIm/ciBRhUPxP4ZOk X-Received: by 2002:a63:de46:: with SMTP id y6mr1187305pgi.198.1548232114405; Wed, 23 Jan 2019 00:28:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548232114; cv=none; d=google.com; s=arc-20160816; b=E01qm7i3h62yKd6sFVD5JmS8f9xMBbBcjayJzM9zB3pvdMeRTKNcB5qnPJq+1Qot7I 1ppwFy4XylsRcUD9cvpJ5/DSlRukQyk3XcNL+Sh9UoFSKbn1Rx6PLsjb47jpktL/ZN6L g+mcIcrdDsT1DUa7av5o5GRg6zB8Iv6r5zkh47OHPVVZTshLGj4s7/eddaHVnGHvjBFv VNCPCQxqALKom53pJJwVPhp0/9oUt9ly0SKnVo9ToL96t3q/mIvdH63kxIZdb6bxPGyV fXfGJQrUiWyBVcUMAKnwA26dhWGsVMdizElGUtEsk/jYzyeRrM/smwEiIYqPbc3Ql/gz CGBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=meVMRgsTYcqgFAT9IVIUB3oG3QcDW4crpl9UWZTS9Q8=; b=cPBkNmCryU5IJMW3chzTjYYYwY+MgafSTNmaW7y1gBjSL+vlU+prcdUMTPhVq98FF3 FWG0X4KhuIxf6jZ1sbdEtCObp77QawbA9bcGhpbqIUfXrwRsUxixUcYL7VDU2mQo+yWO sQVnWSjNaXBkLNvO9vzZYmRHa3bhz2aylSfsO6MWJb3Nw5V0nbK8UP4GJVtrpP5jyPdQ pGTCVDaypgq2rFVstJXyAAvQ2tovEsrtXT0AsCR96zwmlrZahj1X+AKq0FFKaiU4wdmS wMhM5i1OwMPErxo8y7p3vMdeKyqB3X2ylOUJV4W0Cv6Eh6SRECyczxs18XxLtdTlGJva 3irA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=iYzInfyx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12si18270383pgd.567.2019.01.23.00.28.19; Wed, 23 Jan 2019 00:28:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@samsung.com header.s=mail20170921 header.b=iYzInfyx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727077AbfAWI0y (ORCPT + 99 others); Wed, 23 Jan 2019 03:26:54 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:51926 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726191AbfAWI0x (ORCPT ); Wed, 23 Jan 2019 03:26:53 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190123082651euoutp01ad08e1a7ddb145a598d83399ce1fb6f6~8bM-PyiSJ0646706467euoutp01j for ; Wed, 23 Jan 2019 08:26:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190123082651euoutp01ad08e1a7ddb145a598d83399ce1fb6f6~8bM-PyiSJ0646706467euoutp01j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548232011; bh=meVMRgsTYcqgFAT9IVIUB3oG3QcDW4crpl9UWZTS9Q8=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=iYzInfyxUMYZYikgQ5bswFrA2Ul0y3HHS4GqNeZ1pNebQ7iygI+7qrbi4IiwoXEG+ Ho78FavUxL7o7euStj5xgfpfwe9//BGcbINXnpdwwkfDlyjR6RyMP91j/1W0dL6xeX cz8IdsP7PrS/KFBluJR9k+otuVL8QXR/1QD4SOA8= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190123082651eucas1p246d5b28a7e2c92145588f8254105f555~8bM_9FbGM1835718357eucas1p2P; Wed, 23 Jan 2019 08:26:51 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id D4.78.04806.B45284C5; Wed, 23 Jan 2019 08:26:51 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190123082650eucas1p243ce21346a00e9b3e9eed2863cd3d280~8bM9zCFET1834918349eucas1p2N; Wed, 23 Jan 2019 08:26:50 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190123082649eusmtrp2420e7092af5722c0e26899adb162acb3~8bM9keoC62287322873eusmtrp2J; Wed, 23 Jan 2019 08:26:49 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-eb-5c48254b4a56 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id D3.C2.04128.945284C5; Wed, 23 Jan 2019 08:26:49 +0000 (GMT) Received: from [106.116.147.30] (unknown [106.116.147.30]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190123082649eusmtip1244f2cda0f9e9080aedfd3f46821b3e4~8bM8zvwQT2571425714eusmtip1C; Wed, 23 Jan 2019 08:26:49 +0000 (GMT) Subject: Re: Regression: spi: core: avoid waking pump thread from spi_sync instead run teardown delayed To: Geert Uytterhoeven , Jon Hunter Cc: Martin Sperl , Mark Brown , linux-tegra , Linux Kernel Mailing List , linux-spi , Linux-Renesas From: Marek Szyprowski Message-ID: <47b23e55-11b7-3d44-d611-8d6120139d5c@samsung.com> Date: Wed, 23 Jan 2019 09:26:48 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Transfer-Encoding: 7bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDKsWRmVeSWpSXmKPExsWy7djPc7reqh4xBu+ucVhMffiEzeLZrb1M Fi2zFrFYfH/UwGRxedccNoutL98xWTR+vMlu0fllFpsDh8emVZ1sHocOdzB6PNrq79Hb/I7N 4/MmuQDWKC6blNSczLLUIn27BK6M5u15BV+FKu68PM/YwLiAv4uRg0NCwETiy8/ALkZODiGB FYwSM1uLuhi5gOwvjBInbjxlg3A+M0qcm7OMBaQKpOH/6kuMEInljBLXl75hh3DeM0pMWvaG CaRKWCBT4tD/iWC2iECQxIYFW8A6mAUmMEm86m9hA0mwCRhKdL3tArN5Bewkuv/fYQS5iUVA VaK/JQzEFBWIkWi9zAVRIShxcuYTsCM4BQIlLnzZxQ5iMwvIS2x/O4cZwhaXuPVkPhPIKgmB bewSRzseMENc7SJx+/xyRghbWOLV8S3sELaMxP+dMA3NjBLtM2axQzg9jBJb5+xgg6iyljh8 /CIryEXMApoS63fpQ4QdJT5fXsEECUc+iRtvBSGO4JOYtG06M0SYV6KjTQiiWk1i1vF1cGsP XrjEPIFRaRaS12YheWcWkndmIexdwMiyilE8tbQ4Nz212D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3aOL//iSfXcqN9i7sbLkSYfjd3+BLFev5MmlTrinsBu4963dgt/+uLsgq/q/fJCiHW pndWunOmcmr/sHnCm7ZX5MK0CgbpWSmLZvPqzrWQzCyN9TB7z6jAHRxQ6X/i9WcfH/Gq7veH bJVYijMSDbWYi4oTAeNO1G/UAgAA X-CMS-MailID: 20190123082650eucas1p243ce21346a00e9b3e9eed2863cd3d280 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190123082650eucas1p243ce21346a00e9b3e9eed2863cd3d280 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190123082650eucas1p243ce21346a00e9b3e9eed2863cd3d280 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All On 2019-01-22 10:36, Geert Uytterhoeven wrote: > On Mon, Jan 14, 2019 at 4:36 PM Jon Hunter wrote: >> I have noticed that system suspend has started failing consistently on a >> couple Tegra boards over the last few days with the linux-next branch. >> The following error is seen on on entering suspend ... >> >> [ 58.222033] spi_master spi1: could not stop message queue >> [ 58.222038] spi_master spi1: queue stop failed >> [ 58.222048] dpm_run_callback(): platform_pm_suspend+0x0/0x54 returns -16 >> [ 58.222052] PM: Device 7000da00.spi failed to suspend: error -16 >> [ 58.222057] PM: Some devices failed to suspend, or early wake event detected >> >> Bisecting today's -next points to commit 412e60373245 ("spi: core: avoid >> waking pump thread from spi_sync instead run teardown delayed") and >> reverting this on top of -next fixes the problem. I have not had chance >> to dig any further but wanted to report this issue to see if you have >> any thoughts. > I can confirm this on r8a7791/koelsch: > > PM: suspend entry (deep) > PM: Syncing filesystems ... done. > Freezing user space processes ... (elapsed 0.010 seconds) done. > OOM killer disabled. > Freezing remaining freezable tasks ... (elapsed 0.009 seconds) done. > spi_master spi0: could not stop message queue > spi_master spi0: queue stop failed > dpm_run_callback(): rspi_suspend+0x0/0xc returns -16 > PM: Device e6b10000.spi failed to suspend: error -16 > PM: Some devices failed to suspend, or early wake event detected With recent linux-next I've got a similar issue on Samsung Exynos based Chromebooks: Peach-Pit and Peach-Pi, both using SPI for communicating with regulators via chrome EC bridge: PM: suspend entry (deep) PM: Syncing filesystems ... done. Freezing user space processes ... (elapsed 0.001 seconds) done. OOM killer disabled. Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. printk: Suspending console(s) (use no_console_suspend to debug) ... spi_master spi2: could not stop message queue spi_master spi2: queue stop failed dpm_run_callback(): platform_pm_suspend+0x0/0x54 returns -16 PM: Device 12d40000.spi failed to suspend: error -16 PM: Some devices failed to suspend, or early wake event detected Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland