Displaying 17 results from an estimated 17 matches for "nouveau_bios_init".
2014 Feb 10
0
[PATCH] drm/nouveau: support for platform devices
...the right thing already.
> if (device->card_type >= NV_50) {
> ret = nouveau_vm_new(nv_device(drm->device), 0, (1ULL << 40),
> @@ -398,9 +423,11 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags)
> if (ret)
> goto fail_ttm;
>
> - ret = nouveau_bios_init(dev);
> - if (ret)
> - goto fail_bios;
> + if (pdev) {
> + ret = nouveau_bios_init(dev);
> + if (ret)
> + goto fail_bios;
> + }
nouveau_bios_init() could also check internally and return 0 if the
device isn't a PCI device. One less conditional in this function.
>...
2010 Jan 18
1
[PATCH] drm: remove UMS leftover
...825872912 +0100
+++ b/drivers/gpu/drm/nouveau/nouveau_state.c 2010-01-18 13:00:34.039879476 +0100
@@ -385,11 +385,9 @@
dev_priv->init_state = NOUVEAU_CARD_INIT_FAILED;
/* Parse BIOS tables / Run init tables if card not POSTed */
- if (drm_core_check_feature(dev, DRIVER_MODESET)) {
- ret = nouveau_bios_init(dev);
- if (ret)
- goto out;
- }
+ ret = nouveau_bios_init(dev);
+ if (ret)
+ goto out;
ret = nouveau_gpuobj_early_init(dev);
if (ret)
@@ -456,14 +454,12 @@
goto out_irq;
}
- if (drm_core_check_feature(dev, DRIVER_MODESET)) {
- if (dev_priv->card_type >= NV_50)
- ret = nv...
2014 Feb 10
2
[PATCH] drm/nouveau: support for platform devices
...) {
+ nouveau_vga_init(drm);
+ nouveau_agp_init(drm);
+ }
if (device->card_type >= NV_50) {
ret = nouveau_vm_new(nv_device(drm->device), 0, (1ULL << 40),
@@ -398,9 +423,11 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags)
if (ret)
goto fail_ttm;
- ret = nouveau_bios_init(dev);
- if (ret)
- goto fail_bios;
+ if (pdev) {
+ ret = nouveau_bios_init(dev);
+ if (ret)
+ goto fail_bios;
+ }
ret = nouveau_display_create(dev);
if (ret)
@@ -662,7 +689,6 @@ static int nouveau_pmops_thaw(struct device *dev)
static int
nouveau_drm_open(struct drm_device *dev, struct...
2020 Mar 17
0
[PATCH] drm/nouveau: Remove nouveau_bios_connector_entry()
...s(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.h b/drivers/gpu/drm/nouveau/nouveau_bios.h
index 18eb061ccafb..5495f004a297 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bios.h
+++ b/drivers/gpu/drm/nouveau/nouveau_bios.h
@@ -163,8 +163,6 @@ u8 *olddcb_conn(struct drm_device *, u8 idx);
int nouveau_bios_init(struct drm_device *);
void nouveau_bios_takedown(struct drm_device *dev);
int nouveau_run_vbios_init(struct drm_device *);
-struct dcb_connector_table_entry *
-nouveau_bios_connector_entry(struct drm_device *, int index);
bool nouveau_bios_fp_mode(struct drm_device *, struct drm_display_mode *);...
2009 Dec 14
0
[PATCH] drm/nouveau: Unregister irq handler if init fails
...*/
ret = nouveau_init_engine_ptrs(dev);
if (ret)
- return ret;
+ goto out;
engine = &dev_priv->engine;
dev_priv->init_state = NOUVEAU_CARD_INIT_FAILED;
@@ -325,12 +325,12 @@ nouveau_card_init(struct drm_device *dev)
if (drm_core_check_feature(dev, DRIVER_MODESET)) {
ret = nouveau_bios_init(dev);
if (ret)
- return ret;
+ goto out;
}
ret = nouveau_gpuobj_early_init(dev);
if (ret)
- return ret;
+ goto out;
/* Initialise instance memory, must happen before mem_init so we
* know exactly how much VRAM we're able to use for "normal"
@@ -338,52 +338,52 @...
2018 Mar 01
0
UBSAN warning in nouveau_bios.c:1528:8
...ift_out_of_bounds+0x124/0x160
[ 8.015506] ? _dev_info+0x67/0x90
[ 8.015509] ? dev_printk_emit+0x49/0x70
[ 8.015632] parse_dcb_entry+0x91e/0xd90 [nouveau]
[ 8.015712] ? parse_bit_M_tbl_entry+0x150/0x150 [nouveau]
[ 8.015791] olddcb_outp_foreach+0x66/0xa0 [nouveau]
[ 8.015870] nouveau_bios_init+0x23a/0x2250 [nouveau]
[ 8.015950] ? nouveau_ttm_init+0x3a4/0x710 [nouveau]
[ 8.016029] nouveau_drm_load+0x229/0xf10 [nouveau]
[ 8.016033] ? sysfs_do_create_link_sd+0xa6/0x170
[ 8.016067] drm_dev_register+0x1b7/0x330 [drm]
[ 8.016070] ? pci_enable_device_flags+0x160/0x1f0
[ 8...
2009 Dec 14
0
[PATCH] drm/nouveau: Add proper error handling to nouveau_card_init
...*/
ret = nouveau_init_engine_ptrs(dev);
if (ret)
- return ret;
+ goto out;
engine = &dev_priv->engine;
dev_priv->init_state = NOUVEAU_CARD_INIT_FAILED;
@@ -325,12 +325,12 @@ nouveau_card_init(struct drm_device *dev)
if (drm_core_check_feature(dev, DRIVER_MODESET)) {
ret = nouveau_bios_init(dev);
if (ret)
- return ret;
+ goto out;
}
ret = nouveau_gpuobj_early_init(dev);
if (ret)
- return ret;
+ goto out_bios;
/* Initialise instance memory, must happen before mem_init so we
* know exactly how much VRAM we're able to use for "normal"
@@ -338,52 +338...
2014 Feb 01
0
[RFC 02/16] drm/nouveau: basic support for platform devices
...) {
+ nouveau_vga_init(drm);
+ nouveau_agp_init(drm);
+ }
if (device->card_type >= NV_50) {
ret = nouveau_vm_new(nv_device(drm->device), 0, (1ULL << 40),
@@ -398,9 +418,11 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags)
if (ret)
goto fail_ttm;
- ret = nouveau_bios_init(dev);
- if (ret)
- goto fail_bios;
+ if (pdev) {
+ ret = nouveau_bios_init(dev);
+ if (ret)
+ goto fail_bios;
+ }
ret = nouveau_display_create(dev);
if (ret)
@@ -662,7 +684,6 @@ static int nouveau_pmops_thaw(struct device *dev)
static int
nouveau_drm_open(struct drm_device *dev, struct...
2009 Dec 15
2
[PATCH 1/2] drm/nv04: Fix NV04 set_operation software method.
Signed-off-by: Marcin Ko?cielnicki <koriakin at 0x04.net>
---
drivers/gpu/drm/nouveau/nv04_graph.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nv04_graph.c b/drivers/gpu/drm/nouveau/nv04_graph.c
index 396ee92..d561d77 100644
--- a/drivers/gpu/drm/nouveau/nv04_graph.c
+++ b/drivers/gpu/drm/nouveau/nv04_graph.c
@@ -543,7 +543,7 @@
2014 Feb 11
2
[PATCH] drm/nouveau: support for platform devices
...d_type >= NV_50) {
>> ret = nouveau_vm_new(nv_device(drm->device), 0, (1ULL << 40),
>> @@ -398,9 +423,11 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags)
>> if (ret)
>> goto fail_ttm;
>>
>> - ret = nouveau_bios_init(dev);
>> - if (ret)
>> - goto fail_bios;
>> + if (pdev) {
>> + ret = nouveau_bios_init(dev);
>> + if (ret)
>> + goto fail_bios;
>> + }
>
> nouveau_bios_init() could also check interna...
2013 Jan 03
20
[Bug 58984] New: DRM NOUVEAU: probe of 0001:01:00.0 failed with error -12
https://bugs.freedesktop.org/show_bug.cgi?id=58984
Priority: medium
Bug ID: 58984
Assignee: nouveau at lists.freedesktop.org
Summary: DRM NOUVEAU: probe of 0001:01:00.0 failed with error
-12
QA Contact: xorg-team at lists.x.org
Severity: normal
Classification: Unclassified
OS: Linux (All)
2012 Oct 06
0
Problem with GFX 5500 Inno 3D
...0xf2
[<c1041bed>] ? __cond_resched+0x16/0x26
[<c1023493>] iomap_create_wc+0x18/0x2b
[<f0e5452b>] init_compute_mem+0x1e5/0x9c4 [nouveau]
[<f0e52d70>] parse_init_table+0xcd/0x189 [nouveau]
[<f0e57cc3>] nouveau_run_vbios_init+0x1fb/0x2a9 [nouveau]
[<f0e58a6b>] nouveau_bios_init+0xcfa/0x102c [nouveau]
[<c101fed6>] ? vmalloc_sync_all+0x116/0x116
[<c125152a>] ? error_code+0x5a/0x60
[<f0e3f630>] ? nouveau_stub_init+0x7/0x7 [nouveau]
[<f0e4a501>] ? NVSetOwner+0x150/0x228 [nouveau]
[<f0e3f630>] ? nouveau_stub_init+0x7/0x7 [nouveau]
[<f0e40...
2014 Feb 12
0
[PATCH v2] drm/nouveau: support for platform devices
...return false;
if (drm->agp.stat == UNKNOWN) {
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c
index 4c3feaaa1037..04564dcd7956 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bios.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bios.c
@@ -2069,6 +2069,10 @@ nouveau_bios_init(struct drm_device *dev)
struct nvbios *bios = &drm->vbios;
int ret;
+ /* only relevant for PCI devices */
+ if (!dev->pdev)
+ return 0;
+
if (!NVInitVBIOS(dev))
return -ENODEV;
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c
index 488...
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
2014 Feb 12
2
[PATCH v2] drm/nouveau: support for platform devices
On 12/02/14 05:38, Alexandre Courbot wrote:
> Upcoming mobile Kepler GPUs (such as GK20A) use the platform bus instead
> of PCI to which Nouveau is tightly dependent. This patch allows Nouveau
> to handle platform devices by:
>
> - abstracting PCI-dependent functions that were typically used for
> resource querying and page mapping,
> - introducing a nv_device_is_pci()
2009 Aug 13
9
[PATCHv2 01/10] drm/nouveau: Fix a lock up at NVSetOwner with nv11.
It seems it was only locking up in the context of
nouveau_hw_save_vga_fonts, when it actually did something (because
the console wasn't already in graphics mode).
Signed-off-by: Francisco Jerez <currojerez at riseup.net>
---
drivers/gpu/drm/nouveau/nouveau_hw.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_hw.c
2009 Aug 12
14
[PATCH 00/12] TV-out modesetting kernel patches.
This patch series adds TV-out modesetting support to the KMS
implementation.
I've tried to test it on all the hardware I've got at hand (that is
nv11, nv17, nv34, nv35, nv40, nv4b) with every possible output
combination; I believe it has reached a mergeable state, however it
depends on some commits from drm-next that haven't got into Linus'
tree yet, if you agree to merge this