Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38008770rwd; Wed, 12 Jul 2023 01:30:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlEV7dbiQyq7OFqjmIg/28lBkIoRXo2zlUlCxtbJtZ65j+Q3OIvidbeH1ixI2NVpOXKpBFMW X-Received: by 2002:a05:6402:481:b0:51d:f589:9cbd with SMTP id k1-20020a056402048100b0051df5899cbdmr15656677edv.39.1689150621419; Wed, 12 Jul 2023 01:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689150621; cv=none; d=google.com; s=arc-20160816; b=rALN2jonBdReS1kIpX2SgeOwG5lSdO7McNTGTfn6cAratppsndniBD8V/bf7ilQmdS 66PTbSlZLYl1ZEqGrv4hc4r2yNtZAUXOWgCIHVN+CuIGMqTv4+W1GsxY7FU2iu8G7Igv YVMxvJDpxpPKqZU+wlk/gbIUbc415sPcaWC7bvQjwEAHJlddlmzo1W752xTOI/DKf0kw hLwrK94DRTmDy+cMkLfBYaD7yv2ue9WouxausNjSqhKN3Lk8cdgXc42lvd/ManRdLOY3 qbYWswULPhW2ggWh4rMW4pECZzkRXrbhDCu95EEUn6x5BrA1NUv85p/MV9seEjV4mveB W9oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=j8y7egQXKcQKRLupFMv2ShE5mghMVjt49i0ySKbDFso=; fh=6hgl/9EqpFqT7egdI+ci6VKkjWxl7b4AviPWU0Tarsg=; b=E9S32juDkUU56Fjf+maiqQ6Ke0CL6ID8QorP2BN3oRt5KtvZ2MoShQ8bdrBQTlP/k1 XXz8PTQSOQ3YpxpnDacCoaGKd5pHHq/TUFNpshdVoQt8OIZd0V4r8sdOXZxjsVNP8/T9 hOMgoDDVFJSgJ/68LYUCXQ6b0yzEFn3lc+q5AYwAqoeDEw8oz0Ox2MFU9s28cAMWyopT O7nkL1PzbaCB76YVfVL5gAAy2ei+KyjSp49T4ieaF77OHRuUOxStULwgs0nRwoocjHnt l/uDWkc71pERjHNywvpTx4mBNk26T0TIQV8oD7ppy6QE42LSgLTu7sYuDirTEnSZjkiF 9v0g== 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 m14-20020aa7d34e000000b0051bec8e6a76si4108560edr.309.2023.07.12.01.29.57; Wed, 12 Jul 2023 01:30:21 -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 S232215AbjGLIUp convert rfc822-to-8bit (ORCPT + 99 others); Wed, 12 Jul 2023 04:20:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232508AbjGLIUQ (ORCPT ); Wed, 12 Jul 2023 04:20:16 -0400 Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A83C12706; Wed, 12 Jul 2023 01:16:55 -0700 (PDT) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qJV0i-003CBT-OC; Wed, 12 Jul 2023 10:15:44 +0200 Received: from p57bd9f0d.dip0.t-ipconnect.de ([87.189.159.13] helo=[192.168.178.81]) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qJV0i-001l2s-F8; Wed, 12 Jul 2023 10:15:44 +0200 Message-ID: Subject: Re: [PATCH] sh: Avoid using IRQ0 on SH3 and SH4 From: John Paul Adrian Glaubitz To: David Laight , Guenter Roeck , Sergey Shtylyov , Geert Uytterhoeven Cc: Yoshinori Sato , Rich Felker , "linux-sh@vger.kernel.org" , "linux-kernel@vger.kernel.org" Date: Wed, 12 Jul 2023 10:15:43 +0200 In-Reply-To: References: <7b2c0d812280afaefee0c70a9aea00a0fcf84e3a.camel@physik.fu-berlin.de> <1178f8d0-be70-c088-ee6a-8b421b290624@roeck-us.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 87.189.159.13 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_HELO_TEMPERROR autolearn=ham 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 David! On Wed, 2023-07-12 at 08:12 +0000, David Laight wrote: > From: John Paul Adrian Glaubitz > > Sent: 09 July 2023 00:13 > .... > > Looking at arch/sh/boards/mach-r2d/irq.c, there is some IRQ translation going > > on and maybe that's the part where we need to correct the offset by 16? > > Would it be less problematic to use (say) 16 for IRQ_0 > leaving IRQ_1+ as 1+ ? That would make things more complicated as IRQ0 would have to be handled individually. > At least that would only cause issues for code that needed > to use IRQ_0. What issues are you seeing or expecting? > (It has to be said that making IRQ 0 invalid seemed wrong > to me. x86 (IBM PC) gets away with it because IRQ 0 is > always assigned to platform specific hardware.) It's invalid for driver code, not for architecture code. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913