Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9417898imu; Wed, 5 Dec 2018 04:36:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/VcVJUtkmgYEZWJsKgrK3j7J518YeGvOiRpRC9YeHFvIPQSLa0rz8uj4PL7ZxwBg5LCtE4s X-Received: by 2002:a63:193:: with SMTP id 141mr20409720pgb.136.1544013416161; Wed, 05 Dec 2018 04:36:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544013416; cv=none; d=google.com; s=arc-20160816; b=k7R6e/hpmo+jQxt1zXccqCR0JlybXKhs1DoueuFgtjAn2XrAkiLPSmUXtqlb1/hirT Dd/iOc0bCm8U9eDbJS9XpNb7R0+pkCMlHyRN/nlCDvgBuRP2pdonAU/1Ct7JAJEQwUY/ 2p/ZhHU+79jYOyvlJSDE2ykc17NZoTQn8rgjZHY1grwy7Amkqanyil/ow4TSSUB7HGKK oDlx0QM6aAWRCT2jZRxtXEiXIFTNYkPex2NgmqPdrlTu+b3iraLhE+xV1UohRdUeYhjB bAigkv4ESMj2XdPvmc9qvYvQs0Lm4SJi/s9jCcrbqFejAdDYOTrHfOo3nm+wlzmlZ8EB b/Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vrtMh2jYTpv83rVG5A1QYng8vN5RmiJeEXK7511FJH4=; b=S4IuOJJxN0TvUYvtQJI6ITf/31iP6h4QmrhlQqqKMOnUmMRfDSSJtPYhfXhwPBo8Vu qWX4g9fb3svno6Xi+nL9shxVNPnHagN7PIMCIr7fNWr1nM7yOgFWSicl/MuRJ9N2N/ha tZ8iQrcPIw+707zlAC5TT8psoKinpS6GkHUmdjbPv9JDZ54tY0WLjNCijAzYYud6fD1g drj1LVSQEsL48K+/3Om7OlB/868wfsOLl6Ztdcm2fZ7kn/vZC70m3QU6bSdVJZOj9lqw uWUl9DbV0U9jCcLsvHLYeuTIRO1uIR0Pze2nqWIMYQc5S1c3CRVmp8VKs0gmJvdKBnsh sFvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EidZGXQC; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w185si21593620pfw.122.2018.12.05.04.36.38; Wed, 05 Dec 2018 04:36:56 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EidZGXQC; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727606AbeLEMgB (ORCPT + 99 others); Wed, 5 Dec 2018 07:36:01 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:46477 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727094AbeLEMgB (ORCPT ); Wed, 5 Dec 2018 07:36:01 -0500 Received: by mail-ed1-f65.google.com with SMTP id o10so16842377edt.13 for ; Wed, 05 Dec 2018 04:36:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=vrtMh2jYTpv83rVG5A1QYng8vN5RmiJeEXK7511FJH4=; b=EidZGXQClmZJRKgORRKQ2z2JfBQuXzu4/XxBc3E+vzeqS19JbW0mm56hkaACtKJIeo /rCoHX0L5LiZfXDY2WX5cJRZxa8msNVo9aWJf5Hh1Hyky7YjwcOmKLMM6qLEcKiRPBzT MBUMVseU81Xk3QztKaGGeILfZUG2oV68ZKhDMyJcAFupi2z4wtiecu0Pd2B7csQFLxNW XY48Pv5Otaw7YS+7LoZmbF9ImSHrrpXzTF0H/m/PjtffMtI3rR++F7/Tu3yI3cLAOvde o4GKE08/YqkGNMlioJP/XHjq7CpCuyBNYCW1cpnH/ft6Xl8/GJ8SN76DMZjrG8gpUiGi Yk2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=vrtMh2jYTpv83rVG5A1QYng8vN5RmiJeEXK7511FJH4=; b=or4wIAVMQNSAJvM6LH7zc8LDtf1WTbcmUniV3YXueebOdnAsPrcvhBXdBHSk1TTNWo 2UGwfHZkbIftKD9xHPLfC4P/7YbXffQ5Q1+kCf1ecGknFEdDHB5ct7Wsvdhmp005X7H9 xhcrpLVT5iK9j+RaHIEmA3O/TbTvGlJNQCvzl1eD+HoCwOmzxAokH6av1cpweeOPFAtx ggai+c5kGS19UWMXFMRgxuD48LawezE3YV4ibDfx3Su3wrwZvLa/bqJm/j76hrtfqpii Rb0BGmHUIZ1QcSpuEfQ7Gw4jxsLeDth1zaxg2UeHH3k4Dz840Ywq5LK4bnRFsFYTrP+4 fhMw== X-Gm-Message-State: AA+aEWbB/YuQAKihfC2WrgpGq+MyI3xuY19JwAbqG3qWAwGNCSZyTRLi zHv0JCn//GcvxZMVIbwNuVY= X-Received: by 2002:a50:9e43:: with SMTP id z61mr21449735ede.90.1544013359613; Wed, 05 Dec 2018 04:35:59 -0800 (PST) Received: from localhost (pD9E51040.dip0.t-ipconnect.de. [217.229.16.64]) by smtp.gmail.com with ESMTPSA id c12sm5220873edi.52.2018.12.05.04.35.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Dec 2018 04:35:58 -0800 (PST) Date: Wed, 5 Dec 2018 13:35:57 +0100 From: Thierry Reding To: Marek Szyprowski Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Robin Murphy , Catalin Marinas , Will Deacon , Guo Ren , Laura Abbott , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] dma-mapping: fix lack of DMA address assignment in generic remap allocator Message-ID: <20181205123557.GA28929@ulmo> References: <20181204142304.GC2618@lst.de> <20181205101401.3561-1-m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline In-Reply-To: <20181205101401.3561-1-m.szyprowski@samsung.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 05, 2018 at 11:14:01AM +0100, Marek Szyprowski wrote: > Commit bfd56cd60521 ("dma-mapping: support highmem in the generic remap > allocator") replaced dma_direct_alloc_pages() with __dma_direct_alloc_pag= es(), > which doesn't set dma_handle and zero allocated memory. Fix it by doing t= his > directly in the caller function. >=20 > Fixes: bfd56cd60521 ("dma-mapping: support highmem in the generic remap a= llocator") > Signed-off-by: Marek Szyprowski > --- > kernel/dma/remap.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) Tested-by: Thierry Reding --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlwHxioACgkQ3SOs138+ s6FrEQ/+JDxH1WopBJG6bpMeKByiWYJdObpk1wWcMYzSme2BnvWsUJW1OM7ctUOT AZKVxbWFbaDJdLs9xlkIkVAOMe9i9eGkwFJB0IugR7NlhH3HV1VPbd99K4VvmV1q hAtBq8UEod1YXBD7X836sJLRsYwzEb6TP6E2en5EPMDgrOS5N1rhcCyslorrXoqs h+n3wZllTQxBr3liY3FFwawKDYuSj8PRqsn8AKXh5KXJS6F718lpPxL4PmnhWPUB 76YA6uqe5mYPvdxAS7lEhM+BjuNBRSO7rGSOJpBVkcXbDxb3BJCGMnhUbmnjRDCH 0zyIyaKQa926YoZIhSOcWCIgQdPpXUWf67BOaX7phmL0fIUwfjJKsMQY80Wcqxxu YzqE36DCHj46h29PbhXbBcy+/bCBZ7YgDCQsHBk6+gYGJbYLj77ouN2L8OrmcDBt +yXpoyQoRDiGhDQ4UBEvK4bAKvBPG77G5Z/he3XvKIwty/ErnKC7aVWpa+a2sn+x mnOz+E7M6eVM/nSkdXRn/wWfAxXYZbwJ5+oLMyKERHEyvl6/acKAoTmH7vNNVmjt TKdXUoEQr1rTzGD05Zlm0wC5sB8+PnCIJQV/g779HpYLNtFJq/YyAF2d2NoVXkcg EDMdZsy7f/vWd0+4oKpR18RvDdKzBuzHUJdiVC/P9rt7FDvI5YQ= =TbI5 -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/--