Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1671623imu; Thu, 10 Jan 2019 00:39:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN70c9rDIs00dt07nQ/4NZxYQjDZDMHZWZ4iVJhF83TnLVRpkNB750dCDxWl5ARhPH17yXur X-Received: by 2002:a63:2e88:: with SMTP id u130mr8721294pgu.9.1547109563414; Thu, 10 Jan 2019 00:39:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547109563; cv=none; d=google.com; s=arc-20160816; b=KQoFO14kxjR9jZ+BVQy9UZMVsCHjT6vfSDpgxEX3U6Yegy8Vxb8S9+pDswu8MTjI2H IDQS445kIZ+T5I0dTyn2yNDx/wPuDgG5p8xYjWgg9kwX/C9JsV33I7vVLVo/Aegir2b+ RW0UrG8t9nIA9hWBsiqqZ7cKU4meFp9suYybEK2L4N3/ipi86dmMRIrW+nIC4DytLSP3 JpHRU57XYPL3ac8x2QR4rS7q4Oh6JxthXytnaYBBL+3p+n0nh8iX56MT3C8AUFmq3xxo elAtJDawNT7LSBwvIazMYvmD/Hl901TKc83+gcyBbA4uRK+wc0K2JEFus66nQohL58/R 3BBw== 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:user-agent :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=njfjVCvUL06l4WW6en/rOtyVLTktrSjrPmo4bkXx2Cw=; b=Hm3SPK3kTIMqJQrdge5NpEN/Lz63bbVSkuAhXdbcgP5UYoQQI2bVgdPo219D3M8nr4 MmMPTibOjnvTnUNsxew3nN1iED2qKPNo645IjBC9wIlrQ1O+qfRt7uEZ/VdHAKGe/Mgu 7hgV+nwX9M5QUd3zxYyzguupFgY0F3vAoS2gjuim5241YUsCm6VRBS0/efScfhbqYV8l Ug0o5gW4XqPsyurmSoKof7nd7vWC9lulmzsk3qME+zbX9Fifvih4GSOo+vlYvUioXf30 zQ5P4Axo7Jg8M2sUCIne7Y8pI7/C0Gb/OfAoX1luQzdECuMZBx3J4ZPV8djANLHTmDkz 4h+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=BWPaWGmv; 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 y13si5479938pgj.157.2019.01.10.00.39.08; Thu, 10 Jan 2019 00:39: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=BWPaWGmv; 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 S1727722AbfAJIg7 (ORCPT + 99 others); Thu, 10 Jan 2019 03:36:59 -0500 Received: from mail-eopbgr700048.outbound.protection.outlook.com ([40.107.70.48]:51518 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726369AbfAJIg7 (ORCPT ); Thu, 10 Jan 2019 03:36:59 -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=njfjVCvUL06l4WW6en/rOtyVLTktrSjrPmo4bkXx2Cw=; b=BWPaWGmvDfQmBM8IsoU4VxEweacU1uJ3VmrZIDvI1BSTij367KQH7SeUIt2DQZ2yFrPH2hDbN1qrFvHiCQsu8Lo8kB6gFPBAkFc5DJBKgGUwKngnY1KVqWzjag9tPDQKXxzjB6gshT50xphhETmNeKapAbKEy/L5Fxuc+2w/N+0= Received: from BN6PR12MB1714.namprd12.prod.outlook.com (10.175.101.11) by BN6PR12MB1236.namprd12.prod.outlook.com (10.168.227.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1516.15; Thu, 10 Jan 2019 08:36:52 +0000 Received: from BN6PR12MB1714.namprd12.prod.outlook.com ([fe80::1c01:3bbc:5ef1:4090]) by BN6PR12MB1714.namprd12.prod.outlook.com ([fe80::1c01:3bbc:5ef1:4090%11]) with mapi id 15.20.1516.015; Thu, 10 Jan 2019 08:36:52 +0000 From: "Koenig, Christian" To: Ard Biesheuvel , "linux-kernel@vger.kernel.org" CC: "linux-arm-kernel@lists.infradead.org" , "dri-devel@lists.freedesktop.org" , "will.deacon@arm.com" , "Bernhard.Rosenkranzer@linaro.org" , "Carsten.Haitzler@arm.com" , "Huang, Ray" , "Zhang, Jerry" , David Airlie Subject: Re: [RFC PATCH] drm/ttm: force cached mappings for system RAM on ARM Thread-Topic: [RFC PATCH] drm/ttm: force cached mappings for system RAM on ARM Thread-Index: AQHUqLYqeBA87jEBLUOvwyi3in13KaWoLdCA Date: Thu, 10 Jan 2019 08:36:52 +0000 Message-ID: <1ef4c460-9f11-3894-712f-b19b67287c4b@amd.com> References: <20190110072841.3283-1-ard.biesheuvel@linaro.org> In-Reply-To: <20190110072841.3283-1-ard.biesheuvel@linaro.org> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 x-originating-ip: [2a02:908:125b:9a00:a142:2be6:b7be:5a3a] x-clientproxiedby: AM5PR0202CA0004.eurprd02.prod.outlook.com (2603:10a6:203:69::14) To BN6PR12MB1714.namprd12.prod.outlook.com (2603:10b6:404:106::11) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Christian.Koenig@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN6PR12MB1236;20:9QuVhKajwWEt+O0qT4vZN1R0wCAChLEYv/X6ojX3IIXSpqOksHIeoQiSPU7bArOP9uSj7kEkEuOY8wnA9dpyhXL9J0gVSe9P9JTOO5LBkXJsJSB2Isr0BZwYCca0I5wSwZflAGZdyhkWqsZ8eGtYxUC33GpaXgSAVzSmqujiIQQuTxROQChO+cuPEihgW+6eN1FPM0JBU0Hz3cK2w7g5zGUTaYmBmsP8IaBxASAPyEGPMFraGePzS2IYsOj2W9u8 x-ms-office365-filtering-correlation-id: 6372ea1d-7e7b-4acc-4a72-08d676d6c52b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:BN6PR12MB1236; x-ms-traffictypediagnostic: BN6PR12MB1236: x-microsoft-antispam-prvs: x-forefront-prvs: 0913EA1D60 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(346002)(396003)(39860400002)(136003)(366004)(189003)(199004)(52116002)(2906002)(86362001)(99286004)(2501003)(76176011)(31696002)(54906003)(110136005)(316002)(36756003)(58126008)(72206003)(81166006)(8676002)(81156014)(14454004)(486006)(305945005)(478600001)(7736002)(6486002)(229853002)(8936002)(6436002)(106356001)(102836004)(105586002)(186003)(31686004)(386003)(6506007)(2616005)(476003)(68736007)(11346002)(446003)(46003)(4326008)(14444005)(256004)(64126003)(25786009)(97736004)(5660300001)(6512007)(65956001)(71190400001)(71200400001)(65806001)(6246003)(53936002)(6116002)(65826007);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR12MB1236;H:BN6PR12MB1714.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: CT25AwGHfhC4xNqLPU8CVb34MNnC+Zzwnw8wpFvzEH7nXMJJjpa3Id78GIgR/hPYMV1gGX4LGjnjnPRugazaHhgnMTA6RoYCRB1Ssqb8lsId6VG3s1ckfWnmypELUFlTMVZ0RuHubCiWHZ91IghC1Me1qsTriwzNqcWrAmdru7bIFlD+5joqx9FYQwE+gmV6lsGnCz8YXUP+Me120xyx96FMvICa/ngz38os0s2MrNb6tOQo4LxD91fe6R4nbbYTU8B/UP/Ln19l+VqSu2mVPtQiV2OtTQ9INmosdBovpZLK8ik+XaJYwnlEmG8LNjKF spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <410D8B22E2614F46A9833CB4D8DDB197@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6372ea1d-7e7b-4acc-4a72-08d676d6c52b X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jan 2019 08:36:52.4713 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1236 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQXJkLA0KDQp0aGFua3MgYSBsb3QgZm9yIHRoaXMhIEF0IGxlYXN0IHNvbWVib2R5IHdobyBj YW4gZXhwbGFpbiB3aHkgdGhpcyANCmRvZXNuJ3Qgd29yayBhcyBleHBlY3RlZC4NCg0KVGhlIHBy b2JsZW0gaXMg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