Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp296904rwb; Thu, 1 Dec 2022 02:15:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf5JiQqnQsIwN2HFwRGIgBiMnim6+tEFdQ3gVFqh4FTlIKFVqyE2elgpFzy35+QxRXzlRsHN X-Received: by 2002:aa7:db13:0:b0:46b:aee1:3b46 with SMTP id t19-20020aa7db13000000b0046baee13b46mr6534377eds.44.1669889713217; Thu, 01 Dec 2022 02:15:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669889713; cv=none; d=google.com; s=arc-20160816; b=dR8PrAo+d2526IqXv/pb7QOz1e3eoScZkdKcOKKGz/jUuPqkM0h+UksKePsoyJBrG6 vM29D9mMX09/mUr8af2bN2y3uCGqaPHr7M+lJrQNkYdCMYQQgKoKus/CnudQy/WvbdOl Th00lzCv2LAFAZaN1VHdcRvrfy3q/1T9+XKhugq16lt6HZagIUkOqt8hAgvyPMrYItGY 8ZvYlcKuK5VohA/FZRq04kcZYs9uMr8VVCIQdqJZHTM741OVKs6dKSepAQ1XOwT1JLeZ K4PuEOlCKl1Y5Ayi7Yok21yeWALIc/CNlGQGjORNNJTu4zCbHNIAS4yplsn4XieEhq/q DOpQ== 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=oYnmb8PEMaM3DAb74oS4dLL6nrU6LrBi+hCSOk9GsuY=; b=woaiMff4fNfKmc+YUhGptZa9kxrhpoE8zPI/ft7FD3BHaBwu3lVJ1P4gGLBrRt2hwN 0SlGhhDybdIz1NFfw2CCKyYOGH9qgX4rOExdiHo/+Nhz2LWJx3LQQLJdy5VlOI5r/XKR 1tz2qgQAQiYYtcIv1xeyyeWKspYvwIQqo4Lmd0j1zaQMmmJDW+huvoomspOZAu8SWmhn 3w7q5NHZny/ktsIawBcIHiz0XBfPiWFKjtv/Eeji6NGKNwXJKRXo6KzObZ/295nm4XUe VUc7iPQ2DEenmpnNLddDtqxPbqdLE+kCbmvUmvU+JJkeQHSWVw4B1yRM9V5cDdVyANMp vuoQ== 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 di9-20020a170906730900b00783d5a873dcsi3873706ejc.341.2022.12.01.02.14.52; Thu, 01 Dec 2022 02:15:13 -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 S229736AbiLAJsq (ORCPT + 82 others); Thu, 1 Dec 2022 04:48:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230241AbiLAJsm (ORCPT ); Thu, 1 Dec 2022 04:48:42 -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 75C2B975E5 for ; Thu, 1 Dec 2022 01:48:33 -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 1p0gB9-00014v-6n; Thu, 01 Dec 2022 10:48:27 +0100 Message-ID: <22044896a2cbb1aae3c05facd367d29177c2448e.camel@pengutronix.de> Subject: Re: [PATCH v4 5/7] drm/etnaviv: add HWDB entry for VIPNano-QI.7120.0055 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 10:48:25 +0100 In-Reply-To: <20221201092131.62867-6-tomeu.vizoso@collabora.com> References: <20221201092131.62867-1-tomeu.vizoso@collabora.com> <20221201092131.62867-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 Hi Tomeu, the changes itself look good to me now, I was just very confused about the ordering of the patches. I would have expected them to be in this order: 1. Add NN cores to chip identities struct (set to 0 for all existing entries in HWDB) 2. Add UAPI warning 3. Add HWDB entry for VIPNano-QI.7120.0055 (having NN cores set to correct value, so you don't touch the entry twice in the same series) Regards, Lucas Am Donnerstag, dem 01.12.2022 um 10:21 +0100 schrieb Tomeu Vizoso: > This is a compute-only module marketed towards AI and vision > acceleration. This particular version can be found on the Amlogic A311D > SoC. > > The feature bits are taken from the Khadas downstream kernel driver > 6.4.4.3.310723AAA. > > Signed-off-by: Tomeu Vizoso > --- > drivers/gpu/drm/etnaviv/etnaviv_hwdb.c | 31 ++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > > diff --git a/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c b/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c > index f2fc645c7956..3f6fd9a3c088 100644 > --- a/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c > +++ b/drivers/gpu/drm/etnaviv/etnaviv_hwdb.c > @@ -130,6 +130,37 @@ static const struct etnaviv_chip_identity etnaviv_chip_identities[] = { > .minor_features10 = 0x90044250, > .minor_features11 = 0x00000024, > }, > + { > + .model = 0x8000, > + .revision = 0x7120, > + .product_id = 0x45080009, > + .customer_id = 0x88, > + .eco_id = 0, > + .stream_count = 8, > + .register_max = 64, > + .thread_count = 256, > + .shader_core_count = 1, > + .vertex_cache_size = 16, > + .vertex_output_buffer_size = 1024, > + .pixel_pipes = 1, > + .instruction_count = 512, > + .num_constants = 320, > + .buffer_size = 0, > + .varyings_count = 16, > + .features = 0xe0287cac, > + .minor_features0 = 0xc1799eff, > + .minor_features1 = 0xfefbfadb, > + .minor_features2 = 0xeb9d6fbf, > + .minor_features3 = 0xedfffced, > + .minor_features4 = 0xd30dafc7, > + .minor_features5 = 0x7b5ac333, > + .minor_features6 = 0xfc8ee200, > + .minor_features7 = 0x03fffa6f, > + .minor_features8 = 0x00fe0ef0, > + .minor_features9 = 0x0088003c, > + .minor_features10 = 0x108048c0, > + .minor_features11 = 0x00000010, > + }, > }; > > bool etnaviv_fill_identity_from_hwdb(struct etnaviv_gpu *gpu)