Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp51320pxh; Thu, 7 Apr 2022 13:41:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLNHMOfFhvYS9cYDwPbxQjwx1LbCRh6ZdZMCz6ndXHE7I4tfJEAT8IGYblGU46JDVXfPrp X-Received: by 2002:a17:902:dac2:b0:156:a7f5:bc3d with SMTP id q2-20020a170902dac200b00156a7f5bc3dmr15987002plx.76.1649364075384; Thu, 07 Apr 2022 13:41:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649364075; cv=none; d=google.com; s=arc-20160816; b=IDdLGV7bgfyrs/J8i1IICAGtcFxD5M9+NBui2jK+0n4kNKonWLr3xp/HWkge8Eayje zqoPm/ai9ds8c4Xm8VyXUjDdhZcwsM2Ehm6Her6i69Sq0wabb0q/N1JsI1ireK9x1509 OwEdeJrB/P8p+eksvlLNmeEvWIa0cbcJQJWd31ZfuMdc1UTy6y3OI6a5HMwbqK7Q3nP0 D4AtV+fee/zP7NNaarxe3IMOfAAvcUfxmc9iFyhsAodVTXmhRZnlrlQBw5KDA7/SpivG yhUw8+oS2YUHsXwmwn5K0IMPGJouPfA2PAxsXSX5xX+04+dmb7UC3EyseTJLMR3UKEw+ 9g4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=HfFrcmd70k7cFbm2ZXnWFiX/H5FhSCRXyrLZ2pjFPSI=; b=j0lLUzOslLyTTuy4vb1aHkmZ2AoqjXR9CZTauO8qFYKEFFLieOgzyImOke+tfPSkDe 4NSyGC6UzY/VKCZfKfvJO/959CH4PbklVGbmJcah99iCT4FGHl3YNCqiUM1T3J6DWMnw ezL5tZywfEM4eh41jPVnbq2GxB0ykQmOtXWKA/XRZUrBtS5BlA+80IBAjyfA7zgFscKx KSZ/BhDnLOOD27ubGayfWKdtT98dME4Ux3Ryn8Bdlz7G3HedY54pOgy7cAlTM0ag7gt9 +rc2NMtjK2rTF0dqs6K9WLnRnzpirzzM3Aom/u8gWHN5fxDGODB2UUjFVy7HqeEAafKX En1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20210112.gappssmtp.com header.s=20210112 header.b=JWAdKKIG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w29-20020a63491d000000b003816043eea4si19974760pga.153.2022.04.07.13.41.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:41:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@landley-net.20210112.gappssmtp.com header.s=20210112 header.b=JWAdKKIG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B2B9D3C5983; Thu, 7 Apr 2022 12:52:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236390AbiDFVoK (ORCPT + 99 others); Wed, 6 Apr 2022 17:44:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237463AbiDFVni (ORCPT ); Wed, 6 Apr 2022 17:43:38 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3A3AF847B for ; Wed, 6 Apr 2022 14:21:49 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id z9-20020a05683020c900b005b22bf41872so2561660otq.13 for ; Wed, 06 Apr 2022 14:21:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=HfFrcmd70k7cFbm2ZXnWFiX/H5FhSCRXyrLZ2pjFPSI=; b=JWAdKKIGlR2GXRY2EyBHJpOHb12AGoA/GSAiazO0z3sUuJl2pbLq3y8f2LLZRiK7ag jF0pPAE80m/StQPAn0HI9Jocd1N932K40FWD3K+6jyCPxSDW85yi+b5RM+j3udvxF4+j 4zvhIFli6DskhDlP9Zev4QI97hRqVRtIMcyyKrm7nX3owwnxPNDHJhwIikd2t2FloXmA Wk/pQwPT1sVLvBHFuFUW6X+vOB/f3di+0I5KpQAE5mktFyy59esdv+bNVlWExchHjewr ahjX/NWsjkK4v6+AkxwjmUhoWZbdfC6ilBaig9EYYETbKicXqqZULA+yUUodPHV8EKDI QR8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=HfFrcmd70k7cFbm2ZXnWFiX/H5FhSCRXyrLZ2pjFPSI=; b=4GsC1E2xz2OgQOTDf2BAAPvANI6jYurTW4vozBFaaQwo0miQnsUM8XOTPyWfgbeJhf m/0gGR+COGXlfpWttN/82eg4Thlo4ySL4atF0RuCYVCP3U/yBVhYgpDV6WtEsffyWtbW 5/1fkEEOaP8BM0tkPVQB33JG/LZNwzYXHRR2XBkg3AxwP6pkRa4yZYlzVH0yLdQJluK+ QC3of7qjcbqIer9aMvEyjcbBot0W+ZS1vDXT1vf3yYLu+boZNt39Tpbkgvm2X9OMle// TsjVvOeWg2kKPEUEc318siJyTcDBqNG0Kz60wyn8DaFJl6yJl9cOLDiJl1yap2YGEjZp yDmA== X-Gm-Message-State: AOAM530KMV6Yz3DDQtJmbZ3BQpanNf1FxXrTzqzueSKnAphUYjfwqtN/ PAChHs1oYnaCqi2Af999Z29p5ThfzFtNNPNN X-Received: by 2002:a9d:4d12:0:b0:5c9:4997:452c with SMTP id n18-20020a9d4d12000000b005c94997452cmr3741105otf.127.1649280109270; Wed, 06 Apr 2022 14:21:49 -0700 (PDT) Received: from [192.168.86.186] ([136.62.4.88]) by smtp.gmail.com with ESMTPSA id e12-20020a4aa60c000000b00324bb45d7ecsm6352052oom.48.2022.04.06.14.21.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Apr 2022 14:21:48 -0700 (PDT) Message-ID: Date: Wed, 6 Apr 2022 16:25:48 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [RFC PULL] remove arch/h8300 Content-Language: en-US To: Geert Uytterhoeven , Arnd Bergmann Cc: Christoph Hellwig , Linus Torvalds , Yoshinori Sato , Linux Kernel Mailing List , linux-arch , "moderated list:H8/300 ARCHITECTURE" , "open list:TENSILICA XTENSA PORT (xtensa)" , Max Filippov , Linux-sh list , linux-m68k , Greg Ungerer , Damien Le Moal , linux-riscv , Rich Felker References: From: Rob Landley In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/4/22 08:22, Geert Uytterhoeven wrote: > Hi Arnd, > > On Mon, Apr 4, 2022 at 3:09 PM Arnd Bergmann wrote: >> On Sun, Apr 3, 2022 at 2:43 PM Christoph Hellwig wrote: >> > On Tue, Mar 08, 2022 at 09:19:16AM +0100, Arnd Bergmann wrote: >> > > If there are no other objections, I'll just queue this up for 5.18 in >> > > the asm-generic >> > > tree along with the nds32 removal. >> > >> > So it is the last day of te merge window and arch/h8300 is till there. >> > And checking nw the removal has also not made it to linux-next. Looks >> > like it is so stale that even the removal gets ignored :( >> >> I was really hoping that someone else would at least comment. > > Doh, I hadn't seen this patch before ;-) > Nevertheless, I do not have access to H8/300 hardware. The 8300 never got qemu support but I had lunch with the maintainer in Tokyo a few years back and he showed me how to use gdb to simulate it, which included booting Linux under the gdb simulation (built-in initramfs talking to serial console). Here's somebody else using gdb simulation for h8/300: https://www4.cs.fau.de/~felser/RCXSimulator/ I'm interested in H8300 because it's a tiny architecture (under 6k lines total, in 93 files) and thus a good way to see what a minimal Linux port looks like. If somebody would like to suggest a different one for that... >> 3. arch/sh j2 support was added in 2016 and doesn't see a lot of >> changes, but I think >> Rich still cares about it and wants to add J32 support (with MMU) >> in the future > > Yep, when the SH4 patents will have expired. They've had a working J32 on FPGA for a while now, the problem is porting Linux to it. The MMU design they went with wasn't compatible with sh3/sh4. (Userspace is, kernel side needs some tweaking.) And they don't want to finalize the design until they have proper test loads running on it, and then they went off to do VPN hardware and such during the pandemic... > I believe that's planned for 2016 (Islamic calendar? ;-) The website's kind of archived and needs to be completely redone. (It moved hosts and I lost access to update it for a while, and I got sucked into other projects since. The mailing list server is also mothballed. Ask Jeff, I brought it up every weekly call for 6 months...) Jeff's team is working on making a J2 asic this year (through sky130), and everything else is queued up after that. They've been grabbing various I/O subsystems (like the GPS correlators and crypto engine and such) and doing work on them to make go/no-go decisions for the asic inclusion. (Lots of activity goes by on the Signal channel, but I can't even get cut and paste to work in that thing's Android app, and I don't really have the domain expertise to help out with that part.) > BTW, the unresponsiveness of the SH maintainers is also annoying. > Patches are sent to the list (sometimes multiple people are solving > the same recurring issue), but ignored. I mailed four or five turtle boards out to people last year, in hopes of getting wider testing, but everybody I sent one to seems to have vanished. (The pandemic chip shortage kinda derailed plans to productize that...) I tested 5.17 on J2 FPGA when it came out, and it booted with two local patches: 1) Commit 790eb67374 needs to be reverted or the j2 boot just hangs before producing any console output. Dunno why, it seems COMPLETELY unrelated, and yet. (Wild guess: disturbs the alignment of some important piece of data? Rich knows and it's in queue.) 2) This patch from Rich stops the j2 boot messages from being a thousand lines of IRQ warnings, but he called it a hack when he sent it to me and I have no clue what a "proper" fix would look like (or why that isn't)? diff --git a/drivers/irqchip/irq-jcore-aic.c b/drivers/irqchip/irq-jcore-aic.c index 5f47d8ee4ae3..730252cb7b08 100644 --- a/drivers/irqchip/irq-jcore-aic.c +++ b/drivers/irqchip/irq-jcore-aic.c @@ -68,6 +68,7 @@ static int __init aic_irq_of_init(struct device_node *node, unsigned min_irq = JCORE_AIC2_MIN_HWIRQ; unsigned dom_sz = JCORE_AIC_MAX_HWIRQ+1; struct irq_domain *domain; + int rc; pr_info("Initializing J-Core AIC\n"); @@ -100,6 +101,11 @@ static int __init aic_irq_of_init(struct device_node *node, jcore_aic.irq_unmask = noop; jcore_aic.name = "AIC"; + rc = irq_alloc_descs(min_irq, min_irq, dom_sz - min_irq, + of_node_to_nid(node)); + if (rc < 0) + pr_info("Cannot allocate irq_descs @ IRQ%d, assuming pre-allocated\n", + min_irq); domain = irq_domain_add_legacy(node, dom_sz - min_irq, min_irq, min_irq, &jcore_aic_irqdomain_ops, &jcore_aic); I'm spinning too many plates to reliably reply to stuff, but I try to check in as often as I can, and at LEAST regression test each new release. Rob