Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3917321imu; Mon, 14 Jan 2019 11:22:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN7pg989tBRzeo1Mq2wtZ/k+xcHpgjk/Ppe0PF49HOYOwFAcAUAEbfCs9TvOuG1IKdgcwVva X-Received: by 2002:a65:6215:: with SMTP id d21mr24373173pgv.289.1547493766053; Mon, 14 Jan 2019 11:22:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547493766; cv=none; d=google.com; s=arc-20160816; b=y+/tz/LFIZgzmdxhClF3hevrLHEb50XcRNKIdp+4f8WoBjKTC9eZOi/UiKgKoVX5v2 8bXzYWNvbi3QNV+WGhFjdurfxODADB7vAr5b0y6KCJlR60CsXmcqiL2gDouY4j3vv277 UDk/tC0fbIytN+c4z8YZ7wgbXqXJtAev1DsQjT91tkecX9ttg2h8tWCyxCesqUBuQC6U VzHhYZWeOxPYQCtl6ahz2fMKs9QcWjkZkOGxulVZDuCcVSIM5COQa+sHiU+o2ixIb1wP D7U4Dk6zmse1I0RBf7c9BFmpa3AGnMcddG3kEhrgMCk3+5IwyP59Q8MrUBLMCl+pU3wQ ZOpg== 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=50t7m6tlXiQ8OasY1KpdEa6t4TyMuFrjMCV3hR2pUjk=; b=o+3RJNBi+aM8sMrhS36G7Wr68LkQa16/gHLqAsa/xQtILGcv3Afdlzw229FlVx8J8K Fyn5JGitrM5oDYnpgee7yWtsKkr//WYyrTAOLw5Ca8sMn7N21KKNMhR2d3qkLKsI1POD FdDpKZRT/cT3lEehiMryDJgt7fqbvcthWQkGs+o0qqGOYZfNGaY5huKPGQ0IA7U1xs6m y3aVvFuZ93ACzZ43BtMbaHTGDmf6oNqR2XXApubTF9lDsDu0hcygLfoJQzzMd/shjM1/ yA/pgfxFyEafaFOH530VvMnqb43Y3oLrVZ+xxEehl0HWNI/qzcUyHf/NCHt0KZiSMJiJ 3GMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=GzUv+X01; 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 i1si896235pgs.417.2019.01.14.11.22.30; Mon, 14 Jan 2019 11:22:46 -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=GzUv+X01; 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 S1726773AbfANTVM (ORCPT + 99 others); Mon, 14 Jan 2019 14:21:12 -0500 Received: from mail-eopbgr740075.outbound.protection.outlook.com ([40.107.74.75]:45591 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726643AbfANTVL (ORCPT ); Mon, 14 Jan 2019 14:21:11 -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=50t7m6tlXiQ8OasY1KpdEa6t4TyMuFrjMCV3hR2pUjk=; b=GzUv+X01bjzhV1qgOt5e4zuNde3Ax7Y+6KOazDbKyvGFn4eqUykG2spZGjkwR40hPkYDVhN/EjorkFbrF7lJEnA6/+vn3Xz0ZfiYFQ1w+86BYxGH1zDKSHFhWcP9dOw1AatZZ8dFVQabPIeoRa+laRoo5ZsKDzBLbOe/clqgfgQ= Received: from BN6PR12MB1714.namprd12.prod.outlook.com (10.175.101.11) by BN6PR12MB1828.namprd12.prod.outlook.com (10.175.102.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1516.19; Mon, 14 Jan 2019 19:21:08 +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.019; Mon, 14 Jan 2019 19:21:08 +0000 From: "Koenig, Christian" To: Will Deacon CC: Ard Biesheuvel , =?utf-8?B?TWljaGVsIETDpG56ZXI=?= , Linux Kernel Mailing List , Carsten Haitzler , David Airlie , dri-devel , "Huang, Ray" , "Zhang, Jerry" , linux-arm-kernel , =?utf-8?B?QmVybmhhcmQgUm9zZW5rcsOkbnplcg==?= 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: AQHUqLYqeBA87jEBLUOvwyi3in13KaWoPfAAgAZfVICAAAyHgIAAYvAAgAAasQCAAAG3AIAAAgEA Date: Mon, 14 Jan 2019 19:21:08 +0000 Message-ID: References: <20190110072841.3283-1-ard.biesheuvel@linaro.org> <5d8135de-80fe-9c0e-2206-ecb809f64cdb@daenzer.net> <55facfb9-92af-86b8-40e9-d63b887b5592@amd.com> <9f956898-7973-98ee-6bf1-e1d445e9d365@amd.com> <20190114191350.GA29600@fuggles.cambridge.arm.com> In-Reply-To: <20190114191350.GA29600@fuggles.cambridge.arm.com> 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:1252:fb60:be8a:bd56:1f94:86e7] x-clientproxiedby: AM5PR04CA0031.eurprd04.prod.outlook.com (2603:10a6:206:1::44) To BN6PR12MB1714.namprd12.prod.outlook.com (2603:10b6:404:106::11) x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN6PR12MB1828;20:n+EGYNSi/hzTgA+NK7om5IliMCKjJ5ncpOMXEk+UxqR7jrQv45KTZT5yDyK/H8sQMA9lOaxGdOBnfnOwmlox9GkSg+jxF6V7BBIlZX7vW0aP6XqpGE/0ixiYp2aMRKWqJxAbqTSnni4gF/NnzBPkLvTa7GhrH7AFaIW6xon/ea0mkXMsCaXydPi8/SsXl3/WWkHMyTVdxHxWCN3Q7uzEd4zq+B0PnHb16XRcOn22T+B9XA7kcGY7lW4h+T6S9UcQ x-ms-office365-filtering-correlation-id: f02f0da5-87a6-4d7f-a633-08d67a556f88 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600109)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:BN6PR12MB1828; x-ms-traffictypediagnostic: BN6PR12MB1828: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Christian.Koenig@amd.com; x-microsoft-antispam-prvs: x-forefront-prvs: 0917DFAC67 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(136003)(39860400002)(346002)(376002)(396003)(43544003)(199004)(189003)(551934003)(99286004)(72206003)(256004)(478600001)(31696002)(86362001)(71200400001)(71190400001)(2616005)(386003)(229853002)(6436002)(102836004)(6506007)(65806001)(6486002)(186003)(476003)(97736004)(46003)(486006)(93886005)(11346002)(76176011)(52116002)(65956001)(446003)(64126003)(25786009)(6512007)(53936002)(6246003)(14454004)(8676002)(4326008)(54906003)(6916009)(105586002)(81156014)(81166006)(58126008)(106356001)(305945005)(31686004)(68736007)(5660300001)(316002)(8936002)(7736002)(6116002)(65826007)(2906002)(36756003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR12MB1828;H:BN6PR12MB1714.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: S96glF9ERGVvJiXts7N06eFPPtEChEsbGTpXvNI5JSmMkLWAgUGEP713U+KcStJTtlEo20tcdQPHjNn+tPOZye9XogDJYNpr8z2rlrUsZ1XcLm8KPYB815tNnh59OzOIoU8m06QCMzRVCajqzAej9btVmRbcxezkYy7zjRg+Ss3uE8e65WiywhfQsQdExgJjoN5nmdVA3K8IuDcaJvUDkZClBLUzvDyUtGRK8VhL0MHWsxwsO0h3Qpy50f8iFo3x0av3GiHzz+h5uYkcrMJ1U0rnZ9UDc13qjD7TEcUIQKEb+NtujRY5ILZsHILaVwA6T3ar5ZfhiTk1ciI9APU+WSoX4d9r3tCvBHbEp+LLAEz7RCspXhEA4DAsPhyrbfU74qxboLz9wsf4fwG4o7APetvIZqf7H9u7lbLi79jI7UE= 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: f02f0da5-87a6-4d7f-a633-08d67a556f88 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jan 2019 19:21:08.4461 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1828 Sender: linux-kernel-ow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