Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2609787rdb; Fri, 22 Sep 2023 03:57:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWulgyGtWamBbN7xTFKqRdu2VJe1R8NjUN6eWMxgauWlOvSXT66U1+8Yc5E8c6qxND8CjW X-Received: by 2002:a17:90b:24b:b0:268:e43a:dbfd with SMTP id fz11-20020a17090b024b00b00268e43adbfdmr8343855pjb.1.1695380235547; Fri, 22 Sep 2023 03:57:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695380235; cv=none; d=google.com; s=arc-20160816; b=x+2GZbTXTacuz90fxkwJRO/NGGYvbxKh/Sux4nj1ijgszxSeo467esUkCITtbvbKga ZrkIwNlAZ8ROf11ocN7w4MyY9+GaFWcjXcUBj6qRqoXj9+FcZ/tMP43auhI08oxB8w7F xkd9bn7dKJ7SqU1hRW65/FkyAWzykGFlrQJs5dtQimRmvh46TaMos0jBq7eq+0pbmlqs CXDzAeVt7WfN7G+jioc8o1JxJzkPVYSqOJgQoj/cRZxUhC850iB8Uyghd82116IWxA1B tkYsgzkR0xZfQ9LHFtM4ZBQySBuskF2wmkatmibKW4+g+AOBMZKC9J9eM79ViiScINxf 3oRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZJ59MeKZv7OBj6zxTPF7RB0DRf2UweQrH+bk5/9tNyE=; fh=z/s1jTfDfjy6p93cvtevAxKTMlom8Z6NhJtUVoF/Oy0=; b=Fm4hhJSLSp3TR5G1mp35xHMQjjDR+pdjDOCbbBE6kLrxW/pgQ6Ug/aioh/2p2AKc0C XigMLrAyUFsM8KCJwm/wXB5znSM3z4xyjQI/05fKoi/+cpbshy+a8E4HSJtssNVSvU39 ewR+P25aZflfPGEWB6lnZ9pwSVU5svHvgkOIIYhEO1xltWcoB+p2DvCnFi+wsYhyCG0/ c9PXQSD2Q97O7qqJtK0ozXe0H63ed3gATyVKYG0CPusmpahdckMSNf6LCEhZTiO9kLHc dFzMhhxz/A/MmtTnkIzGG/BPo/l+UehCdh5PBF48R63N1TA9Q5jM055dq5DYv9TeaEOu VfpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VOIbbxeT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id o10-20020a17090ac08a00b0026806ed3fd8si3714287pjs.71.2023.09.22.03.57.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 03:57:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VOIbbxeT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id BE5EF83C265E; Fri, 22 Sep 2023 03:40:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233406AbjIVKji (ORCPT + 99 others); Fri, 22 Sep 2023 06:39:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233395AbjIVKje (ORCPT ); Fri, 22 Sep 2023 06:39:34 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E22B99 for ; Fri, 22 Sep 2023 03:39:29 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87E26C433C8; Fri, 22 Sep 2023 10:39:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695379168; bh=AM9mXyWNom/7C0Z2nwwzwPj8EXnzn7AMdkX3ObUV7Ls=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VOIbbxeTMTzG0Jr5xF2VjSZkUWgrYY0n8we5/V/MHM6oaWLHMFHvxPjd5wvc4GDDB 6VfffhJcgLcMq45eqb7LhpdqwKvM3A03ii7Kq6VN6Umm3kbZHWxA2SLz2k7uqEuRCF NfzEmy8d/7P/gA4yGM7qA/sTiI4vHlJ3XW4yoGWdoqdLXufAXV5ST0b5BWIxZoTLxN /CdvUQ0mWtGXxEsbN4Qcnc1HqOqyYp8ieHddsAOoKSezCrfWBtHXCIl4qBp+jW1gnW wBbtrioU6hCekat5XsuC9gYRVlvTw8cKvTiDi61VxGXiUiWoujwK6uJEzXjylTYYyh 9hTkghKty4F8w== From: Will Deacon To: Nicolin Chen , robin.murphy@arm.com Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , joro@8bytes.org, jean-philippe@linaro.org, iommu@lists.linux.dev, apopple@nvidia.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jgg@nvidia.com Subject: Re: [PATCH v2] iommu/arm-smmu-v3: Fix soft lockup triggered by arm_smmu_mm_invalidate_range Date: Fri, 22 Sep 2023 11:39:23 +0100 Message-Id: <169537774299.3625412.855050231563231169.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230920052257.8615-1-nicolinc@nvidia.com> References: <20230920052257.8615-1-nicolinc@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 22 Sep 2023 03:40:05 -0700 (PDT) On Tue, 19 Sep 2023 22:22:57 -0700, Nicolin Chen wrote: > When running an SVA case, the following soft lockup is triggered: > -------------------------------------------------------------------- > watchdog: BUG: soft lockup - CPU#244 stuck for 26s! > pstate: 83400009 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) > pc : arm_smmu_cmdq_issue_cmdlist+0x178/0xa50 > lr : arm_smmu_cmdq_issue_cmdlist+0x150/0xa50 > sp : ffff8000d83ef290 > x29: ffff8000d83ef290 x28: 000000003b9aca00 x27: 0000000000000000 > x26: ffff8000d83ef3c0 x25: da86c0812194a0e8 x24: 0000000000000000 > x23: 0000000000000040 x22: ffff8000d83ef340 x21: ffff0000c63980c0 > x20: 0000000000000001 x19: ffff0000c6398080 x18: 0000000000000000 > x17: 0000000000000000 x16: 0000000000000000 x15: ffff3000b4a3bbb0 > x14: ffff3000b4a30888 x13: ffff3000b4a3cf60 x12: 0000000000000000 > x11: 0000000000000000 x10: 0000000000000000 x9 : ffffc08120e4d6bc > x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000048cfa > x5 : 0000000000000000 x4 : 0000000000000001 x3 : 000000000000000a > x2 : 0000000080000000 x1 : 0000000000000000 x0 : 0000000000000001 > Call trace: > arm_smmu_cmdq_issue_cmdlist+0x178/0xa50 > __arm_smmu_tlb_inv_range+0x118/0x254 > arm_smmu_tlb_inv_range_asid+0x6c/0x130 > arm_smmu_mm_invalidate_range+0xa0/0xa4 > __mmu_notifier_invalidate_range_end+0x88/0x120 > unmap_vmas+0x194/0x1e0 > unmap_region+0xb4/0x144 > do_mas_align_munmap+0x290/0x490 > do_mas_munmap+0xbc/0x124 > __vm_munmap+0xa8/0x19c > __arm64_sys_munmap+0x28/0x50 > invoke_syscall+0x78/0x11c > el0_svc_common.constprop.0+0x58/0x1c0 > do_el0_svc+0x34/0x60 > el0_svc+0x2c/0xd4 > el0t_64_sync_handler+0x114/0x140 > el0t_64_sync+0x1a4/0x1a8 > -------------------------------------------------------------------- > > [...] Applied to will (for-joerg/arm-smmu/fixes), thanks! [1/1] iommu/arm-smmu-v3: Fix soft lockup triggered by arm_smmu_mm_invalidate_range https://git.kernel.org/will/c/d5afb4b47e13 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev