Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jan 2017 22:23:37 +0000
From:      Anindya Mukherjee <anindya49@hotmail.com>
To:        Jung-uk Kim <jkim@FreeBSD.org>, Matthew Macy <mmacy@nextbsd.org>
Cc:        "freebsd-x11@freebsd.org" <freebsd-x11@freebsd.org>
Subject:   RE: Crash with radeonkms
Message-ID:  <BN6PR22MB0802520E01810436427D47ECB6780@BN6PR22MB0802.namprd22.prod.outlook.com>
In-Reply-To: <a86082ba-78f8-5ca9-440d-c3677bad31e6@FreeBSD.org>
References:  <BN6PR22MB080230C1AB38509A1B1884E7B6790@BN6PR22MB0802.namprd22.prod.outlook.com> <BN6PR22MB0802DF955E47C5219CE1348EB6790@BN6PR22MB0802.namprd22.prod.outlook.com> <15994d9f54d.10dcb859e146706.6480944492081388621@nextbsd.org> <BN6PR22MB0802583736833E04615747EFB6780@BN6PR22MB0802.namprd22.prod.outlook.com>, <a86082ba-78f8-5ca9-440d-c3677bad31e6@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks!!! I compiled the patch in and now I can load radeonkms!

I sort of understand the patch; one main change seems to be the definition =
of acpi_get_table in sys/compat/linuxkpi/common/src/linux_acpi.c so now the=
 symbol is found.

I had the module load error (before adding Jung's patch) on a fresh build d=
one exactly following the instructions.

Anindya
________________________________________
From: Jung-uk Kim [jkim@FreeBSD.org]
Sent: January 13, 2017 8:09 AM
To: Anindya Mukherjee; Matthew Macy
Cc: freebsd-x11@freebsd.org
Subject: Re: Crash with radeonkms

On 01/12/2017 23:08, Anindya Mukherjee wrote:
> Thanks for the tip! I loaded linuxkpi, drm first, and then tried to load =
radeonkms with the following results:
>
> [drm] Initialized
> link_elf_obj: symbol acpi_get_table undefined
> linker_load_file: Unsupported file type
>
> I see a protoype for this function (and others) in sys/compat/linuxkpi/co=
mmon/include/acpi/acpifx.h:494. Perhaps all of them are missing? Can we add=
 a linker script or something similar?

Please try this patch.

https://patch-diff.githubusercontent.com/raw/FreeBSDDesktop/freebsd-base-gr=
aphics/pull/110.diff

Jung-uk Kim

> Anindya
>
> ________________________________________
> From: Matthew Macy [mmacy@nextbsd.org]
> Sent: January 12, 2017 2:43 PM
> To: Anindya Mukherjee
> Cc: freebsd-x11@freebsd.org
> Subject: RE: Crash with radeonkms
>
>  ---- On Thu, 12 Jan 2017 09:52:21 -0800 Anindya Mukherjee <anindya49@hot=
mail.com> wrote ----
>  > There seems to be an error while trying to load the "radeonkms" module=
 (#15). It then tries to unload it, and crashes.
>
> Correct. It's almost certainly missing symbols. To find out what they are=
 without crashing your system, load linuxkpi, then load drm, and *then* loa=
d radeon. Note that if your hardware is SI or newer it's supported by amdgp=
u.
>
> -M



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BN6PR22MB0802520E01810436427D47ECB6780>