Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4441957rdh; Wed, 29 Nov 2023 01:23:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCSMXrxAmCliK4OefNVJBFjcVuEhHqVvDddXRFDsZfQP9ZR1DWnkO4vMDDOVSK91mzf3MW X-Received: by 2002:a17:903:2596:b0:1cf:8a98:3ae with SMTP id jb22-20020a170903259600b001cf8a9803aemr14345133plb.68.1701249793301; Wed, 29 Nov 2023 01:23:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701249793; cv=none; d=google.com; s=arc-20160816; b=HA1CWNufXPQmimiDyjJmojy7fnGcWkqpA9rgKXj/u+hsA7b6To4cHm0gwTOdNNY4Ni 6cPvokd9gJjy/00ryP+hZEp1MeLiZNXsaleOO5mfaXIQ7+bwGp9qCWWfp1SQKwYj9ZCC XRWbuhblQvYL7IPzGE4k7w/xMfJpBcv282kr1KqeTW4tfWQTOP/BgmmFwhmd7fM+ahJM +MdScfHi8g44ILkbhzahMnC/oi08XrpzQWvOz1VHu1O1naL2VQ2Ho8ae1w3V/VyPcHyx m47xvMwy9Q3mH5W0j9souhJxdCYPlx+m03q2dq7D22R9pmiOdcUt6fkNzOSJWJm6awrX DENQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mqOkHEL70Z7tkZrNIwpvKhA7yE/buHAIl7P9+mBKYxI=; fh=zps5f7AhwQN+l1NJD8cszVgp0VzFdHe6y6vVwrQi+rw=; b=A/1cc4EBGEEym2rIDiaIP/NKJyweuJLZXB7BHVF5E6YQ4BcHpIA73tDZxx9njYAXGn BVs3gI2Y8tHdKNM+W6xCltt+dqVrTXALW9kadZIXBAQkKxHT6vj835D82uDyNGF4nWIE Y9VTfR6OIYlZyqEKh/Fb8e4V2qYX/OYFQvHbLsCTxbkLigHRSwqy4YtNugGkHYUcbHut WdPFgBoZi2ToLfN5UiYc4qLM6PTxMqEh/MX2bfgqebVwCd2Lruf3tCc7XY0Vu+GTGIzA J//XYuKBYQQXQEtqHRAWbau8jq2Zt0W3kgz8zVjfv/NvshcBLlbme7JmgGR3xmcA5j4r HIRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G41YjMqs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q16-20020a170902eb9000b001bdd58f685fsi14285731plg.85.2023.11.29.01.23.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 01:23:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G41YjMqs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B682D80BC518; Wed, 29 Nov 2023 01:23:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229753AbjK2JW5 (ORCPT + 99 others); Wed, 29 Nov 2023 04:22:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbjK2JWx (ORCPT ); Wed, 29 Nov 2023 04:22:53 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BC0A19BF for ; Wed, 29 Nov 2023 01:23:00 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63D3AC433C7; Wed, 29 Nov 2023 09:22:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701249779; bh=EzFjw7idQptv1qfyUwLm9/Zx/1lzbs/31vkDl/YdmpM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G41YjMqsqEVdWf++jrJ1PV3Reea5PMr5GlgKCi8FKDp+njIin/DvJUlCRNqnQIXVt 7pelXS1MLbgUeFUjjFBwxfB+FOlcEpoiO/qzzG0YUV1jHPX1Yto9UYhr4C/+TeKivx Al5GOghL/Yj4whPJamcEfIRqLqintvGYKEIwNimq/n21ySUBj00sdRwMOs56Ucnwv0 OOevlMvntIM138/v73SPTAbhxHbuTnsuhEk/74QbhRiq5aKkmSeyb1BVrAzWpIT4WM gJU0P1qiHu2EEAYmctKMQcUhsYgFhNVO6h5XwXyBgDj4zul8LisgQeCPTukmnGLign Uzi0hrs3SFuQg== Date: Wed, 29 Nov 2023 10:22:57 +0100 From: Maxime Ripard To: Geert Uytterhoeven Cc: Javier Martinez Canillas , Frank Binns , Donald Robson , Matt Coster , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Sarah Walker , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] drm/imagination: DRM_POWERVR should depend on ARCH_K3 Message-ID: References: <87o7fdbszs.fsf@minerva.mail-host-address-is-not-set> <7hee65pmdl5pajm2kgqld22xfi4iox4s2psswu2mdlfk6u6f7x@w4ecogdx6uj6> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="r3qnhn4k5yvcspbm" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 29 Nov 2023 01:23:11 -0800 (PST) --r3qnhn4k5yvcspbm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 29, 2023 at 09:58:12AM +0100, Geert Uytterhoeven wrote: > Hi Maxime, >=20 > On Wed, Nov 29, 2023 at 9:35=E2=80=AFAM Maxime Ripard wrote: > > On Tue, Nov 28, 2023 at 08:16:18PM +0100, Geert Uytterhoeven wrote: > > > On Tue, Nov 28, 2023 at 8:03=E2=80=AFPM Javier Martinez Canillas > > > wrote: > > > > Geert Uytterhoeven writes: > > > > > The Imagination Technologies PowerVR Series 6 GPU is currently on= ly > > > > > supported on Texas Instruments K3 AM62x SoCs. Hence add a depend= ency on > > > > > ARCH_K3, to prevent asking the user about this driver when config= uring a > > > > > kernel without Texas Instruments K3 Multicore SoC support. > > > > > > > > > > Fixes: 4babef0708656c54 ("drm/imagination: Add skeleton PowerVR d= river") > > > > > Signed-off-by: Geert Uytterhoeven >=20 > > > > In any case, I agree with you that restricting to only K3 makes sen= se. > > > > > > I am looking forward to adding || SOC_AM33XX || ARCH_RENESAS || ..., > > > eventually ;-) > > > > I disagree. This is to handle a generic IP, just like panfrost, lima, or > > etnaviv, and we certaintly don't want to maintain the Kconfig list of > > every possible architecture and SoC family it might or might not be > > found. >=20 > While PowerVR is a generic IP, I believe it needs a non-generic > firmware, which is currently only available for AM62x SoCs. I'm not sure it's actually true, but let's consider it is. Then what? If the firmware isn't there and/or the DT bits too, then nothing will happen. We would have wasted a couple of 100kB on a system that is taking somewhere in the 100MB-10GB range, and that's pretty much it. If you have we take that patch in though, we have: - To keep merging patches as firmwares become available. - If we update linux-firmware only, then the driver is still not loading even though it could. - If we have gotten our firmware through some other mean, then the driver is still not loading even though it could. It makes life harder for everyone: maintainers, users, devs, based on the state of some external project that might or might not be updated in sync. > Once it becomes truly generic, I'm happy to drop all platform > dependencies. Until then, there is no point in asking everyone who > configures an arm64 kernel about this driver, unless they also enabled > K3 support. Whether it's truly generic, whatever that means, is irrelevant here. Maxime --r3qnhn4k5yvcspbm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZWcC8AAKCRDj7w1vZxhR xZTtAP47Cg/+oHf3QN6f+1dfblO7GrIo9jYf5v/2E2Td43d4yQD+KlTDLfp7k2TU +LBGSzyfqu7qT7Lo//1XyokUzh5SZQY= =BGY8 -----END PGP SIGNATURE----- --r3qnhn4k5yvcspbm--