Skip to content

Conversation

@schythanyaku
Copy link

NVIDIA: SAUCE: MEDIATEK: pinctrl: mediatek: Add EINT Driver for CX7 hot plug on DGX Spark

This driver is used to manage PCIe link for NVIDIA ConnectX-7 (CX7)
hot-plug/unplug on DGX Spark. We need to disable PCIe link when
CX7 cable plug out happens and enable PCIe link when
CX7 cable plug in happens.

It also creates a sysfs entry to emulate cable plug in/out
behavior as below:

plug in - echo 1 > /sys/devices/platform/MTKP0001:00/cx7_dbg/plugin
plug out - echo 0 > /sys/devices/platform/MTKP0001:00/cx7_dbg/plugin

We also implement uevent to notify user-space applications when a
cable is plugged in or removed. Below are the details of our process:

  • cable plug-in:
    Report plug-in uevent (driver)
    Power on CX7
    Enable PCIe link (application)
    Rescan CX7 devices (application)

  • cable removal:
    Report removal uevent (driver)
    Remove CX7 devices (application)
    Disable PCIe link (application)
    Power off CX7

Signed-off-by: Vaibhav Vyas [email protected]
Signed-off-by: Jerry.Guo [email protected]
Signed-off-by: Yenchia Chen [email protected]
Signed-off-by: Shubhi Garg [email protected]
Signed-off-by: Abhishek Sahu [email protected]
Signed-off-by: Surabhi Chythanya Kumar [email protected]

Abdur Rahman and others added 30 commits October 9, 2025 13:04
…idia

Ignore: yes
Signed-off-by: Jacob Martin <[email protected]>
(cherry picked from commit 1a32c7f)

(cherry picked from commit 1a32c7f noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
Add support for exposing rprovides data for standalone modules
too. Switch to exposing provides as a shared debian/substvar file
and use that in the templates.

Ignore: yes
Signed-off-by: Brad Figg <[email protected]>
Signed-off-by: Ian May <[email protected]>
(cherry picked from commit afacdda noble:linux-nvidia/main-next)
Signed-off-by: Jacob Martin <[email protected]>
(cherry picked from commit 52ba185)

(cherry picked from commit 52ba185 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
When nvidia-fs-dkms is available as a dkms package, we want to
default to using the signed modules if possible.  Adding
a version number for the nvidia-fs modules package enables the inbox
modules to be selected over an equivalent dkms version.

Ignore: yes
Signed-off-by: Ian May <[email protected]>
(cherry picked from commit 607379d noble:linux-nvidia/main-next)
Signed-off-by: Jacob Martin <[email protected]>
(cherry picked from commit f6927df)

(cherry picked from commit f6927df noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
…nvidia kernels

BugLink: https://bugs.launchpad.net/bugs/2060327

Signed-off-by: Brad Figg <[email protected]>
Acked-by: Brad Figg <[email protected]>
Signed-off-by: Ian May <[email protected]>
[jacobmartin: Add note to changed configs]
Signed-off-by: Jacob Martin <[email protected]>

(cherry picked from commit 9b2615a noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
…ations

BugLink: https://bugs.launchpad.net/bugs/2060327

Signed-off-by: Brad Figg <[email protected]>
Acked-by: Brad Figg <[email protected]>
Signed-off-by: Ian May <[email protected]>
[jacobmartin: Add annotations note for changed configs]
Signed-off-by: Jacob Martin <[email protected]>

(cherry picked from commit 3d31ea0 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
Ignore: yes
Signed-off-by: Jacob Martin <[email protected]>
(cherry picked from commit 448ddcb)

(cherry picked from commit 448ddcb noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2059316

Signed-off-by: dann frazier <[email protected]>
Acked-by: Brad Figg <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off-by: Brad Figg <[email protected]>
Signed-off-by: Jacob Martin <[email protected]>

(cherry picked from commit 058e71a noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2061930
BugLink: https://bugs.launchpad.net/bugs/2067106

There are systems in production that don't have
firmware that supports coresight_etm4x.  Instead of
removing completely, blacklist coresight_etm4x so
systems with the correct firmware can use the module.

Signed-off-by: Ian May <[email protected]>
Signed-off-by: Jamie Nguyen <[email protected]>
Acked-by: Brad Figg <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off-by: Brad Figg <[email protected]>
Signed-off-by: Jacob Martin <[email protected]>
(backported from commit 217d1ae
noble:linux-nvidia-6.14)
[maskedarray: adjusted context]
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2067111

Nvidia provide a way to flash the UEFI via capsule loader in arm64.
CAPSULE_LOADER is also built-in in L4T kernel so for the easy use,
need to make CAPSULE_LOADER as built-in in arm64.

Nvidia-BugLink: https://nvbugspro.nvidia.com/bug/4601764

Signed-off-by: Brad Figg <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Acked-by: Noah Wager <[email protected]>
(cherry picked from commit efbc80a noble:linux-nvidia-6.11)
Signed-off-by: Jacob Martin <[email protected]>
(cherry picked from commit 58d6077)

(cherry picked from commit 58d6077 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2084598

Set the following configs on x86 and arm64:

CONFIG_MANA_INFINIBAND=m
CONFIG_MICROSOFT_MANA=m

Signed-off-by: Jacob Martin <[email protected]>
Acked-by: Brad Figg <[email protected]>
Acked-by: John Cabaj <[email protected]>
Acked-by: Guoqing Jiang <[email protected]>
(cherry picked from commit 59264e6 noble:linux-nvidia-6.11)
Signed-off-by: Jacob Martin <[email protected]>
(cherry picked from commit ba2531f)

(cherry picked from commit ba2531f noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2095028

Signed-off-by: Ankit Agrawal <[email protected]>
(cherry picked from commit d4223d6db2896ec510bfc57cf018010d07ff3659 nvidia/kstable/dev/nic/iommufd_vsmmu-12122024)
Signed-off-by: Koba Ko <[email protected]>
Acked-by: Matt Ochs <[email protected]>
Acked-by: Brad Figg <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off-by: Brad Figg <[email protected]>
(cherry picked from commit 1eb0541 noble:linux-nvidia-6.11)
Signed-off-by: Jacob Martin <[email protected]>

(cherry picked from commit 0380bee noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2095028

This is used for GPU memory mapping. The solution is a WAR while waiting
for the upstream solution that would use dmabuf to map the entire range
in a single sequence.

Related topics:
https://lore.kernel.org/kvm/[email protected]/
https://lore.kernel.org/kvm/[email protected]/

Signed-off-by: Ankit Agrawal <[email protected]>
(cherry picked from commit d3d7b64f1a3274e5df04dee1a8062f54a3fa1116 nvidia/kstable/dev/nic/iommufd_vsmmu-12122024)
Signed-off-by: Koba Ko <[email protected]>
Acked-by: Matt Ochs <[email protected]>
Acked-by: Brad Figg <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off-by: Brad Figg <[email protected]>
(cherry picked from commit 15e066a noble:linux-nvidia-6.11)
Signed-off-by: Jacob Martin <[email protected]>

(cherry picked from commit 8fcaed8 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
… virtualization

BugLink: https://bugs.launchpad.net/bugs/2095028

This adds the following config options to annotations:

            CONFIG_ARM_SMMU_V3_IOMMUFD=y
            CONFIG_IOMMUFD_DRIVER_CORE=y
            CONFIG_IOMMUFD_VFIO_CONTAINER=y
            CONFIG_NVGRACE_GPU_VFIO_PCI=m
            CONFIG_VFIO_CONTAINER=n
            CONFIG_VFIO_IOMMU_TYPE1=-
            CONFIG_TEGRA241_CMDQV=n

For CMA size requirements, the 64K kernel configuration needs 640MB
in the worst-case scenario, while the 4K kernel configuration requires 40MB.
Due to the current CMA alignment requirement of 512MB on 64k kernel and
128MB on 4k kernel, use each as default
            For 64k kernel, CONFIG_CMA_SIZE_MBYTES=1024
            For 4k kernel, CONFIG_CMA_SIZE_MBYTES=128

These config options has been defined in debian.master
            CONFIG_IOMMUFD=m
            CONFIG_IOMMU_IOPF=y

Signed-off-by: Matthew R. Ochs <[email protected]>
Acked-by: Kai-Heng Feng <[email protected]>
Acked-by: Koba Ko <[email protected]>
Signed-off-by: Matthew R. Ochs <[email protected]>
(backported from commit 35a55f3 24.04_linux-nvidia-adv-6.8-next)
Signed-off-by: Koba Ko <[email protected]>
Acked-by: Matt Ochs <[email protected]>
Acked-by: Brad Figg <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off-by: Brad Figg <[email protected]>
(backported from commit 1314cf0 noble:linux-nvidia-6.11)
Signed-off-by: Jacob Martin <[email protected]>

(cherry picked from commit d09b7e2 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2100032

Signed-off-by: Jamie Nguyen <[email protected]>
Acked-by: Brad Figg <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Abdur Rahman <[email protected]>
Signed-off-by: Brad Figg <[email protected]>
(backported from commit 520d535 noble:linux-nvidia-6.11)
Signed-off-by: Jacob Martin <[email protected]>

(cherry picked from commit 88d6a61 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2096888

Add ACPI support to 8250_mtk driver. This makes it possible to
use UART on ARM-based desktops with EDK2 UEFI firmware.

Acked-by: Brad Figg <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off-by: Brad Figg <[email protected]>
(cherry picked from commit 4647186 noble:linux-nvidia-6.11)
Signed-off-by: Jacob Martin <[email protected]>

(cherry picked from commit d73760e noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2096882

Acked-by: Brad Figg <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off-by: Brad Figg <[email protected]>
(backported from commit a99eb0f noble:linux-nvidia-6.11)
[jacobmartin: Drop addition of 13d3:3604 already added by upstream
commit f9685f3 ("Bluetooth: btusb: Add MediaTek MT7925-B22M support
ID 0x13d3:0x3604"). Drop driver_info flag "BTUSB_VALID_LE_STATES" as it
was inverted by upstream commit 0fec656 ("Bluetooth: btusb: Invert
LE State flag to set invalid rather then valid")]
Signed-off-by: Jacob Martin <[email protected]>
(backported from commit a1d77cd
noble:linux-nvidia-6.14)
[maskedarray: adjusted context]
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2097644

Change-Id: If350ab71297d6d4f44f90b45cae2d11095f513f1
Acked-by: Brad Figg <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off-by: Brad Figg <[email protected]>
(cherry picked from commit 24141ec noble:linux-nvidia-6.11)
Signed-off-by: Jacob Martin <[email protected]>

(cherry picked from commit 16f90f4 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
…eam low power

BugLink: https://bugs.launchpad.net/bugs/2107509

Add a quirk to avoid U1 and U2 low power state operations
during bulk stream transfers.

Change-Id: Iaff484625eca6708713d0c2acaeddfc1103ac7d2
Signed-off-by: Us Chien <[email protected]>
Signed-off-by: Yenchia Chen <[email protected]>
Signed-off-by: Terje Bergstrom <[email protected]>
Acked-by: Brad Figg <[email protected]>
Acked-by: Matt Ochs <[email protected]>
Acked-by: Jamie Nguyen <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off-by: Brad Figg <[email protected]>
(cherry picked from commit 07399e8 noble:linux-nvidia-6.11)
Signed-off-by: Jacob Martin <[email protected]>
(backported from commit e521e80)
[maskedarray: changed the XHCI_NVIDIA_MT8901_HOST quirk bit value
to 51]
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2107509

Add quirk function to skip pcie secondary bus reset. PCIe link in
occasionally(1/300 fail rate) drop to lower link width (ex. 4 lane
drops to 2 lane or less) when secondary bus reset is applied. This
happens because CDR lock is lost randomly due to mismatch between
RC & EP speed (ex. RC in Gen1 and EP in Gen5).

Signed-off-by: Jerry.Guo <[email protected]>
Signed-off-by: Aaron Plattner <[email protected]>
Acked-by: Brad Figg <[email protected]>
Acked-by: Matt Ochs <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off-by: Brad Figg <[email protected]>
(cherry picked from commit 37019a1 noble:linux-nvidia-6.11)
Signed-off-by: Jacob Martin <[email protected]>

(cherry picked from commit d87e223 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Abdur Rahman <[email protected]>

(cherry picked from commit eedba63 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2109635

Take out the sbsa_gwdt from the blacklist for nvidia kernel.

Signed-off-by: Carol L Soto <[email protected]>
Acked-by: Jamie Nguyen <[email protected]>
Acked-by: Matt Ochs <[email protected]>
Acked-by: Brad Figg <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off-by: Brad Figg <[email protected]>
(cherry picked from commit 1d0290f87960efd7e98fc3f7456ab08c2b5d3302 noble:linux-nvidia-6.11)
Signed-off-by: Jacob Martin <[email protected]>
(cherry picked from commit 0759048)

(cherry picked from commit 0759048 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
Rust is only supported on primary kernels.
Ignore: yes

Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2109730

Realtek R8127 driver can be downloaded from
https://www.realtek.com/Download/List?cate_id=584

Where it is maintained as out of tree module.

This patch adds the extracted content of r8127-11.014.00.tar.bz2 in
the folder drivers/net/ethernet/realtek/r8127.

4bd62fc87de32760fb1f3b9cd3ec14e933035623  r8127-11.014.00.tar.bz2

All the clean-up, makefile and Kconfig related changes will be
done in the subsequent commits. The source code contains a GPL2
compatible license. All the license information and Realtek
copyright notice will be maintained in each file and newly added files.

Signed-off-by: Abhishek Sahu <[email protected]>
Acked-by: Matt Ochs <[email protected]>
Acked-by: Carol L Soto <[email protected]>
Acked-by: Ian May <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Acked-by: Noah Wager <[email protected]>
Signed-off-by: Ian May <[email protected]>
(cherry picked from commit 7faf7ac noble:linux-nvidia-6.11)
Signed-off-by: Jacob Martin <[email protected]>

(cherry picked from commit e45f1b7 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2109730

These files are not needed to build r8127 as part of kernel
source code build, so removed these non required files.

Signed-off-by: Abhishek Sahu <[email protected]>
Acked-by: Matt Ochs <[email protected]>
Acked-by: Carol L Soto <[email protected]>
Acked-by: Ian May <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Acked-by: Noah Wager <[email protected]>
Signed-off-by: Ian May <[email protected]>
(cherry picked from commit 063d338 noble:linux-nvidia-6.11)
Signed-off-by: Jacob Martin <[email protected]>

(cherry picked from commit 712fc60 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2109730

This commit moved all files from src folder to parent folder itself.

Signed-off-by: Abhishek Sahu <[email protected]>
Acked-by: Matt Ochs <[email protected]>
Acked-by: Carol L Soto <[email protected]>
Acked-by: Ian May <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Acked-by: Noah Wager <[email protected]>
Signed-off-by: Ian May <[email protected]>
(cherry picked from commit a5fe39b noble:linux-nvidia-6.11)
Signed-off-by: Jacob Martin <[email protected]>

(cherry picked from commit 1802cd3 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2109730

In the original code, r8127 driver was build as out of tree module.
This commit adds Kconfig and updates Makefile for building it
with kernel build.

r8127 driver internally uses different config flags and these are set
through EXTRA_CFLAGS.  These config flags are now set in the Makefile
with ccflags-y. All the flags, that were getting enabled by default in
the original code, have been enabled in ccflags-y. This commit is not
enabling any extra flags.

Some of the files compilation are dependent upon a particular flag.
Now, only default flags are set, so these files will become unused,
This commit has removed these files.

Signed-off-by: Terje Bergstrom <[email protected]>
Signed-off-by: Abhishek Sahu <[email protected]>
Acked-by: Matt Ochs <[email protected]>
Acked-by: Carol L Soto <[email protected]>
Acked-by: Ian May <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Acked-by: Noah Wager <[email protected]>
Signed-off-by: Ian May <[email protected]>
(backported from commit 04ea6d0 noble:linux-nvidia-6.11)
[jacobmartin: adjust context around RTASE definitions introduced in
K6.14]
Signed-off-by: Jacob Martin <[email protected]>

(cherry picked from commit 6217fea noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
…127 module

BugLink: https://bugs.launchpad.net/bugs/2109730

Signed-off-by: Abhishek Sahu <[email protected]>
Acked-by: Matt Ochs <[email protected]>
Acked-by: Carol L Soto <[email protected]>
Acked-by: Ian May <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Acked-by: Noah Wager <[email protected]>
Signed-off-by: Ian May <[email protected]>
(cherry picked from commit 59db394 noble:linux-nvidia-6.11)
Signed-off-by: Jacob Martin <[email protected]>
(cherry picked from commit aaa5490)

(cherry picked from commit aaa5490 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
…ions

BugLink: https://bugs.launchpad.net/bugs/2095028

Drop "CONFIG_TEGRA241_CMDQV=n" -- we had turned it off in 6.11 as we thought
not all support was in place.

Signed-off-by: Jamie Nguyen <[email protected]>
Acked-by: Carol L Soto <[email protected]>
Acked-by: Matt Ochs <[email protected]>
Signed-off-by: Brad Figg <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Acked-by: Noah Wager <[email protected]>
Signed-off-by: Jacob Martin <[email protected]>

(cherry picked from commit ea6f443 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
nirmoy and others added 17 commits October 9, 2025 13:04
BugLink: https://bugs.launchpad.net/bugs/2119656

Add CONFIG_NVGRACE_EGM with policy 'm' for arm64 architecture.

Signed-off-by: Nirmoy Das <[email protected]>
Acked-by: Carol L Soto <[email protected]>
Acked-by: Matt Ochs <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off--by: Brad Figg <[email protected]>

(cherry picked from commit ddf68d0 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2119656

On platforms without the mig HW bug (e.g. Grace-Blackwell) there is not a
requirement to create the resmem region. Accordingly, this region is not
configured on these platforms, which leads to the following print when the
device is closed:

resource: Trying to free nonexistent resource <0x0000000000000000-0x000000000000ffff>

Avoid calling unregister_pfn_address_space for resmem when the region is
not being used.

Fixes: 2d21b7b ("vfio/nvgrace-gpu: register device memory for poison handling")

Signed-off-by: Matthew R. Ochs <[email protected]>
Acked-by: Carol L. Soto <[email protected]>
Acked-by: Nirmoy Das <[email protected]>
Signed-off-by: Matthew R. Ochs <[email protected]>
(cherry picked from commit bd0187d https://github.com/NVIDIA/NV-Kernels/tree/24.04_linux-nvidia-adv-6.11-next)
Signed-off-by: Nirmoy Das <[email protected]>
Acked-by: Carol L Soto <[email protected]>
Acked-by: Matt Ochs <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off--by: Brad Figg <[email protected]>

(cherry picked from commit 87b2a68 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2119656

Commit 222675c ("irqchip: Have CONFIG_IRQ_MSI_IOMMU be selected by irqchips that need it")
changed the behavior of CONFIG_IRQ_MSI_IOMMU to a dynamic selection, so
it might not always be needed by amd64 builds.

Signed-off-by: Matthew R. Ochs <[email protected]>
Acked-by: Carol L Soto <[email protected]>
Acked-by: Matt Ochs <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off--by: Brad Figg <[email protected]>

(cherry picked from commit c7c7b21 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2119687

Enable MBSSID support for MT7925 by setting the
appropriate capability to the firmware.

This patch is backported from
https://lore.kernel.org/linux-wireless/[email protected]/

Signed-off-by: Ming Yen Hsieh <[email protected]>
Signed-off-by: Abhishek Sahu <[email protected]>
Acked-by: Matthew R. Ochs <[email protected]>
Acked-by: Carol L Soto <[email protected]>
Acked-by: Abdur Rahman <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off--by: Brad Figg <[email protected]>

(cherry picked from commit dd0840c noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
…DEFAULT_DMA_LAZY

BugLink: https://bugs.launchpad.net/bugs/2119661

Nvidia CPU SMMU supports passthrough and lazy IOMMU mode so set lazy
mode as default for better performance.

Signed-off-by: Nirmoy Das <[email protected]>
Acked-by: Carol L Soto <[email protected]>
Acked-by: Matthew R. Ochs <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off--by: Brad Figg <[email protected]>

(cherry picked from commit 6318c8c noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
…on amd64

BugLink: https://bugs.launchpad.net/bugs/2028576

The bug indicates NVIDIA wanted to enable the performance governor by
default on all arches for the NVIDIA kernels. However, this was
mistakenly only configured for arm64 systems. Fix this by also using the
performance CPU frequency governor as the default on amd64 systems.

Signed-off-by: Jacob Martin <[email protected]>
(cherry picked from commit a530411)

(cherry picked from commit a530411 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2121451

pci_acpi_preserve_config() leaks memory by returning early without freeing
the ACPI object on success. Fix that by always freeing the obj, which is
not needed by the caller.

Fixes: 9d7d5db ("PCI: Move PRESERVE_BOOT_CONFIG _DSM evaluation to pci_register_host_bridge()")
Signed-off-by: Nirmoy Das <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Link: https://patch.msgid.link/[email protected]
(cherry picked from commit dab2c5f9399591a50f9e9746fca6bb47f6ac04ae pci/misc)
Signed-off-by: Nirmoy Das <[email protected]>
Acked-by: Carol L Soto <[email protected]>
Acked-by: Matthew R. Ochs <[email protected]>
Acked-by: Noah Wager <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Signed-off--by: Brad Figg <[email protected]>

(cherry picked from commit a1e5234 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2121544

GB300 is NVIDIA's Grace Blackwell Ultra Superchips with B300 GPU.

Add the B300 SKU device-id to nvgrace_gpu_vfio_pci_table.

Signed-off-by: Tushar Dave <[email protected]>
Acked-by: Carol L Soto <[email protected]>
Acked-by: Matthew R. Ochs <[email protected]>
Acked-by: Nirmoy Das <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Acked-by: Abdur Rahman <[email protected]>
Signed-off--by: Brad Figg <[email protected]>

(cherry picked from commit 47c8566 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2123861

In nvidia_ffa_create_notifications(), it invokes
nvidia_ffa_fill_notification_map(), which fills the virtual notification
IDs array supported by the current FFA device. This function updates
notification_count after traversing the notification array in the _DSD
method. For FFA devices without an entry in the _DSD method,
notification_count is assumed to be zero initialized.

However, nvidia_ffa_ec_service_probe() uses kmalloc() instead of kzalloc(),
so notification_count may contain random values. This causes FFA device
probe failures.

This patch fixes this by using kzalloc() to zero initialize the
nvidia_ec_ffa_device structure.

Fixes: ae87187 ("NVIDIA: SAUCE: Add support for notifications from secure EC services")
Signed-off-by: Abhishek Sahu <[email protected]>
Acked-by: Matthew R. Ochs <[email protected]>
Acked-by: Nirmoy Das <[email protected]>
Acked-by: Carol L Soto <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Acked-by: Abdur Rahman <[email protected]>
Signed-off--by: Brad Figg <[email protected]>

(cherry picked from commit 518a89b noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
…PORTLI value

BugLink: https://bugs.launchpad.net/bugs/2125126

For DIGITS GB10, USB SuperSpeed Plus Gen2x1 device enumeration speed is
being shown as Gen2x2 in the dmesg log.

  usb 4-1: new SuperSpeed Plus Gen 2x2 USB device number 2 using xhci-hcd

The USB3 link lanes count is recorded in the read-only
TLC and RLC fields of the PORTLI register. In MT89xx SoCs (used by GB10),
the lane count can be wrongly set to 2 instead of 1 for USB Gen2x1
devices due to HW Bug. As per Table 7-13 in USB xHCI revision 1.2
specification, the value 0x5 is for SuperSpeedPlus Gen2x1.

This patch adds a SW WAR to read the port speed in PORTSC register.
If port speed value is 0x5, then the lane count can be updated to 1.

Signed-off-by: Us Chien <[email protected]>
Signed-off-by: Abhishek Sahu <[email protected]>
Acked-by: Carol L Soto <[email protected]>
Acked-by: Kai-Heng Feng <[email protected]>
Acked-by: Matthew R. Ochs <[email protected]>
Acked-by: Jacob Martin <[email protected]>
Acked-by: Abdur Rahman <[email protected]>
Signed-off--by: Brad Figg <[email protected]>

(cherry picked from commit b5b3a58 noble:linux-nvidia-6.14)
Signed-off-by: Abdur Rahman <[email protected]>
Ignore: yes
Signed-off-by: Abdur Rahman <[email protected]>
Ignore: yes
Signed-off-by: Jacob Martin <[email protected]>
BugLink: https://bugs.launchpad.net/bugs/2127212
Properties: no-test-build
Signed-off-by: Jacob Martin <[email protected]>
As of 6.17 this flag is unused, so drop references to it to satisfy the
cranky close linter.

Ignore: yes
Signed-off-by: Jacob Martin <[email protected]>
@schythanyaku
Copy link
Author

Summary:
This PR includes the same changes as PR #220 , but targets the 24.04_linux-nvidia-6.17-next branch.

Details:
No code changes have been made compared to PR #220 , the only difference is the target branch.

Purpose:
To apply the changes from PR #220 to the 24.04_linux-nvidia-6.17-next branch.

Copy link
Collaborator

@nvmochs nvmochs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One tiny nit: There is one difference between the commit message from 6.14 and 6.17, "pcie vs. PCIe". Please use "PCIe" in the 6.17 commit message as well.

Other than that...

Acked-by: Matthew R. Ochs <[email protected]>

…ot plug on DGX Spark

This driver is used to manage PCIe link for NVIDIA ConnectX-7 (CX7)
hot-plug/unplug on DGX Spark. We need to disable PCIe link when
CX7 cable plug out happens and enable PCIe link when
CX7 cable plug in happens.

It also creates a sysfs entry to emulate cable plug in/out
behavior as below:

plug in - echo 1 > /sys/devices/platform/MTKP0001:00/cx7_dbg/plugin
plug out - echo 0 > /sys/devices/platform/MTKP0001:00/cx7_dbg/plugin

We also implement uevent to notify user-space applications when a
cable is plugged in or removed. Below are the details of our process:

* cable plug-in:
    Report plug-in uevent (driver)
    Power on CX7
    Enable PCIe link (application)
    Rescan CX7 devices (application)

* cable removal:
    Report removal uevent (driver)
    Remove CX7 devices (application)
    Disable PCIe link (application)
    Power off CX7

Signed-off-by: Vaibhav Vyas <[email protected]>
Signed-off-by: Jerry.Guo <[email protected]>
Signed-off-by: Yenchia Chen <[email protected]>
Signed-off-by: Shubhi Garg <[email protected]>
Signed-off-by: Abhishek Sahu <[email protected]>
Signed-off-by: Surabhi Chythanya Kumar <[email protected]>
@schythanyaku schythanyaku force-pushed the 6.17_eint_cx7_hp_driver_Oct28 branch from 028ffe6 to fc83c59 Compare October 29, 2025 00:00
@schythanyaku
Copy link
Author

One tiny nit: There is one difference between the commit message from 6.14 and 6.17, "pcie vs. PCIe". Please use "PCIe" in the 6.17 commit message as well.

Other than that...

Acked-by: Matthew R. Ochs <[email protected]>

Ah, Thanks! Updated the commit message.

Copy link
Collaborator

@clsotog clsotog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acked-by: Carol L Soto <[email protected]>

@ianm-nv
Copy link
Collaborator

ianm-nv commented Oct 29, 2025

PR sent to CKT

@nvidia-bfigg nvidia-bfigg force-pushed the 24.04_linux-nvidia-6.17-next branch 2 times, most recently from 8dd504a to 1700b31 Compare November 18, 2025 14:34
@nvidia-bfigg nvidia-bfigg force-pushed the 24.04_linux-nvidia-6.17-next branch 2 times, most recently from c7fca69 to 6a9a932 Compare December 18, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.