Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Oct 2023 21:41:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 259541] [smartpqi] panic: Segment size is not aligned, in a call to bus_dmamap_load_ccb() from smartpqi_cam_action.
Message-ID:  <bug-259541-227-E6M7FMQ2qP@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-259541-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-259541-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259541

--- Comment #6 from commit-hook@FreeBSD.org ---
A commit in branch releng/14.0 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D0efd0d6fa7e0d713ea7e4e9a3e3ac7858=
475f707

commit 0efd0d6fa7e0d713ea7e4e9a3e3ac7858475f707
Author:     John Hall <john.hall@microchip.com>
AuthorDate: 2023-10-19 03:25:32 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-10-19 21:37:33 +0000

    smartpqi: Change alignment for dma tags

    Problem: Under certain I/O conditions, a program doing large block disk
    reads can cause a controller to crash.

    Root Cause: The SCSI read request and destination address in the BDMA
    descriptor is incorrect, causing the BDMA engine in the controller to
    assert.

    Fix: Change the alignment for creating bus_dma_tags in the driver from
    PAGE_SIZE (4k) to 1, which allows the controller to manage it's own
    address range for BDMA transactions.

    Risk: Medium

    Exposure: This reverts a change first made to support NVMe drives on
    Excalibur. At that time a 4k alignment was necessary. This no longer
    seems to be the case.

    PR: 259541
    Reported by: Ka Ho Ng <khng@freebsd.org>
    Reviewed by: imp
    Differential Revision:  https://reviews.freebsd.org/D41619

    (cherry picked from commit f07b267d8cc87e88be3c78aa69504b5ebc6571ee)
    (cherry picked from commit 01619a8fafcfd99d1811b2c14a92bac1a48c6d31)
    Approved-by: re (gjb)

 sys/dev/smartpqi/smartpqi_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259541-227-E6M7FMQ2qP>