Unofficial Hacker News companion — get notified on comment replies, and more.

Nvdriver is a clean-room, open-source Rust Linux kernel driver for Nvidia GPUs (opens external site)

914 points by rreyes1979 1 day ago | github.com | 453 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (5)

  1. > because the proprietary techniques are protected by copyright

    No they're not. Copyright protects creative expression of those techniques insofar that they're not serving a purely functional purpose.

    The functional bits might be patented but then even clean room doesn't help you.

    > you write specification based on proprietary code, it's still proprietary code reworded. Name it however you want, it's still copyright infringement.

    Not in the slightest. It's clean room because the specification only contains non-copyrightable specification and the other side hasn't seen anything that would be copyrightable, that's the whole point.

    > you're still basing the new implementation on the decompiled code.

    No you're being loose and vague with your terminology. You're basing it on a functional specification derived from analyzing copyrighted code. Because that specification only describes functional behavior it's not infringing and neither is anything else based on it.

    Replies (1)
    1. > No they're not.

      Yes, they are. Not each technique separately but a specific set of them (the "how") that gives you particular result, because that constitutes creative works.

      > No you're being loose and vague with your terminology.

      I don't think I am. The below settles it.

      > It's clean room because the specification only contains non-copyrightable specification

      No, because you're deriving copyrighted works. See 17 U.S.C. § 103 and § 501.

      You have to base your specification on something else than copyrighted works (eg. observe its behavior). For example, Asahi Linux' GPU driver is clean room because it's based on data between macOS and the GPU without looking at Apple's driver.

      Replies (1)
      1. All of that only applies if you copy creative expression of some idea.

        You could analyze code to understand, for example, what each register does, the order that the hardware expects them to be initialized in, and then use that knowledge to write a register map in your specification along with the proper initialization sequence.

        Those are all functional elements. Functional elements aren't copyrightable. "Derived work" only applies to use of copyrightable elements. 17 U.S. Code § 102 speaks to this directly:

        > (b) In no case does copyright protection for an original work of authorship extend to any idea, procedure, process, system, method of operation, concept, principle, or discovery, regardless of the form in which it is described, explained, illustrated, or embodied in such work.

        > Section 102(b) is intended, among other things, to make clear that the expression adopted by the programmer is the copyrightable element in a computer program, and that the actual processes or methods embodied in the program are not within the scope of the copyright law.

        https://www.law.cornell.edu/uscode/text/17/102#tab_default_2

        Also, Google v Oracle.

        Replies (1)
        1. I never said you could copyright an idea. Quite the opposite: the "how".

          > what each register does, the order that the hardware expects them to be initialized in

          This is an observable behavior that doesn't require looking at the code. It is more than purely functional. The initialization itself as an idea isn't copyrightable. However, how it is initialized may be. Depends on the complexity / creativity.

          See https://github.com/AsahiLinux/linux/blob/201be96df5654336bdc... and configs in the `hw` directory. Some parts are left unknown (unk_).

          So the source where you derieve this from matters. Asahi used a m1n1 hypervisor for this.

          The code is more than "purely functional". There are constants you may not be able to figure out why they are what they are. You could look at the code, but that's the creative part.

          Replies (1)
          1. > The code is more than "purely functional".

            I feel like you're equivocating. Yes the code is a copyrightable, creative work. That's why your "clean" team never sees it, they only see the functional specification written by the first team.

            Just because Asahi went to extreme lengths to avoid looking at the code doesn't mean that's the only way to do it. That approach may indeed pose a lower risk of getting sued but this isn't a binary outcome.

            If they wanted to be extra-extra-extra sure they could've gone a step further and only accepted contributions from people who have never read or written any code before in their life.