Displaying 20 results from an estimated 32 matches for "dma_bit".
Did you mean:
dma_bits
2016 Oct 03
1
[PATCH v4 1/3] drm/nouveau: set streaming DMA mask early
...he DMA
> mask. This may prevent the driver from loading at all on platforms whose
> system memory is not covered by the default DMA mask of 32-bit (i.e., when
> all RAM is above 4 GB).
>
> So set a preliminary DMA mask right after constructing the PCI device, and
> base it on the .dma_bits member of the MMU subdevice, which is what the TTM
> layer will base the DMA mask on as well.
>
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel at linaro.org>
> ---
> drivers/gpu/drm/nouveau/nouveau_drm.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff...
2016 Sep 26
6
[PATCH v4 0/3] drm/nouveau: set DMA mask before mapping scratch page
...e (0000 -> 0003)
nouveau 0000:02:00.0: NVIDIA GT218 (0a8280b1)
nouveau 0000:02:00.0: bios: version 70.18.a6.00.00
nouveau 0000:02:00.0: fb ctor failed, -14
nouveau: probe of 0000:02:00.0 failed with error -14
So fix this by setting a preliminary DMA mask based on the MMU device 'dma_bits'
property (patch #1), and postpone mapping the scratch pages to the respective
FB .init() hooks. (#2 and #3)
v4: split and move dma_set_mask to probe hook (Alexander)
v3: rework code to get rid of DMA_ERROR_CODE references, which is not
defined on all architectures
v2: replace incorrect c...
2016 Sep 26
0
[PATCH v4 1/3] drm/nouveau: set streaming DMA mask early
...yer has had a chance to set the DMA
mask. This may prevent the driver from loading at all on platforms whose
system memory is not covered by the default DMA mask of 32-bit (i.e., when
all RAM is above 4 GB).
So set a preliminary DMA mask right after constructing the PCI device, and
base it on the .dma_bits member of the MMU subdevice, which is what the TTM
layer will base the DMA mask on as well.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel at linaro.org>
---
drivers/gpu/drm/nouveau/nouveau_drm.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/gpu/drm/nouveau/nouvea...
2016 Oct 06
6
[PATCH v5 0/3] drm/nouveau: set DMA mask before mapping scratch page
...e (0000 -> 0003)
nouveau 0000:02:00.0: NVIDIA GT218 (0a8280b1)
nouveau 0000:02:00.0: bios: version 70.18.a6.00.00
nouveau 0000:02:00.0: fb ctor failed, -14
nouveau: probe of 0000:02:00.0 failed with error -14
So fix this by setting a preliminary DMA mask based on the MMU device 'dma_bits'
property (patch #1), and postpone mapping the scratch pages to the respective
FB .init() hooks. (#2 and #3)
v5: move setting of preliminary DMA mask to nvkm_device_pci_new() (#1)
move allocation and DMA mapping of scratch pages to .oneinit hooks (#2, #3)
v4: split and move dma_set_mask t...
2010 Jan 24
21
[Bug 26193] New: nouveau falls back to NoAccel on 9400M
http://bugs.freedesktop.org/show_bug.cgi?id=26193
Summary: nouveau falls back to NoAccel on 9400M
Product: xorg
Version: git
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
AssignedTo: nouveau at lists.freedesktop.org
ReportedBy: bjt23
2016 Oct 16
1
[PATCH v5 0/3] drm/nouveau: set DMA mask before mapping scratch page
...NVIDIA GT218 (0a8280b1)
>> nouveau 0000:02:00.0: bios: version 70.18.a6.00.00
>> nouveau 0000:02:00.0: fb ctor failed, -14
>> nouveau: probe of 0000:02:00.0 failed with error -14
>>
>> So fix this by setting a preliminary DMA mask based on the MMU device 'dma_bits'
>> property (patch #1), and postpone mapping the scratch pages to the respective
>> FB .init() hooks. (#2 and #3)
>>
>> v5: move setting of preliminary DMA mask to nvkm_device_pci_new() (#1)
>> move allocation and DMA mapping of scratch pages to .oneinit hook...
2016 Jun 21
1
[RFC PATCH v2] drm/nouveau/fb/nv50: set DMA mask before mapping scratch page
...ore the TTM layer sets the
+ * DMA mask based on the MMU subdev parameters. This means we
+ * are using the default DMA mask of 32, which may cause
+ * problems on systems with no RAM below the 4 GB mark. So set
+ * the streaming DMA mask here as well.
+ */
+ dma_set_mask(device->dev, DMA_BIT_MASK(device->mmu->dma_bits));
+
+ fb->r100c08 = dma_map_page(device->dev, fb->r100c08_page, 0,
+ PAGE_SIZE, DMA_BIDIRECTIONAL);
+ if (dma_mapping_error(device->dev, fb->r100c08)) {
+ nvkm_warn(&fb->base.subdev,
+ "dma_map_page() failed on 100c08 page...
2019 Dec 17
1
[PATCH] drm/nouveau: Add correct turing page kinds
...int *count, u8 *invalid)
+{
+ static const u8
+ kind[16] = {
+ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 0x00 */
+ 0x06, 0x06, 0x02, 0x01, 0x03, 0x04, 0x05, 0x07,
+ };
+ *count = ARRAY_SIZE(kind);
+ *invalid = 0x07;
+ return kind;
+}
+
static const struct nvkm_mmu_func
tu102_mmu = {
.dma_bits = 47,
.mmu = {{ -1, -1, NVIF_CLASS_MMU_GF100}},
.mem = {{ -1, 0, NVIF_CLASS_MEM_GF100}, gf100_mem_new, gf100_mem_map },
.vmm = {{ -1, 0, NVIF_CLASS_VMM_GP100}, tu102_vmm_new },
- .kind = gm200_mmu_kind,
+ .kind = tu102_mmu_kind,
.kind_sys = true,
};
diff --git a/drivers/gpu/drm/nouvea...
2009 Aug 19
1
[PATCH] drm/nouveau: Add a MM for mappable VRAM that isn't usable as scanout.
...;
@@ -482,7 +495,7 @@ nouveau_mem_init(struct drm_device *dev)
{
struct drm_nouveau_private *dev_priv = dev->dev_private;
struct ttm_bo_device *bdev = &dev_priv->ttm.bdev;
- uint32_t vram_size, bar1_size, text_size;
+ uint32_t vram_size, bar1_size, text_size, scanout_size;
int ret, dma_bits = 32;
dev_priv->fb_phys = drm_get_resource_start(dev, 1);
@@ -517,6 +530,7 @@ nouveau_mem_init(struct drm_device *dev)
/* non-mappable vram */
dev_priv->fb_available_size = nouveau_mem_fb_amount(dev);
dev_priv->fb_available_size -= dev_priv->ramin_rsvd_vram;
+ scanout_size =...
2016 Oct 07
0
[PATCH v5 0/3] drm/nouveau: set DMA mask before mapping scratch page
...ouveau 0000:02:00.0: NVIDIA GT218 (0a8280b1)
> nouveau 0000:02:00.0: bios: version 70.18.a6.00.00
> nouveau 0000:02:00.0: fb ctor failed, -14
> nouveau: probe of 0000:02:00.0 failed with error -14
>
> So fix this by setting a preliminary DMA mask based on the MMU device 'dma_bits'
> property (patch #1), and postpone mapping the scratch pages to the respective
> FB .init() hooks. (#2 and #3)
>
> v5: move setting of preliminary DMA mask to nvkm_device_pci_new() (#1)
> move allocation and DMA mapping of scratch pages to .oneinit hooks (#2, #3)
> v4:...
2009 Feb 26
0
re ceiving NMI while using a PCI card.
...ave a hardware problem with your RAM chips
I tried another RAM module but no changes.
If I insist my host computer freeze and reboot (if xen watchdog is
activated)
Something strange in xm dmesg :
(XEN) mm.c:676:d0 Non-privileged (0) attempt to map I/O space 000fec00
What can I do?
The xen option dma_bits can help me to deal with this problem ? (saw it in
user manual)
Thank you for your help.
--
View this message in context: http://www.nabble.com/receiving-NMI-while-using-a-PCI-card.-tp22205709p22205709.html
Sent from the Xen - User mailing list archive at Nabble.com.
________________________...
2016 Oct 17
0
[PATCH v5 0/3] drm/nouveau: set DMA mask before mapping scratch page
...NVIDIA GT218 (0a8280b1)
>> nouveau 0000:02:00.0: bios: version 70.18.a6.00.00
>> nouveau 0000:02:00.0: fb ctor failed, -14
>> nouveau: probe of 0000:02:00.0 failed with error -14
>>
>> So fix this by setting a preliminary DMA mask based on the MMU device
'dma_bits'
>> property (patch #1), and postpone mapping the scratch pages to the
respective
>> FB .init() hooks. (#2 and #3)
>>
>> v5: move setting of preliminary DMA mask to nvkm_device_pci_new() (#1)
>> move allocation and DMA mapping of scratch pages to .oneinit hook...
2016 Jul 07
3
[PATCH v3] drm/nouveau/fb/nv50: set DMA mask before mapping scratch page
...the
+ * DMA mask based on the MMU subdev parameters. This means we
+ * are using the default DMA mask of 32, which may cause
+ * problems on systems with no RAM below the 4 GB mark. So set
+ * the streaming DMA mask here as well.
+ */
+ dma_addr_t addr;
+
+ dma_set_mask(device->dev, DMA_BIT_MASK(device->mmu->dma_bits));
+
+ addr = dma_map_page(device->dev, fb->r100c08_page, 0, PAGE_SIZE,
+ DMA_BIDIRECTIONAL);
+ if (!dma_mapping_error(device->dev, addr)) {
+ fb->r100c08 = addr;
+ } else {
+ nvkm_warn(&fb->base.subdev,
+ "dma_map_page() f...
2011 Oct 10
26
PCI passthrough stopped working, brainache!
Recently had passthrough of 2xPCI DVB-T cards and 1xPCIe DVB-S2 card working,
the last know config that was *certainly* working was
dom0
xen-4.1.1-3.fc16.x86_64
kernel-3.1.0-0.rc7.git0.0.fc16.x86_64
domU
kernel-3.1.0-0.rc8.git0.0.fc16.x86_64
Since then I''ve updated
xen-4.1.1-6.fc16.x86_64 on dom0
kernel-3.1.0-0.rc9.git0.0.fc16.x86_64 on dom0 and domU
and updated all other packages
2012 Feb 24
43
[Bug 46557] New: nouveau: nv40 display corruption in framebuffer and X lockups unless nouveau.noaccel=1
https://bugs.freedesktop.org/show_bug.cgi?id=46557
Bug #: 46557
Summary: nouveau: nv40 display corruption in framebuffer and X
lockups unless nouveau.noaccel=1
Classification: Unclassified
Product: xorg
Version: git
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity:
2016 Jun 20
2
[RFC PATCH] drm/nouveau/fb/nv50: set DMA mask before mapping scratch page
...ore the TTM layer sets the
+ * DMA mask based on the MMU subdev parameters. This means we
+ * are using the default DMA mask of 32, which may cause
+ * problems on systems with no RAM below the 4 GB mark. So set
+ * the streaming DMA mask here as well.
+ */
+ dma_set_mask(device->dev, DMA_BIT_MASK(device->mmu->dma_bits));
+
+ fb->r100c08 = dma_map_page(device->dev, fb->r100c08_page, 0,
+ PAGE_SIZE, DMA_BIDIRECTIONAL);
+ if (dma_mapping_error(device->dev, fb->r100c08)) {
+ nvkm_warn(&fb->base.subdev,
+ "dma_map_page() failed on 100c08 page...
2017 Feb 28
2
[PATCH 0/2] gpu: drm: Use pr_cont and neaten logging
Joe Perches (2):
drm: Use pr_cont where appropriate
gpu: drm: Convert printk(KERN_<LEVEL> to pr_<level>
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_afmt.c | 4 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 4 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 +-
2017 Feb 28
0
[PATCH 2/2] gpu: drm: Convert printk(KERN_<LEVEL> to pr_<level>
...;%s\"\n",
- fw_name);
+ pr_err("cik_mc: Failed to load firmware \"%s\"\n", fw_name);
release_firmware(adev->mc.fw);
adev->mc.fw = NULL;
}
@@ -938,12 +936,12 @@ static int gmc_v7_0_sw_init(void *handle)
if (r) {
adev->need_dma32 = true;
dma_bits = 32;
- printk(KERN_WARNING "amdgpu: No suitable DMA available.\n");
+ pr_warn("amdgpu: No suitable DMA available\n");
}
r = pci_set_consistent_dma_mask(adev->pdev, DMA_BIT_MASK(dma_bits));
if (r) {
pci_set_consistent_dma_mask(adev->pdev, DMA_BIT_MASK(32));
-...
2012 Feb 03
3
[PATCH 1/4] nouveau: Allow allocating BOs at specific offsets
We want to be able to guarantee the location of the allocated buffer
object if we're going to be able to reliably allocate the existing
framebuffer at startup. Add an argument to do so and pass that through to
the ttm core.
Signed-off-by: Matthew Garrett <mjg at redhat.com>
---
drivers/bcma/main.c | 1 -
drivers/gpu/drm/nouveau/nouveau_bo.c | 8 +++++++-
2015 Sep 04
4
[PATCH 0/4] tegra: DMA mask and IOMMU bit fixes
These 4 patches fix two issues that existed on Tegra regarding DMA:
1) The bit indicating whether to use an IOMMU or not was hardcoded ; make this
a platform property and use it in instmem
2) The DMA mask was not set for platform devices. Fix this by converting
more pci_dma* to the DMA API, and use that more generic code to set the
DMA mask properly for all platforms.
Tested on both x86