Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
dma_map_ops.alloc_coherent should be using the coherent_dma_mask, intel_alloc_coherent()
is not. intel_alloc_coherent() calls __intel_map_single() passing in the correct mask,
hwdev->coherent_dma_mask, but then __intel_map_single() doesn't use it... it ends up
using the pdev->dma_mask:
static dma_addr_t __intel_map_single(struct device *hwdev, phys_addr_t paddr,
size_t size, int dir, u64 dma_mask)
{
...txt deleted...
iova = intel_alloc_iova(hwdev, domain, dma_to_mm_pfn(size),
pdev->dma_mask);
^^^^^^^^^^^^^^
I *think* this call to intel_alloc_iova() should be using the "dma_mask"
passed into it. We should look into why the code is using pdev->dma_mask
rather than the hwdev->coherent_dma_mask on a dma_map_ops.alloc_coherent()
call other dma_map_ops alloc_coherent routines do.
...
Hopefully final version submitted:
http://marc.info/?l=linux-kernel&m=130220593715364&w=4
Subject: Intel pci: Use coherent DMA mask when requested
The __intel_map_single function is not honoring the passed in
DMA mask. This results in not using the coherent DMA mask when
called from intel_alloc_coherent().
Signed-off-by: Mike Travis <travis>
Reviewed-by: Mike Habeck <habeck>
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
Comment 2RHEL Program Management
2011-04-14 06:02:26 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.
Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.
Description of problem: dma_map_ops.alloc_coherent should be using the coherent_dma_mask, intel_alloc_coherent() is not. intel_alloc_coherent() calls __intel_map_single() passing in the correct mask, hwdev->coherent_dma_mask, but then __intel_map_single() doesn't use it... it ends up using the pdev->dma_mask: static dma_addr_t __intel_map_single(struct device *hwdev, phys_addr_t paddr, size_t size, int dir, u64 dma_mask) { ...txt deleted... iova = intel_alloc_iova(hwdev, domain, dma_to_mm_pfn(size), pdev->dma_mask); ^^^^^^^^^^^^^^ I *think* this call to intel_alloc_iova() should be using the "dma_mask" passed into it. We should look into why the code is using pdev->dma_mask rather than the hwdev->coherent_dma_mask on a dma_map_ops.alloc_coherent() call other dma_map_ops alloc_coherent routines do. ... Hopefully final version submitted: http://marc.info/?l=linux-kernel&m=130220593715364&w=4 Subject: Intel pci: Use coherent DMA mask when requested The __intel_map_single function is not honoring the passed in DMA mask. This results in not using the coherent DMA mask when called from intel_alloc_coherent(). Signed-off-by: Mike Travis <travis> Reviewed-by: Mike Habeck <habeck> Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: