From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f13.google.com (mail-wm2-f13.google.com [74.125.225.141]) (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 992684908A1 for ; Wed, 30 Sep 2026 12:11:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790770315; cv=none; b=mUd8uYHK3TxnWuSM98YHuhpHlXowPN9Od6KBRFyY1nYYyz5j1DC0F7ht++Ptjiz4aYhc7jYmLgHDS+H1TAUVJhvxERalEYn+UXY+v7PacCLIUP5WaXOi3sr6DAJtgJlp1fqY59IGR8nR9t0Ed2PIKR+tEVCvbr22eZxQaduuBHU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790770315; c=relaxed/simple; bh=UjmEz7DEJdgRMfvXHXMbt0X+mPHt3JAbY1oLpvUqkxw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=ApeY7B0rGxyy/vuSTvtkLJJ3I8PqSvT9WEgklVNKbU4EGivujJOfnTwlNYq/JvF+snsL+qmWtyAnfrIYhw8mMJId51QoeMCkhYIYPAVmlz+urAR8LPHDXX1ICQnoGhJTvsJcw4Y54I5hVzQuDmVJxic/xMvyT1FTcwSoRfzPEzY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LK7Ha7BP; arc=none smtp.client-ip=74.125.225.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LK7Ha7BP" Received: by mail-wm2-f13.google.com with SMTP id 5b1f17b1804b1-49e71cdb22bso38872685e9.2 for ; Wed, 30 Sep 2026 05:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790770309; x=1791375109; darn=vger.kernel.org; h=content-type:mime-version:content-transfer-encoding:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=UjmEz7DEJdgRMfvXHXMbt0X+mPHt3JAbY1oLpvUqkxw=; b=LK7Ha7BPMwM6q1Yg6SYoEyxpXzLNVONvxz4I4o5bvhUJo9aoC0bLnK3T16rthJMIQr VDMiAMryDFbgX7Ftzd90tuAzG/gzYxr8WK76yCAo0CUqeUhSVvY1SY78eubMgLicDLUo vbvp1MKEyE/8n6Jvf90XBmSJbcYvyoGmf38SSDgA3EJpLgxSVb+OpmbCM92WvzOBxrLv OuwcXoSHd+5pSiw+SDOrFUvl3q8vmYOGZFtzJugqN6KU3dUGFz65KNLHAS9/WuQ0F6mx rD5CnrxTzeTstVdaAlR3j5neKyqDWx98+m3EjRLMzffH2madaEG7z7Qdbm9t1d6e0II2 1WZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790770309; x=1791375109; h=content-type:mime-version:content-transfer-encoding:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=UjmEz7DEJdgRMfvXHXMbt0X+mPHt3JAbY1oLpvUqkxw=; b=ZwfNp2qLO1vY3Zi2af+bhxGk02zWNeT8yC0kPjNyMyBVw7PzqKIZ9hc2OX0/jk0mVJ p4E9TJWaYpZ7BksoN9Z31FWxGK+ufiOgqz1b+hDYPqMP4XPWEv/2ZxUapRllCJqJcsCt LE5+VYSqEx8x+UnDL4xfRggmscK1wtACD60YB+cU0P9jz22bulA4l+sAxfQIvAYLdxRa 6FR7kgGDaaNx0/nVGP+1PEn1BaQJ1WfA3bdHgIUovMZKffoPpK2yUJ7t1SjFVc/cobnv gWDKzRD6fZIfeMc0Rn9bQTIDC3zXlzyVsHM8bef34jS83UWyGYm296s/w2D34JVKfP3Y BASw== X-Forwarded-Encrypted: i=1; AKwUvBzLcB2wc5VYhkRaCxVeSAR/ceA6unjA85EYeNHJ+6pJtTdteM+u43JTyM+0pRRNJjRF84sKfjOot3FeP8Q=@vger.kernel.org X-Gm-Message-State: AFuF++k7TsFpqPx6DyHbFJGSDQtjT7TOyumMp5FjX1oOeLie37On4lIZ l6b1JG6YFxUognESlcScTs3rcHH2HpilsOiXKNxI/O82OqWFLlBDwvNo X-Gm-Gg: AYBFou0q6hkYFIjf1ae99nQDPItImL8QLK/eQUe+w7g+uj7H4R9mKj39ZO5XyaJV/NO dtxOUejvvQWl6IA+NSKP/39vdnhpdXeWDstRkJXOJrZbqs5v6LmjyrIMJVFfw95K1wHgRrA8DcA 9XvTZJB9g8bZEvqpb3QJBNRFZV68a55GScZTJRQUGQzEzKME5/jXzDEKrB/7s8kqdMAaeoQotiO 4FqXZgd6K23o4egmeoBvh4yqAX8gAV6cLy2esFGcbzji7aaqzWpz9t09tqdOSKk4tsvCkF/sgrB HLF4Xye/866R2A5swAD4XFPPDsGjWfNAOKW1mUtz/blzvP/2CEeA4zmNkDaPv4p9tZVoAM7Al5R 1wJ9Xxd+euXmJGJAy7HsTVYLZw2sZaXZRNqF5Zb5RCEf4pJZsCJsneI7Q6BKEon784CQRTl0pxY 5iLmU5wc35o18l/kokR7hvSQzH5fWgtgYmLHDFQIsqxeNX18bU292aFNOpUQeExZShhzN5pPGvi OZbEpW15DwmjdtsUEeaJfQ3x58UZ39U X-Received: by 2002:a05:600c:19cb:b0:4a0:1c17:4fb2 with SMTP id 5b1f17b1804b1-4a01c175025mr13081675e9.31.1790770308790; Wed, 30 Sep 2026 05:11:48 -0700 (PDT) Received: from [127.0.1.1] ([92.241.26.38]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a01771b0e8sm58527975e9.12.2026.09.30.05.11.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2026 05:11:48 -0700 (PDT) From: Fil Dunsky To: Arnd Bergmann Cc: Linus Walleij , Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Jiri Slaby , Russell King , Alexandre Belloni , Drew Fustini , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jason Li Subject: Re: [PATCH RFC 04/10] ARM: cortina: Add support for the CS75xx SoC family In-Reply-To: References: <20260930-b4-cs75xx-v1-0-4617c4463529@gmail.com> <20260930-b4-cs75xx-v1-4-4617c4463529@gmail.com> <65c87e07-1722-44c2-9a08-ed9e18902058@kernel.org> <179076583795.3054628.14443934429806440798@gmail.com> <179076863241.3327419.16233537387530771884@gmail.com> Date: Wed, 30 Sep 2026 15:11:46 +0300 Message-ID: <179077030602.3399593.12266354979192327093@gmail.com> Content-Transfer-Encoding: 8bit Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format="fixed" On Wed, Sep 30, 2026 at 02:02:43PM +0200, Arnd Bergmann wrote: > I think I would go with mach-cortina here. Or even better would be > to find a way not to need any code. If you control the boot loader, > you could just implement the psci ops there and actually bring > up the CPU from EL3. If that doesn't work, maybe it is time to > actually have a generic spin-table implementation on arm32 the > way we do on arm64. As far as I can tell, your code is just > a copy of that anyway, though we have so far never added this to > common arm32 code in order to encourage SoC vendors to use psci. The boot loader is the stock U-Boot 2009.11 from the router vendor, and replacing it on these devices is risky enough that I would rather not depend on it, so PSCI is not really an option here. A generic spin-table for arm32 would work for me, with two differences from the arm64 one that it would have to cover: the release address here is an MMIO register in the global control block, not a word in memory, so it has to be written with writel() through an ioremap(), and the Cortex-A9 SCU gets enabled in smp_prepare_cpus() (I have not checked whether the stock U-Boot already does that). If that sounds acceptable, I can post it as a separate patch in v2 and drop the enable method binding and mach directory from this series; otherwise I will keep the small platsmp.c under the name you and Linus agree on. > I don't have a strong preference either. If nobody else has a clear > guidance, changing to "cortina-access,..." would seems the most consistent > to me. OK, unless the DT maintainers object I will switch to "cortina-access," in v2. Thanks, Fil