Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752096AbdLXFuS (ORCPT ); Sun, 24 Dec 2017 00:50:18 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:2768 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751847AbdLXFuJ (ORCPT ); Sun, 24 Dec 2017 00:50:09 -0500 From: Tan Xiaojun To: , , , , , , , , , , , , , CC: , , , Subject: [PATCH 00/12] drm: add check if io_mem_pfn is NULL and cleanup Date: Sun, 24 Dec 2017 14:14:16 +0800 Message-ID: <1514096068-80414-1-git-send-email-tanxiaojun@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.38] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1827 Lines: 45 I found an OOPS when I used the mainline kernel for graphical tests in Hisilicon D05, I do not know how to solve this problem until I saw your discussion on this issue a month ago: https://lists.freedesktop.org/archives/dri-devel/2017-November/159046.html And my problem can be solved perfectly by your solution. This is important for me, I want to solve this problem as soon as possible. So I follow the result of your discussion, make and send these patches below. If anything is not good, please point it out, thanks. Michal Srb (1): drm/ttm: Use ttm_bo_default_io_mem_pfn if io_mem_pfn is NULL Tan Xiaojun (11): drm/ast: remove the default io_mem_pfn set drm/bochs: remove the default io_mem_pfn set drm/cirrus: remove the default io_mem_pfn set drm/mgag200: remove the default io_mem_pfn set drm/nouveau: remove the default io_mem_pfn set drm/qxl: remove the default io_mem_pfn set drm/radeon: remove the default io_mem_pfn set drm/virtio: remove the default io_mem_pfn set drm/vmwgfx: remove the default io_mem_pfn set staging: remove the default io_mem_pfn set drm/ttm: unexport ttm_bo_default_io_mem_pfn and make it static drivers/gpu/drm/ast/ast_ttm.c | 1 - drivers/gpu/drm/bochs/bochs_mm.c | 1 - drivers/gpu/drm/cirrus/cirrus_ttm.c | 1 - drivers/gpu/drm/mgag200/mgag200_ttm.c | 1 - drivers/gpu/drm/nouveau/nouveau_bo.c | 1 - drivers/gpu/drm/qxl/qxl_ttm.c | 1 - drivers/gpu/drm/radeon/radeon_ttm.c | 1 - drivers/gpu/drm/ttm/ttm_bo_vm.c | 28 +++++++++++++++++++--------- drivers/gpu/drm/virtio/virtgpu_ttm.c | 1 - drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c | 1 - drivers/staging/vboxvideo/vbox_ttm.c | 1 - include/drm/ttm/ttm_bo_api.h | 11 ----------- 12 files changed, 19 insertions(+), 30 deletions(-) -- 2.7.4