Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4438164rdh; Wed, 29 Nov 2023 01:14:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHO4krRKU5r3rwixra6SqeTQbMMDpd95byRZEv6JbpRFTnUp6Wkw3+FZi8oZfLJ5Pmgcwi4 X-Received: by 2002:a17:902:bc43:b0:1cf:98fb:3c0 with SMTP id t3-20020a170902bc4300b001cf98fb03c0mr12956414plz.7.1701249245288; Wed, 29 Nov 2023 01:14:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701249245; cv=none; d=google.com; s=arc-20160816; b=NK+zvGiDyY3GlXTe/PS+eOPWNCxEBC2ogHaZyAoZOqskCjie8mwLwDb1C2R6VtipZ8 N0HoY6E5tDpCdjknZcPjEVLU5lE4KHoqT1wjkRQyguj9+FsywcF07W36SucUyWExtG6R JAAiJsmBbgHbcVc94aawc62rKs/akeYhDwMgkOZm9zM53L1J7841PQL7NKMr2Yv25gmx O7sm1orTbx4dAvNf2nHXjJnHXSTZsVCqw7RiE8mZWgDLknjiulxSFvPxGrBpLrKu+juQ uaNb9SM5uKiqSVmUXcbHvKL3oMIusWPcvqq+/+n2TeuHPIXJrxcWljaNTbA9oxBqEci3 EvUg== 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 :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=kIYj+dPIHz9wh4jZWRbFtDazrWkkAFhwhKwEoYrxKL0=; fh=YJAMKXQZkkp/+hNJTADysUfQyYFaTcyooEdNkGLjjbk=; b=OyoWBeC6EnXPhxBSnG6gc6dzAtyl+Wsvt+EqhOeNCN/Mf8NXopPcTvjhBephNMQ7Jk IfIqcBfTZr3SUleNhZJtLKs5eYRYS4rqpZHrc9nZAKAUOIKMIfH27lP0Jm18+JBhoFKv 3sc+VN4XspsAlxTasuJ5hhTxA8Jn6iJVXwYEUbBuQuv9+anzHQ/W4hj+Uy+03OYvP9h8 1VwsfUSFcnCxepTKyLSuURvv06oHhpFLW0NfJz0oljLfM5gegp36a1WU/ShOL1pyRjdy 6byFAi1C+jgku3X6oi99T8O0IH+Nhm4ZfY2DCzIjD7XZMAJmBGkl2TleVRWFE4W8KgL1 9o3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fVxcvR3G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id h6-20020a170902ac8600b001cfc3f7392fsi7608155plr.252.2023.11.29.01.14.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 01:14:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fVxcvR3G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 75CBE80B1E5B; Wed, 29 Nov 2023 01:14:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232114AbjK2JNn (ORCPT + 99 others); Wed, 29 Nov 2023 04:13:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjK2JNk (ORCPT ); Wed, 29 Nov 2023 04:13:40 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A372985 for ; Wed, 29 Nov 2023 01:13:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701249225; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kIYj+dPIHz9wh4jZWRbFtDazrWkkAFhwhKwEoYrxKL0=; b=fVxcvR3G5Y01GBHhAULWe+YxBzEgc39GrghUZAFsqGblhhoIUO6Q1mNzUzcJuEAPZO3SP+ TPFxlgefO0XYqJ0xJogZusR3QVupcx2VMT5eJYJ2xjZnzeOetYcaXf2ehIgIHXXpVLLpuM 4xSElSE+oHFOxfOH+MK0Zv+1xKSKEls= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-434-XwlJfhJIOFqqPQqohMtd1A-1; Wed, 29 Nov 2023 04:13:44 -0500 X-MC-Unique: XwlJfhJIOFqqPQqohMtd1A-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-332fcd4b871so481147f8f.0 for ; Wed, 29 Nov 2023 01:13:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701249223; x=1701854023; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kIYj+dPIHz9wh4jZWRbFtDazrWkkAFhwhKwEoYrxKL0=; b=GuRTY4ehM1p9nwM/oND3FttXUaFmW6TRlgDSDO1017l/2+OBXaaUVUgYgJBqbVFz42 RpwFumT+XODnSzKonjLw/VJ3M8jJoK2ZqYgOHlNGBs8m/AEwr4LfQD2Xe/7fnsAhtFfi aakOiNK0+7Chq8fP+knoI0I3KyFIKDGCxl+it8/nnjmshD7A+Va2+AlmYnVI7JvoVTXI Ba90Dcf7FwvAHzB55ThGvW1jNP8v0t7d76NL93ch5y47qaqBsnNQzMqntrkhTO+Z3AXA ylNKPj7oDN3XSMvJ/2/w5Ak4aCoGwnUU3lCgGRLsIQaysRabcIaulyUbu8aiE2bIwxXl OYrg== X-Gm-Message-State: AOJu0YwNfjt62IM+VmiiWG1itySW73AVBh4TcrO4WzPeBIMmXM26xhbx ag+sFsvGTTAFJpVslmXudC/Y2cDixNGETq1zQpcyEAymbSYALsOuHI1DZrJnyYCi3sbUSRWTs76 ZEULQXYHy9k6IskPXAZFAxUZw X-Received: by 2002:adf:ea8e:0:b0:332:e697:3a71 with SMTP id s14-20020adfea8e000000b00332e6973a71mr13333899wrm.6.1701249223137; Wed, 29 Nov 2023 01:13:43 -0800 (PST) X-Received: by 2002:adf:ea8e:0:b0:332:e697:3a71 with SMTP id s14-20020adfea8e000000b00332e6973a71mr13333879wrm.6.1701249222789; Wed, 29 Nov 2023 01:13:42 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id r5-20020a5d6c65000000b00332f6202b82sm11783958wrz.9.2023.11.29.01.13.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 01:13:42 -0800 (PST) From: Javier Martinez Canillas To: Geert Uytterhoeven , Maxime Ripard Cc: 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 In-Reply-To: References: <87o7fdbszs.fsf@minerva.mail-host-address-is-not-set> <7hee65pmdl5pajm2kgqld22xfi4iox4s2psswu2mdlfk6u6f7x@w4ecogdx6uj6> Date: Wed, 29 Nov 2023 10:13:41 +0100 Message-ID: <87cyvsc46y.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 29 Nov 2023 01:14:02 -0800 (PST) Geert Uytterhoeven writes: Hello Geert, > Hi Maxime, > > 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 only >> > > > supported on Texas Instruments K3 AM62x SoCs. Hence add a depende= ncy on >> > > > ARCH_K3, to prevent asking the user about this driver when configu= ring a >> > > > kernel without Texas Instruments K3 Multicore SoC support. >> > > > >> > > > Fixes: 4babef0708656c54 ("drm/imagination: Add skeleton PowerVR dr= iver") >> > > > Signed-off-by: Geert Uytterhoeven > >> > > In any case, I agree with you that restricting to only K3 makes sens= e. >> > >> > 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. 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? I like the guideline of not having a depends on for generic IP and only have for IP that can only be used in designs with a SoC from the same vendor. --=20 Best regards, Javier Martinez Canillas Core Platforms Red Hat