Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5691732rwd; Mon, 12 Jun 2023 08:25:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7bIqGD+r3IvB0hmnyAUiZfMz97EWFH51vASVNKZcfJanojDsIy0Q3jD28k4h8ScDBq/n12 X-Received: by 2002:a19:e05a:0:b0:4e9:9f10:b31d with SMTP id g26-20020a19e05a000000b004e99f10b31dmr4149726lfj.2.1686583515384; Mon, 12 Jun 2023 08:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686583515; cv=none; d=google.com; s=arc-20160816; b=A6DNJEMQBhNaDVNZo9v0lk83oUBsJqGospDCmrHv5sYxibBF/Tb9cgT5vnqjk6DSAl Fw6SPZMU13bCbld1gM9g3CYdFcLApjyGcrbwAsAEPt9nt0znGBRU1mKGs92+01uuR8VC WcdZoS9UDOEFL30Jf1mV21JU71eAgnSH5YEa0kk7U2vp3j0o8I+ZCmAJps9UoGHS6yjm A98yZe/r/WANkaeXD1K3nBUuh9D4qq+r0h0gvdIUnp/VxM2RTdyKwqwTCyrKMSpaiki8 hftD1RljOC0lNvi7y2Zfu2Rh14PxJ/Z2woZUnc14l+kEZ2kabtXh4UIc8zkLYzWRgEBM 9Eyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id; bh=Rparg+lGpHycW9DWGt1ge7rKXHuWYrOpSBuil85ZSSQ=; b=ci3ItJNehn50sacnVevV0LACLnRt7q/ZInW62XAxIl4CXaPCNY5uN5XoToc2+werDJ KVOtkuxb+Ka+/6NfhwTByS08J6ujzKT5R2fAwOLGoFUOzPwa2aBjDhoK+8CEE0qjw3Y3 sng5Kq123U+7xz3+jfJNviwph9guix2f+SZnIuaquqZ/bWDHeYahYu9v0NOuK8ueD3ED asM10guR2ZRfvcgbQBoHlX5p/bXuYyMEiguTuOXzTytrgzEJDMTgP8qpY7EaAUYTRRnW 9KCjfP0NfyJtYJnuTZtwCRONXnflUFRjmv4S5FlV2gMT4DEV8sUygpYDkrTu3Qk5HE7M CjDg== 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 g22-20020aa7d1d6000000b00514b99afa50si2131074edp.27.2023.06.12.08.24.38; Mon, 12 Jun 2023 08:25:15 -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 S238780AbjFLO0H (ORCPT + 99 others); Mon, 12 Jun 2023 10:26:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239800AbjFLOZe (ORCPT ); Mon, 12 Jun 2023 10:25:34 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 27337423C for ; Mon, 12 Jun 2023 07:23:55 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8Bx4OhcKodk_tcDAA--.6366S3; Mon, 12 Jun 2023 22:23:24 +0800 (CST) Received: from [10.20.42.43] (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxReRcKodkH2IWAA--.64643S3; Mon, 12 Jun 2023 22:23:24 +0800 (CST) Message-ID: Date: Mon, 12 Jun 2023 22:23:24 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v8 0/8] drm/etnaviv: add pci device driver support To: Sui Jingfeng <15330273260@189.cn>, Lucas Stach , Russell King , Christian Gmeiner , David Airlie , Daniel Vetter , Li Yi Cc: linux-kernel@vger.kernel.org, etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org References: <20230607105551.568639-1-15330273260@189.cn> Content-Language: en-US From: Sui Jingfeng Organization: Loongson In-Reply-To: <20230607105551.568639-1-15330273260@189.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf8CxReRcKodkH2IWAA--.64643S3 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj93XoW7Cw18Wr45ZFWkCw1xuw1fKrX_yoW8tr47pF 47JFyYkry8ZrW7K347AFs8JF93G3WxWF9Yk3srt3sI9w45ZFyjvryDKF45Jr9xXr1fAr42 qr1akr13WF15ArXCm3ZEXasCq-sJn29KB7ZKAUJUUUUr529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUB0b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv6xkF7I0E14v2 6F4UJVW0owAaw2AFwI0_Jrv_JF1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0c Ia020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_ JF1lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrw CYjI0SjxkI62AI1cAE67vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j 6r4UMxCIbckI1I0E14v26r1Y6r17MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwV AFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv2 0xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4 v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AK xVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxU2G-eUUUUU X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 Hi, Humble ping ? On 2023/6/7 18:55, Sui Jingfeng wrote: > From: Sui Jingfeng > > 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 core. Thus, this patch > set is trying to add PCI device driver support to etnaviv. > > v6: > * Fix build issue on system without CONFIG_PCI enabled > v7: > * Add a separate patch for the platform driver rearrangement (Bjorn) > * Switch to runtime check if the GPU is dma coherent or not (Lucas) > * Add ETNAVIV_PARAM_GPU_COHERENT to allow userspace to query (Lucas) > * Remove etnaviv_gpu.no_clk member (Lucas) > * Various Typos and coding style fixed (Bjorn) > > v8: > * Fix typos and remove unnecessary header included (Bjorn). > * Add a dedicated function to create the virtual master platform > device. > > Sui Jingfeng (8): > 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: allow bypass component framework > drm/etnaviv: add driver support for the PCI devices > drm/etnaviv: add support for the dma coherent device > drm/etnaviv: add a dedicated function to create the virtual master > > drivers/gpu/drm/etnaviv/Kconfig | 10 + > drivers/gpu/drm/etnaviv/Makefile | 2 + > drivers/gpu/drm/etnaviv/etnaviv_drv.c | 257 ++++++++++++++------ > drivers/gpu/drm/etnaviv/etnaviv_drv.h | 10 + > drivers/gpu/drm/etnaviv/etnaviv_gem.c | 22 +- > drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c | 7 +- > drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 168 ++++++++----- > drivers/gpu/drm/etnaviv/etnaviv_gpu.h | 9 + > drivers/gpu/drm/etnaviv/etnaviv_pci_drv.c | 75 ++++++ > drivers/gpu/drm/etnaviv/etnaviv_pci_drv.h | 9 + > include/uapi/drm/etnaviv_drm.h | 1 + > 11 files changed, 440 insertions(+), 130 deletions(-) > create mode 100644 drivers/gpu/drm/etnaviv/etnaviv_pci_drv.c > create mode 100644 drivers/gpu/drm/etnaviv/etnaviv_pci_drv.h > -- Jingfeng