Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3448199pxk; Mon, 7 Sep 2020 13:20:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaZl8LwK6s5e/WR+z4rJfcYz7J/i5d+4xqMpx+0roFMOPeF87cqzJhw58UueqqvnpV+Ao+ X-Received: by 2002:aa7:cb10:: with SMTP id s16mr23618333edt.72.1599510027355; Mon, 07 Sep 2020 13:20:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599510027; cv=none; d=google.com; s=arc-20160816; b=SXWd6T/Gtl4rU0CuFJnxEIc0G8HzY+kbTGcK+XXDodrYyfqOOoYrMbM7M1/F87x/Vb GGbxLRVYzygYTfD/391nnjmjYa70/632rTeaPiCMVhe869d6JBwj1ku4PcOUXTpPrdyI MRxHGqDFsDy7Lj5meKcfPEe6se1vEYRsXvQkYYb1mB7u0jYjfqJXLGNrd/mUarwjR3C1 j0X9JKwN7cc9yg0z/QaCbHRObLha+qb47lWWaOCKZAOCzHlut3KYRMDFORZUAth8dlvU h6gH/alobfJhgZSWRfDQ3AnYN8kfLgYka/vSaBvQOy7QUqdsJ4RSSl4bABfmDzAbp6/D 9l0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=V6SpnhZsf85q4UgRCG3Vo1DStgFyYS4tfVeyEumkN/w=; b=aa7vuGkbOlq/23Qx/I+ph6WsI2K8mL1PR19HUdJeEGxKamP4BAJEsrIGNSYm5jQAjU yPjaf0+rdaM5r+cQP9dcBRglZnk254z3XeEo73DR9e1xtUewg0GrLXBwqbM0KegZS8Qg GFa1xMHLxVLoJKy9803npWGbZB3tyx6yHKjjR1spqJNByST6/rJ+1A4nKFEi3g7HmCE3 usb/N688KTtylqoOdxD0aEpXeM23azZur+4/b5iP1cIs7FRrMqc0CQ4g3A+1cr6eDte6 dNIOMILql2qgmmgLAIE0f/h3w0RQhmfxJUMhkPkJh6GeTtneKtOkjTRs6FH32hRsnqVv AfPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tcd-ie.20150623.gappssmtp.com header.s=20150623 header.b=GgswrjSO; 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 e26si10255211edc.216.2020.09.07.13.20.04; Mon, 07 Sep 2020 13:20:27 -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; dkim=pass header.i=@tcd-ie.20150623.gappssmtp.com header.s=20150623 header.b=GgswrjSO; 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 S1729280AbgIGUTE (ORCPT + 99 others); Mon, 7 Sep 2020 16:19:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728934AbgIGUTC (ORCPT ); Mon, 7 Sep 2020 16:19:02 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD621C061573 for ; Mon, 7 Sep 2020 13:19:01 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id r9so14917104ioa.2 for ; Mon, 07 Sep 2020 13:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V6SpnhZsf85q4UgRCG3Vo1DStgFyYS4tfVeyEumkN/w=; b=GgswrjSOmPdUZ/BwDCdcWalN4y5WoQPbMec/SdCWEVJcYKNu64D9s8oHItvqe5USmk 9DzBKzjfZOYqkrFvd6uDgVBqFvLBcAp47ZAw2Gj9EBRXq4IYQ8JUK1GLjOo/E7oSVx/O VKNWeMREdjMFPxlkxzHpkQGznhdwAw2yq006+gGaYPeW7M8JmCFrH1Ja3sTOnkVYMYMl oJJ5Hxuz82AiRLoFxOJuRTyoERq0vzrpvKHe4mhB/oAwd4qJyrGo/Ie4XZrMjCFsb+Gz +YX46uxsLhKyjMfnYvlZ7dlL4eBmh2LnQCxNxzzQSAZANFCzqDmoNh71XxL/lx44mEYD XfnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V6SpnhZsf85q4UgRCG3Vo1DStgFyYS4tfVeyEumkN/w=; b=Y8hvXs2vFHKqBmQCai9GksFLOwHY5KeXC8GZSu8ANeLQb0/ubAFQveFuc1M221f2EE rEIewgIW8V/kEPE2JgOsSUbL+Tl0+LMrvViYnaU4ZdeQIhfAMM4eBNIFgYKMQfcVfcFX G0MzBXzuQxvk6uwui0elsVDGWErXVorONjVSwfjeFubZgYhdN/A5AhrFJ+1bG/Til9hz iA8wM00D5R28LOuaNX9UgHu3RGdps6AOnTTAndIL5HU3OYbd4JRn9KAV7l7LoEw7pg4i LSx5IRNZOQm4OsqWIVDEgEBoqayvjTIbL9F0UwGR4L410Bhrmx9AKIBBGWeXn2AJcHLI C15g== X-Gm-Message-State: AOAM532IvfaoVlBzPcBmqWUxUPqAzBSMGqAhMm1R8Nicj/YbdAGq9Ysm il47w7yPRwDcJYbo+yU7ByfQBD1Xw2KXsaPQBnp/Ln/OPJsJgA== X-Received: by 2002:a02:4b07:: with SMTP id q7mr6204438jaa.84.1599509940899; Mon, 07 Sep 2020 13:19:00 -0700 (PDT) MIME-Version: 1.0 References: <20200903201839.7327-1-murphyt7@tcd.ie> <20200903201839.7327-6-murphyt7@tcd.ie> <20200907070035.GA25114@infradead.org> In-Reply-To: <20200907070035.GA25114@infradead.org> From: Tom Murphy Date: Mon, 7 Sep 2020 21:18:50 +0100 Message-ID: Subject: Re: [PATCH V2 5/5] DO NOT MERGE: iommu: disable list appending in dma-iommu To: Christoph Hellwig Cc: iommu@lists.linux-foundation.org, David Woodhouse , Linux Kernel Mailing List , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , intel-gfx@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 7 Sep 2020 at 08:00, Christoph Hellwig wrote: > > On Thu, Sep 03, 2020 at 09:18:37PM +0100, Tom Murphy wrote: > > Disable combining sg segments in the dma-iommu api. > > Combining the sg segments exposes a bug in the intel i915 driver which > > causes visual artifacts and the screen to freeze. This is most likely > > because of how the i915 handles the returned list. It probably doesn't > > respect the returned value specifying the number of elements in the list > > and instead depends on the previous behaviour of the intel iommu driver > > which would return the same number of elements in the output list as in > > the input list. > > So what is the state of addressing this properly in i915? IF we can't I think this is the latest on addressing this issue: https://patchwork.kernel.org/cover/11306999/ tl;dr: some people seem to be looking at it but I'm not sure if it's being actively worked on > get it done ASAP I wonder if we need a runtime quirk to disable > merging instead of blocking this conversion.. Yeah we talked about passing an attr to map_sg to disable merging at the following microconfernce: https://linuxplumbersconf.org/event/7/contributions/846/ As far as I can remember everyone seemed happy with that solution. I won't be working on this though as I don't have any more time to dedicate to this. It seems Lu Baolu will take over this.