Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2706480ybi; Thu, 18 Jul 2019 12:53:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYQgyXDvnAVKpi84VboMoKwPcjEjrfbPQPTztt6HUQ4iLUKoq3aQUVtYjRJxlkerwEJFl4 X-Received: by 2002:a17:90a:1b0c:: with SMTP id q12mr53373540pjq.76.1563479622872; Thu, 18 Jul 2019 12:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563479622; cv=none; d=google.com; s=arc-20160816; b=JeqBfkI0eiUJ/udMsedfDRt5VsroFn5NmUJ3pNKvOxbM70fWftmfYbm6+NKO7KWBqv 6WseoX2Y+n+fI8b1mH7h3RUfkR/we3Rt1QuDi6uE3A+QX2rgSlyI/pLTR9vQo4XV8ZIH 9iFLSBIvcUYjAN3PvWrU8AZbFwfgNYFS4glYddV69CVu/qZk0hfRxTcrWXG3i33dNYeZ bqvoONn+DWjoCjCZHdmWIH1IGKfMQCO2Xbbc2gvIUd41KikzxFat7sqX4P5EB16GzTI7 S0f/d+Kjl50JysSeBbag+YjyS2x7+7WqqTrB0mL5AocLrKaVk1kKDviH0gi3Eqi0I+kh 7JeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:from:cc:to:subject :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=zfYhBy8rXbE//COaxouGyZdN8XuohHpGRV5GXewnrg0=; b=PJpHNy2ElJkTqgirwAZF3xnr07Wrmnq4UnXoYQEeu4kLQAuxOaLyGldbRn9ZPv0Klq OUe0a+FNFPhcsIdRbEjt3cZLMEPp1dRu+GWMzMZSBRjSph72jZAAOe3jlCNvZNnnijOv 0/CXIFDYR5nVMKr8TU/2DpuLhQQ+Gnm4mW1HmRhxjsPqtLcWxdmtQw9GIA4tMQ2sNTvn JNchzx/n5hvlFlFjXNVdrATuJ2NSMwx7YSkwPowqTUx2kUOidr2yEz/TCrhp8u/4X2hy wiZsdtrw3HN+C+5rf7v7V48Yh06qx9jHy8PMvNr47U9l2EElRLr5d6wxAAu66lWdt4D0 dnJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DKzzyJpg; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q66si99279pjq.109.2019.07.18.12.53.26; Thu, 18 Jul 2019 12:53:42 -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; dkim=pass header.i=@chromium.org header.s=google header.b=DKzzyJpg; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391510AbfGRTv4 (ORCPT + 99 others); Thu, 18 Jul 2019 15:51:56 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41923 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391329AbfGRTv4 (ORCPT ); Thu, 18 Jul 2019 15:51:56 -0400 Received: by mail-pg1-f196.google.com with SMTP id x15so3012061pgg.8 for ; Thu, 18 Jul 2019 12:51:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:subject:to:cc:from:user-agent:date; bh=zfYhBy8rXbE//COaxouGyZdN8XuohHpGRV5GXewnrg0=; b=DKzzyJpgwrlpAymFb04FfC77Rz/8v2x2vMt97Uo5AbdJL5GOULus42XL9FeHmoaRKU 63iDopVnfj/IHyacy+pTTzrtu2JsX/GIkaMVxiVuO9aQob2DW/xay1dZuqkLoDJlE19X clXgrN9nBoB9+m3VTyBOgFl4dyyN77fIsnv98= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:subject:to:cc:from :user-agent:date; bh=zfYhBy8rXbE//COaxouGyZdN8XuohHpGRV5GXewnrg0=; b=XomWcxhMNdrFK2Ku5QItdZzlkI6o0RSZfCaSa6Ub8o2CAEIuOPrU5Ajp9hJNSZNXxM gs4kH/SNOgB+iwDTdC0NQV0D5e375u303NhmlnB0yxmKW94Bg2i3mYB0a3PpR18jNhJV Oq0QHm9h+gHm9AQqhZG0dQT9DGHgAmFf+oDrW1ccBtY07DZW+2XDBajWiI+dYt10mk5j iOqj3WoRXVlzVUMyzvi/31i8f2kNd6NX99UyC5PBYTF8GCtodMZ/qWS5lt4zuQyVoAOA IR3GxjJD10nMmN+mpr5e+epTcoBOHbF0MLGPlFUTk0SSnh1ZoFwmm4TEV0bEmnIdypTn CnOw== X-Gm-Message-State: APjAAAUvu5mYmw50YAgb0KhBkfTGCdZsqlgrs4T13gx6Wa7s8HLB2VE5 AB9jZ+9kwvKy5QTS9fP+/zzyoA== X-Received: by 2002:a63:205f:: with SMTP id r31mr49503340pgm.159.1563479515402; Thu, 18 Jul 2019 12:51:55 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id y23sm30556546pfo.106.2019.07.18.12.51.54 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 18 Jul 2019 12:51:54 -0700 (PDT) Message-ID: <5d30cdda.1c69fb81.de220.1f10@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190630124735.27786-1-robdclark@gmail.com> References: <20190630124735.27786-1-robdclark@gmail.com> Subject: Re: [PATCH] drm/msm: stop abusing dma_map/unmap for cache To: Rob Clark , dri-devel@lists.freedesktop.org Cc: Rob Clark , Rob Clark , Sean Paul , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org From: Stephen Boyd User-Agent: alot/0.8.1 Date: Thu, 18 Jul 2019 12:51:53 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Rob Clark (2019-06-30 05:47:22) > From: Rob Clark >=20 > Recently splats like this started showing up: >=20 > WARNING: CPU: 4 PID: 251 at drivers/iommu/dma-iommu.c:451 __iommu_dma_= unmap+0xb8/0xc0 > Modules linked in: ath10k_snoc ath10k_core fuse msm ath mac80211 uvcvi= deo cfg80211 videobuf2_vmalloc videobuf2_memops vide > CPU: 4 PID: 251 Comm: kworker/u16:4 Tainted: G W 5.2.0-= rc5-next-20190619+ #2317 > Hardware name: LENOVO 81JL/LNVNB161216, BIOS 9UCN23WW(V1.06) 10/25/2018 > Workqueue: msm msm_gem_free_work [msm] > pstate: 80c00005 (Nzcv daif +PAN +UAO) > pc : __iommu_dma_unmap+0xb8/0xc0 > lr : __iommu_dma_unmap+0x54/0xc0 > sp : ffff0000119abce0 > x29: ffff0000119abce0 x28: 0000000000000000 > x27: ffff8001f9946648 x26: ffff8001ec271068 > x25: 0000000000000000 x24: ffff8001ea3580a8 > x23: ffff8001f95ba010 x22: ffff80018e83ba88 > x21: ffff8001e548f000 x20: fffffffffffff000 > x19: 0000000000001000 x18: 00000000c00001fe > x17: 0000000000000000 x16: 0000000000000000 > x15: ffff000015b70068 x14: 0000000000000005 > x13: 0003142cc1be1768 x12: 0000000000000001 > x11: ffff8001f6de9100 x10: 0000000000000009 > x9 : ffff000015b78000 x8 : 0000000000000000 > x7 : 0000000000000001 x6 : fffffffffffff000 > x5 : 0000000000000fff x4 : ffff00001065dbc8 > x3 : 000000000000000d x2 : 0000000000001000 > x1 : fffffffffffff000 x0 : 0000000000000000 > Call trace: > __iommu_dma_unmap+0xb8/0xc0 > iommu_dma_unmap_sg+0x98/0xb8 > put_pages+0x5c/0xf0 [msm] > msm_gem_free_work+0x10c/0x150 [msm] > process_one_work+0x1e0/0x330 > worker_thread+0x40/0x438 > kthread+0x12c/0x130 > ret_from_fork+0x10/0x18 > ---[ end trace afc0dc5ab81a06bf ]--- Tested-by: Stephen Boyd