From patchwork Thu Jul 10 21:50:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oded Gabbay X-Patchwork-Id: 4528501 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 71A55BEECB for ; Thu, 10 Jul 2014 23:34:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AD49C201F4 for ; Thu, 10 Jul 2014 23:34:01 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id D1E50201DE for ; Thu, 10 Jul 2014 23:34:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 579176E7BE; Thu, 10 Jul 2014 16:33:24 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 88AC06E163 for ; Thu, 10 Jul 2014 14:52:07 -0700 (PDT) Received: by mail-wg0-f49.google.com with SMTP id a1so199357wgh.32 for ; Thu, 10 Jul 2014 14:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5SUZE1ajUHkrydTz93vV4jmJB1SLBZQgMej4UHl6D7w=; b=Z0zjumt7kypHdhW05HqDwl02zU70MOrhifXvo8q77k44lLjLTsg5tORVbWoLpqroB5 UbhFQ+CvCoP60lfrMNAF7vDk/xIkKSue2O+cFl7od+2l8/mQWjAKAbEY9Q/hqbAAqFVk WcyXk5rWJxxItJMRhN7iovRQTyMan6zH4FWW1k2gElEzM/lEX3e1eiarpCv7TCJxOfmx la1DuKdvoknmFdQAIMThqMAjsTKDh8Dw7uzP2kUIAD5Su0lC9LeJIftx1jwwmPeyEfke RkOfWO3eUwoUzmP7qxahh9OLsD02PrtukJx891+yy9k8sv1z7T9yojAeA482bJ05cFvA pJ4w== X-Received: by 10.180.188.103 with SMTP id fz7mr114901wic.73.1405029126449; Thu, 10 Jul 2014 14:52:06 -0700 (PDT) Received: from localhost.localdomain ([77.127.59.49]) by mx.google.com with ESMTPSA id n2sm805353wjf.40.2014.07.10.14.52.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Jul 2014 14:52:05 -0700 (PDT) From: Oded Gabbay X-Google-Original-From: Oded Gabbay To: David Airlie , Alex Deucher , Jerome Glisse Subject: [PATCH 20/83] hsa/radeon: Add interrupt callback function to kgd2kfd interface Date: Fri, 11 Jul 2014 00:50:20 +0300 Message-Id: <1405029027-6085-19-git-send-email-oded.gabbay@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1405029027-6085-1-git-send-email-oded.gabbay@amd.com> References: <1405029027-6085-1-git-send-email-oded.gabbay@amd.com> X-Mailman-Approved-At: Thu, 10 Jul 2014 16:33:12 -0700 Cc: Andrew Lewycky , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 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.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 a new callback function to the kgd2kfd interface. The new callback is for propagating interrupts from radeon driver to the kfd driver. Signed-off-by: Oded Gabbay --- drivers/gpu/hsa/radeon/kfd_module.c | 1 + include/linux/radeon_kfd.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/hsa/radeon/kfd_module.c b/drivers/gpu/hsa/radeon/kfd_module.c index 6978bc0..ad21c6d 100644 --- a/drivers/gpu/hsa/radeon/kfd_module.c +++ b/drivers/gpu/hsa/radeon/kfd_module.c @@ -38,6 +38,7 @@ static const struct kgd2kfd_calls kgd2kfd = { .probe = kgd2kfd_probe, .device_init = kgd2kfd_device_init, .device_exit = kgd2kfd_device_exit, + .interrupt = kgd2kfd_interrupt, }; bool kgd2kfd_init(unsigned interface_version, diff --git a/include/linux/radeon_kfd.h b/include/linux/radeon_kfd.h index 40b691c..2f4f7c0 100644 --- a/include/linux/radeon_kfd.h +++ b/include/linux/radeon_kfd.h @@ -62,6 +62,7 @@ struct kgd2kfd_calls { struct kfd_dev* (*probe)(struct kgd_dev *kgd, struct pci_dev *pdev); bool (*device_init)(struct kfd_dev *kfd, const struct kgd2kfd_shared_resources *gpu_resources); void (*device_exit)(struct kfd_dev *kfd); + void (*interrupt)(struct kfd_dev *kfd, const void *ih_ring_entry); }; struct kfd2kgd_calls {