Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp974813rwb; Thu, 1 Dec 2022 10:37:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf7fl7yFD0ZdwMibcGcE1K9qhxGM/M2slr0jogQPdnlffb6Zx4GQc3FBa1DHqoq4iQThErxQ X-Received: by 2002:a17:90a:ae01:b0:213:e8b5:2d50 with SMTP id t1-20020a17090aae0100b00213e8b52d50mr72031785pjq.211.1669919822375; Thu, 01 Dec 2022 10:37:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669919822; cv=none; d=google.com; s=arc-20160816; b=HGdCTkAAhvrbVYZQAKiBxHCfVIZ1mibZNqQi9wTT0bRgz+CROa9Yq419Z9J8RIW/c0 aAJuIzMQr4XUqDXaSsLrA5mNbKVWqzniqQQ/MiWxCf/buiTYP6tUDokTktHzt5vu36yo zTxUXAI2yKm3ixPGwgb7QLSduMJckNoYuLn2uh7aIG4h8Hb2eOM3wuQlWHmuAcu7SowP Mc5DdnO0uXn3cFPn/vBt/1mJXkvZxskXUGn8HDI0Aiq4ojfoxy4Bm8zZp+PcdEi2J7sU mkFfyhqYODaPYiaz+7NNPuN0tQ0F9Iuy1UeGuXSVuSPtZNacI/lTEho932cZqsF8rAT1 rg6A== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=Ck9Tef7goaXC/mog7SdUmQ2C5TKLKGXBSqq2CZfqHmc=; b=yO1nI5bIo2s6nx9zKI35B8lDRDSAgIfh8BrV5vSKmJru9hTtCu619u91uXSY77EvJk wclt+rxIgDI0nmbc31W+1YpF+tjBXhUw8iiutW02MY0AkhL+1niP1Vmh7NoA9b8YdvZx RN2EWTxedbrLHj0ek3PNetcBGyK3FaNCW/MUaCFuDDJd91IAbuB0tnrogNFXCPMOtPJR WXTpzPTH6vt8JgW18rkz6ap2JxTnFfKNr1mfnbuB3YMAuGkJOsFhLn4712lixTl396k3 X//1higHDHMvvMLIkpNGtg1aKeX+wiBt8q8A5CL2qs543jL7nplF2tsZZUYLW43UoYT3 mDFA== 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 n10-20020a170902e54a00b00186a076362csi5317880plf.315.2022.12.01.10.36.51; Thu, 01 Dec 2022 10:37:02 -0800 (PST) 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 S231207AbiLASCX (ORCPT + 83 others); Thu, 1 Dec 2022 13:02:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230419AbiLASBn (ORCPT ); Thu, 1 Dec 2022 13:01:43 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11DB3B7DF6 for ; Thu, 1 Dec 2022 10:01:24 -0800 (PST) Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p0ns8-0002aO-Av; Thu, 01 Dec 2022 19:01:20 +0100 Message-ID: <948b6cb80a07f71b97fa950a6d15fa3b7db98754.camel@pengutronix.de> Subject: Re: [PATCH v5 5/7] drm/etnaviv: Add nn_core_count to chip feature struct From: Lucas Stach To: Tomeu Vizoso Cc: italonicola@collabora.com, "moderated list:DRM DRIVERS FOR VIVANTE GPU IP" , "open list:DRM DRIVERS FOR VIVANTE GPU IP" , open list , Christian Gmeiner , Daniel Vetter , Russell King , David Airlie Date: Thu, 01 Dec 2022 19:01:18 +0100 In-Reply-To: <20221201103026.53234-6-tomeu.vizoso@collabora.com> References: <20221201103026.53234-1-tomeu.vizoso@collabora.com> <20221201103026.53234-6-tomeu.vizoso@collabora.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 Am Donnerstag, dem 01.12.2022 um 11:30 +0100 schrieb Tomeu Vizoso: > We will use these for differentiating between GPUs and NPUs, as the > downstream driver does. > Thanks, patches 5-7 applied to my etnaviv/next branch. Regards, Lucas > Signed-off-by: Tomeu Vizoso > --- > drivers/gpu/drm/etnaviv/etnaviv_gpu.h | 3 +++ > drivers/gpu/drm/etnaviv/etnaviv_hwdb.c | 4 ++++ > 2 files changed, 7 insertions(+) > > diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.h b/drivers/gpu/drm/etnaviv/etnaviv_gpu.h > index 85eddd492774..c8f3ad2031ce 100644 > --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.h > +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.h > @@ -50,6 +50,9 @@ struct etnaviv_chip_identity { > /* Number of shader cores. */ > u32 shader_core_count; > > + /* Number of Neural Network cores. */ > + u32 nn_core_count; > + > /* Size of the vertex cache. */ > u32 vertex_cache_size; > > diff --git a/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c b/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c > index f2fc645c7956..44df273a5aae 100644 > --- a/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c > +++ b/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c > @@ -16,6 +16,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { > .register_max = 64, > .thread_count = 128, > .shader_core_count = 1, > + .nn_core_count = 0, > .vertex_cache_size = 8, > .vertex_output_buffer_size = 1024, > .pixel_pipes = 1, > @@ -47,6 +48,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { > .register_max = 64, > .thread_count = 512, > .shader_core_count = 2, > + .nn_core_count = 0, > .vertex_cache_size = 16, > .vertex_output_buffer_size = 1024, > .pixel_pipes = 1, > @@ -78,6 +80,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { > .register_max = 64, > .thread_count = 512, > .shader_core_count = 2, > + .nn_core_count = 0, > .vertex_cache_size = 16, > .vertex_output_buffer_size = 1024, > .pixel_pipes = 1, > @@ -109,6 +112,7 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { > .register_max = 64, > .thread_count = 1024, > .shader_core_count = 4, > + .nn_core_count = 0, > .vertex_cache_size = 16, > .vertex_output_buffer_size = 1024, > .pixel_pipes = 2,