Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp33644896rwd; Sat, 8 Jul 2023 17:30:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlHoaGbfw7qaBl61CGFxnOiWqql9WXPsVH2MJqUskie35CJhAiN9oOHDRd3d0bJvEpCoCv1H X-Received: by 2002:a17:90a:46ce:b0:262:e6d2:2d6 with SMTP id x14-20020a17090a46ce00b00262e6d202d6mr9248042pjg.47.1688862649582; Sat, 08 Jul 2023 17:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688862649; cv=none; d=google.com; s=arc-20160816; b=rQiVwBH8xeO0uD+x51JNTc+2X1uSsfsPSaeosI8UAEodWtWzEkjXpW7ZAuNg6wTpCd aKyOzURFK5O91LGctybfHLzzNJHYufEAII5eLZyRNinNQqk67/krg0YVl3/Uf6WWDxqu +3jvo8nhVNdAgDZdvMI2eWt4eLM3zpzUnnpzWmJ8UxuCVkibgI5rsnKrkXECaCAlMt8o cSenDo9FoWheXE6vQ1MhEFClw8nZwkyUvSyyRyO8qtuvMVl6/1x11i/S6eWO8laybAdR ZPg8gIPildxFAySMpYiTB09Xb0F7a7gTaQ23SX8f4KnSUrpL2sjLP4Av7y3c+BrdiBXa +g0Q== 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=V6dJKQAx+RAfF2l61mWEFOFGj7lL+yBxz477ic48YBM=; fh=bR1YzdS7WdXWoRFcAC3XcWwgU3kQorCH6WVLDvxBquA=; b=bV9Aaq54iOXu+Nt2ypNrnassO8QXL4aii/L1AC1CrM81EE30jsyj2opDY0k5HelJeg +BtL3rZR49yd8hS/07kGDVWVpcqNyrrqJnTE1fgDJBoAhL8u9AFjM3/Nm7HLJfLiqqfC wPgIXo2R3QeY3HzLWYDnx39/aFflFlVtL5cGRu3btD07O+Ld5tOuP3kabiau8OV2JGTD x5qAePakFbVEOQtzprUwp5IrWuZMecnjkGhNh7TQlr5diqz1RoQ+9UQgyfDvjh2NJreQ JEMgRdDqvvmsD3IlSbx7KcY2qFjxnMKmAAVSSX0XPISAcaDYUx/s090jAvbT/0fti9lX CjjQ== 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 w8-20020a17090aea0800b00262cc36ea3esi4542401pjy.76.2023.07.08.17.30.37; Sat, 08 Jul 2023 17:30:49 -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 S229784AbjGHXNr convert rfc822-to-8bit (ORCPT + 99 others); Sat, 8 Jul 2023 19:13:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjGHXNq (ORCPT ); Sat, 8 Jul 2023 19:13:46 -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 C757E102; Sat, 8 Jul 2023 16:13:45 -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 1qIH7N-003hnW-Io; Sun, 09 Jul 2023 01:13:33 +0200 Received: from dynamic-077-191-176-013.77.191.pool.telefonica.de ([77.191.176.13] helo=[192.168.1.11]) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qIH7N-003SEa-Bp; Sun, 09 Jul 2023 01:13:33 +0200 Message-ID: Subject: Re: [PATCH] sh: Avoid using IRQ0 on SH3 and SH4 From: John Paul Adrian Glaubitz To: Guenter Roeck , Sergey Shtylyov , Geert Uytterhoeven Cc: Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 09 Jul 2023 01:13:24 +0200 In-Reply-To: <1178f8d0-be70-c088-ee6a-8b421b290624@roeck-us.net> 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: 77.191.176.13 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hello Guenter! On Sat, 2023-07-08 at 15:06 -0700, Guenter Roeck wrote: > On 7/8/23 13:52, Sergey Shtylyov wrote: > > On 7/6/23 7:38 PM, John Paul Adrian Glaubitz wrote: > > [...] > > > > > > Which sh4 platforms in particular? > > > > > > > > I booted a kernel with this patch on rts7751r2d (QEMU) and landisk > > > > (physical) two days ago. > > > > > > I gave it a try with the command line Guenter suggested and indeed the kernel locks > > > up right here with the patch applied and boots fine without it: > > > > > > Creating 4 MTD partitions on "physmap-flash": > > > 0x000000000000-0x000000040000 : "U-Boot" > > > 0x000000040000-0x000000080000 : "Environment" > > > 0x000000080000-0x000000240000 : "Kernel" > > > 0x000000240000-0x000001000000 : "Flash_FS" > > > 8139too: 8139too Fast Ethernet driver 0.9.28 > > > 8139too 0000:00:01.0: This (id 10ec:8139 rev 20) is an enhanced 8139C+ chip, use 8139cp > > > sm501-usb sm501-usb: SM501 OHCI > > > sm501-usb sm501-usb: new USB bus registered, assigned bus number 1 > > > sm501-usb sm501-usb: irq 116, io mem 0x13e40000 > > > > I guess it was irq 100 before my patch. What if you undo the following > > part of my patch? > > > > No, that doesn't help. Since the SM501 works fine with the patch on my SH7785LCR board, I assume it's related to the IRQ code for the r2d2 board. 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? Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913