From owner-freebsd-x11@freebsd.org Fri Jan 13 22:24:45 2017 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B82D5CAEAA1 for ; Fri, 13 Jan 2017 22:24:45 +0000 (UTC) (envelope-from anindya49@hotmail.com) Received: from BAY004-OMC3S24.hotmail.com (bay004-omc3s24.hotmail.com [65.54.190.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 81CCA1B6D; Fri, 13 Jan 2017 22:24:45 +0000 (UTC) (envelope-from anindya49@hotmail.com) Received: from NAM01-BN3-obe.outbound.protection.outlook.com ([65.54.190.188]) by BAY004-OMC3S24.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Fri, 13 Jan 2017 14:23:39 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=HgaM4VB+uv1W8vqWx8NwqOTqbKWdjGj9l5vHk5h3tHc=; b=KJF2ysf7PtmpgawH1Hkre42bu8dlz9hXGt+zujaQ56djX+7jn1Ng5xZE6pXZ+R7jRGzyR7Z9CQvkZwDWyp1AOhFtlg3yhQcv7pYzFnBgSG0lrgPJ2eHA9BCR5S13mAgfd/+7J5PfaMTv9FLF/vFMe3l347sXT+MB8zUS1tTlr6lyI53OyIaMUpg8r4634MMrgbC824vHZ01LAtDLPNXqIuMin9PLhC+H/56MH7+qLrXGnUuZCp+WlDUUKQ4q5XFwnQP1vcQ3WL04oiWpB/gHbQcKEeqUuEhb5z+VoZPM9T2rfVDFfvpK0546q+XNglH03PbvSicrJNZwf/PKBsdKlw== Received: from BN3NAM01FT029.eop-nam01.prod.protection.outlook.com (10.152.66.60) by BN3NAM01HT170.eop-nam01.prod.protection.outlook.com (10.152.66.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8; Fri, 13 Jan 2017 22:23:37 +0000 Received: from BN6PR22MB0802.namprd22.prod.outlook.com (10.152.66.59) by BN3NAM01FT029.mail.protection.outlook.com (10.152.67.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Fri, 13 Jan 2017 22:23:37 +0000 Received: from BN6PR22MB0802.namprd22.prod.outlook.com ([10.171.180.21]) by BN6PR22MB0802.namprd22.prod.outlook.com ([10.171.180.21]) with mapi id 15.01.0845.013; Fri, 13 Jan 2017 22:23:37 +0000 From: Anindya Mukherjee To: Jung-uk Kim , Matthew Macy CC: "freebsd-x11@freebsd.org" Subject: RE: Crash with radeonkms Thread-Topic: Crash with radeonkms Thread-Index: AQHSbLrUdbJV/fwgGU2gnolYOEFheqE1HyEJgABSF4CAAFjLOYAAy3CAgABmd1o= Date: Fri, 13 Jan 2017 22:23:37 +0000 Message-ID: References: <15994d9f54d.10dcb859e146706.6480944492081388621@nextbsd.org> , In-Reply-To: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: FreeBSD.org; dkim=none (message not signed) header.d=none;FreeBSD.org; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:C29981F8CD336F4E5CBA9FDA4BC6FD6A4E05BACA79D44D7201AC3CDD59A700C5; UpperCasedChecksum:12E490E6CD860242C71464890866F850C394F042960E07671A4996BFDB120548; SizeAsReceived:7990; Count:40 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [e48/UKoQERr8plbE26vGgeHCpDOm3Z1W] x-incomingheadercount: 40 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; BN3NAM01HT170; 7:T9iN7/Zoua51D5gq4Hkc37vMWdFogu6rTwhNXkBtjRXduMcOr2Fz2kSJEJCWizKgiPsalXGgufnEZpHvVFYIP3bVYl5oMauYIiUfEwraFeYeQ56EosjSYu13SrST0zDBdFTORNUJJ5g3P+vFUyetz3z7uLJ7gwSMlHeQeXPEk2TbVhmETJ0tStsUajllE3OKUCebXLNjLPS/cR3Ly1eGrmwN7ZPkeqNgCluf24t/qWMdrlunMba2uNuiwfdapBZ5E7L7zfGMOhnz8xIVWGupC8VuvRqZvhOq7++C/gc+iIiQLkePGRN0USfs86w3anIAd6C60ZHPNVe871eEPsh1PSUOH5mLgmJyCfX19jcOjiQLM0r1gTS9CrN7wkGKFYB0DJ2hbbaW3SkYUG1RtHjO1mIRSqyic+LA/RnoaNY/WIpKWTu5JRrYPrYnwXojhHtEdceii/5uV1xDFxCkZC+9lg== x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900003); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3NAM01HT170; H:BN6PR22MB0802.namprd22.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: ec969320-ce92-4b89-d3c2-08d43c02d22a x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(1601124038)(5061506344)(5061507293)(1603103113)(1603101340)(1601125047)(1701031023); SRVR:BN3NAM01HT170; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444111334)(444112120)(432015012)(82015046); SRVR:BN3NAM01HT170; BCL:0; PCL:0; RULEID:; SRVR:BN3NAM01HT170; x-forefront-prvs: 018632C080 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jan 2017 22:23:37.6503 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM01HT170 X-OriginalArrivalTime: 13 Jan 2017 22:23:39.0366 (UTC) FILETIME=[B088C060:01D26DEB] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2017 22:24:45 -0000 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 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