Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp567375yba; Fri, 12 Apr 2019 09:05:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFfqAj62VhR5DgllVixIHcnIe+GwSDmy/USbRKOn5kM4qMpCWCMpA25/n6MuPD+DGMa8/9 X-Received: by 2002:a63:78ce:: with SMTP id t197mr54474179pgc.314.1555085138942; Fri, 12 Apr 2019 09:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555085138; cv=none; d=google.com; s=arc-20160816; b=gruvErDcWg0jIzhYoAeybBS+Cs+yjjtxwkZE0aiIv4fb5mzAzcOVBxXsF+hdwR6xM0 xozyDF7dCRBdWBgbcLK+uZ/ybGAqgF1AKS1dVEGSojZDlq5aYCM7rvBQNJW35D4TAESd C1FeRxq7jQS5WPl3XLbNVSoY1Vth4lkFNrDh9oYDYwaGDusIIFmLhluT4tU7e667G67J jyuDT8N22ZWqBmUJhNbO4WIblIEgEGf2+nPKFPByOjMrB3HmNruBA9G3thj4Ilj6Wr2z f89BYkC+TSkkseyGYp3sHWTbjRVZ5qjNAkF86GIuxKGIIldWWWGn0PoKEAEFOPYMWymx 7FSw== 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:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=0xd5TEgLr6viGC+GKg3VSqEBnsK5UtzAgMYhv4wLNTQ=; b=zYavPYoS78RDSfBQ4psuEITqn8EKdAOLn5UHCGbBoXYl61NVX8Mt8/X+DGK0tO9nfK D5lq+S/fZrSh7dlg6PNuf5o/JrB4YKETP45BZP/6IaSDksvKmaDEYBh2ZlzChFZuDEHA jL84FmHeKovCOcG/l2VKRbvp3uQRjiNduYXHY9kp2HZqLJh7o1MNdIkP9cDebg7DsD6z NUt6uZDSPiseWiosw7spQWJLMithq+paNvezvei0+1mCWPONmg5aTRPPy94w0E7EVnlu W0CL6d6A5XYtD9IxmQYuYDdGdh0xEv32531a9O3jMz/yNY1Doook+186G/RUM7bMwpE/ w7/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector1 header.b=lx4tgomN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k123si17237622pfc.285.2019.04.12.09.05.23; Fri, 12 Apr 2019 09:05:38 -0700 (PDT) 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=@vmware.com header.s=selector1 header.b=lx4tgomN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727078AbfDLQEe (ORCPT + 99 others); Fri, 12 Apr 2019 12:04:34 -0400 Received: from mail-eopbgr800078.outbound.protection.outlook.com ([40.107.80.78]:12000 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726992AbfDLQEd (ORCPT ); Fri, 12 Apr 2019 12:04:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0xd5TEgLr6viGC+GKg3VSqEBnsK5UtzAgMYhv4wLNTQ=; b=lx4tgomNtudYklyd3fLXSRHsV3vThiL9bI+apDu3zAZqhQY1tiPbH+1LaKMZeSI+7U034FxC9gt4a5fCSx2VTjJjTuIwxz+Iun/feKguHaCBaoylS0jt7hp8p/F/0vbesN2cpqDMEKFs4TOrYT6utIhezlFLd8AmvFSiCLPRly4= Received: from MN2PR05MB6141.namprd05.prod.outlook.com (20.178.241.217) by MN2PR05MB6030.namprd05.prod.outlook.com (20.178.241.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.9; Fri, 12 Apr 2019 16:04:24 +0000 Received: from MN2PR05MB6141.namprd05.prod.outlook.com ([fe80::91e:292d:e304:78ad]) by MN2PR05MB6141.namprd05.prod.outlook.com ([fe80::91e:292d:e304:78ad%7]) with mapi id 15.20.1792.009; Fri, 12 Apr 2019 16:04:24 +0000 From: Thomas Hellstrom To: "dri-devel@lists.freedesktop.org" , Linux-graphics-maintainer , "linux-kernel@vger.kernel.org" CC: Thomas Hellstrom , =?utf-8?B?Q2hyaXN0aWFuIEvDtm5pZw==?= Subject: [PATCH 4/9] drm/ttm: Allow the driver to provide the ttm struct vm_operations_struct Thread-Topic: [PATCH 4/9] drm/ttm: Allow the driver to provide the ttm struct vm_operations_struct Thread-Index: AQHU8UllCfN1HiPxjkiuYBTS+xNlhA== Date: Fri, 12 Apr 2019 16:04:23 +0000 Message-ID: <20190412160338.64994-5-thellstrom@vmware.com> References: <20190412160338.64994-1-thellstrom@vmware.com> In-Reply-To: <20190412160338.64994-1-thellstrom@vmware.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VE1PR03CA0023.eurprd03.prod.outlook.com (2603:10a6:802:a0::35) To MN2PR05MB6141.namprd05.prod.outlook.com (2603:10b6:208:c7::25) authentication-results: spf=none (sender IP is ) smtp.mailfrom=thellstrom@vmware.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.20.1 x-originating-ip: [155.4.205.35] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8de3c4b1-bd52-4ad3-9f99-08d6bf6087a6 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020);SRVR:MN2PR05MB6030; x-ms-traffictypediagnostic: MN2PR05MB6030: x-ld-processed: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0,ExtAddr x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(366004)(346002)(376002)(39860400002)(396003)(199004)(189003)(110136005)(25786009)(476003)(2616005)(71190400001)(6512007)(2906002)(186003)(486006)(316002)(54906003)(68736007)(1076003)(6486002)(6436002)(446003)(478600001)(3846002)(71200400001)(6116002)(11346002)(66574012)(99286004)(256004)(14444005)(14454004)(2501003)(8676002)(66066001)(7736002)(4326008)(6506007)(81166006)(36756003)(81156014)(386003)(97736004)(102836004)(50226002)(106356001)(52116002)(5660300002)(53936002)(8936002)(305945005)(76176011)(26005)(86362001)(105586002);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR05MB6030;H:MN2PR05MB6141.namprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: XMQZKHmYgjZtdkWgh7vH6Cjrgs/sNGq+pC3q+vD+kodQvc8WUIODGADjOTQV0/gCa6WiNdwt+7uCuam6dBrmVzMxY66/4cBfbXg3G6klmwL82saIZO1mexZ3FZ/wGLlbhsMIEzrG12acX1xlMIJR+1Ylt+Zkmsi2utbJjSnT+HLHMZzB+nCr39bEcSzCreu90WJKYk22f+946VguKiRXPQeLvtHYvddHDJ52uZPAGBk0XKJb8zotJbTEVscCOhI9WXQDEUuUEuhO3cFi5mBn290gEOvY6YIZrxqe+Bhfe9gKpvjonnQhn530hNGCeHWDrxetC9Tw5E9Wz1OtWFFBaJxUfjJAgNYgY4tvjAZLgr7RJNBQiS9bSSFYH1lsBw08M2c2156mvMOBFkmm+j18Ow/x4fkV0xMmANNnKW+Fx9c= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8de3c4b1-bd52-4ad3-9f99-08d6bf6087a6 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 16:04:24.0428 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR05MB6030 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QWRkIGEgcG9pbnRlciB0byB0aGUgc3RydWN0IHZtX29wZXJhdGlvbnNfc3RydWN0IGluIHRoZSBi b19kZXZpY2UsIGFuZA0KYXNzaWduIHRoYXQgcG9pbnRlciB0byB0aGUgZGVmYXVsdCB2YWx1ZSBj dXJyZW50bHkgdXNlZC4NCg0KVGhlIGRyaXZlciBjYW4gdGhlbiBvcHRpb25hbGx5IG1vZGlmeSB0 aGF0IHBvaW50ZXIgYW5kIHRoZSBuZXcgdmFsdWUNCmNhbiBiZSB1c2VkIGZvciBlYWNoIG5ldyB2 bWEgY3JlYXRlZC4NCg0KQ2M6ICJDaHJpc3RpYW4gS8O2bmlnIiA8Y2hyaXN0aWFuLmtvZW5pZ0Bh bWQuY29tPg0KU2lnbmVkLW9mZi1ieTogVGhvbWFzIEhlbGxzdHJvbSA8dGhlbGxzdHJvbUB2bXdh cmUuY29tPg0KLS0tDQogZHJpdmVycy9ncHUvZHJtL3R0bS90dG1fYm8u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