Message ID | 20230529171417.2146323-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 k13csp1663090vqr; Mon, 29 May 2023 10:16:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6wEYei24ALfeTjV1Qe6ees32ZYmT12Q2UZYm/eBI85n7w7jFGLIufpqkPrX40rqOMQjuYf X-Received: by 2002:a05:6a20:7f84:b0:103:b436:aef7 with SMTP id d4-20020a056a207f8400b00103b436aef7mr9192996pzj.16.1685380617557; Mon, 29 May 2023 10:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685380617; cv=none; d=google.com; s=arc-20160816; b=NfX6brbMz19rv7ZkNtiLog+sxG/dupjAx4Y5KYNw+rC1WWC9VwQOiaKFsLXK5YuA0f yZM4gvima0xyinq3IcxjayiBzisxXJ2G2SNIQuNrHedM37ENGO8P5Ef7htfnFuhfi3cp f1d56irXGUjVgMGrtmflI6pttu/RJoKel7XdI1NjqhaVICVg18b/CA0yToPY/VKUHcFo iV9a62dgCaGylAOem4aEBRGx0qfN65wQSUlcWzmyApxlv59taE5bPUXXtV1+5RLElDfk RnJwOYuRcUoxRz8L87rh0t5Ey4WoHVmBQWokEPKJc05HGM/bfH9T6lM5pQkd5E2e2NRU YzOw== 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=04PSEUplPtjG9MT+9RCjXsTkopZobBCJKVZKtMpL7U8=; b=SA4hDts9xDkaONE9MSqUc/HYkQ5I3F2xENuNlB3SaWT6ZDSnGle62NSHspRc0NrkKj njVjKzC61qWS3Ksrr00bwVN+Cak5HlK+PMws5rvMDmFPImLtGu41GB4Qc435qoG5zMO4 8G9e2z11gA4V/mzhelULhdtJGNWAA9A4cESFEeM7QfhbWr/xhcv04JXy1nTT/m73qpfC lkeIUvQiVJrBtae45Xn207DOohCtLpUf/A4Y1A5tMk1rCNbd/XyFV0Xkv6YxmZxJG9rB TnaBc0sjk/pzg3uh/nJpFLqMDVg8WGNPMKxPcGCU/igcbsWcVF+kC16+Uk8tZEF2aGov CzoQ== 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 x15-20020a17090ab00f00b002509203c8b2si9428024pjq.47.2023.05.29.10.16.41; Mon, 29 May 2023 10:16:57 -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 S229591AbjE2ROY (ORCPT <rfc822;callmefire3@gmail.com> + 99 others); Mon, 29 May 2023 13:14:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjE2ROW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 29 May 2023 13:14:22 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 70826BE for <linux-kernel@vger.kernel.org>; Mon, 29 May 2023 10:14:19 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8Cx_Opq3XRkj0kCAA--.846S3; Tue, 30 May 2023 01:14:18 +0800 (CST) Received: from openarena.loongson.cn (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxD79p3XRkLUJ_AA--.10654S2; Tue, 30 May 2023 01:14:17 +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, Li Yi <liyi@loongson.cn> Subject: [PATCH v4 0/6] drm/etnaviv: add pci device driver support Date: Tue, 30 May 2023 01:14:11 +0800 Message-Id: <20230529171417.2146323-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: AQAAf8DxD79p3XRkLUJ_AA--.10654S2 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBjvJXoW7uFy8XF4UZFyDXr1rGF1Dtrb_yoW8GF1rpF 47JFyYyry0vrW2k343AFn8XFy3C3WxWF9Yk3srt3sI9w4rAr1jvryDKa15Jr9xJr1fJr42 qrnIkry3WF17ArJanT9S1TB71UUUUUJqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bVkYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_JF0_JFyl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwA2z4 x0Y4vEx4A2jsIE14v26r1j6r4UM28EF7xvwVC2z280aVCY1x0267AKxVWUJVW8JwAaw2AF wI0_Jrv_JF1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27w Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE 14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x 0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km07C267AKxVWUXVWUAwC20s026c02 F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GF ylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUCVW8JwCI42IY6xIIjxv20xvEc7Cj xVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r 1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8sL 05UUUUU== 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?1767249666437243958?= |
Series |
drm/etnaviv: add pci device driver support
|
|
Message
Sui Jingfeng
May 29, 2023, 5:14 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 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