Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30652784rwd; Thu, 6 Jul 2023 08:49:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlHpxchkgFuDVQDi6h988RQBADCmyuGoJSH3n1bwiu760++nmzgbYJLom4FI3m5RFkYcekNh X-Received: by 2002:a05:6a20:8e27:b0:12c:55:b183 with SMTP id y39-20020a056a208e2700b0012c0055b183mr2463996pzj.55.1688658577072; Thu, 06 Jul 2023 08:49:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688658577; cv=none; d=google.com; s=arc-20160816; b=WjqNTFhQAlBg8BohJM1ftV/rsO6O3u+uyZ7nBCmYscGVYfrNLpDYdcSKteFdjLxKxM IbRfD89X4b9fhvQRxc7nuhBJz7Naoh5Nb9vKxxF1SVmseOR0+2LM6TdP7TLiRngWulr8 XrEHMJXf4FV+4lbwSJuKnFCmACXiuSBSVrwRE73hO/XXt1VGV9e9uEYSB2fnPoHFTcxi g0U5iKaIXasx+Pa3aJFKN0rsAj5EBLdnROdTtshlOQBJRdQyGRcbmcieHRhurm1aSp9c VRWLs1Tix8xp0v1dnxtP9aXm1wKHFHRujD+5IJ987xrlB0qeRRuUHxCVnBCictH6py+p waig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=5gNhA0zM4fTsiZhrDgMk2CzCPeE8wr8wl69zX/8BEK8=; fh=ybOh1gkZogHojqeKrmusks78uhExaZT5aH+PhaAY7SE=; b=HG6cfkU/sv2b59PRQlAyUqnvbEhof0xm14C8f2Of2DAIFTcgENMeoddsVZQ9VTvYxs 1bccsxkoq/zVZ4iL+2v6LbezyEwsONVvoLKH+Z7RquRm9cK6O3C1e7Hj3zXVjTsE+Hl2 blSBG+71GXlCQeujjgRrrps7FEpFgdpEdhPPwFj5wUPZbQstSw0aU0KE3RR7hZwgam/l hF5eQGEEihZp5W/L+RgB7CNIT+AA+SRr39eegNLHAmx8rlyrjcTQQ+3I6Qp9Ye/1M69k QeanSaxwl12ZqDVVMzCgulq69DJD5M6ACxT4QIsFxwiFqrW8V2a8qhhzK8tar5NUdBv9 K2qA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 8-20020a630208000000b0055bf134b7b5si1645067pgc.828.2023.07.06.08.49.25; Thu, 06 Jul 2023 08:49:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232004AbjGFPkH convert rfc822-to-8bit (ORCPT + 99 others); Thu, 6 Jul 2023 11:40:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbjGFPkE (ORCPT ); Thu, 6 Jul 2023 11:40:04 -0400 Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2604D1FD2; Thu, 6 Jul 2023 08:39:40 -0700 (PDT) Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-57722942374so10923627b3.1; Thu, 06 Jul 2023 08:39:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688657976; x=1691249976; 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=j3DiZE9JB6ColP1aIV7E9G0pPGJNewraAmq4lD+0Ir4=; b=d0GSVQiUzPYJ/Qf9h4+29ktP7gJaxqg6FnXp4dEv7i97j9T/UctC02scgNnzUFA2F8 OrgnuAQw7Yb1EBOamYLCKcqT2kUeiw9mN0sVi9YokfsC9Zue6BIP8nSqW+Fq/9ebYatl ZZ09/3fe0SpfRVX1QnMmpxU+ho2S5mO9yzATFkPc6jgXAxzCTB7rfbkI9S8fFAMcsPSf QVaQMYfihQnUQCHPfwuOnN2TmtDiY4dVZ3AVYcYEG7aSG7MWgebdqSveBvgiV8yFP7nP UCM5KTfqe20UhhE+Ypd99gayxyI1tV8MkfAXvm6msFEz4XyuBSBAIeqnNiRoj5xKH97T MKHQ== X-Gm-Message-State: ABy/qLa9xfiOAjpxrd4Y+021mLyYdOEu4A0maISuHmQjjHh/SrpDpq7p YvV5L5zPWzo5I+Tt4lPzTiLvkmM2bEYkOw== X-Received: by 2002:a0d:e8c8:0:b0:576:896a:dbc5 with SMTP id r191-20020a0de8c8000000b00576896adbc5mr2232985ywe.48.1688657975973; Thu, 06 Jul 2023 08:39:35 -0700 (PDT) Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com. [209.85.219.175]) by smtp.gmail.com with ESMTPSA id v126-20020a0dd384000000b0057a02887d4esm409974ywd.100.2023.07.06.08.39.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Jul 2023 08:39:35 -0700 (PDT) Received: by mail-yb1-f175.google.com with SMTP id 3f1490d57ef6-c4e4c258ba9so901758276.1; Thu, 06 Jul 2023 08:39:35 -0700 (PDT) X-Received: by 2002:a25:a4c1:0:b0:c18:4f16:aaf6 with SMTP id g59-20020a25a4c1000000b00c184f16aaf6mr1782557ybi.58.1688657975503; Thu, 06 Jul 2023 08:39:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Geert Uytterhoeven Date: Thu, 6 Jul 2023 17:39:23 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] sh: Avoid using IRQ0 on SH3 and SH4 To: Guenter Roeck Cc: Sergey Shtylyov , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Günter, On Thu, Jul 6, 2023 at 4:03 PM Guenter Roeck wrote: > On Thu, Jun 01, 2023 at 11:22:17PM +0300, Sergey Shtylyov wrote: > > IRQ0 is no longer returned by platform_get_irq() and its ilk -- they now > > return -EINVAL instead. However, the kernel code supporting SH3/4-based > > SoCs still maps the IRQ #s starting at 0 -- modify that code to start the > > IRQ #s from 16 instead. > > > > The patch should mostly affect the AP-SH4A-3A/AP-SH4AD-0A boards as they > > indeed are using IRQ0 for the SMSC911x compatible Ethernet chip. > > > > Unfortunately it also affects all sh4 emulations in qemu, and results in > boot stalls with those. There isn't a relevant log to attach because there > is no error message - booting just stalls until the emulation is aborted. Which sh4 platforms in particular? I booted a kernel with this patch on rts7751r2d (QEMU) and landisk (physical) two days ago. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds