From nobody Fri Jan 16 04:37:21 2026 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 4dsnC16836z6NhXk for ; Fri, 16 Jan 2026 04:37:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dsnC141KFz44hL for ; Fri, 16 Jan 2026 04:37:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-f182.google.com with SMTP id af79cd13be357-8b29ff9d18cso198496085a.3 for ; Thu, 15 Jan 2026 20:37:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768538252; x=1769143052; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=zTl6LP4mrW1ET/IMFnEWSFfPrhqnSyRW4kkqyI0X2gc=; b=BAna1Ig5Z9UPyHEhuUdpcpJhPARUWOyBeuqAS78Im/H3uy+9yJDxVTYLJPkgwr7F43 wJTk/A+oK5rpJ8NAuo0eEe6L6Cglrt1z/yjfCcoAF01KFskFOOPac4hPNaaRyj7WNVvV 6XT3maMxk8NeG0fTdVZ1xKAmcbTflwil5uW+DeoDR4ERBBHwTpx8vjGEQU+6qfaEDqBE JibUEd78dGQAh8z+m72SPga9cuJ1m1Y+ANERSdeOwSGanIEXnsiueZmmvLz1lznkv/th yP9/x0IRNK2XcYddLzAPYW5+58r0whT2eCDxfYGBA11TZBstMxtcaavsQLentUMjQKLS XhUg== X-Forwarded-Encrypted: i=1; AJvYcCV8qyoYbyYtwhqYDSNrpxkiPsvtmqyklYr182DUjlphaD+vvD1wBpZnV1WtB7a0b0lB7txlIuhwLeeTfi2xZ1Y=@freebsd.org X-Gm-Message-State: AOJu0YzouzM2osuqmKb3L3TYFiNoCfeCCOQvll6YncYpZRJO2q6Y3vv9 FSiq0Yh8CAmhjBpe1mQ7+44dIcr5Unzcd3MBoAxiUdlEadZA++/+CazR+J5hvXnE7+1+B1/1ch+ OoqKPw0CpRKqYfE4mdgpTUq+nQ/gC2bw= X-Gm-Gg: AY/fxX4ENrEFASErRtIGyOu1NzE/3dU4YMijyrQLFZbpl2OKiEhdnri5uf0/mCEiEfl gA6gLzyftihGR5v5VlMci2vBvqpBfMpcarHAWyEHPUndT5QFmyjFifAwh4kVRiXFZCOxfMTr/pz gAwo5ctTC3MQ3K4HCs9lLrtwMs+WCGBkbQFxtM5sCIwBpUzQE/JRCL79gWgj2tLIzlYBKQs5yxv ctQedZb748AJtIV7G65c6ZZucZGffUDjt9CSO6PWPXUowjVrA9h7zIeg89n4R+gnhyZJoR6u4iO n24P3Rc6l82ZV1pnCWluTmS9OKfvaQ/i5+SYOX3PoUJK+U+ODrUa1/oTtJtq X-Received: by 2002:ac8:5a03:0:b0:4ff:c14d:65cc with SMTP id d75a77b69052e-502a1758662mr26537211cf.51.1768538252278; Thu, 15 Jan 2026 20:37:32 -0800 (PST) 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 References: <0Ng09S3rEB0BvT9vzHqVKU7rWxoad96kjEc7U2LCwDFJKmmswXujip7qbRlo_BIhNKcI7d-2CUHdp9Dxr3-7hhafpD6uagJSFUCjtC9qRr4=@proton.me> <5a2sxxiqkafxdolq362ivmpyfemi5wc75zknnuzqdhstezumrq@2p7o2dmf7r6n> <46336160-6437-4c3b-8f6e-afef62f7bf83@yahoo.com> In-Reply-To: From: Adrian Chadd Date: Thu, 15 Jan 2026 20:37:21 -0800 X-Gm-Features: AZwV_Qh0Jv1shrn5xSovRVm8pDyVgpq55HbtrsFG5xDdZYmb40QSeknjBbFH4EU Message-ID: Subject: Re: HMP scheduling on FreeBSD To: Minsoo Choo Cc: Mark Millard , Shawn Webb , freebsd-hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dsnC141KFz44hL On Thu, 15 Jan 2026 at 18:05, Minsoo Choo wrote: > > Hmm: https://www.nxp.com/docs/en/data-sheet/IMX7DCEC.pdf > > > > looks to be a counter example, mixing a pair of Cortex-A7 CPUs and a > > Cortex-M4 in the same SOC (my guess for "chip") --with separate > > connections to the AXI and AHB Switch Fabric, sharing External Memory > > and Internal Memory and everything else on that fabric. > > > > From second page: "Arm Cortex-A7 plus Arm Cortex-M4=E2=80=94Heterogeneous= Multicore Processing architecture enables the device to run an open operat= ing system like Linux/Android on the Cortex-A7 core and an RTOS like FreeRT= OS=E2=84=A2 on the Cortex-M4 core." This is not technically big.LITTLE. > Yeah. Linux has some memory FIFO/doorbell framework now for communication between chips on a shared AXI bus to support this style compute. Lots of vendors invented their own IPC layers for comms between MCUs, DSPs and the Cortex-A AP cores and then .. well, it's a mess. :-) > For big.LITTLE, manufacturers cannot make any combinations of arm cores a= nd call it "heterogeneous". big and LITTLE cores have their pair since desi= gn stage, such as A7-A15 and A53-A57. Wikipedia's page on ARM big.LITTLE [1= ] shows three ways to arrange those cores for operating systems. My propose= d design is the third (and the latest) one called heterogeneous multi-proce= ssing (or HMP) which lets all cores to work concurrently. There are systems shipping right now with three types of AP cores on one die. I've had to debug systems in the past with the big/little cores having different cache line sizes. It's a mess. Manufacturers will do whatever they can and patch linux to do whatever they need to. :-) I've also seen Linux software literally pass the output of "cat /proc/cpuinfo" to figure out this mess and then will do utterly baffling things like decide upon cache management, cpu workload scheduling, etc based on matching on the contents of said /proc/cpuinfo. I also believe there are some feature differences between the Intel power/efficiency cores? I haven't dug too deeply into it. That's why I'd like to figure out how to describe to userland and the rest of the kernel all these bits and pieces. The HMP stuff is a good move towards the scheduler side of stuff but I really don't want it wrapped up in some "the kernel will just do it magically" without letting some policy stuff be configured. -adrian