Message ID | MWHPR1201MB0127B63A25821518C8396FC2FDC30@MWHPR1201MB0127.namprd12.prod.outlook.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EDFE760209 for <patchwork-dri-devel@patchwork.kernel.org>; Sat, 24 Feb 2018 05:09:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB259299D4 for <patchwork-dri-devel@patchwork.kernel.org>; Sat, 24 Feb 2018 05:09:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD71629AFE; Sat, 24 Feb 2018 05:09:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7547D299D4 for <patchwork-dri-devel@patchwork.kernel.org>; Sat, 24 Feb 2018 05:09:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 62F586F3D7; Sat, 24 Feb 2018 05:09:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0062.outbound.protection.outlook.com [104.47.42.62]) by gabe.freedesktop.org (Postfix) with ESMTPS id E1BBB6F3D7 for <dri-devel@lists.freedesktop.org>; Sat, 24 Feb 2018 05:09:09 +0000 (UTC) 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; bh=uRWJspzMwG9LTUyDJUImOmPrcKBe6z/gTfJXjfGABF8=; b=iHmPFWyses4GZW68MNvKKSlAjFpIg5qr5eN3ppa00kNh4USHGoD2kQNAVNVvOQxJrHnuXDU9iuhV+G5SxAAwPzpaZIvj5PKVtK6sr3Z2eWZoredLII8FMhuoAGB3tnMAq7MVKTcsjTxOnO56YKKU3JNGdrMcQRznmrwwmHQgLXc= Received: from MWHPR1201MB0127.namprd12.prod.outlook.com (10.174.98.142) by MWHPR1201MB2558.namprd12.prod.outlook.com (10.172.98.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Sat, 24 Feb 2018 05:09:07 +0000 Received: from MWHPR1201MB0127.namprd12.prod.outlook.com ([10.174.98.142]) by MWHPR1201MB0127.namprd12.prod.outlook.com ([10.174.98.142]) with mapi id 15.20.0485.022; Sat, 24 Feb 2018 05:09:07 +0000 From: "He, Roger" <Hongbo.He@amd.com> To: =?utf-8?B?Q2hyaXN0aWFuIEvDtm5pZw==?= <ckoenig.leichtzumerken@gmail.com>, "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org> Subject: RE: [PATCH 2/2] drm/ttm: cleanup ttm_tt_create Thread-Topic: [PATCH 2/2] drm/ttm: cleanup ttm_tt_create Thread-Index: AQHTrKFfsIYvrCpjXUqJHIraKWdsOqOzAcIQ Date: Sat, 24 Feb 2018 05:09:06 +0000 Message-ID: <MWHPR1201MB0127B63A25821518C8396FC2FDC30@MWHPR1201MB0127.namprd12.prod.outlook.com> References: <20180223122509.52465-1-christian.koenig@amd.com> <20180223122509.52465-2-christian.koenig@amd.com> In-Reply-To: <20180223122509.52465-2-christian.koenig@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Hongbo.He@amd.com; x-originating-ip: [116.228.147.241] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; MWHPR1201MB2558; 7:Ja47hajRVkrKIaHHcO8u/hXeTCN6PqGSUCXtJ6g4BX9M7t5NMs4WeTrd4+QMgfwBmylI6cDfxUL8Rf2nKeD43iPqJbcu9bHLcAfQW+Sjxho2Mx09/C9NuHAI8WcpGADeaLbeL6DVTSa2J31uppcFrfk3OEl7+pFMC2F4ich6SroKUMA7QavHpPgAzl8AhBUU0XrEqt3J0aLOuStDXm7fgXV9cJKCyD92mLSGKEokxEvwQrkeFbQrVpftPQzPIyBH; 20:Vz8sbXHnlmqJS74+V1j0dGGeT3TjtLK8qk7w6yPceEGPKy3pLY6tfeSkRAEFKlznRR2KUbNjV3Tmfsr5iQGRkF6Mv2MBi1uRAGaZxSrFLzwsCYbWniMf2VjPTfwXarsS7Dn4Bb/d9QKV5YGQa2nnW7HohcevmtI8091vJHVhnVyJpkV5oc6BKMg4ZUML9YVYjOsiVdPLDmenV9cZQTHFpqki75IDEb2+2YA9TSlay8CHAlIoaLK8EvkoTkcSHDOD x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 934e0b90-d2ad-490c-2faa-08d57b44bb26 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020); SRVR:MWHPR1201MB2558; x-ms-traffictypediagnostic: MWHPR1201MB2558: x-microsoft-antispam-prvs: <MWHPR1201MB25589384564894E049E2C1B0FDC30@MWHPR1201MB2558.namprd12.prod.outlook.com> x-exchange-antispam-report-test: UriScan:(767451399110)(217544274631240); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231211)(944501161)(52105095)(6055026)(6041288)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:MWHPR1201MB2558; BCL:0; PCL:0; RULEID:; SRVR:MWHPR1201MB2558; x-forefront-prvs: 0593E261C4 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(376002)(346002)(39380400002)(396003)(13464003)(189003)(199004)(74316002)(76176011)(2900100001)(5660300001)(53936002)(478600001)(110136005)(25786009)(2501003)(99286004)(77096007)(26005)(6116002)(3846002)(305945005)(66066001)(86362001)(2906002)(186003)(55016002)(7736002)(6506007)(6436002)(8936002)(6246003)(102836004)(53546011)(97736004)(68736007)(966005)(3280700002)(3660700001)(72206003)(106356001)(9686003)(6306002)(14454004)(105586002)(316002)(8676002)(39060400002)(229853002)(81156014)(2950100002)(33656002)(81166006)(7696005); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR1201MB2558; H:MWHPR1201MB0127.namprd12.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: qPsh9KhYvZZHQBlMDoafVZJ3hQoIeFayxgGRHsLO3H5CK6geqNUiFRyjGcA10ZrmjKT1ozmL0/LYZgAi4wGUzPsJo6AlI0kGBBkzbOsWChX37ae+av1XD0YemnvXQ00rbDWjtFdBwSTiA3dNTDbHhrvDcwQDXARj1IRvN6obi7Y= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 934e0b90-d2ad-490c-2faa-08d57b44bb26 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Feb 2018 05:09:06.9690 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB2558 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index 917942d03047..0ee3b8f11605 100644 --- a/drivers/gpu/drm/ttm/ttm_tt.c +++ b/drivers/gpu/drm/ttm/ttm_tt.c @@ -53,11 +53,9 @@ int ttm_tt_create(struct ttm_buffer_object *bo, bool zero_alloc) { struct ttm_bo_device *bdev = bo->bdev; - int ret = 0; uint32_t page_flags = 0; reservation_object_assert_held(bo->resv); - bo->ttm = NULL; if (bdev->need_dma32) page_flags |= TTM_PAGE_FLAG_DMA32; @@ -69,28 +67,27 @@ int ttm_tt_create(struct ttm_buffer_object *bo, bool zero_alloc)