From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Alex Deucher <alexdeucher@gmail.com>
Cc: "Deucher, Alexander" <alexander.deucher@amd.com>,
"Michel Dänzer" <michel@daenzer.net>,
"Intel Graphics Development" <intel-gfx@lists.freedesktop.org>,
"Maling list - DRI developers" <dri-devel@lists.freedesktop.org>,
"Christian Koenig" <christian.koenig@amd.com>
Subject: Re: [PATCH 2/2] drm/amdgpu: Use per-device driver_features to disable atomic
Date: Thu, 13 Sep 2018 21:29:22 +0300 [thread overview]
Message-ID: <20180913182922.GS5565@intel.com> (raw)
In-Reply-To: <CADnq5_M9gN1EbUs_=AcXGZfjK-BEXf4uBo6C4Vyeh40htJp+Hg@mail.gmail.com>
On Thu, Sep 13, 2018 at 12:40:20PM -0400, Alex Deucher wrote:
> On Thu, Sep 13, 2018 at 12:39 PM Michel Dänzer <michel@daenzer.net> wrote:
> >
> > On 2018-09-13 6:31 p.m., Ville Syrjala wrote:
> > > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > >
> > > Disable atomic on a per-device basis instead of for all devices.
> > > Made possible by the new device.driver_features thing.
> > >
> > > Cc: Alex Deucher <alexander.deucher@amd.com>
> > > Cc: "Christian König" <christian.koenig@amd.com>
> > > Cc: "David (ChunMing) Zhou" <David1.Zhou@amd.com>
> > > Cc: Harry Wentland <harry.wentland@amd.com>
> > > Cc: Michel Dänzer <michel@daenzer.net>
> > > Suggested-by: Michel Dänzer <michel@daenzer.net>
> > > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > > ---
> > > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 12 ++++--------
> > > 1 file changed, 4 insertions(+), 8 deletions(-)
> > >
> > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> > > index 6870909da926..8c1db96be070 100644
> > > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> > > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
> > > @@ -816,17 +816,13 @@ static int amdgpu_pci_probe(struct pci_dev *pdev,
> > > if (ret)
> > > return ret;
> > >
> > > - /* warn the user if they mix atomic and non-atomic capable GPUs */
> > > - if ((kms_driver.driver_features & DRIVER_ATOMIC) && !supports_atomic)
> > > - DRM_ERROR("Mixing atomic and non-atomic capable GPUs!\n");
> > > - /* support atomic early so the atomic debugfs stuff gets created */
> > > - if (supports_atomic)
> > > - kms_driver.driver_features |= DRIVER_ATOMIC;
> > > -
> > > dev = drm_dev_alloc(&kms_driver, &pdev->dev);
> > > if (IS_ERR(dev))
> > > return PTR_ERR(dev);
> > >
> > > + if (!supports_atomic)
> > > + dev->driver_features &= ~DRIVER_ATOMIC;
> > > +
> > > ret = pci_enable_device(pdev);
> > > if (ret)
> > > goto err_free;
> > > @@ -1078,7 +1074,7 @@ amdgpu_get_crtc_scanout_position(struct drm_device *dev, unsigned int pipe,
> > >
> > > static struct drm_driver kms_driver = {
> > > .driver_features =
> > > - DRIVER_USE_AGP |
> > > + DRIVER_USE_AGP | DRIVER_ATOMIC |
> > > DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED | DRIVER_GEM |
> > > DRIVER_PRIME | DRIVER_RENDER | DRIVER_MODESET | DRIVER_SYNCOBJ,
> > > .load = amdgpu_driver_load_kms,
> > >
> >
> > Thanks Ville for taking care of this!
> >
> > Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
> >
> > If Alex agrees, probably best to push this to drm-misc-next as well.
> >
>
> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
>
> Please go ahead and merge through drm-misc.
>
> Thanks!
You are welcome, and thanks for the r-bs. Pushed.
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-09-13 18:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-13 16:31 [PATCH 1/2] drm/nouveau: Disable atomic support on a per-device basis Ville Syrjala
2018-09-13 16:31 ` [PATCH 2/2] drm/amdgpu: Use per-device driver_features to disable atomic Ville Syrjala
2018-09-13 16:38 ` Michel Dänzer
2018-09-13 16:40 ` Alex Deucher
2018-09-13 18:29 ` Ville Syrjälä [this message]
2018-09-20 18:55 ` Harry Wentland
2018-09-13 17:26 ` ✗ Fi.CI.BAT: failure for series starting with [1/2] drm/nouveau: Disable atomic support on a per-device basis Patchwork
[not found] ` <20180913163147.27900-1-ville.syrjala-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2018-09-13 21:02 ` [PATCH 1/2] " Lyude Paul
2018-09-14 8:11 ` Daniel Vetter
2018-09-17 17:34 ` Lyude Paul
[not found] ` <9df77326cf0ed944e52091230df129a06872696d.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-09-14 15:04 ` Ville Syrjälä
2018-09-14 7:45 ` kbuild test robot
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=20180913182922.GS5565@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=alexander.deucher@amd.com \
--cc=alexdeucher@gmail.com \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=michel@daenzer.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).