From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8893C433E0 for ; Wed, 3 Mar 2021 02:16:37 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 506B664E75 for ; Wed, 3 Mar 2021 02:16:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 506B664E75 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=uniontech.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=amd-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E9C7989FC0; Wed, 3 Mar 2021 02:16:36 +0000 (UTC) X-Greylist: delayed 69766 seconds by postgrey-1.36 at gabe; Wed, 03 Mar 2021 02:05:25 UTC Received: from regular1.263xmail.com (regular1.263xmail.com [211.150.70.202]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3F2196E328 for ; Wed, 3 Mar 2021 02:05:25 +0000 (UTC) Received: from localhost (unknown [192.168.167.32]) by regular1.263xmail.com (Postfix) with ESMTP id BCF2271A; Wed, 3 Mar 2021 10:05:20 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-SKE-CHECKED: 1 X-ABS-CHECKED: 1 Received: from chenli.uniontech.com (unknown [58.246.122.242]) by smtp.263.net (postfix) whith ESMTP id P27940T140460556089088S1614737119617034_; Wed, 03 Mar 2021 10:05:20 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <9887e772dd8caf221d618ba11a37a75b> X-RL-SENDER: chenli@uniontech.com X-SENDER: chenli@uniontech.com X-LOGIN-NAME: chenli@uniontech.com X-FST-TO: amd-gfx@lists.freedesktop.org X-SENDER-IP: 58.246.122.242 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 Date: Wed, 03 Mar 2021 10:05:19 +0800 Message-ID: <87tuptt2jk.wl-chenli@uniontech.com> From: Chen Li To: amd-gfx@lists.freedesktop.org Subject: [PATCH v2 0/3] Use kvmalloc_array for radeon and amdgpu CS chunks User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-Mailman-Approved-At: Wed, 03 Mar 2021 02:16:36 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alex Deucher , =?ISO-8859-1?Q?=22Christian_K=F6nig=22?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" When testing kernel with trinity, the kernel turned to tainted in that radeon CS require large memory and order is over MAX_ORDER. kvmalloc/kvmalloc_array should be used here in that it will fallback to vmalloc if necessary. Chen Li (3): drm/radeon: Use kvmalloc for CS chunks drm/amdgpu: Use kvmalloc for CS chunks drm/amdgpu: correct DRM_ERROR for kvmalloc_array Changelog: v1->v2: * also use kvmalloc in amdgpu * fix a DRM_ERROR message for kvmalloc_array. drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 6 +++--- drivers/gpu/drm/radeon/radeon_cs.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) -- 2.30.0 _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx