Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3876247pxb; Tue, 17 Nov 2020 06:01:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHhl0UBf9QA92y5xE3d1OHf7e6OM82w+XW+FR+LhIM0NnWy8lOvQPJzoBGJJla6eJe4ZfO X-Received: by 2002:a05:6402:1456:: with SMTP id d22mr20478329edx.77.1605621680924; Tue, 17 Nov 2020 06:01:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605621680; cv=none; d=google.com; s=arc-20160816; b=BK5q2AuzjPcGE0DsoNSstNO+52Sufz5T8o+RWOx49vQPFfM0/jaNL20sK+zWe2bd6W mdvsDoQfr+fQrbrRC1dyJVs/WfLNqNtrdKJ/nVMBHQWbZ2aqjs9popTuw0hNVxDVQOXX sgM5KVzPy58BhKTp9jYt6IwWyGEv76bn9XNWF1da721jPTd7kLiwHvclUNd8iZA0lXYB t0i4QxTDO0B8cyKv9P2zc28mUfiTAETa+UfPkCw6k8X2OQLQge2E6fR10gGI5Bnn3+VZ W9uDzBHE0xbQnHviZpPZWSjdejE80xr58VQ9OXm3yJwiHncP73et64miGhrvoHlWv8j9 X5+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kfqGTshO4RXbmqJZ2sOzJln++k9Bd8o0Qa3F90U4QsI=; b=D200o6IWnl+ncgUqmGZfPVEShEdO0C70IV4s+tq3OfxUnmTA/AtqekJaCpxIlsqGEO 9tVJBgeVOJMDh40ryebPhXJiJdFCgK+UFNoYVaYt+zgiqp+9f4T50e6YBqnwfRP66g/t WTy/Ix8H5ACPJPwZLGR5AIdnoRpM6kxoMTVxjAg3MsmKhBoa2qFaylHgDrQ6giBz6DhG vP07W6w3LGtidrpZyBZmMuAlfE9LsX2hRbjHeV3aZM9Tw6VOLW9hSVTKKR3hBKqiXFnS etGIyTZm2xmhKyiq1sK4EgjEttk4FGuIOCtGijG20h0I5B3OI3XUm6QMB8VjIzz9+quI wFJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eO7ncMNK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u11si1610912edj.59.2020.11.17.06.00.55; Tue, 17 Nov 2020 06:01:20 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=eO7ncMNK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731173AbgKQN64 (ORCPT + 99 others); Tue, 17 Nov 2020 08:58:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:40424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731343AbgKQN6y (ORCPT ); Tue, 17 Nov 2020 08:58:54 -0500 Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A15282468D for ; Tue, 17 Nov 2020 13:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605621532; bh=h0tP/2EDBP+w629n4RIUFP0ww+ilNgg3bULmsl5N/go=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=eO7ncMNKEnEk/C0m3RgjKwLdSouPFjHJwPBiE8nfas8R7lqi/yMmAXCOWSp3YpTyJ z5KMePS+uNSarTpLyw/daiN/5UYiZvg2fPxYMwkOYO/tRm+jSGqlVUMxiVLIIkirCC 2OMu18Ps9RBdIzuMA3koS8dZNh1c+p4iPO77STR0= Received: by mail-ot1-f43.google.com with SMTP id l36so19454654ota.4 for ; Tue, 17 Nov 2020 05:58:52 -0800 (PST) X-Gm-Message-State: AOAM5324Yj3Dc8NhjUt4rhrtZChiV9XFdWrB0k+V8xpcq3gLtMqNiNJU naWtYlaTih2UU9CKzGu/bITh2K3qLQwj+LEg8EQ= X-Received: by 2002:a9d:65d5:: with SMTP id z21mr2829215oth.251.1605621531812; Tue, 17 Nov 2020 05:58:51 -0800 (PST) MIME-Version: 1.0 References: <202011111443.lt7V48Ig-lkp@intel.com> <20201113235801.GB6117@piout.net> In-Reply-To: <20201113235801.GB6117@piout.net> From: Arnd Bergmann Date: Tue, 17 Nov 2020 14:58:36 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: ./include/generated/autoconf.h:1601:33: fatal error: mach/debug-macro.S: No such file or directory To: Alexandre Belloni Cc: Linus Walleij , kernel test robot , Arnd Bergmann , Nicolas Ferre , Olof Johansson , kbuild-all@lists.01.org, "linux-kernel@vger.kernel.org" , Russell King , Linux ARM , Claudiu Beznea , Ludovic Desroches Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 14, 2020 at 12:58 AM Alexandre Belloni wrote: > On 11/11/2020 09:51:26+0100, Linus Walleij wrote: > > On Wed, Nov 11, 2020 at 7:18 AM kernel test robot wrote: > > > > > In file included from include/linux/kconfig.h:7, > > > from : > > > >> ./include/generated/autoconf.h:1601:33: fatal error: mach/debug-macro.S: No such file or directory > > > 1601 | #define CONFIG_DEBUG_LL_INCLUDE "mach/debug-macro.S" > > > | ^~~~~~~~~~~~~~~~~~~~ > > > compilation terminated. > > > > This is an interesting one! > > > > It happens when CONFIG_DEBUG_LL_INCLUDE does not have a custom > > debug header for the platform under arch/arm/include/debug and the > > KConfig falls through to the default value, which is . > > > > Only that the majority is not using anymore. > > > > I feel a bit like setting the default to debug/8250.S or something. > > > > Suggestions? > > > > Then the actual bug exposed: > > > > The config tested by the robot is using > > CONFIG_ARCH_AT91=y > > CONFIG_SOC_SAMV7=y > > > > When I look into Kconfig.debug it seems that this will define > > DEBUG_AT91_SAMV7_USART1 but only a physical address, > > no virtual address and and actually no debug header. It seems > > LL_DEBUG is broken on SAMV7 and never really worked > > so now that crops up. The last mach/debug-macro.S file was apparently removed in 2015, in commit 0045c0dd2f64 ("ARM: debug-ll: rework footbridge handling"). At that point we should have changed the fallback > > Nicolas, something that should be fixed, I think? > > > > I confirm DEBUG_LL is not broken on SAMV7. The config used by lkp doen't > define DEBUG_AT91_SAMV7_USART1, it is not the culprit. Select it and the > problem is gone since DEBUG_AT91_SAMV7_USART1 selects DEBUG_AT91_UART > and DEBUG_LL_INCLUDE has: > default "debug/at91.S" if DEBUG_AT91_UART > > Your issue is CONFIG_DEBUG_SEMIHOSTING Right, in particular, semihosting is not handled in arch/arm/boot/compressed/head.S the way it is handled in arch/arm/boot/compressed/debug.S, arch/arm/kernel/debug.S and arch/arm/kernel/head.S. I wonder if we should move the semihosting code into a separate arch/arm/include/debug/semihosting.S to make the generic code treat it the same as all the other options. Alternatively, disabling CONFIG_DEBUG_UNCOMPRESS when SEMIHOSTING is set would be the cheapest workaround for the particular build failure. Arnd