Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1248438imu; Thu, 13 Dec 2018 11:48:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/XJm2bMXG8Ty+11LjjF0nAG4FCYtSYnSqSplXQT386DNeCzvdT6ONWK7vCrtoTLFFrpYkmk X-Received: by 2002:a62:c28e:: with SMTP id w14mr95249pfk.115.1544730504032; Thu, 13 Dec 2018 11:48:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544730504; cv=none; d=google.com; s=arc-20160816; b=rhrrclEr3m8VBtnRhGAhoaE+Fkcq96VX4DJoMb5JndfyEbyGL3+pSLd+19Un2drd1z Kyx8+fK3c6n7uMgNfQeLhZy6sYZwnhsSyTqOSF4RVNX6SNafBHQ928mlCSuwXaopw9Sr PKgTNgVNFmLFEONdNQmAOXm5ylNBXCt3p4hQ3Owl0lmrjfW3Vo4ETgABxi3OovvI+6po ELea/Fi1Bzb47RMtGQL1wjgLlNDJ5AixUP5JW/d48gQvSZCdLj73Rt/Xkv4sW1FT/mHh fxYuKpxXknRf7dckr6c19hyHRIKAmk3YFtqeOffrkRZE7h82RCz56nBJzoXSVBXGHyT1 m8zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=YK8TG67186BUChbeATFds9zvBXv8AsAISN24sv3wPZs=; b=CYi5WFGy2B+3I6svRxrOwLj4sXEnKrgIJtiWKYxOxFqVKwbMbyQ0M780XVh+l3kl4X YPIBMmYydkB2AyG7vNWOF+DXzTnQGrosXvf5uR3OCu53GM+aNkxFkxis9NGNAL7QN7yS Lf8HyJTYHhmCZ8594AvemDLjlCZ8+AQsfwOjLxHESqW+1yPEYmlQ1HJMjabjlPApbMFK ImaPKTkVs4Q3x5p9PN8MwW33r//SHkwAKuoN8ToP9GrDya4Zlq/FJlLnkUcV7d1TMzsm Cek0aRhf4rc/8X+njaeP8623DeMaee5bt+Z/ggqEbeSuIasSlpsk+/HUVtH/AAPt//Ci PRgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=stxSFvW+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a34si2093296pgm.427.2018.12.13.11.48.08; Thu, 13 Dec 2018 11:48:23 -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=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=stxSFvW+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728350AbeLMTqC (ORCPT + 99 others); Thu, 13 Dec 2018 14:46:02 -0500 Received: from mail-eopbgr710086.outbound.protection.outlook.com ([40.107.71.86]:16384 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727684AbeLMTqB (ORCPT ); Thu, 13 Dec 2018 14:46:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YK8TG67186BUChbeATFds9zvBXv8AsAISN24sv3wPZs=; b=stxSFvW+4NMehiGvfqrNlGULM+FRdt0HlH2USjIELn0MQpxXvQItE1CmRkCZsswhf+L7/93NiEiDgC2kh1CGSF8PXhbz2clt8MkDkTAD6aYDTQ0Kso3IbFxRZeNOFQF5+FrfFZ+8pQv8beFOj4geSo3VuO/92RTDWvCD0OFbEyc= Received: from SN1PR12MB0175.namprd12.prod.outlook.com (10.162.3.15) by SN1PR12MB0543.namprd12.prod.outlook.com (10.162.1.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.19; Thu, 13 Dec 2018 19:45:58 +0000 Received: from SN1PR12MB0175.namprd12.prod.outlook.com ([fe80::bc0e:7f7f:ee65:e2d5]) by SN1PR12MB0175.namprd12.prod.outlook.com ([fe80::bc0e:7f7f:ee65:e2d5%6]) with mapi id 15.20.1425.016; Thu, 13 Dec 2018 19:45:58 +0000 From: "Lendacky, Thomas" To: Alexander Duyck , Robin Murphy , Christoph Hellwig CC: "alexander.h.duyck@linux.intel.com" , "open list:INTEL IOMMU (VT-d)" , Benjamin Herrenschmidt , "open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)" , LKML , Guenter Roeck , Greg KH Subject: Re: [PATCH] dma-direct: Fix return value of dma_direct_supported Thread-Topic: [PATCH] dma-direct: Fix return value of dma_direct_supported Thread-Index: AQHUW3OhFptGvYyAe0eCrvzwxT16ZaUO8xaAgAA/mwCAbk9TgA== Date: Thu, 13 Dec 2018 19:45:57 +0000 Message-ID: References: <20181003234746.3586.42014.stgit@localhost.localdomain> <5329f992-d3aa-c16c-1218-c26d758889b8@arm.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0501CA0051.namprd05.prod.outlook.com (2603:10b6:803:41::28) To SN1PR12MB0175.namprd12.prod.outlook.com (2a01:111:e400:5143::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SN1PR12MB0543;20:/z/HzlONN4D96Ss4kOWap9tjZJECbTb1D6dye19VWYuHu2Hrc2OPqH2bnZUx369pzoEmBmNWdpfmMrWn3VuQR0lj6WkUkDC2pXgHURr2wUYqtXSuGorTavau1tNp5hCQxVEcRP2EQ/TRU8gwL+5W+YekNUctCGymqtjfekXnRDoCLD4Pzq3fOCVN0juv6wbQ65ktfcpIDsVV5CS/n942IASnKEXeQs9cCjSz4g6+9fAhGgoA50hsU4eaz4c+cYNc x-ms-office365-filtering-correlation-id: e86df2b7-a153-4702-acf9-08d6613399df x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:SN1PR12MB0543; x-ms-traffictypediagnostic: SN1PR12MB0543: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(999002)(6040522)(2401047)(5005006)(8121501046)(3231475)(944501520)(52105112)(93006095)(93001095)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:SN1PR12MB0543;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB0543; x-forefront-prvs: 088552DE73 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(366004)(136003)(376002)(39860400002)(396003)(51914003)(199004)(189003)(52314003)(7416002)(8676002)(8936002)(81156014)(81166006)(966005)(5660300001)(14454004)(36756003)(31686004)(25786009)(478600001)(66066001)(72206003)(229853002)(7736002)(305945005)(105586002)(106356001)(99286004)(97736004)(256004)(26005)(6486002)(6436002)(6246003)(110136005)(39060400002)(54906003)(71200400001)(4326008)(186003)(6506007)(386003)(102836004)(53546011)(6306002)(31696002)(446003)(11346002)(476003)(486006)(53936002)(68736007)(6512007)(2616005)(86362001)(52116002)(76176011)(6116002)(71190400001)(2906002)(3846002)(316002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB0543;H:SN1PR12MB0175.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: rh9+T5HcukRSU+htgD8z8mC4ZHRw6InUTK6m/KbsMi1eNFgDuYlcjkThsEmwhS5o2xdqcfLNQB/mVqB2I1KHtYOhktvM/sq7EQJx6SEhUxV2x65zb0Rw1EFscn1My5r4bp3psp+xMxR+l63AT/YqaI4ZmZME3e4ST2PRfJtEfR5XymU3XnoVbnuuW7O+tPjeEKyl0ODxMDQ7GVwlvaPRmOWf2VNe5eHRtV+ECg1c73uVQyKg633mQ+QgYOBD7Kz3T4VINob4PZDF8dI6/cdFqe9yih+QFtrdsMcWigxLjYb9er1GUxCBiui3KJ8q1rU9 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e86df2b7-a153-4702-acf9-08d6613399df X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2018 19:45:57.7787 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0543 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMTAvMDQvMjAxOCAxMDoxMyBBTSwgQWxleGFuZGVyIER1eWNrIHdyb3RlOg0KPiBPbiBUaHU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