Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1480816lqj; Tue, 4 Jun 2024 02:58:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhPJN8624fODXGZoNESpwhlmZ90Y1+u3jF6gkf054ty9mgaMvs00zxhVVConYIapusv8z+Nh897CAQDrJylY8zdTmFykGbrZFzOtSAew== X-Google-Smtp-Source: AGHT+IFc5Qy6mSWjTWunizSnO0ZZyOVwwzE3tlPncOXys8KaLksqGEjn/53xPK7m782OKfFErgc2 X-Received: by 2002:a05:6a21:999d:b0:1a9:8836:ae37 with SMTP id adf61e73a8af0-1b26f0f0439mr12268208637.12.1717495088824; Tue, 04 Jun 2024 02:58:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717495088; cv=pass; d=google.com; s=arc-20160816; b=fiaEOvETGgI6QpWM1FNc+MTJclfRk4MVCfGO9prTQj+Xl/2KqO/O7xMQ+3kB0B3a+5 5SmnhqDcyeF63XYrKzymk5GKGVd0vV6w7R0JN6mJuudoyzFajPI4f2Jq19EjbF1fmz5C XYBfkPVLcNhgTT+wH0MC63L+2nnMDM3VeUBTAW7+S5Ne5dXU8ZQ9IgPjTd1ECmG5Rz2d dPZwaAILqrLwWUdqk2OsEoapsCotvybS1MVaDFWR38lLxK7xXiC9QtKamsMMHvFF44OJ lPN8mmMhcVxDuWnHBzJZUmTTWMLd2K18nZfzoFns5hbXWjPqTYJ+7Upe33vbon98s/c5 wLkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=kXaK6OgKo/9uKgUwfGucXPROnKA27c2dMDYH7qaPkS4=; fh=RpoiCEiCLee7KpvU3wyp6RmDYPLjx59Yt3ft92j33mA=; b=n3yb6/EeBC3ZBDRUQelqPjWyBkipEMyktmAWjuhw7k+1nLEchh8qczkKTvZJj/s7hj 6tt03xY9k+yMFIjlrR25cOQvt3DIuPlVSlzQQlsnO6x1WJUnbCXzbI1xqffSrnfEzkMt TvAFXd98UIFtxw97lsiufpk8lz7Y1lRo4YZA8xLHIBS/zECowqOL8+HzzdpFIgEmrzib 2gAyhbksSIRJfSlrV9DLM3xgvVJyIlA6AMx8Ayudn8JVaLBe/l5ZnBdT1HUY9OLfdcsB tpLCfiipdSWHiLsi4FevIQMkQwhvG9Mx+ZU4t7a6M6ar1CMuLwP9diyxJ8tY5Dqdr4vD X6bg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-200391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200391-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f632401338si80963795ad.468.2024.06.04.02.58.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 02:58:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-200391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200391-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 653D0B21894 for ; Tue, 4 Jun 2024 09:58:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28E671448C7; Tue, 4 Jun 2024 09:58:00 +0000 (UTC) Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC5BB14372F for ; Tue, 4 Jun 2024 09:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717495079; cv=none; b=lnRrR5TJgQnLgHqCXwin1rbxi5RqhHH4amNWTbVZkBeOWAMGWPfZ2sIYb7aEZeYZfHRgHHzTIdjQQ11Ua7Z5yIC4nBBDlMPlskMfgddhgdtplwkK/VpRBcesaASK0kNOzuPUrNEoMuvp2JSwWs5v/GfbR5MKsJ+u0x9AZzGk9jM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717495079; c=relaxed/simple; bh=1c8thpbnJn/2l/x22dvU3Yv0tOZFxguoKyAcUSYd0Ic=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=sphX4oZv3N2YrcIWKVEGHiXh10C2Gnzx6d64I1p2Io5Bkq5qnWYVqCGwAltl5EMoc8vzFDvssT+fdxlmzZcTYYPNtxcU9ZCU5PTDv4Nb0196+p2J460E7ubmmh1hwuhTYvaYHn73TcSvsi1Z67qZqnexFlWeEQqAOflbmGDEmIo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.128.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-62a08092c4dso51965057b3.0 for ; Tue, 04 Jun 2024 02:57:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717495076; x=1718099876; 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=kXaK6OgKo/9uKgUwfGucXPROnKA27c2dMDYH7qaPkS4=; b=tsqn5Y2juPNHmzbD77aJ/0zgWRipLDmhyjM0jxOxqf+Hs9Tt6yp8pV6Jc0b6PHsWhv MQlIOElCouv6bTLGgSuf1PekJUgrBNvUMPesfok9dXnQICdz1SYtKjq3Pivbu+0gn0gG nOeEI9FlMNNwv6B7oiTK6N4//NHHKiveqIy7cWdk0CXyaQDjjWmadIDIH7exlhV0eWhy uB0KQ8Qg2ivaeJMOn2tuLTzVlkvaD/RVt0c6gyrEWaZPJa3FGLRlM6Iu8FG9lDtKmN2T xuMNGOj5IBOPqohyH3su18ks9PQ7qRNn+1GZw5Zvt40IWd0aXDHI1GtbNgSvWQzR31vA mhFA== X-Forwarded-Encrypted: i=1; AJvYcCVO9te+54/Dk5XM5QY9LE7KzkeDfA4ROXgdjrgfCUk889GZMi7HtifBPQwuLVfVVsvwBYFI5P6In/P1PNv0MixsHlVIQ2P2pwT8RbO+ X-Gm-Message-State: AOJu0YxznApg30HTGO6vYw5eedFwzaUCM+DLnP3ZyrL/a4VDcrl+eZNa rMJCa0/U080+nLfybsklGfKtqu9ivl2eN8GA/YQ1rHXhEGTo+iD+rfxv25YQ X-Received: by 2002:a81:e445:0:b0:627:cfe1:1c21 with SMTP id 00721157ae682-62c798274bcmr108016187b3.47.1717495076305; Tue, 04 Jun 2024 02:57:56 -0700 (PDT) Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com. [209.85.219.179]) by smtp.gmail.com with ESMTPSA id 00721157ae682-62c765b9218sm17684447b3.26.2024.06.04.02.57.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jun 2024 02:57:56 -0700 (PDT) Received: by mail-yb1-f179.google.com with SMTP id 3f1490d57ef6-df4d5d0b8d0so4812925276.2 for ; Tue, 04 Jun 2024 02:57:56 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWQqw5OLvnIqzDhLX9RYuSQGK4IU+Ueg2qEjesJQV4abfuNWDQY7PbGk3Few+kB5wprGMwwjZWJvhZcE9N8jbcXzbaY83EPf4Jg6dqG X-Received: by 2002:a25:ad26:0:b0:de5:5693:4e96 with SMTP id 3f1490d57ef6-dfa73c43eb4mr11645139276.27.1717495075612; Tue, 04 Jun 2024 02:57:55 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240604070718.ypymfv6j2smvxldr@bogus> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 4 Jun 2024 11:57:44 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mailbox: ARM_MHU_V3 should depend on ARM64 To: Cristian Marussi Cc: Sudeep Holla , Jassi Brar , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Cristian, On Tue, Jun 4, 2024 at 11:46=E2=80=AFAM Cristian Marussi wrote: > On Tue, Jun 04, 2024 at 08:07:18AM +0100, Sudeep Holla wrote: > > On Mon, Jun 03, 2024 at 07:52:56PM +0200, Geert Uytterhoeven wrote: > > > On Mon, Jun 3, 2024 at 3:39=E2=80=AFPM Sudeep Holla wrote: > > > > On Wed, May 29, 2024 at 01:36:42PM +0200, Geert Uytterhoeven wrote: > > > > > On Wed, May 29, 2024 at 12:13=E2=80=AFPM Cristian Marussi > > > > > wrote: > > > > > > On Wed, May 29, 2024 at 09:30:45AM +0200, Geert Uytterhoeven wr= ote: > > > > > > > The ARM MHUv3 controller is only present on ARM64 SoCs. Henc= e add a > > > > > > > dependency on ARM64, to prevent asking the user about this dr= iver when > > > > > > > configuring a kernel for a different architecture than ARM64. > > > > > > > > > > > > the ARM64 dependency was dropped on purpose after a few iterati= ons of > > > > > > this series since, despite this being an ARM IP, it has really = no technical > > > > > > dependency on ARM arch, not even the usual one on ARM AMBA bus,= being this a > > > > > > platform driver, so it seemed an uneeded artificial restriction= to impose... > > > > > > ...having said that, surely my live testing were performed only= on arm64 models > > > > > > as of now. > > > > > > > > > > For that, we have COMPILE_TEST=3Dy. > > > > > > > > > > > So, I am not saying that I am against this proposed fix but wha= t is the > > > > > > issue that is trying to solve, have you seen any compilation er= ror ? or > > > > > > is it just to avoid the user-prompting ? > > > > > > > > > > I did not see a compile error (I didn't enable it on any non-ARM > > > > > platform). > > > > > > > > > > But it is rather futile to ask the user about (thousands of) driv= ers > > > > > for hardware that cannot possibly be present on the system he is > > > > > configuring a kernel for. > > > > > > > > I am fine with this fix but I have seen quite opposite argument. Th= at is > > > > not to add dependency if it is not strictly required. > > > > > > Can you please point me to that reference? > > > > I don't have one handy, I need to dig but I have been asked to remove > > in the past. I guess Linus Torvalds has missed the "ARM MHUv3 Mailbox" question when configuring his kernel.... Or he has disabled CONFIG_MAILBOX (it is not enabled in any but a few arm defconfigs). Oh wait, he runs ARM64 now, so the question was valid ;-) > > > > Also since you state that the fix is to avoid users of other archs = being > > > > posed with the question that they may get annoyed or can't answer, = I > > > > wonder if the right approach is to make this driver default "n" ins= tead. > > > > > > The driver already defaults to "n" (which is the default default ;-) > > > > Ah Cristian mentioned the same in private. I may have misunderstood > > then, for some reason I thought explicit default "n" would avoid gettin= g > > the prompt. > > I just tried this trick, it does not seem to work: an explict default-n w= ill > anyway trigger a prompt. The default value does not control the visibility. Visibility can only be controlled through "{bool,tristate} ... if ", or through "depends on ". > > As I said I am fine with the proposed change, just took this discussion > > as a way to learn little more about Kconfig. > > Can this be at least > > depends on ARM || ARM64 || COMPILE_TEST Only if the MHUv3 can also be present on ARM ("aarch32") SoCs. Or do people really run 32-bit kernels on ARM64? Gr{oetje,eeting}s, Geert --=20 Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k= .org In personal conversations with technical people, I call myself a hacker. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds