Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2190117rdf; Mon, 6 Nov 2023 07:14:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGWeczjHjxrfIRsGCV7acmKf53mKK9F4AFkEiFPD0L4YO394pgYFqsVwnpXO1HdDwRG4MLU X-Received: by 2002:a17:90a:53c7:b0:27d:63c:34f2 with SMTP id y65-20020a17090a53c700b0027d063c34f2mr27554493pjh.41.1699283651949; Mon, 06 Nov 2023 07:14:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699283651; cv=none; d=google.com; s=arc-20160816; b=BXFvScM04L4aCBVSCxvLXG4WJryvJxPKpVHLUnNGUPc3YZbphUfMq69UsVl2EF1djc uuaEgb3Af2jH7YcqsbYrzrnDaY7A165mMZTGbQsiMJVIDS7neamZ2C5mYDSw2nWItBSK Bth7FTtj51TpysF2htWOG9z8blJ+3sxsPcqOpMzMIZqE00L2XXO4cwD+gy/LalKxyIrQ pgeCPVsJsEdi6q8g2dUmynkQczXUJkJpeCJdp7JYY951pOxd14C3O0dCXBA3M2NBDx2I XmLS2CKqyN1IYb9AFFdU4PUYgKc6LFl2RKDIh2gcbsbOKqH90+0T/eOsqo2VwMt9bz8N u/fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:to:from:cc:subject:date :dkim-signature; bh=3spO5ETrLmBsvu43PjhgRUZXO/C9Tz2M4av0kcBBilQ=; fh=ELDcRk7I1YF2FTA5py1Z1vSVL/QkZSQL0J7M4fUXCf0=; b=SsIe9ayutKQLWzeuLLJCCwftatscHEBwpBGCfTF65lr7Vi2+aBoW+5hYhTlZvZEaSU YNBOy3umF86G5wNAK08/NemlhtRlJ2u/eDT7hecx48I4TVyEMFXzYXSnfehJOYbOroO8 pmbESIyvGQyUO6qDcnrfrdQLVak4/Vqf25eGZp5jp5H01Ps6ImPXF++jzKx8ZhDM/R0i HwOKlgdHu1rMDEIhQ1Nc11+VQnVl7KIQ6z7rQHS0sTNaagatWOBu/iwWxuwak3VutYZ9 jdmhuFYxRWIyevAvINmc5AOLT/JGMHLlRIr4nojFYtW97kr09R/czsc9TV4U3pj2e0Hc IjHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=X69BMkjs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id pf16-20020a17090b1d9000b0027d04b581dcsi8668006pjb.72.2023.11.06.07.14.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 07:14:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=X69BMkjs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id EBFC180613A3; Mon, 6 Nov 2023 07:14:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232097AbjKFPNy (ORCPT + 99 others); Mon, 6 Nov 2023 10:13:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232031AbjKFPNw (ORCPT ); Mon, 6 Nov 2023 10:13:52 -0500 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6638FDB for ; Mon, 6 Nov 2023 07:13:49 -0800 (PST) Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-6ce532451c7so2402648a34.2 for ; Mon, 06 Nov 2023 07:13:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1699283628; x=1699888428; darn=vger.kernel.org; h=message-id:to:from:cc:subject:date:from:to:cc:subject:date :message-id:reply-to; bh=3spO5ETrLmBsvu43PjhgRUZXO/C9Tz2M4av0kcBBilQ=; b=X69BMkjsrJCMW8VbByIQp21PnqT9BWCGvUoG88kfyLc3SodurXgDXTssMSV6Bssy86 Sa2/YxwV8wgj0O5vftdsmLP6l3q9xWhxEc77S4MtlQ+DqaEHnMZjspUcCZzT+YFys2Ep KGc40ldAZU66f8V72h38sMVTbuRsh4RXdKWUR4N7PooHev5tsu5DE4ef19fFT4zT8dQK mYZLfDukquSd8k9qrzUkezLcSMuR+YwtaqOOeGtCZK+VxwsYekqUzOkbRsHLcs9I/ZIu X3kZQb1XITWIuL49ZhJnR07ziIP+VKNPEdMOd+reig0Edbz3SgWMuUWrc7F9478GOaqh 1Kiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699283628; x=1699888428; h=message-id:to:from:cc:subject:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3spO5ETrLmBsvu43PjhgRUZXO/C9Tz2M4av0kcBBilQ=; b=n+WHnjI3cEFLJ2NFCjEvWtgpR8UWLsCYYRUHYakQJ1dJXU5iYT0S3ZoCDhbVYdkLYs 8oCG10NpV9ekp+Yvz6sxJk4jPcJ49mBoIWRQ0Wa0boaKg/IwV0KQZPC6bqcEAZ+csxB6 eZ4/LlvhAgqem2c929K6+yoqQWcMDuoki6WVM3MlhbbpH4i5XvHs3NCei0UYBmHGV50p 07vUf8dodpCmJQ+FOpOPrzHiT6IgHlJ5Mc2o/dklFcMRY5AIukTrgxJhbSVW12+Cmhl+ IxYg0+Lh2yjMUJz9fR+HEVRBNJPKSt35EqOF9SNZIY5BXdR1GMehPBBaXCX4gZZJf9qW fvpQ== X-Gm-Message-State: AOJu0YxeagDcfsV+mbmmCBFx9sabQR67dZw88dYetFJKiyhshtkoTpSW 8kDA1NmdNEzULIsBf52EPZDqLg== X-Received: by 2002:a05:6870:b88:b0:1ec:7e2a:6e31 with SMTP id lg8-20020a0568700b8800b001ec7e2a6e31mr31836691oab.35.1699283628256; Mon, 06 Nov 2023 07:13:48 -0800 (PST) Received: from localhost ([192.184.165.199]) by smtp.gmail.com with ESMTPSA id m42-20020a05687088aa00b001e12f685592sm1421984oam.13.2023.11.06.07.13.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 07:13:47 -0800 (PST) Date: Mon, 06 Nov 2023 07:13:47 -0800 (PST) X-Google-Original-Date: Mon, 06 Nov 2023 07:13:33 PST (-0800) Subject: [GIT PULL] RISC-V Patches for the 6.7 Merge Window, Part 1 CC: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: Linus Torvalds Message-ID: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 06 Nov 2023 07:14:09 -0800 (PST) The following changes since commit 8eb8fe67e2c84324398f5983c41b4f831d0705b3: riscv: errata: fix T-Head dcache.cva encoding (2023-09-12 13:58:40 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git tags/riscv-for-linus-6.7-rc1 for you to fetch changes up to e1c05b3bf80f829ced464bdca90f1dfa96e8d251: RISC-V: hwprobe: Fix vDSO SIGSEGV (2023-11-02 14:05:30 -0700) ---------------------------------------------------------------- RISC-V Patches for the 6.7 Merge Window, Part 1 * Support for cbo.zero in userspace. * Support for CBOs on ACPI-based systems. * A handful of improvements for the T-Head cache flushing ops. * Support for software shadow call stacks. * Various cleanups and fixes. ---------------------------------------------------------------- I have two manually resolved merge conflicts. There's one in csr.h, which is just a list of CSR numbers. There's also one in irq.c, which is the result of a fix conflicting with some new functionality. Here's my resolution, see 07a27665754b ("RISC-V: Fix wrong use of CONFIG_HAVE_SOFTIRQ_ON_OWN_STACK"): --- a/arch/riscv/kernel/irq.c +++ b/arch/riscv/kernel/irq.c @@@ -60,41 -79,23 +79,23 @@@ static void init_irq_stacks(void } #endif /* CONFIG_VMAP_STACK */ -#ifdef CONFIG_HAVE_SOFTIRQ_ON_OWN_STACK +#ifdef CONFIG_SOFTIRQ_ON_OWN_STACK + static void ___do_softirq(struct pt_regs *regs) + { + __do_softirq(); + } I'll almost certainly have more for later this week, there's already some on for-next that I wanted to give a little more time for testing. ---------------------------------------------------------------- Andrew Jones (7): RISC-V: Make zicbom/zicboz errors consistent RISC-V: Enable cbo.zero in usermode RISC-V: hwprobe: Expose Zicboz extension and its block size RISC-V: selftests: Statically link hwprobe test RISC-V: selftests: Convert hwprobe test to kselftest API RISC-V: selftests: Add CBO tests RISC-V: hwprobe: Fix vDSO SIGSEGV Anup Patel (2): clocksource: timer-riscv: Don't enable/disable timer interrupt clocksource: timer-riscv: Increase rating of clock_event_device for Sstc Deepak Gupta (1): riscv: VMAP_STACK overflow detection thread-safe Icenowy Zheng (1): riscv: errata: prefix T-Head mnemonics with th. Lad Prabhakar (1): riscv: configs: defconfig: Enable configs required for RZ/Five SoC Minda Chen (1): riscv: Using TOOLCHAIN_HAS_ZIHINTPAUSE marco replace zihintpause Nam Cao (1): riscv: put interrupt entries into .irqentry.text Palmer Dabbelt (6): Merge patch series "riscv: kexec: cleanup and fixups" Merge patch series "RISC-V: Enable cbo.zero in usermode" RISC-V: Provide pgtable_l5_enabled on rv32 Merge patch series "RISC-V: ACPI improvements" Merge patch "riscv: errata: improve T-Head CMO" Merge patch series "riscv: SCS support" Sami Tolvanen (5): riscv: Deduplicate IRQ stack switching riscv: Move global pointer loading to a macro riscv: Implement Shadow Call Stack riscv: Use separate IRQ shadow call stacks lkdtm: Fix CFI_BACKWARD on RISC-V Song Shuai (5): riscv: kexec: Cleanup riscv_kexec_relocate riscv: kexec: Align the kexeced kernel entry riscv: kexec: Remove -fPIE for PURGATORY_CFLAGS riscv: correct pt_level name via pgtable_l5/4_enabled riscv: mm: Update the comment of CONFIG_PAGE_OFFSET Sunil V L (4): RISC-V: ACPI: Enhance acpi_os_ioremap with MMIO remapping RISC-V: ACPI: Update the return value of acpi_get_rhct() RISC-V: ACPI: RHCT: Add function to get CBO block sizes RISC-V: cacheflush: Initialize CBO variables on ACPI systems Tsukasa OI (1): RISC-V: clarify the QEMU workaround in ISA parser Xiao Wang (1): riscv/mm: Fix the comment for swap pte format Documentation/riscv/hwprobe.rst | 6 + arch/riscv/Kconfig | 7 + arch/riscv/Makefile | 4 + arch/riscv/configs/defconfig | 52 ++++++ arch/riscv/include/asm/acpi.h | 6 + arch/riscv/include/asm/asm-prototypes.h | 1 - arch/riscv/include/asm/asm.h | 41 +++++ arch/riscv/include/asm/cpufeature.h | 1 + arch/riscv/include/asm/csr.h | 1 + arch/riscv/include/asm/errata_list.h | 14 +- arch/riscv/include/asm/hwcap.h | 16 ++ arch/riscv/include/asm/hwprobe.h | 7 +- arch/riscv/include/asm/irq_stack.h | 3 + arch/riscv/include/asm/page.h | 4 +- arch/riscv/include/asm/pgtable-32.h | 3 + arch/riscv/include/asm/pgtable.h | 3 +- arch/riscv/include/asm/scs.h | 54 ++++++ arch/riscv/include/asm/thread_info.h | 16 +- arch/riscv/include/asm/vdso/processor.h | 2 +- arch/riscv/include/uapi/asm/hwprobe.h | 2 + arch/riscv/kernel/acpi.c | 87 ++++++++- arch/riscv/kernel/asm-offsets.c | 9 + arch/riscv/kernel/cpufeature.c | 17 +- arch/riscv/kernel/entry.S | 126 +++++++------ arch/riscv/kernel/head.S | 19 +- arch/riscv/kernel/irq.c | 56 +++--- arch/riscv/kernel/kexec_relocate.S | 52 +++--- arch/riscv/kernel/setup.c | 4 + arch/riscv/kernel/smpboot.c | 4 + arch/riscv/kernel/suspend_entry.S | 5 +- arch/riscv/kernel/sys_riscv.c | 46 +++-- arch/riscv/kernel/traps.c | 68 +------ arch/riscv/kernel/vdso/Makefile | 2 +- arch/riscv/kernel/vdso/hwprobe.c | 2 +- arch/riscv/mm/cacheflush.c | 25 ++- arch/riscv/mm/init.c | 2 + arch/riscv/mm/ptdump.c | 3 + arch/riscv/purgatory/Makefile | 8 + drivers/acpi/riscv/rhct.c | 93 +++++++++- drivers/clocksource/timer-riscv.c | 17 +- drivers/misc/lkdtm/cfi.c | 13 +- tools/testing/selftests/riscv/hwprobe/Makefile | 9 +- tools/testing/selftests/riscv/hwprobe/cbo.c | 228 ++++++++++++++++++++++++ tools/testing/selftests/riscv/hwprobe/hwprobe.c | 64 +++---- tools/testing/selftests/riscv/hwprobe/hwprobe.h | 15 ++ 45 files changed, 919 insertions(+), 298 deletions(-) create mode 100644 arch/riscv/include/asm/scs.h create mode 100644 tools/testing/selftests/riscv/hwprobe/cbo.c create mode 100644 tools/testing/selftests/riscv/hwprobe/hwprobe.h