Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4465241rdh; Wed, 29 Nov 2023 02:11:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGcCNj6vN4AW9m8KZGFFUfvDPM06ULt0DX4adT40pg23BQuH5Q1WFOTCbzzPCV9Rb9fNig0 X-Received: by 2002:a54:4499:0:b0:3b8:339a:85de with SMTP id v25-20020a544499000000b003b8339a85demr21824266oiv.13.1701252678807; Wed, 29 Nov 2023 02:11:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701252678; cv=none; d=google.com; s=arc-20160816; b=bzot+IDJmHc8L1v9tre16uKP3eoP07Ze3qFWh2J192eItFc+yUV/gnagWvfMNJexDP ozOA0ybshm1Ok2TaqDTJlnsn0eEN7CG5H7Nd3xuhIG+jMZz5oGcH7qiDnfpxPG3D0EZ2 MvLz+jg6eiIpIqn6MP2rw/ohn+6HsJSYPfoZ5qSXMOdgo5XjuuqSmJksj05idWMfjXJy QXT9rVTI7R0SpPmN3u9bk/eBkrcx5HI/7D6BKE3ANgwwVGWO46C4X7IN/WGgU1b54ESb fP9VLOphrne7igqKhTIo9huMvmayxPJYZmo8FleK2EiiVbAMwh4BCWe+9PnMVwXfo/ld SA1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=xNfHiVyugaGtZK29l0BWz0f17TtL9ZtAysZy9IRbo70=; fh=2Z9WD+TrJEFqQPBMJAtkIVBfXx4Poi89zF0CRNJZy5o=; b=PRsl71t9gjF8D8KpikCbHaWmUWFeJu5ZME1kgACAHuPHimzNs6Pm5SaDfLbJYSwOok RNGe6fBJbWrvpWRf0+lvCriJqL5NKaPu5HRAFq9ipHRLabrB//1VokmHvQoxtzfef9g3 7lZmsRrs7k1rL9sQuSemN+4FXEyOz1ob9PCjle1WsXFB+O5E5c+jJcEOroKEpgtwagpE 3VZ6uIV7OW0EIGO19eYx6H0jSkATPzaD25ShcNPZD4OqPrpzn12tNaDVXIxo7wy8auIh vDwFNqFF5ccCvQxwP3yAlBUsc5M2o6dvYQLq8LSa16ECcRQqazF1+nD6v7UBehFzSV/f hmWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id o2-20020a634e42000000b005c1cc7273bbsi14123866pgl.746.2023.11.29.02.11.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 02:11:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 6C33B8057E3B; Wed, 29 Nov 2023 02:11:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229656AbjK2KLA convert rfc822-to-8bit (ORCPT + 99 others); Wed, 29 Nov 2023 05:11:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbjK2KK7 (ORCPT ); Wed, 29 Nov 2023 05:10:59 -0500 Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1FE4E1 for ; Wed, 29 Nov 2023 02:11:05 -0800 (PST) Received: by mail-yb1-f174.google.com with SMTP id 3f1490d57ef6-db498e1132bso3737755276.2 for ; Wed, 29 Nov 2023 02:11:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701252665; x=1701857465; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Pi3TJMcpykPrfIGwW4UJ8iDsoGVZIjDe1r3vVrq4QfQ=; b=SGjWUg3WHXt6d1HuJd52o2aMjsEPtgl+7akDn+1LHJtjbKx82s+gjRU7km8iWZKJ5B ABFvGq0UBlMggPxFPvWMShVxw8CnDNngtEY/wU6cfwB0vczdaPDpOGXOGeK+tavj6URX Y72ZdpkrWGAX+teCA0vRvmI+aThXs0dDIgcXVCfE66iQXEkLDdN3WFsd6GnfP0cItLA7 v//mMcv5Qc1BBzWcHqI8eq8+AG9i1If9h7gauynJBh+uU8yj1fHqBPiFAaodBq9oavU6 MckdiOZyBV3ZePP5kfMfCzd97JnuRgSutHlHIC32g3UoFEtbzNaXpZga+RwP+dYlQ6/T iKRw== X-Gm-Message-State: AOJu0YzAulns8MyxvpuTk6gNL/aBqi+vqh8nkNUvJhh5P0KfXEzVBx9v 9iOiNUsAjIq/VhDOUpdyI+XRKg4F3omR1Q== X-Received: by 2002:a25:7453:0:b0:d9a:5666:7ab5 with SMTP id p80-20020a257453000000b00d9a56667ab5mr20144516ybc.10.1701252664844; Wed, 29 Nov 2023 02:11:04 -0800 (PST) Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com. [209.85.128.177]) by smtp.gmail.com with ESMTPSA id e141-20020a256993000000b00da02a2ef6afsm4134599ybc.30.2023.11.29.02.11.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Nov 2023 02:11:03 -0800 (PST) Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-5c08c47c055so64622617b3.1 for ; Wed, 29 Nov 2023 02:11:03 -0800 (PST) X-Received: by 2002:a0d:c985:0:b0:5cd:6d0e:5369 with SMTP id l127-20020a0dc985000000b005cd6d0e5369mr20729304ywd.34.1701252662656; Wed, 29 Nov 2023 02:11:02 -0800 (PST) MIME-Version: 1.0 References: <87o7fdbszs.fsf@minerva.mail-host-address-is-not-set> <7hee65pmdl5pajm2kgqld22xfi4iox4s2psswu2mdlfk6u6f7x@w4ecogdx6uj6> In-Reply-To: From: Geert Uytterhoeven Date: Wed, 29 Nov 2023 11:10:51 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/imagination: DRM_POWERVR should depend on ARCH_K3 To: Maxime Ripard 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Wed, 29 Nov 2023 02:11:16 -0800 (PST) Hi Maxime, On Wed, Nov 29, 2023 at 10:23 AM Maxime Ripard wrote: > On Wed, Nov 29, 2023 at 09:58:12AM +0100, Geert Uytterhoeven wrote: > > On Wed, Nov 29, 2023 at 9:35 AM Maxime Ripard wrote: > > > On Tue, Nov 28, 2023 at 08:16:18PM +0100, Geert Uytterhoeven wrote: > > > > On Tue, Nov 28, 2023 at 8:03 PM Javier Martinez Canillas > > > > wrote: > > > > > Geert Uytterhoeven writes: > > > > > > The Imagination Technologies PowerVR Series 6 GPU is currently only > > > > > > supported on Texas Instruments K3 AM62x SoCs. Hence add a dependency on > > > > > > ARCH_K3, to prevent asking the user about this driver when configuring a > > > > > > kernel without Texas Instruments K3 Multicore SoC support. > > > > > > > > > > > > Fixes: 4babef0708656c54 ("drm/imagination: Add skeleton PowerVR driver") > > > > > > Signed-off-by: Geert Uytterhoeven > > > > > > > In any case, I agree with you that restricting to only K3 makes sense. > > > > > > > > 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. > > > > 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. I am talking about posing the question to the user to enable the driver or not. Which applies to everyone who configures a kernel. > If you have we take that patch in though, we have: > > - To keep merging patches as firmwares become available. You need to keep merging patches to update DT bindings, DTS, SoC-specific drivers, the DRM driver itself, ... too. > - 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. You will still need to update parts of the kernel, too. As long as none of that has happened, asking about the PowerVR driver on non-AM62x hardware is futile... > 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. It is. BTW, playing the devil's advocate: why is there a dependency on ARM64? PowerVR GPUs are also present on (at least) arm32 and Intel? Oh, dropping that would expose this question to Linus, causing his wrath to come down on you... ;-) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds