From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4981E5D465 for ; Tue, 26 Mar 2024 20:30:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711485025; cv=none; b=cdKLDQ+cj022OR8d3rfzDON4rJ1nsf86abzQKI23VZE01NnhruTWNn9nDubfGeZy1RCWC8q3djkTT1juu57OhjIE8qnFO7yg98GP6bxwIiyz0Kxpkl3nPesmwFJjjCjQs2Qb0FkBABNyoPxgtV+WLtl7b0nsrWtPY91yuU4nTpA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711485025; c=relaxed/simple; bh=1MIaNHF3ZPeWhpxgDesdwjpOmbC5x5fvawY27Hi/YKs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Za/Af1nxH9Kj4M+UVXQWmQbQrpyz0TiNC8YKr2jBqbZO1Q0bYMQe4RWUtiQjW4T4IZEoBEegjDxd5p6juwYXOHzvvZwdMYuMXMwW4WBJj5BnCtgoqN+uW5blfSxMXQIZLkzQB+H650XMlRMzulKOJLhBgKJsvjQNBCtcXQnm4tE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=pTMXWuGX; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="pTMXWuGX" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-55a179f5fa1so7705610a12.0 for ; Tue, 26 Mar 2024 13:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1711485021; x=1712089821; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nOTCu2adkZyU4SASR+8mux3MN1uFKsv8RRVIr1/qVQg=; b=pTMXWuGXT8XIqWUy2nNVMoK3jALZ9b5sn/NoqDMzZAp6W8gnNbm9amcjFLEWJ56JuN cRtCvCtBlAr94K3sa75dFBqbP7GEYysKp+3CDIzEOi0AE5uP+RbnV1cm0P2Nmr54tJgs m4oi7iPaWqIBFeSG06y2vTcr8RhpsvcjduNCeJef4as5za+0bzzcs/xQ5VBD4vIp7JwN /4KnGBJWFCoLs90HvF3waJ0EtnVzuZraphi2B0nN+W0Cc4sZBE4dxUF4lfAxJyaRTSlG H/+dTHty2k7EBK9ESIlmW4MKgSWXqc2BDJghxDlyOiaBvGeJp00nZzNK6mubkjYdBD+2 4SWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711485021; x=1712089821; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nOTCu2adkZyU4SASR+8mux3MN1uFKsv8RRVIr1/qVQg=; b=WWL7bnnnWK6fF14wltJ86Xhz3KQcFVzrlnztfquQ0YBfdqkS8CqbuopLs/iiAAIY/1 f7mhvxyIlSKthyrY8W2BV6Gi3rAcHUcM9RwnQpC9R0Ja3lIDpZ+AFDip2FSuw0PseZZD 2FWYTc5tEiRCqFCgvZ6vyiIRSqQWFJfDUPrtuBC2i7dqLclyvDTX6/XjZEXtQO8g3yYK bivu4wjFsiAs+xlPg0kbl9wJMXziRIRlP6nr9DNkfharmnTcP8bhH7IZIHj9INautlW6 vSxZV96c/Sf9Es4ywKK8yMwsjUBfdOIxbNK7XsaN3aB1MExbBiBfu4QBjtnHBHTcYn7K iEyQ== X-Forwarded-Encrypted: i=1; AJvYcCU462TVDkPmJiZVDsU4CXRjo2ubTbf7qmL6dKd7WP+Zyml9I9XWFSYIj8izz1qQ/fsCuxGgFxip1yQ2vPGolO4eVLyuMQx/3IUgUG00 X-Gm-Message-State: AOJu0YyK4kQzlpuZBUWLevdJfxHcrcvhSjDJnWhSK/BZvu7MBOT88y8P rgCksvxaEA6P9lGfNNr71P76Kom1hG0Na97Hg9KPajBe2Xm8o7Qad1oBFu+2AwA= X-Google-Smtp-Source: AGHT+IGDCCJfg1K3FXIiSSOOGO99uhfcCCRDK5S7YUKDQOK6yXvBo4CUydKRMP0dyp1U6ZRkE8pBPg== X-Received: by 2002:aa7:c48a:0:b0:56c:6cb:e7ad with SMTP id m10-20020aa7c48a000000b0056c06cbe7admr7158412edq.9.1711485021311; Tue, 26 Mar 2024 13:30:21 -0700 (PDT) Received: from alex-rivos.ba.rivosinc.com ([2a02:8440:5240:d2b3:9657:7432:d88d:84a9]) by smtp.gmail.com with ESMTPSA id ij5-20020a056402158500b0056c09fda4e6sm3097694edb.54.2024.03.26.13.30.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 13:30:20 -0700 (PDT) From: Alexandre Ghiti To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Pu Lehui , Daniel Borkmann , Puranjay Mohan , Zong Li , Masami Hiramatsu , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Alexandre Ghiti Subject: [PATCH 0/2] ftrace fixes Date: Tue, 26 Mar 2024 21:30:15 +0100 Message-Id: <20240326203017.310422-1-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Both were reported recently as there are efforts ongoing to reimplement ftrace on riscv and both are independent of this rework, so here they are. Alexandre Ghiti (2): riscv: Fix warning by declaring arch_cpu_idle() as noinstr riscv: Disable preemption when using patch_map() arch/riscv/kernel/patch.c | 8 ++++++++ arch/riscv/kernel/process.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) -- 2.39.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B8FA0CD1280 for ; Tue, 26 Mar 2024 20:30:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ZyhgHH0KmfyfU7T80GpSa0R0I3bvobRFh/Pv8rSCQgw=; b=F+6ykDZZUEFMmk cftxpmwzOBClGQKwgSmt7iKbwIzjr01XessLOw2M8G7xQ27RCdyQWTQGSCUKY+L0+O5xeiV4UaRIt iLEm23u/PnND3SqywnMPqArRpOTHFCjwelwgKdfO/HOigtUigqb3iKd03uYHKA5o4RNSBmNiaXxx3 5m91sSX80tZ1AwmwlpdjXWfWt6HGXLx0i+MW5NvO9DL5MKBGX4pnwbKMxUSz/jzyP7mnfGxQvV9KA eUHM92Efut19QcbkuLt6iUznJFS9JhwT2k4E7SxNqInNEeaXSYhGs9CbCmdchA88TUKA+TJ/amYma NLzsdoITKLJO0k01udbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpDRF-00000006MsC-2yWo; Tue, 26 Mar 2024 20:30:29 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpDRB-00000006MnZ-1Qb8 for linux-riscv@lists.infradead.org; Tue, 26 Mar 2024 20:30:27 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-56b0af675deso7434956a12.1 for ; Tue, 26 Mar 2024 13:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1711485021; x=1712089821; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nOTCu2adkZyU4SASR+8mux3MN1uFKsv8RRVIr1/qVQg=; b=2tCtgLHffY5FE5uXEfseiHFb9vP/atr8Fp/9e4yjCf8TY47ngxj4i+lEWyV5lFMFio wngbF1LUWHzpybbjC0xr6meBVPzHO6mCAjV7222N++KNY2czUlWTdKtuvqJybtPZCow1 NOt77qzVVHbtB9n3GmBjr4Oyv2/0wyclSPx5Vy1pUB57qmJ2YkihFZnVmgFDVqpF/M3f tC3SUZdAd9Jy3Lp3/Sn56tp7CHSEVGDDiunPbiMdTTTIeU15LCC/gM/xa1+8i1uHXcr8 LpIJvHyeIJv4oMWsyI1vcfS0yeyfphcbZ7HBJUiQVslW1aaNwc+x2trieOwuL7zwrNn3 coqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711485021; x=1712089821; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nOTCu2adkZyU4SASR+8mux3MN1uFKsv8RRVIr1/qVQg=; b=izo2gxat8/u4cLeYuZsVsmGV7wC8lQFAEr2uVi4HdQX3o8Tsp7/BtzriGCL5kj80m1 2YONkHBUO74kVPWRu2wxs3rhzKtyKGtGjtEsMs2lfs7OTNZyO0cFuXRt9s0Dhu1CkrcF 6LapTcgDlgmDxUSEJO1lymG1dLZXEhmq+8DEg9UmiquhUb0waI1F+S16s//HmUB+g3Ws QNK4stdtCe5/O4ciED5eVkucY4iQKpG+aTDy6eHfgFKV5rWLzpsWH40e54eZ/nbIwVhM 5I7v5OjdXOqC5iG+vFDQckUL5rnqrC4uy8xiZbQCAJGTkC0AwwOfup5Yd0A/fIh1YMWK XbiQ== X-Forwarded-Encrypted: i=1; AJvYcCUW+/VER1bt5OU1JM/23718ubl4/iayDIpNCN1zwH1KEr/vfHEKpQLs2ZWhuduLZAsbSJq5Z7C0eENu8zemaro5sSO9c4Kapa/edc14SfMV X-Gm-Message-State: AOJu0Ywg8Ho+GCJtYUVIG7OvycTyVPn2eGXnRJpG4BmB5U36IL7Kq2Eq f/GGEkgLyHwkR9xa27v7NTocTagNeZLYWP40io2WQiiTN+JgddPoBoveQZRrYiM= X-Google-Smtp-Source: AGHT+IGDCCJfg1K3FXIiSSOOGO99uhfcCCRDK5S7YUKDQOK6yXvBo4CUydKRMP0dyp1U6ZRkE8pBPg== X-Received: by 2002:aa7:c48a:0:b0:56c:6cb:e7ad with SMTP id m10-20020aa7c48a000000b0056c06cbe7admr7158412edq.9.1711485021311; Tue, 26 Mar 2024 13:30:21 -0700 (PDT) Received: from alex-rivos.ba.rivosinc.com ([2a02:8440:5240:d2b3:9657:7432:d88d:84a9]) by smtp.gmail.com with ESMTPSA id ij5-20020a056402158500b0056c09fda4e6sm3097694edb.54.2024.03.26.13.30.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 13:30:20 -0700 (PDT) From: Alexandre Ghiti To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Pu Lehui , Daniel Borkmann , Puranjay Mohan , Zong Li , Masami Hiramatsu , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Alexandre Ghiti Subject: [PATCH 0/2] ftrace fixes Date: Tue, 26 Mar 2024 21:30:15 +0100 Message-Id: <20240326203017.310422-1-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240326_133025_751479_9DF7B6D6 X-CRM114-Status: UNSURE ( 6.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Both were reported recently as there are efforts ongoing to reimplement ftrace on riscv and both are independent of this rework, so here they are. Alexandre Ghiti (2): riscv: Fix warning by declaring arch_cpu_idle() as noinstr riscv: Disable preemption when using patch_map() arch/riscv/kernel/patch.c | 8 ++++++++ arch/riscv/kernel/process.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) -- 2.39.2 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv