Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30717350rwd; Thu, 6 Jul 2023 09:40:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlEuHXf/1IlrjdraC/vBOuzQMPy/JCsShQq2/91OKACMQuibx//yHJVKDABejunR1L7rEWgO X-Received: by 2002:aca:6546:0:b0:3a3:c743:83dc with SMTP id j6-20020aca6546000000b003a3c74383dcmr1932429oiw.59.1688661656165; Thu, 06 Jul 2023 09:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688661656; cv=none; d=google.com; s=arc-20160816; b=JDRzggf5x0/6CPHctGlAPF7+dU39UzBClu3xAzypQ9NWUdf+Iw7jmF4sPE2h9B7z3G J2ZWEWHlgqWkRPap0Esx5bHoNuSXslP5jE+FUVnXDktXG/7W72HjVhUEZDmIsoydCH7Q 8eTa1zpYgPOpCcOYt31Atj7k25vXs0nIytyUCAFyR+KC7A9hwdz5WiULtFNzZza612IJ Zhc8buNpdD3QcgK+73pRgfPsQ55Mb9RDlYzCgHCmJAnmpsZW0DnT2xIbHMAcWdu+sNXx YvzNlOVgnBI8MrKUbxSkzMoEbFQTZLY4iw51Xh1Dw3G/VDJGUN+3qlXE1d8siQ0WDs0i FmrA== 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=dGamydSjO6i0JZiTCJLmvh7SzeAr1mNxRdVmzvmKu9s=; fh=fgn2LEs1bZc8wQGwO7i8XQ5K5dm6v+l2UuWc63v2jFQ=; b=1AUKxzIXxVtYeBF063lLnuFS9cnfU1mtg0CnUzzCEJ+AFokiah9tim2juy6+Xrn2Bf XsAknSR7KsIfpZkWHPTTMnrkNfVi41bLETNSwq3Iuuv4fmPs72wCFsWI6waBb3cUs0MN H0ClNVjYel0E/6Nt3qa8nKHrNjIvMiWe7KXXsxa+C2YjgDKhVP8yxzSdUNEHiUghcIpm 3qXtCRwWarQSzA0FOG7iI56i2dpvc4jnl2SltnGRSgDZu33bu481KGYJCLQ5jPu+LR5s xKnotHmihpE1V5YTOUFBsuDHWpb42X4aVqPxrO7HMhU+84KUM2j7kdDBer/UIMnBQT+d MLXQ== 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 j190-20020a6380c7000000b00542924cbf75si1764566pgd.235.2023.07.06.09.40.44; Thu, 06 Jul 2023 09:40:56 -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 S231404AbjGFQjM convert rfc822-to-8bit (ORCPT + 99 others); Thu, 6 Jul 2023 12:39:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231315AbjGFQjL (ORCPT ); Thu, 6 Jul 2023 12:39:11 -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 8F4251730; Thu, 6 Jul 2023 09:39:09 -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 1qHS0P-001GI4-MW; Thu, 06 Jul 2023 18:38:57 +0200 Received: from p57bd990e.dip0.t-ipconnect.de ([87.189.153.14] helo=suse-laptop.fritz.box) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qHS0P-000n6b-Ew; Thu, 06 Jul 2023 18:38:57 +0200 Message-ID: <7b2c0d812280afaefee0c70a9aea00a0fcf84e3a.camel@physik.fu-berlin.de> Subject: Re: [PATCH] sh: Avoid using IRQ0 on SH3 and SH4 From: John Paul Adrian Glaubitz To: Geert Uytterhoeven , Guenter Roeck Cc: Sergey Shtylyov , Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 06 Jul 2023 18:38:55 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.3 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 87.189.153.14 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_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 Hi Geert! On Thu, 2023-07-06 at 17:39 +0200, Geert Uytterhoeven 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 usb usb1: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.04 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: SM501 OHCI usb usb1: Manufacturer: Linux 6.4.0-12069-gc17414a273b8 ohci_hcd usb usb1: SerialNumber: sm501-usb hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected usbcore: registered new interface driver usb-storage rtc-r9701 spi0.0: cannot read RTC register usbcore: registered new interface driver usbhid usbhid: USB HID core driver NET: Registered PF_PACKET protocol family heartbeat: version 0.1.2 loaded ata1: found unknown device (class 0) (stops here) Using rts7751r2dplus_defconfig and the following command line: qemu-system-sh4 -M r2d -kernel vmlinuz-6.5-rc1 -hda debian_sid_sh4_standard.qcow2 -no-reboot -device rtl8139,netdev=net0 -netdev user,id=net0 -append "root=/dev/sda1 console=ttySC1,115200 earlycon=scif,mmio16,0xffe80000 noiotrap" -serial null -serial stdio -nographic -monitor null And using this old qcow2 image: > https://people.debian.org/~aurel32/qemu/sh4/debian_sid_sh4_standard.qcow2 Maybe it's a configuration issue if it works for you? Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913