Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp266162ybh; Wed, 15 Jul 2020 01:08:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6zAzY2nYpPM6i328aR0l9SwfzWBP3R1VAtc3LJtF1PEpEvh9JVdjLizcjbpY/CbltiLoq X-Received: by 2002:a17:906:1986:: with SMTP id g6mr8500726ejd.404.1594800490533; Wed, 15 Jul 2020 01:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594800490; cv=none; d=google.com; s=arc-20160816; b=REOcYAaGzU9kVI5/eNbp33hgz903vgj1hgwouUoMiKzxxcF27Shr7dvZ/E2Ujmhnz8 0/AjYRnpUU58S8eCWAv9npdpj09A0U6nk3bl3Mx0YnB2ShN60PEAY9sNxctQ/45nlqUm hTC3tfnyVp/xsb+L/2T0F7nyNfjJhq8p819v0KzjHB1IFsgyMv0NW9Iim0U0R1obDSes 7uBPGahP3IIsRnJtye0zQOgSg2EXVKYXX9C/q5eGQ0SBcZ3NUZopMYEet9f6TVa/EOut qoJdPBZPY2+VsLhT0MUMo0/uP78ZYWGy0SmxYWlo9TDxIJ0ecf6IJvveg8CbCDbQslIg umxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=9i4sRGtbEBuYCL5UMvmPh9SlS6NWtdCLBSEL/mpa4mg=; b=w7TAbVIGo4OUrL1LYVCTUL5NKqh5rRcNo4MI5b2zTxKOih+Eg+1Opa7A0pQ35/t87S o6FsYadeANKygiUwB9kqArjEC/bb2QJRT7Pgli7IFwYrelzvDIIffALbhNROdWdbjm5Z e4kqmKms9XpAlrWwWw5XeR82G7Y64GUzkpvU4t7I96jI46p5Dw++2reQTAst4VGNbS/5 F9ruiAgeqdCZKSo1Q/s+/t7Gjkwpiwkgxafhk4G88bYS+UYLHILxhIrlwwKRmgFJWhzQ 9jeMyqX+gFKUer6LiybqxhDt7orioqVcqyNdsYDVJ3ws1IaWVbhgGjzArnVQOWQq4BAr N7HA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cb9si805212ejb.176.2020.07.15.01.07.47; Wed, 15 Jul 2020 01:08:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729599AbgGOIHK convert rfc822-to-8bit (ORCPT + 99 others); Wed, 15 Jul 2020 04:07:10 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:34005 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729001AbgGOIHI (ORCPT ); Wed, 15 Jul 2020 04:07:08 -0400 Received: by mail-oi1-f195.google.com with SMTP id e4so1578399oib.1; Wed, 15 Jul 2020 01:07:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=o4+cKSE1t0Fpalcp0cttipzWha9ZgmeHwOg9WyBcAjE=; b=mEAAykT+uaaMePOnjtUhc9j/K9D1l/F1aW5dhKURyQonYfvr3JII5HAR3RV7oAM210 oOYxv6h0kkV980AnH4BkLR2BcDhqcH0wMhy3/LwfhDM+lhxgN4PJ1eSk32J7iyuDwv2s h40nf8NYI5zvvDS9fm5y9/VPjvfaStyFPqOxuAdM4bmV/XaHZnmjYtnMa7nY6hkXdfBt SicIEBu4oISRY9zNcqFK10rEG2ikpoY1YpNdKqQFgaNRC7LCoSXh1Xu938YZynPRbFNS sfR+FgwdeaQI23qqGzwgGbD8MeUx54Alyqu7cOEeq8y117L9D9BQAOW/PrVrahJY423n RsZQ== X-Gm-Message-State: AOAM5305jRzSnqF50Y8HIbxGEq3syc2RFKcddpSyRMyKU6K7aBp7uhFO A5sPRKOe/oi3r9WnYyuWvFz38+DX5I97pcMrp5k= X-Received: by 2002:a05:6808:64a:: with SMTP id z10mr6876052oih.54.1594800427676; Wed, 15 Jul 2020 01:07:07 -0700 (PDT) MIME-Version: 1.0 References: <20200714121856.955680-1-hch@lst.de> <20200714155914.GA24404@brightrain.aerifal.cx> <8cbf2963-d0e4-0ca8-4ffe-c2057694447f@physik.fu-berlin.de> <011f29e6-ad71-366e-dbff-bc8471f3da60@physik.fu-berlin.de> <47673a8f-cda1-4915-df20-068acfc49892@physik.fu-berlin.de> In-Reply-To: <47673a8f-cda1-4915-df20-068acfc49892@physik.fu-berlin.de> From: Geert Uytterhoeven Date: Wed, 15 Jul 2020 10:06:56 +0200 Message-ID: Subject: Re: ioremap and dma cleanups and fixes for superh (2nd resend) To: John Paul Adrian Glaubitz Cc: Rich Felker , Christoph Hellwig , Yoshinori Sato , Linux-sh list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adrian, On Wed, Jul 15, 2020 at 9:37 AM John Paul Adrian Glaubitz wrote: > On 7/15/20 9:27 AM, Geert Uytterhoeven wrote: > > On Wed, Jul 15, 2020 at 1:14 AM John Paul Adrian Glaubitz > > wrote: > >> However, independent of Christoph's series, the kernels throws two backtraces during > >> boot which I think should require a git bisect (unless I missed a configuration option > >> as I trimmed down the kernel a bit to make sure it's not too big). > >> > >> See the traces below and let me know what you think. > > > >> [ 1.560000] sh-sci.1: ttySC1 at MMIO 0xffeb0000 (irq = 44, base_baud = 0) is a scif > >> [ 1.560000] BUG: spinlock bad magic on CPU#0, swapper/1 > >> [ 1.560000] lock: sci_ports+0x1d8/0xb10, .magic: 00000000, .owner: /-1, .owner_cpu: 0 > > > > [PATCH v1] serial: core: Initialise spin lock before use in > > uart_configure_port() > > https://lore.kernel.org/r/20200706140036.75524-1-andriy.shevchenko@linux.intel.com > Yes, this patch fixes this particular problem. > > There is just a typo in the code which causes a build problem but it's fixed by replacing > "uport" with "port": Oops, there's a v2 fixing that: https://lore.kernel.org/linux-serial/20200706143548.63985-1-andriy.shevchenko@linux.intel.com/ > CC kernel/module.o > drivers/tty/serial/serial_core.c: In function ‘uart_configure_port’: > drivers/tty/serial/serial_core.c:2385:33: error: ‘uport’ undeclared (first use in this function); did you mean ‘port’? > 2385 | uart_any_port_spin_lock_init(uport); > | ^~~~~ > | port > drivers/tty/serial/serial_core.c:2385:33: note: each undeclared identifier is reported only once for each function it appears in > make[3]: *** [scripts/Makefile.build:280: drivers/tty/serial/serial_core.o] Error 1 > make[2]: *** [scripts/Makefile.build:497: drivers/tty/serial] Error 2 > make[1]: *** [scripts/Makefile.build:497: drivers/tty] Error 2 > make[1]: *** Waiting for unfinished jobs.... > AR drivers/base/firmware_loader/built-in.a > > Will test the other changes in a minute. > > Can we include the serial fix? Please be patient. I expect this to be fixed soon through the tty tree. Note that linux-next already has an alternative fix (f38278e9b810b06a ("serial: sh-sci: Initialize spinlock for uart console")), which is planned to be reverted once the real fix has been applied. 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