Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4426122rdh; Wed, 29 Nov 2023 00:46:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IFWtz7ko+bGQnvNIuEIeVZT8VJx4HonzP28+PWjY9fRqtC3EYP3437bCJQeObv4gQtjzTS5 X-Received: by 2002:a05:6808:1489:b0:3b2:e61f:f0a8 with SMTP id e9-20020a056808148900b003b2e61ff0a8mr21267820oiw.45.1701247566475; Wed, 29 Nov 2023 00:46:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701247566; cv=none; d=google.com; s=arc-20160816; b=pe8fh+df1Wp7AYdsvCPYuWYsBajqO+1d8f0T+gV1WFHcjxCc8mot1WFBks/5ojxeXl /FisFAyXKUfInlKxJQR2F1Dpy7yVOFvIAfWQkoLJpDVZLuizQljtFtmCV1QLgw0ihBBs v+eGhQHlANNhwt7RhIHnOGs03xhCdYxcyF3/hvWYIHZO6U9TV/hbBoIQoC83/liXOxZH Evmnf0Yid+8qVbVRbNF+fbuuwJSbWnN/NdWXPVFPz/q1qu0cSvIh9rXgbLmXe4R/0p8M QRlox1AXDbfKrS+bYQKmVCYRS0OjI6YEZwYfUO4xdWbWAX9OqFHRHL+u9nsA+QPTjacW sXXw== 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=b7oAAA15rOVCfVDFVia+LTQgyeo/WyMzRo1xULkvSRA=; fh=cDmDiHGLLfm5x1PVFYvCMn0zQDkrNal15dkFbFxh7lI=; b=xlhrCjGCrLFYGnCb+c/oMVL8OEjWtXLMCnXngTufNgx8bT4AWknnjYcFpAPxJXwx6c maZZpddO87ZNJ8GUrXIujxtwtRor4WmjsflCd2f5HWxXURzskI6yqR03vZKfyY3NYC5T NGJzGB3qTo2NhfrR7NHrw+u/Q4a4PkriaTTNdqPXtfg8UBnGKxZa52J1673GKK8bClyO CwjQpX5RPAFcqLa4zbJ7CjvTG6BTCsYh/2oaDrKonl1hmK43oOOJoWKBIKMEMDBor7UY B8ckSZKCKzsVD2/AKFjyGEjAsSVIQ4KrseeWX9JJr+YeIUnH1wqGKs+cmtfSv8jq6ZPA JAgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W+wDBrtS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id x1-20020a654141000000b0056b024a4dd0si11295301pgp.614.2023.11.29.00.46.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 00:46:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W+wDBrtS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 A2E6B805914F; Wed, 29 Nov 2023 00:46:03 -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 S232049AbjK2Ipr (ORCPT + 99 others); Wed, 29 Nov 2023 03:45:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231993AbjK2Ipp (ORCPT ); Wed, 29 Nov 2023 03:45:45 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45C901BC1 for ; Wed, 29 Nov 2023 00:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701247550; 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=b7oAAA15rOVCfVDFVia+LTQgyeo/WyMzRo1xULkvSRA=; b=W+wDBrtSuZadNO1A6TbS3E+6Zn4ia3qKWDRCtLLczq10mzsCoJaXj5sYJfXBYBZapOVCHN 5ReDsGTyy0R/8RaKCTG5IlRBt4yulEKFhCjZamqzlLk70VubMrk58o0HjDmIGbW65BaV46 gquQOZGsOA0L8jBOFj6/6FmReAAlD9w= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-685-ygFOMhOGMleLtt4A6dfQlg-1; Wed, 29 Nov 2023 03:45:48 -0500 X-MC-Unique: ygFOMhOGMleLtt4A6dfQlg-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-40b3d4d6417so28079325e9.0 for ; Wed, 29 Nov 2023 00:45:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701247547; x=1701852347; 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=b7oAAA15rOVCfVDFVia+LTQgyeo/WyMzRo1xULkvSRA=; b=vC5kpnJtk8aG70qU9vgrFCI8u5r9nxH3K9orUZILBhqDRm4K9sb98M3MNsdEd2xRFx tTZCU3BF/pGZGmJICTBhDZlJ99x9tGYogBSOu+6fAp4XPQlnzjipvzYzXNb5+kbE3YuQ HLa2QRd07/CM1HXbYYDA2vKiSPCdOCF2Ra6Rjxo/PT/VeBw8veIAe9Sj5oudquFhdtnf frIoMREFORQtWPczGa53x9PKWEFVWylDiapbOFIaGWvWBZGQUz6LvSe+OFyw5iJAvdn8 CG4MyXHj7uvuMaHDim3pwB4Th307rrdeKHaJBnEFXGYu4+uAgTbwsPLi9iV/XnGitrP+ ut+w== X-Gm-Message-State: AOJu0YxAPmq4Zf41Xe64rB5FZsOQpYsacm/VLjrhIuHi1AryEV9DUgrX HmV7Xw09Z72HjhYkIMcSmAijSGj3cTMXz5PMUuSz0W69Q+J3UDgVzzXDY2kcKmmivqznT4n5mi+ kZwFIwP0AUF47vOaGOmpG45/y X-Received: by 2002:a05:600c:4ec7:b0:40b:4b2d:8d0f with SMTP id g7-20020a05600c4ec700b0040b4b2d8d0fmr3468031wmq.31.1701247547354; Wed, 29 Nov 2023 00:45:47 -0800 (PST) X-Received: by 2002:a05:600c:4ec7:b0:40b:4b2d:8d0f with SMTP id g7-20020a05600c4ec700b0040b4b2d8d0fmr3468008wmq.31.1701247546986; Wed, 29 Nov 2023 00:45:46 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id i5-20020adfe485000000b0033300a0b444sm8028033wrm.66.2023.11.29.00.45.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 00:45:46 -0800 (PST) From: Javier Martinez Canillas To: Maxime Ripard , Geert Uytterhoeven 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: <7hee65pmdl5pajm2kgqld22xfi4iox4s2psswu2mdlfk6u6f7x@w4ecogdx6uj6> References: <87o7fdbszs.fsf@minerva.mail-host-address-is-not-set> <7hee65pmdl5pajm2kgqld22xfi4iox4s2psswu2mdlfk6u6f7x@w4ecogdx6uj6> Date: Wed, 29 Nov 2023 09:45:45 +0100 Message-ID: <87fs0paqx2.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 00:46:03 -0800 (PST) Maxime Ripard writes: Hello Maxime, > Hi, > > 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 dependenc= y on >> > > ARCH_K3, to prevent asking the user about this driver when configuri= ng a >> > > kernel without Texas Instruments K3 Multicore SoC support. >> > > >> > > Fixes: 4babef0708656c54 ("drm/imagination: Add skeleton PowerVR driv= er") >> > > Signed-off-by: Geert Uytterhoeven >> > > --- >> > >> > Indeed. Although I wonder what is the supposed policy since for example >> > the DRM_PANFROST symbol only depends on ARM || ARM64 and others such as >>=20 >> I think ARM Mali is sufficiently ubiquitous on ARM/ARM64 systems to >> have just an ARM/ARM64 dependency... >>=20 >> > DRM_ETNAVIV don't even have an SoC or architecture dependency. >>=20 >> Vivante GPUs are found in DTS files on at least 4 architectures. >> Might be worthwhile to add some dependencies, though... >>=20 >> > In any case, I agree with you that restricting to only K3 makes sense. >>=20 >> 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. > Thanks for the clarification. Then the policy is to have a depends on ARCH_$FOO if the IP block is tied to a particular SoC or SoC family ? For example, DRM_V3D has: depends on ARCH_BCM || ARCH_BRCMSTB || ARCH_BCM2835 || COMPILE_TEST If the IP block is generic and could be integrated with any SoC, then it should not have a dependency as you said. > GPUs supposed to be handled are spread across 4 architectures (x86, > riscv, arm, arm64, mips?), and in arm/arm64 alone we have at least 5 > platforms that might use it (allwinner, ti, mediatek, renesas, rockchip) > > It didn't make sense for panfrost, or etnaviv. It doesn't make sense for > that driver either. Especially for something that olddefconfig can > handle just fine. > I think then that we should drop the arch and SoC dependency for these GPU drivers and just leave the symbols they really depend on (e.g: DRM, MMU) ? > Maxime --=20 Best regards, Javier Martinez Canillas Core Platforms Red Hat