Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp181923ybh; Tue, 21 Jul 2020 20:21:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVF/BxHFoSYfRnQC/yA7zxe6yoU1A7DNc3Nkn1W2U7DV2gn2tALUEINJBg2KTwpiDNJnYr X-Received: by 2002:a50:f385:: with SMTP id g5mr27626611edm.347.1595388083394; Tue, 21 Jul 2020 20:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595388083; cv=none; d=google.com; s=arc-20160816; b=s0ALNqYGLeVSoyCyISj7tW/tkL3GA0y0o6VB8tXkEI/tdHkYtUKeuqWa41x/+tJrTH CWmoO/+1NfUqFOsg8m8JqMhauzdN7FXV/f4UEYz1djtNMsMr0n09EgeC7e5ON9mMxaf+ lkyXgPVeptW8GJ7ORj+l2OaC2XK1T1Qcyr7ZoLP2og4NuG7iKAh9niLd/7F7JtPE9jM3 1eHWhNXyzLus9jhLOYEPKCGwFCO7khJtNxB5xhurKxJTsvuD5j85olhipw1L4x2daP9o 5dxNoypCEBm0lBmXNDldePSkhkOcMBnrcSZnJE5aIM8T4HY7NOQSzXrHtNx2dUqOX30Q 0ZLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=UDMfVoYQmTOpzN1tjbzVU23FRHBWG6smiodwTrrt5xM=; b=D48BtHsyH+kWdKjb3t6SF9+VJwl8HCMVEi1sAtjyADPuLEcn3mSAGKYMPp+rf6/42h tPR2E1SvHU2G1waDqwDgEIOdfj2P/N5XaFPeYcVwsnE0BIpI5dlSE2H/qOpgTOj5CBzA Np29taDqz+5kWb+IfIUSWIsLH/14nF/X7denThITa/Vh5RRUGEH+D19BAKohT9wdidZK tVEvJC44NvzUZPK34Y0nbv7t29T0Coer6cclxl4xrUjpLR7buQWEM8+VHS8Cqi/070MX IfjJZpz+Mr8j1kUwRA3odrvDth0u0rEIOWiZhCX5CVODvHqVuqo+CR2HEQ7jn/O3uT7D aabQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si13490300ejt.141.2020.07.21.20.20.59; Tue, 21 Jul 2020 20:21:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731887AbgGVDSt (ORCPT + 99 others); Tue, 21 Jul 2020 23:18:49 -0400 Received: from mail5.windriver.com ([192.103.53.11]:47052 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731793AbgGVDSs (ORCPT ); Tue, 21 Jul 2020 23:18:48 -0400 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id 06M3HNft004768 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 21 Jul 2020 20:17:44 -0700 Received: from [128.224.162.214] (128.224.162.214) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.487.0; Tue, 21 Jul 2020 20:17:29 -0700 Subject: Re: Subject: Re: [PATCH 1/1] iommu/vt-d: Skip TE disabling on quirky gfx dedicated iommu To: Lu Baolu CC: "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "stable@vger.kernel.org" References: <0f4b6760-bb8f-ebd3-ab9d-4ecba819883c@linux.intel.com> From: Jun Miao Message-ID: <6cbf5b1e-93a5-c308-59ee-257676912d24@windriver.com> Date: Wed, 22 Jul 2020 11:17:27 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/22/20 11:07 AM, Lu Baolu wrote: > On 7/22/20 11:03 AM, Jun Miao wrote: >> On 7/22/20 10:40 AM, Lu Baolu wrote: >>> Hi Jun, >>> >>> On 7/22/20 10:26 AM, Miao, Jun wrote: >>>>>> Kernel panic - not syncing: DMAR hardware is malfunctioning >>>>>> CPU: 0 PID: 347 Comm: rtcwake Not tainted 5.4.0-yocto-standard #124 >>>>>> Hardware name: Intel Corporation Ice Lake Client Platform/IceLake >>>>>> U DDR4 >>>>>> SODIMM PD RVP TLC, BIOS ICLSFWR1.R00.3162.A00.1904162000 04/16/2019 >>>>>> Call Trace: >>>>>>    dump_stack+0x59/0x75 >>>>>>    panic+0xff/0x2d4 >>>>>>    iommu_disable_translation+0x88/0x90 >>>>>>    iommu_suspend+0x12f/0x1b0 >>>>>>    syscore_suspend+0x6c/0x220 >>>>>>    suspend_devices_and_enter+0x313/0x840 >>>>>>    pm_suspend+0x30d/0x390 >>>>>>    state_store+0x82/0xf0 >>>>>>    kobj_attr_store+0x12/0x20 >>>>>>    sysfs_kf_write+0x3c/0x50 >>>>>>    kernfs_fop_write+0x11d/0x190 >>>>>>    __vfs_write+0x1b/0x40 >>>>>>    vfs_write+0xc6/0x1d0 >>>>>>    ksys_write+0x5e/0xe0 >>>>>>    __x64_sys_write+0x1a/0x20 >>>>>>    do_syscall_64+0x4d/0x150 >>>>>>    entry_SYSCALL_64_after_hwframe+0x44/0xa9 >>>>>> RIP: 0033:0x7f97b8080113 >>>>>> Code: 8b 15 81 bd 0c 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 >>>>>> 0f 1f 00 >>>>>> 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 01 00 00 00 0f 05 <48> 3d >>>>>> 00 f0 ff ff >>>>>> 77 55 c3 0f 1f 40 00 48 83 ec 28 48 89 54 24 18 >>>>>> RSP: 002b:00007ffcfa6f48b8 EFLAGS: 00000246 ORIG_RAX: >>>>>> 0000000000000001 >>>>>> RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f97b8080113 >>>>>> RDX: 0000000000000004 RSI: 000055e7db03b700 RDI: 0000000000000004 >>>>>> RBP: 000055e7db03b700 R08: 000055e7db03b700 R09: 0000000000000004 >>>>>> R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000004 >>>>>> R13: 000055e7db039380 R14: 0000000000000004 R15: 00007f97b814d700 >>>>>> Kernel Offset: 0x38a00000 from 0xffffffff81000000 (relocation range: >>>>>> 0xffffffff80000000-0xffffffffbfffffff) >>>>>> ---[ end Kernel panic - not syncing: DMAR hardware is >>>>>> malfunctioning ]--- >>>> >>> >>> Do you mean that system hangs in iommu_disable_translation() without >>> this fix. >>> >> Yes ,From the call trace and i also read the DMARD_GCMD_RGS is wrong >> without this patch. > > Okay! Thanks a lot for confirming this. > > Best regards, > baolu > >>>> [S3 successfully with the patch] >>> >>> And, this failure disappeared after you applied this fix? YES     , the log is too long , only head and tail . this failure disappereared. >>> >>> Best regards, >>> baolu