Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1230766 > unrolled thread

Re: [PATCH] x86/mm: Export cpu_tlbstate as non-GPL symbol

Started byThomas Gleixner <tglx@linutronix.de>
First post2015-09-22 21:00 +0200
Last post2015-09-27 13:20 +0200
Articles 5 — 4 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] x86/mm: Export cpu_tlbstate as non-GPL symbol Thomas Gleixner <tglx@linutronix.de> - 2015-09-22 21:00 +0200
    Re: [PATCH] x86/mm: Export cpu_tlbstate as non-GPL symbol Andy Lutomirski <luto@amacapital.net> - 2015-09-24 21:10 +0200
      Re: [PATCH] x86/mm: Export cpu_tlbstate as non-GPL symbol Thomas Gleixner <tglx@linutronix.de> - 2015-09-27 12:50 +0200
        Re: [PATCH] x86/mm: Export cpu_tlbstate as non-GPL symbol Borislav Petkov <bp@alien8.de> - 2015-09-27 13:10 +0200
          Re: [PATCH] x86/mm: Export cpu_tlbstate as non-GPL symbol Richard Weinberger <richard.weinberger@gmail.com> - 2015-09-27 13:20 +0200

#1230766 — Re: [PATCH] x86/mm: Export cpu_tlbstate as non-GPL symbol

FromThomas Gleixner <tglx@linutronix.de>
Date2015-09-22 21:00 +0200
SubjectRe: [PATCH] x86/mm: Export cpu_tlbstate as non-GPL symbol
Message-ID<qbAXg-5tC-11@gated-at.bofh.it>
On Tue, 22 Sep 2015, Andy Lutomirski wrote:
> On Tue, Sep 22, 2015 at 11:51 AM, James Forcier <csssuf@csssuf.net> wrote:
> > Exporting cpu_tlbstate as a GPL symbol was introduced in 1e02ce4c; however, this
> > breaks non-GPL modules which need to link against it, particularly the AMD
> > Catalyst drivers.
> 
> What is AMD Catalyst doing with cpu_tlbstate?

Fiddling with it behind the kernels back. Out of tree graphic drivers
always have their special needs. Just lookup the discussions about
unexporting init_mm ....

Thanks,

	tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1232353

FromAndy Lutomirski <luto@amacapital.net>
Date2015-09-24 21:10 +0200
Message-ID<qck43-3yV-49@gated-at.bofh.it>
In reply to#1230766
On Sep 22, 2015 11:58 AM, "Thomas Gleixner" <tglx@linutronix.de> wrote:
>
> On Tue, 22 Sep 2015, Andy Lutomirski wrote:
> > On Tue, Sep 22, 2015 at 11:51 AM, James Forcier <csssuf@csssuf.net> wrote:
> > > Exporting cpu_tlbstate as a GPL symbol was introduced in 1e02ce4c; however, this
> > > breaks non-GPL modules which need to link against it, particularly the AMD
> > > Catalyst drivers.
> >
> > What is AMD Catalyst doing with cpu_tlbstate?
>
> Fiddling with it behind the kernels back. Out of tree graphic drivers
> always have their special needs. Just lookup the discussions about
> unexporting init_mm ....

Look for kcl_mem_pat_setup here:

https://github.com/kolasa/fglrx-13.152/blob/master/firegl_public.c

I can't NAK this patch hard enough.  The correct fix is for fglrx to
delete all of the offending code and just use ioremap_wc (which is a
plain old EXPORT_SYMBOL).  We've supported ioremap_wc properly for
*years*.

My personal view is that non-GPL modules are awful things to do, are
so bloody annoying for their (paying!) users that I'm amazed that
anyone puts up with them, but are nonetheless things that we shouldn't
go out of our way to break.  But for $*!&'s sake, we maybe should go
out of our way to prevent utter bovine excrement* like the PAT hack in
there from working.

--Andy, who is *really* looking forward to either Nvidia releasing
signed firmware blobs or Intel releasing a reasonable new integrated
GPU chip so he can stop using the nvidia binary driver.

* This is apparently the new polite term for it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1233644

FromThomas Gleixner <tglx@linutronix.de>
Date2015-09-27 12:50 +0200
Message-ID<qdhGN-4HX-15@gated-at.bofh.it>
In reply to#1232353
On Thu, 24 Sep 2015, Andy Lutomirski wrote:
> On Sep 22, 2015 11:58 AM, "Thomas Gleixner" <tglx@linutronix.de> wrote:
> >
> > On Tue, 22 Sep 2015, Andy Lutomirski wrote:
> > > On Tue, Sep 22, 2015 at 11:51 AM, James Forcier <csssuf@csssuf.net> wrote:
> > > > Exporting cpu_tlbstate as a GPL symbol was introduced in 1e02ce4c; however, this
> > > > breaks non-GPL modules which need to link against it, particularly the AMD
> > > > Catalyst drivers.
> > >
> > > What is AMD Catalyst doing with cpu_tlbstate?
> >
> > Fiddling with it behind the kernels back. Out of tree graphic drivers
> > always have their special needs. Just lookup the discussions about
> > unexporting init_mm ....
> 
> Look for kcl_mem_pat_setup here:
> 
> https://github.com/kolasa/fglrx-13.152/blob/master/firegl_public.c

I stopped looking at this line:

MODULE_LICENSE("GPL\0Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY");
 
Thanks,

	tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1233645

FromBorislav Petkov <bp@alien8.de>
Date2015-09-27 13:10 +0200
Message-ID<qdi0a-5mv-19@gated-at.bofh.it>
In reply to#1233644
On Sun, Sep 27, 2015 at 12:46:28PM +0200, Thomas Gleixner wrote:
> > https://github.com/kolasa/fglrx-13.152/blob/master/firegl_public.c
> 
> I stopped looking at this line:
> 
> MODULE_LICENSE("GPL\0Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY");

"GPL" *and* "Proprietary"??!

How does that even work?

Oh, that depends on the kernel version:

#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
MODULE_LICENSE("Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY");
#else
MODULE_LICENSE("GPL\0Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY");
#endif

With that '\0' string terminator in there?! WTF now?!

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1233646

FromRichard Weinberger <richard.weinberger@gmail.com>
Date2015-09-27 13:20 +0200
Message-ID<qdi9P-5xy-5@gated-at.bofh.it>
In reply to#1233645
On Sun, Sep 27, 2015 at 1:28 PM, Borislav Petkov <bp@alien8.de> wrote:
> #if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
> MODULE_LICENSE("Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY");
> #else
> MODULE_LICENSE("GPL\0Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY");
> #endif
>
> With that '\0' string terminator in there?! WTF now?!

AFACT this gem is not part of the official AMD Catalyst driver.

-- 
Thanks,
//richard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web