Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp228801lqs; Mon, 4 Mar 2024 23:20:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXBAjC6/bRYartH3eyLxKLwzJwH0LFPURD0M2t+02SLA9nPo506SvWj0CDsbjZENIje8kH0CJif5LdepVjtxSiQxcHOUSLbOmxAG6MHxA== X-Google-Smtp-Source: AGHT+IHQTGN2glAGfJtsb+YqkvIACpvXH5xVLsKe7B4yzYB72Y6izTQmHd8v3Y8RUKi+WOt8Ra63 X-Received: by 2002:a9d:6650:0:b0:6e2:baa2:42c8 with SMTP id q16-20020a9d6650000000b006e2baa242c8mr1121993otm.28.1709623219731; Mon, 04 Mar 2024 23:20:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709623219; cv=pass; d=google.com; s=arc-20160816; b=rqGlGEZfKEF1nIBObI6bKP6CLYWHPiV6KKNsv9N9E0exxBy7zwDK0NZt6zOVByDBOW lPymuNCyzZhLFRfRBk1EVuuwiWqExcByArUh5mUlFPYb37sv1cTSJXAe56G+SRZNbbyC Z6XoGb+Bj/nDyOkq8Cm/F1Kq6kaMhJpSGbati1b3Rrf9Ex9b3I4oB8HXjKNkZcomXk47 8xOQ0LCjnq+PZkv+dhm52BNJdC7/sZ4YuK7DxoQeRyrpmvnkjy5PS0zFCKSq7u0YWKvy YBJaCC9tTPz71A9VOVUJQa+y8R7AedPAi5x7RO+RO21wFJEvlVboFuKvCcPJ4c3WBQLR JC4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:dlp-filter:cms-type:content-language:thread-index :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject :in-reply-to:cc:to:from:dkim-signature:dkim-filter; bh=i0/7wU6maBox3QHG8eiO+M+gy+7QDGcXbrlsWy7wG+M=; fh=VeO/xKrDnxv9wmwu20yx+wRiDc5aXvX+S8S9ri2yU/A=; b=xYJx9N+su1qVuT1o8aXdHIE3CmpE6blElSqz11pSZD3bwkCOTGJiVXPH2N+oKmChPy RC7EMavWAvNjK09SqjcZLW52j1thh6G+Az803JcZFqkqYqzbacCWU5DSmiQo6ZEQ1xo2 dYC9yt07uKF/s7zaVF9T3tT53EW7BC9rG4nbJ8OkG1NGS+3kIkLx9hGtWN3Ct5tPlcxV cvfiGaygRuFcsUpTJUI3de65PpnRLKQXZ1BsDQfnMtzofRGRPdsXzDC2oAgc+KXeBFx6 rwV8mLvogJUdxX3flCxrCOvxuTKNmJa0Fgd9/sZ6vSlbJkE2gadIoNfV9+IkqQsBvr1c SiaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=WD3c54wF; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-91779-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91779-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s195-20020a6377cc000000b005d9b49b7abasi9801475pgc.846.2024.03.04.23.20.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 23:20:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91779-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=WD3c54wF; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-91779-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91779-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E2F6FB23941 for ; Tue, 5 Mar 2024 07:14:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BB954500B; Tue, 5 Mar 2024 07:14:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="WD3c54wF" Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 554C17D3FE for ; Tue, 5 Mar 2024 07:13:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709622839; cv=none; b=jTxOFnHAKa4SontxcGci8ANMr2TsyDsoci51WHBNIIRzKn+5HDNN8JAFEAcVWns4P+rlIWDXYEMJ8edFSsORLoIq16iFvbXdW8WXbi/o5r0l//XwG3ygBNE/eJpMkj13/E1mfhsPYI/fIPTBotah2vKl4zFjREoIjo3KqS6OqKc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709622839; c=relaxed/simple; bh=qjn1MClIVlhpCS2WnOAUFuK98tnfyfZqG2al78vw7V0=; h=From:To:Cc:In-Reply-To:Subject:Date:Message-ID:MIME-Version: Content-Type:References; b=ZnOwmwjXn9kIg3X55owsKcveGZheKqdUE6zI65PE5dVt6oxcHnkmha3NJTvPFAf9BdCMAUPuSdN+JUtkFIAnB7bjH+XvJBRUOnelnAtYIONzuCtlUDozERIsMpAt8etPOEr7dpMI8Z8x7oC86et6zB8HOACFPm/ANTe8r5fQBSg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=WD3c54wF; arc=none smtp.client-ip=203.254.224.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20240305071354epoutp03df26a0ac99118a0fe226d164e466a955~5zOjm-JzF3198631986epoutp03Z for ; Tue, 5 Mar 2024 07:13:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20240305071354epoutp03df26a0ac99118a0fe226d164e466a955~5zOjm-JzF3198631986epoutp03Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1709622834; bh=i0/7wU6maBox3QHG8eiO+M+gy+7QDGcXbrlsWy7wG+M=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=WD3c54wFcGAfwInqvBVUAAi0ILHfepVpx6aey81v8G5lwbhvwDYaWAvrdd+w+XEfB 6RvgnL9qQpvWyJJTnVCv63gUjZTUKQfYTz+XfEKLgwAxIFHOwh+F22w1/lmHO6gpVp gM/vF3ZAbulylHFXO8vc6eAoJjWavBgQKpyKvebg= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20240305071353epcas2p23815bcdcce2643b6616dec4e5d6a5933~5zOjYHsSa3266232662epcas2p2V; Tue, 5 Mar 2024 07:13:53 +0000 (GMT) Received: from epsmgec2p1-new.samsung.com (unknown [182.195.36.88]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4Tpmy93G8Gz4x9Q0; Tue, 5 Mar 2024 07:13:53 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmgec2p1-new.samsung.com (Symantec Messaging Gateway) with SMTP id BB.C5.18994.136C6E56; Tue, 5 Mar 2024 16:13:53 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20240305071353epcas2p4187f5e0311d9bd706c863f38ccf13869~5zOifERbV0955809558epcas2p4-; Tue, 5 Mar 2024 07:13:53 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240305071353epsmtrp2ef2112899a60ebcf642de0a5583771c0~5zOiefrY_2507325073epsmtrp2x; Tue, 5 Mar 2024 07:13:53 +0000 (GMT) X-AuditID: b6c32a4d-743ff70000004a32-c7-65e6c6311a3f Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id CE.34.07368.036C6E56; Tue, 5 Mar 2024 16:13:52 +0900 (KST) Received: from KORCO121695 (unknown [10.229.18.202]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240305071352epsmtip2ea348fecbfe8206b300dec36946eac23~5zOiUQ4SZ3111131111epsmtip2Z; Tue, 5 Mar 2024 07:13:52 +0000 (GMT) From: "bumyong.lee" To: "'karthikeyan'" , Cc: , , , In-Reply-To: <1553a526-6f28-4a68-88a8-f35bd22d9894@linumiz.com> Subject: RE: dmaengine: CPU stalls while loading bluetooth module Date: Tue, 5 Mar 2024 16:13:52 +0900 Message-ID: <000001da6ecc$adb25420$0916fc60$@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQMwipOl/cAOi38P2p1VCUOGtvzp0QMWgtoHrmPNqBA= Content-Language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgk+LIzCtJLcpLzFFi42LZdljTQtfw2LNUg0u3hS1WT/3LarFjtabF 5V1z2Cx23/7DavFuj6LFzjsnmB3YPDat6mTz2P75FLvH501yAcxR2TYZqYkpqUUKqXnJ+SmZ eem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5QFuVFMoSc0qBQgGJxcVK+nY2Rfml JakKGfnFJbZKqQUpOQXmBXrFibnFpXnpenmpJVaGBgZGpkCFCdkZVz8HFPyXr5j94RhzA+M8 yS5GTg4JAROJzpPTGbsYuTiEBPYwSvRu2M8M4XxilPh9/g8rhPONUeLizg5GmJavr95AJfYy SnR82s8C4bxklDi9v48NpIpNQFdi5suDLCC2iICjxIzPl1hBbGaBYolHTYfAJnEK2Ess6lvE DmILA9X0TpoAVsMioCJx/OZCZhCbV8BSovn0eiYIW1Di5MwnLBBztCWWLXzNDHGRgsTPp8tY IXZZSRy7u4UdokZEYnZnG9g/EgI/2SUWdy1hh2hwkTjw/wIrhC0s8er4Fqi4lMTnd3vZIOx8 iZlzbrBA2DUSX+/9g4oDHX3mJ1A9B9ACTYn1u/RBTAkBZYkjt6BO45PoOPyXHSLMK9HRJgRh qko03ayHmCEtsezMDNYJjEqzkPw1C8lfs5DcPwth1QJGllWMUqkFxbnpqclGBYa6eanl8OhO zs/dxAhOklq+Oxhfr/+rd4iRiYPxEKMEB7OSCG/NryepQrwpiZVVqUX58UWlOanFhxhNgaE9 kVlKNDkfmKbzSuINTSwNTMzMDM2NTA3MlcR577XOTRESSE8sSc1OTS1ILYLpY+LglGpgYnzo ws+c8fZEWeTth4z3Ilx9TDLrZ767Icb24k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eZ NsyKe7hcfpGjxBfJbMUfEa7rEr59uSt0tipx650frObOe15KP+dLkxD+2Rt7zVaDvWCySN6X OfZsWX6nHZ2/77ghxvSkJ/JD+Ea+l6mlWVffnD9vImA09Z7r3jtRYn+rRZfyvjZ8VLTw6eTJ x1Uf9e/gfjtlX0KTnvXf6+G/9eZxndu2fUrCLK1Haw45L/hi8/3Mz8ycgOmba7JvKrEUZyQa ajEXFScCAJau2D8FAwAA X-CMS-MailID: 20240305071353epcas2p4187f5e0311d9bd706c863f38ccf13869 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240305062038epcas2p143c5e1e725d8a934b0208266a2f78ccb References: <1553a526-6f28-4a68-88a8-f35bd22d9894@linumiz.com> Hello. > we have encountered CPU stalls in mainline kernel while loading the > bluetooth module. We have custom board based on rockchip rv1109 soc and > there is bluetooth chipset of relatek 8821cs. CPU is stalls while realte= k > 8821cs module. >=20 > Bug/Regression: > In current mainline, we found CPU is stalls when we load bluetooth module= . > git bisect shows commit 22a9d9585812440211b0b34a6bc02ade62314be4 > as a bad, which produce CPU stalls. >=20 > git show 22a9d9585812440211b0b34a6bc02ade62314be4 > commit 22a9d9585812440211b0b34a6bc02ade62314be4 > Author: Bumyong Lee > Date: Tue Dec 19 14:50:26 2023 +0900 >=20 > dmaengine: pl330: issue_pending waits until WFP state >=20 > According to DMA-330 errata notice=5B1=5D 71930, DMAKILL > cannot clear internal signal, named pipeline_req_active. > it makes that pl330 would wait forever in WFP state > although dma already send dma request if pl330 gets > dma request before entering WFP state. >=20 > The errata suggests that polling until entering WFP state > as workaround and then peripherals allows to issue dma request. >=20 > =5B1=5D: https://developer.arm.com/documentation/genc008428/latest >=20 > Signed-off-by: Bumyong Lee > Link: > https://lore.kernel.org/r/20231219055026.118695-1-bumyong.lee=40samsung.c= om > Signed-off-by: Vinod Koul >=20 > diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index > 3cf0b38387ae..c29744bfdf2c 100644 > --- a/drivers/dma/pl330.c > +++ b/drivers/dma/pl330.c > =40=40 -1053,6 +1053,9 =40=40 static bool _trigger(struct pl330_thread *t= hrd) >=20 > thrd->req_running =3D idx; >=20 > + if (desc->rqtype =3D=3D DMA_MEM_TO_DEV =7C=7C desc->rqtype =3D=3D > DMA_DEV_TO_MEM) > + UNTIL(thrd, PL330_STATE_WFP); > + > return true; > =7D >=20 > By reverting this commit, we have success in loading of bluetooth module. >=20 >=20 > Output of CPU stalls: > =23 modprobe hci_uart > =5B 27.024749=5D Bluetooth: HCI UART driver ver 2.3 > =5B 27.025284=5D Bluetooth: HCI UART protocol Three-wire (H5) registere= d > =23 =5B 28.125338=5D dwmmc_rockchip ffc70000.mmc: Unexpected interrupt = latency > =5B 33.245339=5D dwmmc_rockchip ffc50000.mmc: Unexpected interrupt late= ncy > =5B 326.195321=5D rcu: INFO: rcu_sched detected stalls on CPUs/tasks: > =5B 326.195880=5D rcu: 0-...0: (3 ticks this GP) idle=3De5f4/1/0x400= 00000 > softirq=3D551/552 fqs=3D420 > =5B 326.196621=5D rcu: hardirqs softirqs csw/system > =5B 326.197115=5D rcu: number: 0 0 0 > =5B 326.197612=5D rcu: cputime: 0 0 0 = =3D=3D> > 10500(ms) > =5B 326.198231=5D rcu: (detected by 1, t=3D2105 jiffies, g=3D-455, q= =3D17 > ncpus=3D2) > =5B 326.198823=5D Sending NMI from CPU 1 to CPUs 0: >=20 > Expected Output: > =23 modprobe hci_uart > =5B 30.690321=5D Bluetooth: HCI UART driver ver 2.3 > =5B 30.690852=5D Bluetooth: HCI UART protocol Three-wire (H5) registere= d > =23 =5B 31.453586=5D Bluetooth: hci0: RTL: examining hci_ver=3D08 hci_r= ev=3D000c > lmp_ver=3D08 lmp_subver=3D8821 > =5B 31.458061=5D Bluetooth: hci0: RTL: rom_version status=3D0 version= =3D1 > =5B 31.458608=5D Bluetooth: hci0: RTL: loading rtl_bt/rtl8821cs_fw.bin > =5B 31.465029=5D Bluetooth: hci0: RTL: loading rtl_bt/rtl8821cs_config.= bin > =5B 31.483926=5D Bluetooth: hci0: RTL: cfg_sz 25, total sz 36953 > =5B 32.213105=5D Bluetooth: hci0: RTL: fw version 0x75b8f098 > =5B 32.274216=5D Bluetooth: MGMT ver 1.22 > =5B 32.285376=5D NET: Registered PF_ALG protocol family I discussed this issue. Could you refer to this=5B1=5D? I haven't received anymore reply from him after that. If you have any more opinion, please let me know. =5B1=5D: https://lore.kernel.org/lkml/000001da3869=24ca643fa0=245f2cbee0=24= =40samsung.com/T/ Best Regards