Displaying 19 results from an estimated 19 matches for "nouveau_mc_create_".
2014 Dec 30
0
[PATCH] mc: add missing braces
...: Vince Hsu <vinceh at nvidia.com>
---
nvkm/subdev/mc/base.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/nvkm/subdev/mc/base.c b/nvkm/subdev/mc/base.c
index ca7cee3a314a..25e3b9644a3f 100644
--- a/nvkm/subdev/mc/base.c
+++ b/nvkm/subdev/mc/base.c
@@ -124,7 +124,7 @@ nouveau_mc_create_(struct nouveau_object *parent, struct nouveau_object *engine,
pmc->unk260 = nouveau_mc_unk260;
- if (nv_device_is_pci(device))
+ if (nv_device_is_pci(device)) {
switch (device->pdev->device & 0x0ff0) {
case 0x00f0:
case 0x02e0:
@@ -138,6 +138,7 @@ nouveau_mc_create_(stru...
2013 Aug 28
3
[PATCH 6/6] drm/nouveau: use MSI interrupts
...(object);
> struct nouveau_mc *pmc = (void *)object;
> free_irq(device->pdev->irq, pmc);
> + if (pmc->use_msi)
> + pci_disable_msi(device->pdev);
> nouveau_subdev_destroy(&pmc->base);
> }
>
> @@ -96,6 +102,17 @@ nouveau_mc_create_(struct nouveau_object *parent, struct nouveau_object *engine,
>
> pmc->intr_map = intr_map;
>
> + pmc->use_msi = nouveau_boolopt(device->cfgopt, "NvMSI", true);
> + if (pmc->use_msi) {
> + ret = pci_enable_msi(device->pdev...
2013 Aug 28
0
[PATCH 6/6] drm/nouveau: use MSI interrupts
...(struct nouveau_object *object)
struct nouveau_device *device = nv_device(object);
struct nouveau_mc *pmc = (void *)object;
free_irq(device->pdev->irq, pmc);
+ if (pmc->use_msi)
+ pci_disable_msi(device->pdev);
nouveau_subdev_destroy(&pmc->base);
}
@@ -96,6 +102,17 @@ nouveau_mc_create_(struct nouveau_object *parent, struct nouveau_object *engine,
pmc->intr_map = intr_map;
+ pmc->use_msi = nouveau_boolopt(device->cfgopt, "NvMSI", true);
+ if (pmc->use_msi) {
+ ret = pci_enable_msi(device->pdev);
+ if (ret) {
+ pmc->use_msi = false;
+ } else {...
2013 Aug 28
0
[PATCH 6/6] drm/nouveau: use MSI interrupts
...au_mc *pmc = (void *)object;
> > free_irq(device->pdev->irq, pmc);
> > + if (pmc->use_msi)
> > + pci_disable_msi(device->pdev);
> > nouveau_subdev_destroy(&pmc->base);
> > }
> >
> > @@ -96,6 +102,17 @@ nouveau_mc_create_(struct nouveau_object *parent, struct nouveau_object *engine,
> >
> > pmc->intr_map = intr_map;
> >
> > + pmc->use_msi = nouveau_boolopt(device->cfgopt, "NvMSI", true);
> > + if (pmc->use_msi) {
> > + ret =...
2014 Feb 13
0
[PATCH v2] drm/nouveau: support for platform devices
...ee_irq(pmc->irq, pmc);
>> + if (nv_device_is_pci(device) && pmc->use_msi)
> You should be able to keep the conditional as is.
>
>> pci_disable_msi(device->pdev);
>> nouveau_subdev_destroy(&pmc->base);
>> }
>> @@ -114,22 +114,25 @@ nouveau_mc_create_(struct nouveau_object *parent, struct nouveau_object *engine,
>> if (ret)
>> return ret;
>>
>> - switch (device->pdev->device & 0x0ff0) {
>> - case 0x00f0:
>> - case 0x02e0:
>> - /* BR02? NFI how these would be handled yet exactly */
>&...
2013 Aug 30
3
[PATCH 6/6] drm/nouveau: use MSI interrupts
..., void *arg)
}
if (pmc->use_msi)
- nv_wr08(pmc->base.base.parent, 0x00088068, 0xff);
+ nv_wr08(pmc->base.base.parent, 0x1868, 0xff);
if (intr) {
nv_error(pmc, "unknown intr 0x%08x\n", stat);
@@ -108,7 +108,7 @@ nouveau_mc_create_(struct nouveau_object *parent,
struct nouveau_object *engine,
if (ret) {
pmc->use_msi = false;
} else {
- nv_wr08(device, 0x00088068, 0xff);
+ nv_wr08(device, 0x1868, 0xff);...
2013 Aug 28
11
[PATCH 0/6] Nouveau on ARM fixes
This is the first set of patches to make Nouveau work
on Tegra. Those are only the obvious correctness fixes,
a lot of optimization work remains to be done, but at least
it's enough to get accel working and let the machine survive
a piglit run.
A new BO flag is introduced to allow userspace to hint the
kernel about possible optimizations.
Lucas Stach (6):
drm/ttm: recognize ARM arch in
2013 Aug 30
2
[PATCH 6/6] drm/nouveau: use MSI interrupts
...>> - nv_wr08(pmc->base.base.parent, 0x00088068, 0xff);
>> + nv_wr08(pmc->base.base.parent, 0x1868, 0xff);
>>
>> if (intr) {
>> nv_error(pmc, "unknown intr 0x%08x\n", stat);
>> @@ -108,7 +108,7 @@ nouveau_mc_create_(struct nouveau_object *parent,
>> struct nouveau_object *engine,
>> if (ret) {
>> pmc->use_msi = false;
>> } else {
>> - nv_wr08(device, 0x00088068, 0xff);
>> +...
2013 Aug 30
2
[PATCH 6/6] drm/nouveau: use MSI interrupts
....base.parent, 0x00088068, 0xff);
> >>> + nv_wr08(pmc->base.base.parent, 0x1868, 0xff);
> >>>
> >>> if (intr) {
> >>> nv_error(pmc, "unknown intr 0x%08x\n", stat);
> >>> @@ -108,7 +108,7 @@ nouveau_mc_create_(struct nouveau_object *parent,
> >>> struct nouveau_object *engine,
> >>> if (ret) {
> >>> pmc->use_msi = false;
> >>> } else {
> >>> - nv_wr08(device, 0x0008...
2013 Aug 30
0
[PATCH 6/6] drm/nouveau: use MSI interrupts
...if (pmc->use_msi)
> - nv_wr08(pmc->base.base.parent, 0x00088068, 0xff);
> + nv_wr08(pmc->base.base.parent, 0x1868, 0xff);
>
> if (intr) {
> nv_error(pmc, "unknown intr 0x%08x\n", stat);
> @@ -108,7 +108,7 @@ nouveau_mc_create_(struct nouveau_object *parent,
> struct nouveau_object *engine,
> if (ret) {
> pmc->use_msi = false;
> } else {
> - nv_wr08(device, 0x00088068, 0xff);
> + nv_wr08(device, 0x1868,...
2013 Aug 30
0
[PATCH 6/6] drm/nouveau: use MSI interrupts
...nv_wr08(pmc->base.base.parent, 0x00088068, 0xff);
>>> + nv_wr08(pmc->base.base.parent, 0x1868, 0xff);
>>>
>>> if (intr) {
>>> nv_error(pmc, "unknown intr 0x%08x\n", stat);
>>> @@ -108,7 +108,7 @@ nouveau_mc_create_(struct nouveau_object *parent,
>>> struct nouveau_object *engine,
>>> if (ret) {
>>> pmc->use_msi = false;
>>> } else {
>>> - nv_wr08(device, 0x00088068, 0xff);
>>>...
2013 Sep 04
0
[PATCH 6/6] drm/nouveau: use MSI interrupts
...8068, 0xff);
>> >>> + nv_wr08(pmc->base.base.parent, 0x1868, 0xff);
>> >>>
>> >>> if (intr) {
>> >>> nv_error(pmc, "unknown intr 0x%08x\n", stat);
>> >>> @@ -108,7 +108,7 @@ nouveau_mc_create_(struct nouveau_object *parent,
>> >>> struct nouveau_object *engine,
>> >>> if (ret) {
>> >>> pmc->use_msi = false;
>> >>> } else {
>> >>> - nv...
2014 Feb 12
2
[PATCH v2] drm/nouveau: support for platform devices
...- if (pmc->use_msi)
> + free_irq(pmc->irq, pmc);
> + if (nv_device_is_pci(device) && pmc->use_msi)
You should be able to keep the conditional as is.
> pci_disable_msi(device->pdev);
> nouveau_subdev_destroy(&pmc->base);
> }
> @@ -114,22 +114,25 @@ nouveau_mc_create_(struct nouveau_object *parent, struct nouveau_object *engine,
> if (ret)
> return ret;
>
> - switch (device->pdev->device & 0x0ff0) {
> - case 0x00f0:
> - case 0x02e0:
> - /* BR02? NFI how these would be handled yet exactly */
> - break;
> - default:
&g...
2014 Feb 11
2
[PATCH] drm/nouveau: support for platform devices
On Mon, Feb 10, 2014 at 8:50 PM, Thierry Reding
<thierry.reding at gmail.com> wrote:
> On Mon, Feb 10, 2014 at 02:53:00PM +0900, Alexandre Courbot wrote:
> [...]
>> diff --git a/drivers/gpu/drm/nouveau/core/engine/device/base.c b/drivers/gpu/drm/nouveau/core/engine/device/base.c
> [...]
>> +resource_size_t
>> +nv_device_resource_start(struct nouveau_device *device,
2014 Feb 12
0
[PATCH v2] drm/nouveau: support for platform devices
...ruct nouveau_mc *pmc = (void *)object;
- free_irq(device->pdev->irq, pmc);
- if (pmc->use_msi)
+ free_irq(pmc->irq, pmc);
+ if (nv_device_is_pci(device) && pmc->use_msi)
pci_disable_msi(device->pdev);
nouveau_subdev_destroy(&pmc->base);
}
@@ -114,22 +114,25 @@ nouveau_mc_create_(struct nouveau_object *parent, struct nouveau_object *engine,
if (ret)
return ret;
- switch (device->pdev->device & 0x0ff0) {
- case 0x00f0:
- case 0x02e0:
- /* BR02? NFI how these would be handled yet exactly */
- break;
- default:
- switch (device->chipset) {
- case 0xaa:...
2013 Sep 30
1
[PATCH 6/6] drm/nouveau: use MSI interrupts
...>>>>> + nv_wr08(pmc->base.base.parent, 0x1868, 0xff);
>>>>>>
>>>>>> if (intr) {
>>>>>> nv_error(pmc, "unknown intr 0x%08x\n", stat);
>>>>>> @@ -108,7 +108,7 @@ nouveau_mc_create_(struct nouveau_object *parent,
>>>>>> struct nouveau_object *engine,
>>>>>> if (ret) {
>>>>>> pmc->use_msi = false;
>>>>>> } else {
>>>>>> -...
2014 Feb 10
2
[PATCH] drm/nouveau: support for platform devices
...ruct nouveau_mc *pmc = (void *)object;
- free_irq(device->pdev->irq, pmc);
- if (pmc->use_msi)
+ free_irq(pmc->irq, pmc);
+ if (nv_device_is_pci(device) && pmc->use_msi)
pci_disable_msi(device->pdev);
nouveau_subdev_destroy(&pmc->base);
}
@@ -114,22 +114,25 @@ nouveau_mc_create_(struct nouveau_object *parent, struct nouveau_object *engine,
if (ret)
return ret;
- switch (device->pdev->device & 0x0ff0) {
- case 0x00f0:
- case 0x02e0:
- /* BR02? NFI how these would be handled yet exactly */
- break;
- default:
- switch (device->chipset) {
- case 0xaa:...
2013 Aug 29
2
[PATCH 6/6] drm/nouveau: use MSI interrupts
On Thu, Aug 29, 2013 at 12:45 AM, Ben Skeggs <skeggsb at gmail.com> wrote:
> On Thu, Aug 29, 2013 at 12:20 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>> On Wed, Aug 28, 2013 at 8:07 PM, Ben Skeggs <skeggsb at gmail.com> wrote:
>>> On Wed, Aug 28, 2013 at 11:54 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>>>> On Wed, Aug 28, 2013 at
2014 Feb 01
28
[RFC 00/16] drm/nouveau: initial support for GK20A (Tegra K1)
Hello everyone,
GK20A is the Kepler-based GPU used in the upcoming Tegra K1 chips. The following
patches perform architectural changes to Nouveau that are necessary to support
non-PCI GPUs and add initial support for GK20A. Although the support is still
very basic and more user-space changes will be needed to make the full graphics
stack run on top of it, we were able to successfully open