Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3435777imm; Tue, 17 Jul 2018 04:59:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe5feodPS0mE8kfiXAqkEQK+AsldLUPBot6kSyCRmoNejWJC4avjySR6C3EbdiBkNbIKZf/ X-Received: by 2002:a63:5d09:: with SMTP id r9-v6mr1268936pgb.303.1531828759183; Tue, 17 Jul 2018 04:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531828759; cv=none; d=google.com; s=arc-20160816; b=ccIS2J3i+Cbtp+3Lr7/PzezZ/cT5qy4QZVlibPcaxZHhrPWKIFo8t/C2k/CIi40A/F Z5xhWDOGEdSdr7e4X6s2x5jhZKaoedyRoB2g0Hk4/GY2hpktvFU3zNv3Ue0uY40IhUHW dA8+fvkTt4buSkdtPg2h09JvCwXRxDQJTScX5SCzYTMznCJnht8yAW9sqgw2fUAgduIn /9Qc4okXnxXqBT0cEntQ9SRjdZu0BMW6zkrhzbzhZZZH1ZXeudkyf3l5wujEB9wmUUju GmCzOo+QHKNdAN9/gtxrew9Xaegl85+MIieB+maaU/3byUJebiOtXDzSmb69XjN3GwyU jDKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:subject:references :to:arc-authentication-results; bh=xwLClwYREcinz1kytIKqPbEHG9l7urFv5QqX2guYNYA=; b=miSACufAI+UtO9BTVvO8MB7zntC8Nj2Wnrzs9uRHh4YVceoZ5Lr1k7NjA7VjVo7/jC IWvj8J/j7qkiI58orDqIAAv340bSOaG363PgeebzVWVZvsd1KNq9+eeVwUEWmnmdDwpx +D8v17Mt3ZOLI9eZZ3MJEmm4RNYuWLhpvOxriQI8NCUKUT++6PVchoOWQThaIWmKBdhL akjZGqt7yosOVBsDj3x7texCjkAE5WRzwe2hgzhKcObkcCBOWhYbIEXmlOUTHEb3TZ8Y /53IEKgyRa64C7oOn7K1it+sYkrZPP6pOd94URzohFA8X3DtMjHUVM6Kepf/r8NOxMAq ye8Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1-v6si673244pld.515.2018.07.17.04.59.03; Tue, 17 Jul 2018 04:59:19 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731336AbeGQMap (ORCPT + 99 others); Tue, 17 Jul 2018 08:30:45 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:33042 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731117AbeGQMao (ORCPT ); Tue, 17 Jul 2018 08:30:44 -0400 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6HBsphQ020708; Tue, 17 Jul 2018 04:57:49 -0700 Received: from il-exch02.marvell.com ([199.203.130.102]) by mx0b-0016f401.pphosted.com with ESMTP id 2k7gpg8wvc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 17 Jul 2018 04:57:49 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by IL-EXCH02.marvell.com (10.4.102.221) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 17 Jul 2018 14:57:47 +0300 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 17 Jul 2018 04:57:44 -0700 Received: from [10.4.50.2] (unknown [10.4.50.2]) by maili.marvell.com (Postfix) with ESMTP id 60F173F703F; Tue, 17 Jul 2018 04:22:22 -0700 (PDT) To: References: Subject: Re: dvb usb issues since kernel 4.9 CC: , , , , , , , , , , , , , , , , , , , , , , Omri Itach From: Hanna Hawa Message-ID: <1d3d0fe3-bc02-7720-15ac-6bc06e00067c@marvell.com> Date: Tue, 17 Jul 2018 14:54:20 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-17_03:,, signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807170125 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I'm a software developer working in Marvell SoC team. I'm facing kernel panic issue while running raid 5 on sata disks connected to Macchiatobin (Marvell community board with Armada-8040 SoC with 4 ARMv8 cores of CA72) Raid 5 built with Marvell DMA engine and async_tx mechanism (ASYNC_TX_DMA [=y]); the DMA driver (mv_xor_v2) uses a tasklet to clean the done descriptors from the queue. The panic (see below) occurs while building the RAID-5 (mdadm) or while writing/reading to the raid partition. After some debug/bisect/diff, found that patch "softirq: Let ksoftirqd do its job" is problematic patch. - Using v4.14.0 and problematic patch reverted - no timout issue. - Using v4.14.0 (including softirq patch) and the additional fix proposed by Linus - no timeout issue. As others have reported in this thread, the softirq change is causing some regression. Would it be possible to either revert the patch or apply a fix such as the one proposed by Linus ? Below panic message: [ 25.371495] mv_xor_v2 f0400000.xor: dma_sync_wait: timeout! [ 25.377101] Kernel panic - not syncing: async_tx_quiesce: DMA error waiting for transaction [ 25.377101] [ 25.386973] CPU: 0 PID: 1417 Comm: md0_raid5 Not tainted 4.14.0 #16 [ 25.393264] Hardware name: Marvell Armada 8040 DB board (DT) [ 25.398946] Call trace: [ 25.401410] [] dump_backtrace+0x0/0x380 [ 25.406831] [] show_stack+0x14/0x20 [ 25.411904] [] dump_stack+0x98/0xb8 [ 25.416976] [] panic+0x118/0x280 [ 25.421788] [] async_tx_quiesce+0x74/0x78 [ 25.427382] [] async_memcpy+0x1a4/0x2a0 [ 25.432806] [] async_copy_data.isra.16+0x1b4/0x280 [ 25.439186] [] raid_run_ops+0x514/0x1320 [ 25.444694] [] handle_stripe+0x1040/0x2848 [ 25.450377] [] handle_active_stripes.isra.28+0x240/0x460 [ 25.457279] [] raid5d+0x2b0/0x450 [ 25.462177] [] md_thread+0x104/0x160 [ 25.467338] [] kthread+0xfc/0x128 [ 25.472234] [] ret_from_fork+0x10/0x1c [ 25.477571] Kernel Offset: disabled [ 25.481073] CPU features: 0x002000 [ 25.484487] Memory Limit: none [ 25.487556] ---[ end Kernel panic - not syncing: async_tx_quiesce: DMA error waiting for transaction [ 25.487556] Thanks, Hanna