Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3445176rwd; Mon, 29 May 2023 10:31:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kLOpLGBNzryd294/s/9ekatl/TXFZ/6j+nssvM5nH50WiJeh11t/jZA8+PlHjtN0Gmgq6 X-Received: by 2002:a17:902:e5cc:b0:1ac:6d4c:c24b with SMTP id u12-20020a170902e5cc00b001ac6d4cc24bmr12163070plf.3.1685381515709; Mon, 29 May 2023 10:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685381515; cv=none; d=google.com; s=arc-20160816; b=ec/PsIFJVlf4SssX2Ry4oE/1qDDboLnetFRktUTv7COaN8wgoZuOflU2be9WyQeJqR 3Vd6vmS6oZVdgJ4LP8BGk1pamJpGR5ZS6AzvXx0gDVCDfVCUXbEWoj5MFmogRmFmGMNB UclwfyP2sqvLyXf2Zo8TtLNAVoC3rUA7rgUAdMfnDJYk3fHqx58OrE92jlfbhF7Mbgdj XYeWfLTfbu3G9XZWdkvIUuAdUuk8kyx/FDsUlIdXAk6QRmBL71/dqjO63HOwAMA7Fsdd iqsqSVHTIoPdkXSpb4d0Ok/OHyk72jO+/Fpo/U7yXLfuC2edicoM5Ot9RMENCSWrw94n m/HA== 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 Return-Path: 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.41; Mon, 29 May 2023 10:31:55 -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 S229614AbjE2RZK (ORCPT + 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 ); 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 ; 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 To: Lucas Stach , Russell King , Christian Gmeiner , David Airlie , Daniel Vetter 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.25.1