From patchwork Sat Jun 6 18:55:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oded Gabbay X-Patchwork-Id: 6560031 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 61C5AC0020 for ; Sat, 6 Jun 2015 18:55:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7D7CD20636 for ; Sat, 6 Jun 2015 18:55:19 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 5049B205EF for ; Sat, 6 Jun 2015 18:55:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 028006E04B; Sat, 6 Jun 2015 11:55:17 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by gabe.freedesktop.org (Postfix) with ESMTP id 0BE1B6E04B for ; Sat, 6 Jun 2015 11:55:16 -0700 (PDT) Received: by wigg3 with SMTP id g3so15052067wig.1 for ; Sat, 06 Jun 2015 11:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=KdiyiE7nR+skro76dKue/muAjja16e0GASBvJNkGOZQ=; b=FO+4e/NlctbMdBAT9YJHINyxtzNyqYUANrJ/RI0vv1EB3rVe7AFgf/sqYR46kuw/bS toAzTb/wRqLcUGnas4fuemswUzxQxQoqVj2SgRfgaTX8Vs71B3w+irxQ2UVBS34pN5hz 3OQkRV9toYlCBY+Hj6cn4rdTjDypqchgXdGYpv4Ihc1XzVzfGpwktztLPugQEv4J9KoD H7wVzWGgj6AYkcK2nabB38rOKl2a9mMFhIxuUwGOGQOIiig008/94WXbORNRhP5KiAfG huC2baKsKz/qk1kcwsSpV5iMBRuDhKB2B1xVu+MwrV3XpsjniULbJRvF3pLt+dCgYqSE 0PAA== X-Received: by 10.180.39.131 with SMTP id p3mr7649115wik.82.1433616915019; Sat, 06 Jun 2015 11:55:15 -0700 (PDT) Received: from odedg-home.localdomain ([77.125.85.14]) by mx.google.com with ESMTPSA id l6sm16274494wjz.4.2015.06.06.11.55.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Jun 2015 11:55:14 -0700 (PDT) From: Oded Gabbay To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/amdkfd: Add missing properties to CZ device info Date: Sat, 6 Jun 2015 21:55:12 +0300 Message-Id: <1433616912-9134-1-git-send-email-oded.gabbay@gmail.com> X-Mailer: git-send-email 2.4.2 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds two missing properties initializations to the device info structure of CZ. As we don't have CZ support yet, it isn't critical, but its important to fix this now instead of forgetting about it later. Signed-off-by: Oded Gabbay --- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c index 1d1e2e9..75312c8 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c @@ -44,7 +44,10 @@ static const struct kfd_device_info kaveri_device_info = { static const struct kfd_device_info carrizo_device_info = { .asic_family = CHIP_CARRIZO, .max_pasid_bits = 16, + /* max num of queues for CZ.TODO should be a dynamic value */ + .max_no_of_hqd = 24, .ih_ring_entry_size = 4 * sizeof(uint32_t), + .event_interrupt_class = &event_interrupt_class_cik, .num_of_watch_points = 4, .mqd_size_aligned = MQD_SIZE_ALIGNED };