Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3302770lfo; Mon, 23 May 2022 01:08:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEmFmErj9DaqrXpJoxS2Yw/PzIH/npOngYg3r6I3p3VwTo/xrnz//C5Qr/9s8sLKHJDeWe X-Received: by 2002:a05:6a02:105:b0:381:fd01:330f with SMTP id bg5-20020a056a02010500b00381fd01330fmr18940024pgb.483.1653293337759; Mon, 23 May 2022 01:08:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653293337; cv=none; d=google.com; s=arc-20160816; b=m/YcPcqyaZo+bcNJFzZC7JECMfrZC5gE7LYagubKIlhZCJ2w2UldztHvFxmDG/IMDI RvtPfmdBnHUfaFzjTef9JKKP2TkFEwx9hNINVdyjNwUCOs3v/lL7dO8Ip8WtIE0r5AG7 0BoifE77N3OdBxK6Ykl8NKF9tSLZ11+HNaNA9Uq0Pm4YrsyGoHYIrTa74FxTPopqGUaY U54HSzR7iw70/aXB0FYvFC3GHoEZwbBak6t7c7M37aDvNEWYBXvqwxtAq9xiicRyq6pj +mxfyZb5aNuKZhrIdPSucFJb9hsCk1l/ZKIH9lpZBoscZqcOWp7r4elCvNGo319FtEUT TRKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7tsnp7LDR4Kj+qjwcH/l61gToy0Uf2WpoVPY59g6dIY=; b=mluqpplSGNSQDVVUS6Wtb1ned75QVcWtHnsWqtuSsVIetn3ONQDKM/3Apa9gHC/7GU rPXLrzhrl9xloYb7XhoYqofH6PR6pk9dRwEcBgjps/Zabl7rrmkVeHr3YGpoggorf5up 5dRfWP4BLpyBUgIWrs2K4f+r/tD5oOoe++Q3TJlwNum1qFbXTjFWCzoMzz09uk+88M2L reC4PKhcl6Lf6Qp0MTFXZBDjTv1Xu1JBcCX61KOXyz0zHD5t/tNuuYvjQuZKAUtU6kiK FOaVyVXmnjNJ+HudmhTyDkEDf2ZrcpBk0GHksLOAs6/ZEm1hFjmzzFfpe7efrDIRV2Th gL1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZxwBpu0D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 5-20020a631345000000b003f6051621desi9816009pgt.350.2022.05.23.01.08.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 01:08:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZxwBpu0D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 02A9370352; Mon, 23 May 2022 00:04:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239225AbiEUNNk (ORCPT + 99 others); Sat, 21 May 2022 09:13:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbiEUNNh (ORCPT ); Sat, 21 May 2022 09:13:37 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6132387B0 for ; Sat, 21 May 2022 06:13:36 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id x143so9854145pfc.11 for ; Sat, 21 May 2022 06:13:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7tsnp7LDR4Kj+qjwcH/l61gToy0Uf2WpoVPY59g6dIY=; b=ZxwBpu0DVHrWeYFLzEEFa4jqJp/XPgAheEoJmFhCsDTylRmZnEJ2ggi9MHv9yPWMxw wF1e6XpqBCKCAaHSRwQuq7UukRsDdWhgIP+KjeUcvG8E3hp3xwbCUP9wjfFagr6f4LNG /NZlAEeyRkyETtJCe1ZDNnANcPvwaMJL+qJLJduaAx5tMqZxZJGJTqW/ic9UpLcTyBPN elRLB6K+9LQg+IAPX91KwSIadvZ6crob7IUAyCAUYcrLHyYQ03G+TB3fRsPKcVv2hj4B Fgj3FJaxV7aBXJ5apxocIuthy7NrVzXzkGXewAm9cpkF1EW7Naz6Abp0J0DgS7J6L8p9 n9eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7tsnp7LDR4Kj+qjwcH/l61gToy0Uf2WpoVPY59g6dIY=; b=qJOGcjEw/sFo3SsDt2ofbgpiWLumKpiTc9G+hBcYvS/CUWRqOPIG839HmlzKkTj4Q/ xQ23pLu+mSyJUXCZyYdJjvjDMEnwFoo81thk8VnGD+QneW2OqxAmobGIFjoZSngRyl8R ugSPUkcKhLxbkQno0WAlzE+lEJi91K/joXIy0DeM/5gQNdsXWddig5WMhEL70Q9PKKDQ mV7Tl1qw4qJVz6ySMYpQzERkDt/cit0fKVrWQaeueN3Y16YuvucjvU12L8EgCKnUF2yw VUDoVJkC7pduapC2EvHbyaYatSxKeoqVIHLDVL0kTrw/7vgaCqPMZDUuyiaP/wGGkw7Z da4g== X-Gm-Message-State: AOAM531qZEXDg5nkdtND8qRaoK9l9GcXKr24KCKn5P1kx2GHkmKT6Vzd AShaNunt9L5F0YrWZ+fL27MNbm/ypXs= X-Received: by 2002:a62:a516:0:b0:505:722e:15d5 with SMTP id v22-20020a62a516000000b00505722e15d5mr14855952pfm.52.1653138815604; Sat, 21 May 2022 06:13:35 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id m20-20020a170902e41400b0015e8d4eb25csm1553075ple.166.2022.05.21.06.13.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 May 2022 06:13:34 -0700 (PDT) From: Stafford Horne To: LKML Cc: Openrisc , Stafford Horne Subject: [PATCH v3 00/13] OpenRISC misc cleanups for 5.19 Date: Sat, 21 May 2022 22:13:10 +0900 Message-Id: <20220521131323.631209-1-shorne@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 This is a collection of misc cleanups I have accumulated when working on some recent OpenRISC projects. The patch themes: - Sparse warning cleanups - Removal of dead code - Emergency debug fixups in head.S - Support for gcc machine instruction flags - defconfig updates for litex I have tested these patches when verifying the glibc port by running the glibc test suite. Changes since v2: - Don't enabled class II instructions by default Changes since v1: - Fix if/elif issue in emergency print fixes pointed out by Samuel Holland Stafford Horne (13): openrisc: Add gcc machine instruction flag configuration openrisc: Cleanup emergency print handling openrisc: Add support for liteuart emergency printing openrisc: Add syscall details to emergency syscall debugging openrisc: Pretty print show_registers memory dumps openrisc: Update litex defconfig to support glibc userland openrisc/traps: Declare file scope symbols as static openrisc/traps: Remove die_if_kernel function openrisc/traps: Declare unhandled_exception for asmlinkage openrisc/time: Fix symbol scope warnings openrisc/delay: Add include to fix symbol not declared warning openrisc/fault: Fix symbol scope warnings openrisc: Remove unused IMMU tlb workardound arch/openrisc/Kconfig | 53 ++++ arch/openrisc/Makefile | 17 + arch/openrisc/configs/or1klitex_defconfig | 32 ++ arch/openrisc/kernel/entry.S | 20 +- arch/openrisc/kernel/head.S | 368 ++++++---------------- arch/openrisc/kernel/time.c | 3 +- arch/openrisc/kernel/traps.c | 63 ++-- arch/openrisc/lib/delay.c | 1 + arch/openrisc/mm/fault.c | 4 +- 9 files changed, 254 insertions(+), 307 deletions(-) -- 2.31.1