All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felix Kuehling <felix.kuehling-5C7GfCeVMHo@public.gmane.org>
To: "Michel Dänzer" <michel-otUistvHUpPR7s880joybQ@public.gmane.org>
Cc: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH 1/3] drm/radeon: Make CIK support in Radeon conditional (v2)
Date: Mon, 10 Apr 2017 14:13:05 -0400	[thread overview]
Message-ID: <74d677b8-6b81-e137-af67-ec4834c72bcc@amd.com> (raw)
In-Reply-To: <64d15f06-1560-825c-c186-2209f87908fc-otUistvHUpPR7s880joybQ@public.gmane.org>

On 17-04-09 09:28 PM, Michel Dänzer wrote:
> On 10/04/17 09:56 AM, Michel Dänzer wrote:
>> On 08/04/17 05:15 AM, Felix Kuehling wrote:
>>> Advertise CIK PCI IDs only when they are not supported by amdgpu.
>>> Use the CONFIG_DRM_AMDGPU_CIK to check so that a single option in
>>> the kernel config keeps both drivers in sync.
>>>
>>> This is the simplest possible change. A more complete solution
>>> may want to conditionally disable more CIK-specific code in the
>>> Radeon driver.
>>>
>>> v2: Add CONFIG_DRM_RADEON_FORCE_CIK option
>>>
>>> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
>> I don't think this is good enough a solution.
> To elaborate, my main objection is that people who still want to be able
> to use the radeon driver for CIK/SI GPUs with CONFIG_DRM_AMDGPU_CIK
> enabled have to enable the new CONFIG_DRM_RADEON_FORCE_CIK/SI option,
> and then they're merely back to square one, in the current situation
> where it's not clearly defined which driver will end up being used for
> such GPUs.

So what's the usage model here? I think the situation that both AMDGPU
and Radeon support CIK is for developers only. "Normal end users" would
never be in this situation.

For developers, Christian is OK with having just a compile time option,
and probably choosing the driver by loading the right module manually.
You want to have a boot time kernel option.

Are there any other ideas or requests, before I go spend more time on this?

>
>
>> CONFIG_DRM_AMDGPU_CIK/SI would then simply define which driver gets to
>> drive CIK/SI GPUs by default.
> To avoid the above, I'd say this should be the first step: Make
> CONFIG_DRM_AMDGPU_CIK/SI define which driver will register for CIK/SI
> GPUs by default. This does require some way to override it at runtime,
> though. A simple initial solution for that might be
> "force_cik"/"force_si" module parameters in both drivers. Setting
> force_cik/si=1/0 would make the driver register for / not register for
> CIK/SI GPUs.

Currently the options control the PCI ID aliases that are listed in the
module description. This affects which module will be loaded by
modprobe. If I make this a runtime option, I need some other mechanism
to reject certain GPUs even though modprobe loaded the module (probably
return failure from the driver->load() callback).

I'm also not sure whether modprobe would load both modules, or only one.
If it loads only one, you may end up with no graphics until you manually
insmod the other module.

Regards,
  Felix
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2017-04-10 18:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-07 20:15 [PATCH 1/3] drm/radeon: Make CIK support in Radeon conditional (v2) Felix Kuehling
     [not found] ` <1491596149-3709-1-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-04-07 20:15   ` [PATCH 2/3] drm/radeon: Make SI support in Radeon conditional Felix Kuehling
     [not found]     ` <1491596149-3709-2-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-04-12 14:58       ` Li, Samuel
2017-04-07 20:15   ` [PATCH 3/3] drm/amdgpu: CIK support is no longer experimental Felix Kuehling
     [not found]     ` <1491596149-3709-3-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-04-08  8:50       ` Nicolai Hähnle
     [not found]         ` <f1c88cc8-9c62-52eb-fb21-a5048f771c7e-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-04-10 22:06           ` Felix Kuehling
     [not found]             ` <5ba7f549-d3b3-e817-8673-cdfbe8539314-5C7GfCeVMHo@public.gmane.org>
2017-04-13 16:41               ` Nicolai Hähnle
     [not found]                 ` <30b88eb7-6b6b-fd52-fcb2-0fd11c9155f6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-04-13 19:51                   ` Marek Olšák
2017-04-08  8:47   ` [PATCH 1/3] drm/radeon: Make CIK support in Radeon conditional (v2) Christian König
2017-04-08 15:42   ` Emil Velikov
2017-04-10  0:56   ` Michel Dänzer
     [not found]     ` <56a29a84-7b92-a666-5d0b-b6c2f3395b21-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-04-10  1:28       ` Michel Dänzer
     [not found]         ` <64d15f06-1560-825c-c186-2209f87908fc-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-04-10 18:13           ` Felix Kuehling [this message]
     [not found]             ` <74d677b8-6b81-e137-af67-ec4834c72bcc-5C7GfCeVMHo@public.gmane.org>
2017-04-10 18:50               ` Alex Deucher
     [not found]                 ` <CADnq5_Pz-NymmWd6ExLNxRJ=UVygHsQcaua26ULZstZ409LZzw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-04-10 20:09                   ` Felix Kuehling
2017-04-11  1:39               ` Michel Dänzer
     [not found]                 ` <5aad3a06-180b-ff87-e9c9-c0399ddcf67b-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-04-11 16:13                   ` Felix Kuehling
     [not found]                     ` <bb600a20-2679-004f-15e9-9dd12ae305c1-5C7GfCeVMHo@public.gmane.org>
2017-04-12  2:30                       ` Michel Dänzer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=74d677b8-6b81-e137-af67-ec4834c72bcc@amd.com \
    --to=felix.kuehling-5c7gfcevmho@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=michel-otUistvHUpPR7s880joybQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.