Skip to content
By using Twitter’s services you agree to our Cookies Use. We and our partners operate globally and use cookies, including for analytics, personalisation, and ads.
  • Home Home Home, current page.
  • About

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
marcan42's profile
Hector Martin
Hector Martin
Hector Martin
@marcan42

Tweets

Hector Martin

@marcan42

If it ain't broke, I'll fix it! I'm porting Linux to Apple Silicon Macs at @AsahiLinux. http://patreon.com/marcan  | http://github.com/sponsors/marcan 

Tokyo, Japan
marcan.st
Joined May 2009

Tweets

  • © 2021 Twitter
  • About
  • Help Center
  • Terms
  • Privacy policy
  • Imprint
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @

Promote this Tweet

Block

  • Tweet with a location

    You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.

    Preview

    Why you're seeing this ad

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Welcome home!

    This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.

    Tweets not working for you?

    Hover over the profile pic and click the Following button to unfollow any account.

    Say a lot with a little

    When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.

    Spread the word

    The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.

    Join the conversation

    Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.

    Learn the latest

    Get instant insight into what people are talking about now.

    Get more of what you love

    Follow more accounts to get instant updates about topics you care about.

    Find what's happening

    See the latest conversations about any topic instantly.

    Never miss a Moment

    Catch up instantly on the best stories happening as they unfold.

    1.  🇪dith  🅱️inch‏ @eddyb_r 27 Dec 2020
      • Report Tweet
      • Report NetzDG Violation
      Replying to @eddyb_r @whitequark @mwk4

      btw something that's increasingly obvious as I dissect this pile of VLIW-looking instructions: two decades ago, a GUI could accelerate its rendering on something like Rage128 or its pre-TeraScale successors, by uploading custom microcode with its common register write sequences

      1 reply 1 retweet 3 likes
    2.  🇪dith  🅱️inch‏ @eddyb_r 27 Dec 2020
      • Report Tweet
      • Report NetzDG Violation
      Replying to @eddyb_r @whitequark @mwk4

      it wouldn't be by much, compared to already-present gain from being able to use a ring buffer the GPU reads itself, instead of individual MMIO accesses... but ATI clearly believed it mattered, otherwise they wouldn't have included most of the special-cased ring buffer packets

      1 reply 1 retweet 3 likes
    3. Miaucelina Kotcielnicka  🏳️‍⚧️‏ @mwk4 27 Dec 2020
      • Report Tweet
      • Report NetzDG Violation
      Replying to @eddyb_r @whitequark

      nvidia since Fermi actually has a user-programmable macro-expander sorta-microcontroller in the path right before the main command distributor; seems they also consider it very useful

      1 reply 0 retweets 4 likes
    4.  🇪dith  🅱️inch‏ @eddyb_r 27 Dec 2020
      • Report Tweet
      • Report NetzDG Violation
      Replying to @mwk4 @whitequark

      wait, they don't make you load an undocumented firmware blob into it, like AMD does?!

      2 replies 0 retweets 1 like
    5.  🇪dith  🅱️inch‏ @eddyb_r 27 Dec 2020
      • Report Tweet
      • Report NetzDG Violation
      Replying to @eddyb_r @mwk4 @whitequark

      ftr, I was looking at: 36-bit: - Rage128 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/r128/r128_cce.bin … 40-bit: - R100 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/radeon/R100_cp.bin … - R200 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/radeon/R200_cp.bin … - R300 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/radeon/R300_cp.bin … - R420 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/radeon/R420_cp.bin … - R500 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/radeon/R520_cp.bin … tbd: TeraScale's 76-bit https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/radeon/R600_me.bin …

      1 reply 0 retweets 0 likes
    6.  🇪dith  🅱️inch‏ @eddyb_r 27 Dec 2020
      • Report Tweet
      • Report NetzDG Violation
      Replying to @eddyb_r @mwk4 @whitequark

      (technically the R600_me.bin appears to have 75-bit words but I think that's because that part of the word always contains a word address, and there are 0x700 words in the blob, so the words are really 64-bit + the address of another word, possibly VLIW-style control-flow slice?)

      1 reply 0 retweets 0 likes
    7.  🇪dith  🅱️inch‏ @eddyb_r 27 Dec 2020
      • Report Tweet
      • Report NetzDG Violation
      Replying to @eddyb_r @mwk4 @whitequark

      it's really fun to look at words in a hex editor and realize that any kind of embedded data (such as a jump table) is pretty much guaranteed to occupy a saner subset of the weird word size (32-bit for Rage128-R5xx, 64-bit for TeraScale) oh and I'm pretty sure they're big-endian

      1 reply 0 retweets 0 likes
    8.  🇪dith  🅱️inch‏ @eddyb_r 27 Dec 2020
      • Report Tweet
      • Report NetzDG Violation
      Replying to @eddyb_r @mwk4 @whitequark

      lmao good thing I googled around, looks like GCN's "microcode format" has already been reverse engineered (I swear I saw it in a talk, too!), and r1/r2's descriptions perfectly match what I can see in as far back as Rage128 https://github.com/fail0verflow/radeon-tools/tree/master/f32 … (*waves at @marcan42*)

      1 reply 0 retweets 1 like
    9. Hector Martin‏ @marcan42 27 Dec 2020
      • Report Tweet
      • Report NetzDG Violation
      Replying to @eddyb_r @mwk4 @whitequark

      Ha. So they've been doing this since Rage128, but with weirdo VLIW style cores? Geez, I'm glad I got the sane(ish) RISC design!

      1 reply 0 retweets 1 like
    10.  🇪dith  🅱️inch‏ @eddyb_r 27 Dec 2020
      • Report Tweet
      • Report NetzDG Violation
      Replying to @marcan42 @mwk4 @whitequark

      the thing that confirmed my suspicions and let me know a few things, like how the register offsets are encoded (shifted right by 2, makes sense, they're all 32-bit anyway) was this: the MPEG_INDEX handler in R520_cp.bin packet docs: http://developer.amd.com/wordpress/media/2013/10/R5xx_Acceleration_v1.5.pdf#page=54 … register bonanza!pic.twitter.com/SaepbxhcSJ

      2 replies 0 retweets 0 likes
      Hector Martin‏ @marcan42 27 Dec 2020
      • Report Tweet
      • Report NetzDG Violation
      Replying to @eddyb_r @mwk4 @whitequark

      The way I started reversing this was that I immediately saw register offsets (>>2, but that's a common code convention for AMD too) in the hex dump, so I knew those were load/stores. Then run one- or two-opcode firmwares and use that as data in/out.

      11:08 PM - 27 Dec 2020
      • 1 Like
      • 🇪dith 🅱️inch
      1 reply 0 retweets 1 like
        1. New conversation
        2.  🇪dith  🅱️inch‏ @eddyb_r 27 Dec 2020
          • Report Tweet
          • Report NetzDG Violation
          Replying to @marcan42 @mwk4 @whitequark

          I wasted a lot of time because I didn't know the >>2 thing, and they're like 11 bits, so e.g. in "3d bc", the >>2 register offset is actually "05 bc", i.e. 0x16f0 also I don't even own a Rage128, the closest thing I have is an R300-ish in an AMD HP SFF desktop circa 2006 D:

          1 reply 0 retweets 0 likes
        3.  🇪dith  🅱️inch‏ @eddyb_r 27 Dec 2020
          • Report Tweet
          • Report NetzDG Violation
          Replying to @eddyb_r @marcan42 and

          and it's, like, integrated in the chipset and I don't know how weird it is compared to cards, and I wanted to start at Rage128 anyway speaking of, Rage128 cards are cheap, but... they're all AGP, and the oldest PC I have (the aforementioned HP SFF desktop) only has PCIe and PCI

          0 replies 0 retweets 0 likes
        4. End of conversation

      Loading seems to be taking a while.

      Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

        Promoted Tweet

        false

        • © 2021 Twitter
        • About
        • Help Center
        • Terms
        • Privacy policy
        • Imprint
        • Cookies
        • Ads info