From nobody Fri Jan 19 17:17:40 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TGmX46JQqz56xP1; Fri, 19 Jan 2024 17:17:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TGmX43qStz4My8; Fri, 19 Jan 2024 17:17:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705684660; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6dajAqtSutdSpZqORy2E4utW+7zoDyKfJ2R8NQ3oWLQ=; b=uAGyV8lxgKn44Rig5c+jHfbDI88G4G9xT7YXehCz3G/jRnsyxWCORbRY1MC+VEKl5sbMwr tvN8Qt2MqRZmhwbiZuqkqRPcSXwiqPRRz9XL7JFgKuRPPaWkuo2NGfygGHfjKQ8sm904Dh saJM9GogKtPTg9WQb50Kr+k8qbwisyPaNa6thkADDT3kxxx3KNhOQp692saGKiOC4+1IGE Vg7g4ZNUW/htXMFVveVVulQljzj5wqPcaZ+jmIgGlKdPHEuMQye0+GDcbCuFTmZ6l3rf3B 5zCvhL7fa6dVzNdp1zgCE1LWXpoj0f2kfzcMuLT0c/989MEZuNvkiMD9Snt+TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705684660; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6dajAqtSutdSpZqORy2E4utW+7zoDyKfJ2R8NQ3oWLQ=; b=ldKIsz0flmJlO3+UhLHCLv5xb7ZdcrGuPJwVtifsU4988rAREq1g81m2XcR+dBAxd2dXqK zTSsfyvKRBckCrVVvMgbxePNuYO0eUWQ4wzRIJwVADxj3IR+EPzN0Yxn+4jBPKojewc3vt sxz5BoXBVxx9ahrEANuhP5CpdmoP0iWthRGdaVNB7xB5R6CVotjSDSHBZmFP3IZ5FfO5GH /cbG/afgRHAXxKx4U3ML/NB6AaDZKiLyK1gAdlb6/mUa7sk31SQMwdd/wITNF8kL4f81st xyFBHcg3nRuoRjf+2pWGTFKbYCimbFpzkD79k1MaQDhM4FfNFMX4SNABu5QKcw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705684660; a=rsa-sha256; cv=none; b=WgnYtm04U9RuE4xBIJtugGHdcrladJJUNy2IJk4pvCo8m3pgeQDk6I1g/o1sFojSosF67L kvuLe2t6ec9STmaqLqcjGqfBl16AmFryYTR4cbRbmCfNrlfUJ2GaqWelE2wQ4Bkyu3Tj6V 23ZcE2Ql4xDNvftPVrkqmllnhbCddhvtolWm8phxmUwqTZF6dceo4J8wVLrJE3XHvHXSe6 6pnLrkAPyb7iaRCvqUgbGOuqzwVJfZk2kBnmOJ1jvvlGWkZcIrqJPDyosiiRbc0Y7KOBfo JJLLxuouZyppHxJ37ihocv/D5QipXr2kVqMKu7KS3q7CkRjrvBBSedaNvG/nwQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TGmX42xYHz10cN; Fri, 19 Jan 2024 17:17:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40JHHeeN097243; Fri, 19 Jan 2024 17:17:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40JHHe0f097240; Fri, 19 Jan 2024 17:17:40 GMT (envelope-from git) Date: Fri, 19 Jan 2024 17:17:40 GMT Message-Id: <202401191717.40JHHe0f097240@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Motin Subject: git: c8afd30bdb6b - stable/14 - mpi3mr: Fix MAXPHYS usage List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mav X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: c8afd30bdb6b56186790f901f6d6a68d1848fd29 Auto-Submitted: auto-generated The branch stable/14 has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=c8afd30bdb6b56186790f901f6d6a68d1848fd29 commit c8afd30bdb6b56186790f901f6d6a68d1848fd29 Author: Alexander Motin AuthorDate: 2023-11-29 01:50:24 +0000 Commit: Alexander Motin CommitDate: 2024-01-19 17:16:50 +0000 mpi3mr: Fix MAXPHYS usage This usage is obsolete. Replace with maximum bus space size. maxphys will sort itself out at higher levels. Reviewed by: mav, jhb, imp Differential Revision: https://reviews.freebsd.org/D42605 (cherry picked from commit 4e6d128bd823e5b5d0b058f918c7036978a0e8bf) --- sys/dev/mpi3mr/mpi3mr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/mpi3mr/mpi3mr.c b/sys/dev/mpi3mr/mpi3mr.c index b54a1844b173..32cba394c7b4 100644 --- a/sys/dev/mpi3mr/mpi3mr.c +++ b/sys/dev/mpi3mr/mpi3mr.c @@ -4947,9 +4947,9 @@ mpi3mr_alloc_requests(struct mpi3mr_softc *sc) sc->dma_loaddr, /* lowaddr */ sc->dma_hiaddr, /* highaddr */ NULL, NULL, /* filter, filterarg */ - MAXPHYS,/* maxsize */ + BUS_SPACE_MAXSIZE, /* maxsize */ nsegs, /* nsegments */ - MAXPHYS,/* maxsegsize */ + BUS_SPACE_MAXSIZE_32BIT,/* maxsegsize */ BUS_DMA_ALLOCNOW, /* flags */ busdma_lock_mutex, /* lockfunc */ &sc->io_lock, /* lockarg */