Received: by 10.223.164.202 with SMTP id h10csp2519053wrb; Thu, 16 Nov 2017 17:13:42 -0800 (PST) X-Google-Smtp-Source: AGs4zMbBXTNWi3ryOjlQEF8iPSRxwwYjBNEkbLiRMzy4qk8GM0D+rYOrye3Uw0GoN25w/IBfGVyk X-Received: by 10.159.218.73 with SMTP id x9mr1888179plv.92.1510881221980; Thu, 16 Nov 2017 17:13:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510881221; cv=none; d=google.com; s=arc-20160816; b=pSfGAaTvBpWLcrIrxmGZPJXC1d5dpoP9STRfgY8gv5JlyKgiahHpqxWVekjsBjVz8+ wpH72/2tN4fCrcedQEjOj5N8m6psNJ6GZL7NjHU1N7YkaV4jznxVJwbLj5BnOzCPyFaD uUP2V07o7QPc9/8YEY7fSMDZ3uRM9kBJNdu67ocz1KB/Z/IAGx7XgmLedeEL+cuc3IB/ OjZC4VP1xqtvEGc807Tg/LksvJmLX0zeteZgF4tRa9WZu8m6ENefcj7/hsMoUJ8nCJuY RLFTWcVvUP9Oq7CU3e4hhKZ4c2fOh3l1bFWbPl7kLt17qjZUzBIpHIFj2sFwGqP5QJDK PbDA== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=zS42lYZfjzweRfcYE4bd0DnRLTDsnhyNFbOMl4t765k=; b=GfgMaYS1cXlQb5Wl0SjKHvPr7WJfzVy22RLheuW7WjFEN5UMUohZ16Ejy34r8QKudN Lm44ShQMW0oRo8q3uUaQ2oJc2LHParjpwJxxxT/l5HgXZiW6gxELsw7XQ9T+s6buGCvm Ij5dOTxSeVUeygp9zmSWjoFfFFmi/GR15y2YrkTnK9iGhVrNQbB/qQUqfjAAUFKdLhAb 6FuLjJQFwT3Q3J+mxSC5Vmb+otYqV0ibZds6lbBC1w3tjIetfzY8bIPpY2ERDqyEFp9R 6Gw5PbRSWaKx1Syg+F8B0dZ7BaBbw4mFkEIHM+PuhVBrXvesqUssUeBP/8gnfPIrX/+n N6og== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z33si921393plb.713.2017.11.16.17.13.28; Thu, 16 Nov 2017 17:13:41 -0800 (PST) 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935347AbdKPVc4 (ORCPT + 92 others); Thu, 16 Nov 2017 16:32:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55640 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933833AbdKPVcr (ORCPT ); Thu, 16 Nov 2017 16:32:47 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A30201F575; Thu, 16 Nov 2017 21:32:47 +0000 (UTC) Received: from t450s.home (ovpn-116-16.phx2.redhat.com [10.3.116.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 34E224DA35; Thu, 16 Nov 2017 21:32:46 +0000 (UTC) Date: Thu, 16 Nov 2017 14:32:44 -0700 From: Alex Williamson To: Jacob Pan Cc: Joerg Roedel , Robin Murphy , leedom@chelsio.com, herbert@gondor.apana.org.au, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, linux-crypto@vger.kernel.org, David Woodhouse , Harsh@chelsio.com Subject: Re: [PATCH] iommu/vt-d: Fix scatterlist offset handling Message-ID: <20171116143244.2583d044@t450s.home> In-Reply-To: <20171115155456.141a6dc8@jacob-builder> References: <644c3e01654f8bd48d669c36e424959d6ef0e27e.1506607370.git.robin.murphy@arm.com> <1507035334.29211.105.camel@infradead.org> <20171006144309.GA30803@8bytes.org> <20171106104709.06b38f7c@jacob-builder> <20171115155456.141a6dc8@jacob-builder> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 16 Nov 2017 21:32:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Nov 2017 15:54:56 -0800 Jacob Pan wrote: > Hi Alex and all, > > Just wondering if you could merge Robin's patch for the next rc. From > all our testing, this seems to be a solid fix and should be included in > the stable releases as well. Hi Jacob, Sorry, this wasn't on my radar, I only scanned for patches back through about when Joerg refreshed his next branch (others on the list speak up if I didn't pickup your patches for the v4.15 merge window). This patch makes sense to me and I'm glad you were able to work through the anomaly Harsh saw in testing as an unrelated issue, but... > On Mon, 6 Nov 2017 10:47:09 -0800 > Jacob Pan wrote: > > > On Fri, 6 Oct 2017 16:43:09 +0200 > > Joerg Roedel wrote: > > > > > On Tue, Oct 03, 2017 at 07:05:17PM +0100, Robin Murphy wrote: > > > > Now, there are indeed plenty of drivers and subsystems which do > > > > work on lists of explicitly single pages - anything doing some > > > > variant of "addr = kmap_atomic(sg_page(sg)) + sg->offset;" is easy > > > > to spot - but I don't think DMA API implementations are in a > > > > position to make any kind of assumption; nearly all of them just > > > > shut up and handle sg->length bytes from sg_phys(sg) without > > > > questioning the caller, and I reckon that's exactly what they > > > > should be doing. > > > > > > I agree with that, it is not explicitly forbidden to have an > > > sg->offset > PAGE_SIZE and most IOMMU drivers handle this case. > > > > > > So this is a problem I'd like to see resolved in the VT-d driver > > > too. If nobody comes up with a correct fix soon I'll apply this one > > > and rip out the large-page support from __domain_mapping() to make > > > it work. What do we do about this? I certainly can't rip out large page support and put a stable tag on the patch. I'm not really spotting what's wrong with large page support here, other than the comment about it being a mess. Suggestions? Thanks, Alex From 1584182449587142028@xxx Thu Nov 16 01:01:54 +0000 2017 X-GM-THRID: 1579793157804914964 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread