From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (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 0FE7C265621 for ; Mon, 18 May 2026 17:07:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779124042; cv=none; b=klK5DDNzyqmqpWMz6+/WEkAU0+u5r1HHzRI5ZVVRTcqnT8Tu+54iqmf+tCUDp+zxv5JfayI5x83hDOAafvv9+6RehaRWFRjN2B/BbSPofN27XDI4P3DfZTneKhe5fVruNPIi6C6RemVziZ3Klk1kY58Wn/MQxudx7tzOHktrmXk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779124042; c=relaxed/simple; bh=0d92nKsILldaG5KcgGwmxuWMoDm+8edMkHW2YKbN2Og=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Scw3zziPLQshZMUHMATJOFE0+tUkTR0kDn1vAzjaA/wt948tG+IUcYav30BAqIT9wQDq5iNf5OFi+VCRSYKeYN7xe5DD/ESWktiM0pnLgWKnYXHhfV1E3SyhLitnqYdmOjnXpM4Tg2dFoGTIR4he+EaYyBO5zdUjy1rrS89+WP8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HLRdHPsi; arc=none smtp.client-ip=209.85.215.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HLRdHPsi" Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-c8028fa6039so1734583a12.2 for ; Mon, 18 May 2026 10:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779124040; x=1779728840; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=pQBD1pOu6yZoCHpJ70rmlGRDmngML/+8uAz5xw0+M0Q=; b=HLRdHPsiMYFVF7ON4AtIutoJBVmP5AVi0aJxiXaBD3Ygbr68I5BTp/chi9olZS5Kpc 4JjXl0N2yEruLmtbnXU0OAcYll10IvOKL/wN8tgt5gtEy4nT4GUslAanRSWmC1k2SmYX QltRLGBIHA4PXHNJkZ7ERJ0VbAOeczJljTqN7VARRkLtIQGRsAqGmQ8YHesPtyH/qrAg h4gq7DL3hrjPQYWWO1O3d+U9gMhQ7k7QDQRn6fiSw2DfSkyAYqYXfTv/ntAJTL16UXbg +uu7ar4tytqvRjfvQ8QyWUWhXctisNJfCjxB2XNDWBn+i7+KLxXRZpRoALpfw7sITquE 2EoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779124040; x=1779728840; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pQBD1pOu6yZoCHpJ70rmlGRDmngML/+8uAz5xw0+M0Q=; b=HzzXUWWY/qfmv2kS8sZp668DGyUe+jtGbXtpxRmnGE/JQLNGstjwaWCTf61EWrlhcm 6TTFwNWAWUY14xpp/h5ivpD8JoCZDlybzwHzgHtlDnXc17j/lVtlDtNrmRHEIwDQSTEB LtCTgexaaf5OhU0nzLOSS0KkU4miLP9WNembS4xRPhHU8nh4b9nIAwZuvcoT/kb6g+DO 9/FIMic7upHTeLAjp9VDiuJ2uoVD5ZnibL3x6xUqPSR8U5Yue2r4qQLU/t/w5JQOL8pr I2ZAKQEhNKJ/nCj8V/JSkxyjmH84eTGG4ipF80VUFwnWspnblii+IQLUGVIp+NO87PJx xktg== X-Forwarded-Encrypted: i=1; AFNElJ/xKaGHaUOw+B0Toh5k4xYhGpMpOgQO6xtyTEhmboCBr/hg5oVpd0tClH1cRoyBmBcadMq03ANQaAEmVbA=@vger.kernel.org X-Gm-Message-State: AOJu0Yy8pOajaevxGwKhuN35qDV1l1qjNiR/JuNIs7pVmTmYrSJWN3Nz 57v5Zf+w2Dg0EZ8LsoLv1SfRCNhokXPK7MVevy3NA4hmU7mWaPgqQ1QO X-Gm-Gg: Acq92OFYFiJJkbr33UERP0riVGTtN+C9H+e9JLIahS/m0iinIAslW9T9qdMSVCtveit h/3RT7STRSYpONBcCXya1zQE8ac91FadrpOdIebhKlOgWM+63HBoYscLMXwvGUflxNctNAjNDHO h4PaQSh6tqDGbr/t/1KaXJcPfu9OAP1s98qH5iC98ouqqH2yNRxjz/KGQRKy58gpzPWeC3eQydH eGaZ3sNBS7Luf1yiRE61GRfMswm4XfvUUpsxpF45zA55cx0LeMJO3TjbdVmRoZcX3ZGMADjkhx8 sNTaSTCM3ZJDt4WtZ6nttQOl2+zUdweuoazrJmUYCpUOcW0DEgVwCyePdDYiHkopG2G2JsJ3UlN FGxturP2tpsH8UJR+sm4i4503yAADzyptdRsSzlfwc51NkmSbWHukIYjdUCzDMIVZydOLqeMzfw 6FvrieGvRaSnJ4W+XbExD4CtStESj/UlSE1g== X-Received: by 2002:a05:6a20:748d:b0:3a3:1164:c7a6 with SMTP id adf61e73a8af0-3b22e81f7a7mr17501052637.14.1779124040350; Mon, 18 May 2026 10:07:20 -0700 (PDT) Received: from google.com ([118.150.148.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c82bb0fef5esm13229899a12.15.2026.05.18.10.07.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2026 10:07:20 -0700 (PDT) Date: Tue, 19 May 2026 01:07:09 +0800 From: Kuan-Wei Chiu To: Greg Ungerer Cc: geert@linux-m68k.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, eddyz87@gmail.com, memxor@gmail.com, martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev, jolsa@kernel.org, jserv@ccns.ncku.edu.tw, eleanor15x@gmail.com, marscheng@google.com, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, bpf@vger.kernel.org, Daniel Palmer Subject: Re: [PATCH bpf-next v3] m68k, bpf: Add initial BPF JIT compiler support Message-ID: References: <20260511212756.3163955-1-visitorckw@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi greg, On Tue, May 12, 2026 at 09:57:11PM +1000, Greg Ungerer wrote: > Hi Kuan-Wei, > > On 12/5/26 07:27, Kuan-Wei Chiu wrote: > > Add a BPF JIT compiler for the m68k architecture. > > > > The JIT generates m68k machine code targeting m68020+ processors. It > > currently excludes 68000/68010 and coldfire processors, as it relies on > > 32 bit branch displacements (b.l) to handle large bpf programs. > > FWIW the ColdFire ISA_B and newer instruction set extensions do support > the 32 bit branch displacement instruction forms. So that would mean that > at least the MMU based version 4 cores may be able to be supported > without too much extra effort. > Sorry for getting back to you so late, and thanks for the info! I haven't thoroughly checked what else the current implementation might lack for coldfire support, but I suspect it won't be as simple as just modifying the kconfig. For instance, at least the exg instruction I'm currently using is not supported on coldfire. Since the current patch is already quite large, I'm inclined to focus on getting everything running correctly on classic m68k first. Once this initial support is merged in-tree, we can revisit it and figure out the necessary adjustments for coldfire. That being said, getting coldfire supported would definitely be cool! Regards, Kuan-Wei