Bug 217852 - Add tunables to radeonkms, so that it works on PowerMac G5
Summary: Add tunables to radeonkms, so that it works on PowerMac G5
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: powerpc Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-03-16 21:47 UTC by Hiroo Ono
Modified: 2017-05-07 11:12 UTC (History)
1 user (show)

See Also:


Attachments
add tunables equivalent to Linux's module parameters. (3.24 KB, patch)
2017-03-16 21:47 UTC, Hiroo Ono
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hiroo Ono 2017-03-16 21:47:03 UTC
Created attachment 180886 [details]
add tunables equivalent to Linux's module parameters.

On a early PowerMac G5 DP, to get the radeonkms kernel module loaded and working properly, we need to force Radeon 9600 card to PCI mode.
On Linux, it is done by specifying a module parameter, but its FreeBSD equvalent, tunable is not defined in sys/dev/drm2/radeon/radeon_drv.c.
Attached patch defines tunables for each "module parameters" of Linux in radeon_drv.c.

Tested on a 12.0-CURRENT/powerpc64 r313561.
Comment 1 commit-hook freebsd_committer freebsd_triage 2017-04-29 09:47:42 UTC
A commit references this bug:

Author: nyan
Date: Sat Apr 29 09:47:16 UTC 2017
New revision: 317591
URL: https://svnweb.freebsd.org/changeset/base/317591

Log:
  Add TUNABLE_INT to radeonkms driver parameters.
  They are required by PowerMac G5 DP.

  PR:		217852
  Submitted by:	Hiroo Ono
  MFC after:	1 week

Changes:
  head/sys/dev/drm2/radeon/radeon_drv.c
Comment 2 commit-hook freebsd_committer freebsd_triage 2017-05-07 11:10:49 UTC
A commit references this bug:

Author: nyan
Date: Sun May  7 11:09:59 UTC 2017
New revision: 317902
URL: https://svnweb.freebsd.org/changeset/base/317902

Log:
  MFC: r317591

    Add TUNABLE_INT to radeonkms driver parameters.
    They are required by PowerMac G5 DP.

    PR:           217852
    Submitted by: Hiroo Ono

Changes:
_U  stable/11/
  stable/11/sys/dev/drm2/radeon/radeon_drv.c
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-05-07 11:12:52 UTC
A commit references this bug:

Author: nyan
Date: Sun May  7 11:11:51 UTC 2017
New revision: 317903
URL: https://svnweb.freebsd.org/changeset/base/317903

Log:
  MFC: r317591

    Add TUNABLE_INT to radeonkms driver parameters.
    They are required by PowerMac G5 DP.

    PR:           217852
    Submitted by: Hiroo Ono

Changes:
_U  stable/10/
  stable/10/sys/dev/drm2/radeon/radeon_drv.c