Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4460865rdh; Wed, 29 Nov 2023 02:03:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEioMzCWuHhWmaejan8R1A4TuHuSsB6PdO30t5/4rzQZu6Go2NOAz7ED34im/by7OxI9SAA X-Received: by 2002:a05:6870:6245:b0:1f9:e945:32f7 with SMTP id r5-20020a056870624500b001f9e94532f7mr20288883oak.35.1701252223851; Wed, 29 Nov 2023 02:03:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701252223; cv=none; d=google.com; s=arc-20160816; b=FLNk2vkOYrYik5vkaN/s3sp1tAqXG8CrRbV0PBYOi5mHwpYYrouR9y9LTmZ0EnBOXa KAcLa5P07w5yF0/+7SR8mEPrVPGmxRK9mE7Tqx9y7VPNJLLM5crCHDkCIMSwII0kO+7u 8ZSiYryqDXfSTNPl0oBdwuJtdXfIAKYQQhBdtLnSnaBiQaeb0jTnFLnCmOVopkfa/QvM DDMw2SfMRF2GAkoHdQrz0vTwR13W7owIA4O/cWtC4kMlH9UtPu7+MEwSTU9bGWkKKp/W KXsdp6NVzZQqoQcX1O8zH4gn3Ill02afUBrVHkdaNxAytjxF1vbGx0zq+EKKlRZbGx5D GJaw== 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=P/xWTsMVvjuD6+A+svkiIWh6pYpon2Fqu0AvrEEZLiM=; fh=FspbLrrKGnIV/YpPcSNCVAGieZHSRwGX0TbUZpOdLNI=; b=kKgbxEU6rpoHVuM7+tlw1qtnzPCZx7CCD6CHUraz3GIPNi/LhuAtY8iKqABYU+URHd tFserOev+UfohbwRwzr20VfbGX1NplFK2+JhUibE58TLeK2nD7s/az4pHFt4RMJuYkXU ESFd+KHGsdrarUwiTQCRVlB0/7j/sURpeYtMdWtgzhTTr6++5Bi4YLDlhah3lfs70ads JdTXESE4vsElFXLFNfTcI3oFxv3cKo01XtzWTfEaUR5VI7W1Xh/SiBn6PviSzqe3N3/1 9YaS7o9MgGeVqIXPx5YEzhPE0O+ThXhuXy1qrKKLnwd00z849OIzOnB+yexhuzlCvBvt 89oA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id j25-20020a63fc19000000b005b64e8336dfsi13670919pgi.604.2023.11.29.02.03.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 02:03:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 3EE1E80A8DA1; Wed, 29 Nov 2023 02:03:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229848AbjK2KDZ convert rfc822-to-8bit (ORCPT + 99 others); Wed, 29 Nov 2023 05:03:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbjK2KDY (ORCPT ); Wed, 29 Nov 2023 05:03:24 -0500 Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52BB9E1 for ; Wed, 29 Nov 2023 02:03:30 -0800 (PST) Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-5cd81e76164so57793837b3.1 for ; Wed, 29 Nov 2023 02:03:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701252209; x=1701857009; 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=dObiGvWh8P2CqEpKI7yz0tGXt/3B108CIDPRJbpF7+s=; b=FOMXhZ1GbGTJG+L8dDojDwQMfE8gIyQUzJpc1RWT9ERg/8z6dGHzQ8VbQsqI5nAe4P oVewNz3RicFJfhkPj+wTlcMM4iw+EfwyQhWTT8X8rEaxIBb8e3EeHD+6uNpGo/5I0i/v QDdByA7YBtjjb++1suUjUDl+E1IBKuchps8eOgRoYLCIt0WXOvrV67BW3Dc4dbht6IhF vuFmu8CBp6LuHu8Z69TNpzyMUWvwGWO3Gkc2adzMsJm+GcdYJKxGs2SSViKEdl3sLdXu g37vDsKAkdfZe1cQ+54C1BbJ9iXGwV2He1gJxsebGz25o+0hRuecq6XDV3rpVmZmNpbV pIHA== X-Gm-Message-State: AOJu0YxMvj0JItr0VX2wIqzF8VqRkuklIZgjIc7M2Xqb/SUjtC4xDOWq NpZy/A14JeCH6ahW49hrjW5cQgx0+n4WBg== X-Received: by 2002:a05:690c:2845:b0:5d0:53a8:725f with SMTP id ed5-20020a05690c284500b005d053a8725fmr8002989ywb.4.1701252209357; Wed, 29 Nov 2023 02:03:29 -0800 (PST) Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com. [209.85.128.175]) by smtp.gmail.com with ESMTPSA id b64-20020a0df243000000b00598d67585d7sm4490226ywf.117.2023.11.29.02.03.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Nov 2023 02:03:28 -0800 (PST) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-5cd81e76164so57793587b3.1 for ; Wed, 29 Nov 2023 02:03:28 -0800 (PST) X-Received: by 2002:a05:690c:c09:b0:5ce:7ac9:d10c with SMTP id cl9-20020a05690c0c0900b005ce7ac9d10cmr17048170ywb.32.1701252207822; Wed, 29 Nov 2023 02:03:27 -0800 (PST) MIME-Version: 1.0 References: <87o7fdbszs.fsf@minerva.mail-host-address-is-not-set> <7hee65pmdl5pajm2kgqld22xfi4iox4s2psswu2mdlfk6u6f7x@w4ecogdx6uj6> <87cyvsc46y.fsf@minerva.mail-host-address-is-not-set> In-Reply-To: <87cyvsc46y.fsf@minerva.mail-host-address-is-not-set> From: Geert Uytterhoeven Date: Wed, 29 Nov 2023 11:03:16 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/imagination: DRM_POWERVR should depend on ARCH_K3 To: Javier Martinez Canillas Cc: Maxime Ripard , 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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 29 Nov 2023 02:03:41 -0800 (PST) Hi Javier, On Wed, Nov 29, 2023 at 10:13 AM Javier Martinez Canillas wrote: > Geert Uytterhoeven writes: > > 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. > > 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. > > That's true but it will require a Kconfig patch every time that there is a > design with a different SoC using this generic IP. It also requires a DT bindings patch, to add a new compatible value, plus whatever missing properties for SoC integration (e.g. resets). And a DTS integration patch. And patches for various on-SoC resources (e.g. clocks). And perhaps a DRM driver update. > So when should be added? Once there's an upstream DTS that has a GPU device? > Once there's a firmware for it in linux-firmware? It can be added when handling the above. As all patches should be tested, the firmware must be available first. When critical mass is reached, platform dependencies can be dropped. I do hope that will happen rather sooner than later! 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