All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
To: dri-devel@lists.freedesktop.org
Cc: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>,
	Oded Gabbay <ogabbay@kernel.org>,
	Jeffrey Hugo <quic_jhugo@quicinc.com>,
	Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Subject: [PATCH 3/4] accel/ivpu: Set dma max_segment_size
Date: Thu,  2 Feb 2023 10:21:13 +0100	[thread overview]
Message-ID: <20230202092114.2637452-4-stanislaw.gruszka@linux.intel.com> (raw)
In-Reply-To: <20230202092114.2637452-1-stanislaw.gruszka@linux.intel.com>

Avoid below spurious warning:

[  264.844029] DMA-API: intel_vpu 0000:00:0b.0: mapping sg segment longer than device claims to support [len=143360] [max=65536]
[  264.844038] WARNING: CPU: 0 PID: 1254 at kernel/dma/debug.c:1160 debug_dma_map_sg+0x6ca/0xb70

Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
---
 drivers/accel/ivpu/ivpu_drv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/accel/ivpu/ivpu_drv.c b/drivers/accel/ivpu/ivpu_drv.c
index 70c104851c6d..231f29bb5025 100644
--- a/drivers/accel/ivpu/ivpu_drv.c
+++ b/drivers/accel/ivpu/ivpu_drv.c
@@ -428,6 +428,7 @@ static int ivpu_pci_init(struct ivpu_device *vdev)
 		ivpu_err(vdev, "Failed to set DMA mask: %d\n", ret);
 		return ret;
 	}
+	dma_set_max_seg_size(vdev->drm.dev, UINT_MAX);
 
 	/* Clear any pending errors */
 	pcie_capability_clear_word(pdev, PCI_EXP_DEVSTA, 0x3f);
-- 
2.25.1


  parent reply	other threads:[~2023-02-02  9:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-02  9:21 [PATCH 0/4] accel/ivpu: Fixes for 6.3 Stanislaw Gruszka
2023-02-02  9:21 ` [PATCH 1/4] accel/ivpu: Fix FW API data alignment issues Stanislaw Gruszka
2023-02-02 15:04   ` Jeffrey Hugo
2023-02-03  8:05     ` Jacek Lawrynowicz
2023-02-03 14:58       ` Jeffrey Hugo
2023-02-02  9:21 ` [PATCH 2/4] accel/ivpu: Send VPU_JSM_MSG_CONTEXT_DELETE when deleting context Stanislaw Gruszka
2023-02-02 15:05   ` Jeffrey Hugo
2023-02-02  9:21 ` Stanislaw Gruszka [this message]
2023-02-02 15:05   ` [PATCH 3/4] accel/ivpu: Set dma max_segment_size Jeffrey Hugo
2023-02-02  9:21 ` [PATCH 4/4] accel/ivpu: Fix old dma_buf api usage Stanislaw Gruszka
2023-02-02 15:06   ` Jeffrey Hugo
2023-02-06  8:34 ` [PATCH 0/4] accel/ivpu: Fixes for 6.3 Jacek Lawrynowicz

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=20230202092114.2637452-4-stanislaw.gruszka@linux.intel.com \
    --to=stanislaw.gruszka@linux.intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jacek.lawrynowicz@linux.intel.com \
    --cc=ogabbay@kernel.org \
    --cc=quic_jhugo@quicinc.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.