Message ID | 20230529172452.2148819-1-suijingfeng@loongson.cn |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1670121vqr; Mon, 29 May 2023 10:31:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6VPQ3yAbC+0oWt8Q/4iBb1F53MnHw9Vo+2xIvEHCG3pmEl9h6/ipYQS/lD/Xbq1jT3TfzC X-Received: by 2002:a17:902:8ec3:b0:1a6:4b60:3195 with SMTP id x3-20020a1709028ec300b001a64b603195mr8702556plo.66.1685381476181; Mon, 29 May 2023 10:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685381476; cv=none; d=google.com; s=arc-20160816; b=QXiEdnNEle3hCTdEcgvYYzYejh/hItTCHbnAAOuGLVuhxCwvGTIp4OwrteYrC/fCsL +qiQPBJsbT4O6HbiKW6wuEaiI++9fmPRa2n2hs5cNXEhFX5xiStVcGaP8G75ijmASQV4 rKrg3llpoDbyhbJyeroQ729yvYvwesFg5aUhsQLx/jE3n8qAaLXS2PsnEotH/uCpvidl 8XJcc+xObqBaPlvp/nwbSdIdQdOLZ1jtxxO85IK0Vw5XXADXegosjfcgisJ8YjCuLSGY IySgZ9IbpzbTdBEXdmeJFvw0j1nXYOXMLlye+b3mdE7XiAt/xxk0R8Tit6w2w4qFrjfd XZ7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=CSaPnG79uNvgcncIY1+LgtNcrFmhl4vh8aJEIw6GBUA=; b=eubN6Q0/4rl/eG3ZtPuVK4zzZWQMfnAaHi0iOV0EMDLgt79CFraSv5EARY8HoEpJ0T OffKxIXyMAcBiNf82c3QvljOwnOTa0zLsAP/ELnkaT4fW7gYgmVxwUSyIZiiKet5heiE 8SdQoWaZiEM6cYH7TtXyV1Q6XbhzsFYvkGKKCIGsi4o9Sl9n2sjOr7+gk/BQIOZEj0oo Pv1wYKopMfKCdttYCpOoUPCZ2m1d1f+niSCVAwj0ifhcTpL+ONjPLHjLKa1Vkf0iUjWf D4b+UR5y/DQzXAAcderd2x/Q/I1+mT1wV6MNkJHgqi0GRh9m1YavIqo9UrmfzPDvIarB 5c6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y23-20020a1709029b9700b001a2513b8e14si9300975plp.84.2023.05.29.10.31.00; Mon, 29 May 2023 10:31:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229621AbjE2RZK (ORCPT <rfc822;callmefire3@gmail.com> + 99 others); Mon, 29 May 2023 13:25:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbjE2RZB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 29 May 2023 13:25:01 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 56949CD for <linux-kernel@vger.kernel.org>; Mon, 29 May 2023 10:24:54 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8Axz+vl33RkK0oCAA--.5147S3; Tue, 30 May 2023 01:24:53 +0800 (CST) Received: from openarena.loongson.cn (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxMuXk33RkhkV_AA--.9919S2; Tue, 30 May 2023 01:24:52 +0800 (CST) From: Sui Jingfeng <suijingfeng@loongson.cn> To: Lucas Stach <l.stach@pengutronix.de>, Russell King <linux+etnaviv@armlinux.org.uk>, Christian Gmeiner <christian.gmeiner@gmail.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: linux-kernel@vger.kernel.org, etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, loongson-kernel@lists.loongnix.cn Subject: [PATCH v5 0/6] drm/etnaviv: add pci device driver support Date: Tue, 30 May 2023 01:24:46 +0800 Message-Id: <20230529172452.2148819-1-suijingfeng@loongson.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8CxMuXk33RkhkV_AA--.9919S2 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBjvJXoW7uFy5WF4rCw45CrW8Kw43GFg_yoW8GF1DpF 47JFyYyry0vrW2k343AFn8XFy3C3WxWF9Yk3srt3sI9w4rAr1jvryDKa15Jr9xJr1fJF42 qrnIkry3WF17ArJanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU baxYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jw0_Gr1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW7JVWDJwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVWxJVW8Jr1l84 ACjcxK6I8E87Iv67AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4j6r4UJwAa w2AFwI0_Jrv_JF1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44 I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Wrv_ZF1lYx0Ex4A2 jsIE14v26F4j6r4UJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82 IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xFxVAFwI0_Jrv_JF1lx2Iq xVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r 1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Ar0_tr1lIxAIcVC0I7IYx2IY 6xkF7I0E14v26F4j6r4UJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aV AFwI0_Cr0_Gr1UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZF pf9x07URyIUUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767249666437243958?= X-GMAIL-MSGID: =?utf-8?q?1767250566735176453?= |
Series |
drm/etnaviv: add pci device driver support
|
|
Message
Sui Jingfeng
May 29, 2023, 5:24 p.m. UTC
There is a Vivante GC1000 (v5037) in LS2K1000 and LS7A1000, this GPU is a PCI device, and it has 2D and 3D cores in the same device. Thus, this patch series is trying to add PCI device driver support to etnaviv. Sui Jingfeng (6): drm/etnaviv: add a dedicated function to register an irq handler drm/etnaviv: add a dedicated function to get various clocks drm/etnaviv: add dedicated functions to create and destroy platform devices drm/etnaviv: add helpers for private data construction and destruction drm/etnaviv: expand driver support for the PCI devices drm/etnaviv: allow usperspace create cached coherent bo drivers/gpu/drm/etnaviv/Makefile | 1 + drivers/gpu/drm/etnaviv/etnaviv_drv.c | 183 +++++++++++++------ drivers/gpu/drm/etnaviv/etnaviv_drv.h | 7 + drivers/gpu/drm/etnaviv/etnaviv_gem.c | 22 ++- drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c | 9 +- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 185 ++++++++++++++------ drivers/gpu/drm/etnaviv/etnaviv_gpu.h | 13 ++ drivers/gpu/drm/etnaviv/etnaviv_pci_drv.c | 88 ++++++++++ drivers/gpu/drm/etnaviv/etnaviv_pci_drv.h | 10 ++ include/uapi/drm/etnaviv_drm.h | 11 +- 10 files changed, 415 insertions(+), 114 deletions(-) create mode 100644 drivers/gpu/drm/etnaviv/etnaviv_pci_drv.c create mode 100644 drivers/gpu/drm/etnaviv/etnaviv_pci_drv.h