From nobody Mon Jan 08 14:39:18 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T7xXw1RHqz55vxb for ; Mon, 8 Jan 2024 14:39:44 +0000 (UTC) (envelope-from himanshu@thechauhan.dev) Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T7xXv1C9Hz49VJ for ; Mon, 8 Jan 2024 14:39:42 +0000 (UTC) (envelope-from himanshu@thechauhan.dev) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=thechauhan.dev header.s=google header.b=AeeXDRFq; dmarc=none; spf=fail (mx1.freebsd.org: domain of himanshu@thechauhan.dev does not designate 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=himanshu@thechauhan.dev Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-5c65ca2e1eeso338717a12.2 for ; Mon, 08 Jan 2024 06:39:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thechauhan.dev; s=google; t=1704724781; x=1705329581; darn=freebsd.org; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=5xj+tEjkvNjzkfCthqkv4hhpkZA+q5Khnw16TiFcfYo=; b=AeeXDRFqOe/6PwtEc3nbgj6KBS0TYrDawrsc3+g7oy4BnrUa8KCVW91N8ySdFBrkl3 f5vDeVh2vVoKg9jMp9qM4SYk90L7Ippu40knPqIq5q8qvTERp4ckFQoppPwVZvXHvZiQ EVIXkOhQOJVEPs6T3yCkoJspmSQWqdC/5VW8bxRBMgloALoLLENfJEbCBeBDHk7kexTv UQFIP4TqCrplur561SfUjdLDip2M8bJ7C620CpAPRL1568jL+v6zwe6zb+h+Hc9bq19R eD+1Wn9hor4md3f7kn9AQit4vztIaY2jRf1dGjnLe9DD6QhIsFF4tYgrhlh/3GEVhMH1 QOzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704724781; x=1705329581; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5xj+tEjkvNjzkfCthqkv4hhpkZA+q5Khnw16TiFcfYo=; b=WwubjFrgymdETQEHqdKRrABEtYsrRb3VjeULy6wOYrQko6ii4wFsT4J1vOB3c9KMl9 XHWMw+PFRDMbrnLfRQMh0XRBAXaU7m7uDrYgJqq/G0JdOoGgCvcquHme7YLsQDfaoPIz Zfu2jGIG6cvAvm2SUq2hMlEhAzqPkJ1KcRlMRD/anhDXZgXySDzlH4mSlDkBAn1VQAyE Kt/R3k6x/d6pyTDT+K4/6Eulr+jwk9oWp4x8E4kZ9xc+CSOXiwEux8q6y1kviPpbdf68 UJ8kGfc7XAVgo32/n0WA4eGWMlpgKntLvAKUHsaMDPTpt3TmX/1fAyMxrLdlhC5GxOim R4oA== X-Gm-Message-State: AOJu0YwQkOzYFDbZK+5Y9zY/rS2HYx9NvSsEovmtKKoRIGKAQP4hQ0q8 BsGWarL4auLxtBZ1A1h+L4OeJS9hvlrVMooQoxXGSIxlqg== X-Google-Smtp-Source: AGHT+IGpSTgbjw4QuGGKUYzA45XpYWGLdrlYymLr+wRXZoh3Yhz//alab4B80IkVMsvRc9xMZKAINA== X-Received: by 2002:a05:6a20:8712:b0:199:b889:31f6 with SMTP id e18-20020a056a20871200b00199b88931f6mr524086pzf.57.1704724781483; Mon, 08 Jan 2024 06:39:41 -0800 (PST) Received: from smtpclient.apple ([2405:201:d019:cbd3:5934:2059:3607:75a0]) by smtp.gmail.com with ESMTPSA id fi23-20020a056a00399700b006db05a51868sm366986pfb.99.2024.01.08.06.39.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jan 2024 06:39:41 -0800 (PST) From: Himanshu Chauhan Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) Subject: Calling a function on other CPUs in an SMP machine Message-Id: <7A8DC6C8-9582-455C-B05D-9F24838A9070@thechauhan.dev> Date: Mon, 8 Jan 2024 20:09:18 +0530 Cc: freebsd-hackers@freebsd.org To: freebsd-riscv@freebsd.org X-Mailer: Apple Mail (2.3774.300.61.1.2) X-Spamd-Bar: - X-Spamd-Result: default: False [-1.80 / 15.00]; R_SPF_FAIL(1.00)[-all]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[thechauhan.dev:s=google]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[thechauhan.dev]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::534:from]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[thechauhan.dev:+] X-Rspamd-Queue-Id: 4T7xXv1C9Hz49VJ Hi all, What is the best way to call a function (like a per-cpu setup function = from a driver) on remote CPUs in an SMP machine? I looked at the different IPIs defined but there isn=E2=80=99t one that = does this. Could anyone please point me where else to look? Thanks Regards Himanshu