Message ID | 20240226021912.1779715-1-chentao@kylinos.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-80433-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1838763dyb; Sun, 25 Feb 2024 18:57:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVr9b40ViKf9TA/zVZtvWISXvhHtSihb7Q4CHPu3Z/zGfmeOqqevAbjCJ0d5qNRbZxg4dJI/HwxnYJ0t7zeW5BNCtY4PA== X-Google-Smtp-Source: AGHT+IFnPriInlENsWRZ1U7dkZxpgDJMLukotVbewE1uQCn3t39ddHvOAC4c4hHDOxm2ye3CRujn X-Received: by 2002:a05:622a:1b9f:b0:42c:3a04:58ca with SMTP id bp31-20020a05622a1b9f00b0042c3a0458camr8245177qtb.11.1708916234707; Sun, 25 Feb 2024 18:57:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708916234; cv=pass; d=google.com; s=arc-20160816; b=W+FhhDV8qeh+HCFWnbcmcojCbAPK5nEO3pMHQSrZFesgPqi3raQJcDeesyjniQQMsY /+xPbf1oNhqxwGb0nIEJTE5gQHBY87ePOgRqpbQQay+eXFXbZqEoFFMO9lbC8Int43rC TdXHBGdvtycR2eQa+S8FTNxzcK9X0kBnjHkdsppaoSL3rFjJxP85N/IBZfNrElA5BQn4 bifjdcQqTFLGwPxJp6dO3WBFq+Bf5O/zrgaPFzpxDWOwV2U7wvluZK9jMHv69FnVQb5U 7Bs7TMacDIgNDhzXVe/26zdUxwNfkW7CM9GQ2cZwwQaE+XmWQGqxntI8WxmroXAU3DW8 h5ag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=Z5UnCVOzT8fibOYTKwdKS4/aTN0k01MEq+qn1Y6DQQM=; fh=/4StacZPtI0Kpvs092+TK575iwW8j3NWvctW7fDD7sY=; b=S1VELYcorONemv6TS+eVkIITh82jc9kjiDWsNQhgt4wTpX35CpZKludMhinvxtoCOS Mcl8LOLmXgMugF8kg6N6msRC96CaaHnNDdvOsICagPdMZFq095Fo5dZdS/KSCYDOogQ9 MSVduzseRf7Z2QdMN7SumeJ1J3D0QxmL16AMmwAdu0vIyIaBKbkRG0zzjgNP6GRP20wH 3oVvkm/aqqbtsZo06/UCX6S0YwNZEvlUI5dV6xhwzqsoCyoPJmcw0Wqocn9PCqcvVwVU sdccTE2bou/8fJ5HCeChDUqYv75jgT7SHQXTVmdjMatnVgAdt1XlF3ax1eVg9Lwnvdoj tlvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-80433-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80433-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e26-20020ac8671a000000b0042e3fafd6a5si4006308qtp.88.2024.02.25.18.57.14 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 18:57:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80433-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-80433-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80433-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6E95C1C20380 for <ouuuleilei@gmail.com>; Mon, 26 Feb 2024 02:57:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43D3214F61; Mon, 26 Feb 2024 02:57:04 +0000 (UTC) Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14254EEDE for <linux-kernel@vger.kernel.org>; Mon, 26 Feb 2024 02:56:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708916222; cv=none; b=UmGRTwcWYVPQ4ozCIChqfyZuGY4ibRzhHelSo+nSGf0awnmrvew7b3S+uzxUYQ9KiqhffzIopMyG+9uUQ4nGFEcZp4JbeANpJfaQvrnDA7TZvq9u4qnA0SyZY1qNewFnjaI3RDHmolCZMUlF3y7UDHoZvIiIXfbRP/RFKnmL59g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708916222; c=relaxed/simple; bh=RkYRKXC8rDGhcHXpOqxOD+2kabTswxu8nRbiz9T3PnA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=hDnP7/8OUfb5Z34jHcnBbqMyf+ypN2oSUCD9aEqIRREGRo4pYjNTva43lFaVnAiSLc5iib6z8GWi5hSwXhoj4gf0a5mEUsxe1BbwndlpHFF8jsLOdfTX8MLgouWjqxYL7Nn1DLBx+y7l17Xp+NsNMVCqIeyXPAhcyepaVD2WTbc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 4546ceb75acc42a9b2151b68aacf51a8-20240226 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:e41c192e-b886-4454-bc77-1e6bcaeef539,IP:10, URL:0,TC:0,Content:0,EDM:25,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACT ION:release,TS:20 X-CID-INFO: VERSION:1.1.37,REQID:e41c192e-b886-4454-bc77-1e6bcaeef539,IP:10,UR L:0,TC:0,Content:0,EDM:25,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:20 X-CID-META: VersionHash:6f543d0,CLOUDID:42c032ff-c16b-4159-a099-3b9d0558e447,B ulkID:2402261019466BTZH2M6,BulkQuantity:0,Recheck:0,SF:66|38|24|17|19|44|1 02,TC:nil,Content:0,EDM:5,IP:-2,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC: nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI X-UUID: 4546ceb75acc42a9b2151b68aacf51a8-20240226 Received: from mail.kylinos.cn [(39.156.73.10)] by mailgw (envelope-from <chentao@kylinos.cn>) (Generic MTA) with ESMTP id 1034945641; Mon, 26 Feb 2024 10:19:44 +0800 Received: from mail.kylinos.cn (localhost [127.0.0.1]) by mail.kylinos.cn (NSMail) with SMTP id 7A78CE000EBC; Mon, 26 Feb 2024 10:19:44 +0800 (CST) X-ns-mid: postfix-65DBF540-285856213 Received: from kernel.. (unknown [172.20.15.254]) by mail.kylinos.cn (NSMail) with ESMTPA id 43257E000EBC; Mon, 26 Feb 2024 10:19:41 +0800 (CST) From: Kunwu Chan <chentao@kylinos.cn> To: lucas.demarchi@intel.com, ogabbay@kernel.org, thomas.hellstrom@linux.intel.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch Cc: intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Kunwu Chan <chentao@kylinos.cn> Subject: [PATCH] drm/xe: use KMEM_CACHE() to create xe_hw_fence cache Date: Mon, 26 Feb 2024 10:19:12 +0800 Message-Id: <20240226021912.1779715-1-chentao@kylinos.cn> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791928549597768532 X-GMAIL-MSGID: 1791928549597768532 |
Series |
drm/xe: use KMEM_CACHE() to create xe_hw_fence cache
|
|
Commit Message
Kunwu Chan
Feb. 26, 2024, 2:19 a.m. UTC
Use the KMEM_CACHE() macro instead of kmem_cache_create() to simplify
the creation of SLAB caches when the default values are used.
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
---
drivers/gpu/drm/xe/xe_hw_fence.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_hw_fence.c b/drivers/gpu/drm/xe/xe_hw_fence.c index a6094c81f2ad..cd258e0ccdf3 100644 --- a/drivers/gpu/drm/xe/xe_hw_fence.c +++ b/drivers/gpu/drm/xe/xe_hw_fence.c @@ -20,9 +20,7 @@ static struct kmem_cache *xe_hw_fence_slab; int __init xe_hw_fence_module_init(void) { - xe_hw_fence_slab = kmem_cache_create("xe_hw_fence", - sizeof(struct xe_hw_fence), 0, - SLAB_HWCACHE_ALIGN, NULL); + xe_hw_fence_slab = KMEM_CACHE(xe_hw_fence, SLAB_HWCACHE_ALIGN); if (!xe_hw_fence_slab) return -ENOMEM;