Giter Site home page Giter Site logo

m1tso-linux's Introduction

TSOEnabler for Linux

A Linux Kernel Module that enables Total-Store-Ordering on Apple Silicon with Linux.

It was tested on linux-asahi-5.19.0-5-1-ARCH with Apple Mac mini (M1, 2020).

How to Use?

Load the kernel module

make
sudo insmod m1tso.ko

Query status

sudo cat /sys/kernel/m1tso/status
CPU[0].TSO=0
CPU[1].TSO=0
CPU[2].TSO=0
CPU[3].TSO=0
CPU[4].TSO=0
CPU[5].TSO=0
CPU[6].TSO=0
CPU[7].TSO=0

Turn on TSO

echo s | sudo tee /sys/kernel/m1tso/status

Turn off TSO

echo c | sudo tee /sys/kernel/m1tso/status

How to Test?

See testtso in saagarjha/TSOEnabler.

m1tso-linux's People

Contributors

cyyself avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

m1tso-linux's Issues

TSO in a Linux VM

I want to enable TSO in a VM.
Did you test this module running on Linux VM on M1?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.