Skip to content

Commit d3f9e5e

Browse files
atrivedi-tsavoritesiAshish Trivedi
andauthored
Ssd patch (#5)
* @FIR-204: Fix NVME changes and pushed into a repo These changes are based off of what works in Meera's repo * @FIR-204: Remove print debug statements before main branch push This change picks up Meera's working image and is ready for main branch The change consistent of validating Meera's SSD changes work and we are forcing the IO Queues to 4 and are applying these boot params ; bridge enable 7; md 0xffd11028 1 ; mw 0xffd11028 0x00021ffe ; mw 0xffc03204 0x000c0000; ; mw 0xffc03200 0x00000000; mw 0xffc03304 0x00000013; mw 0xffc03300 0x00000010; ; setenv bootargs " ${bootargs} nvme_core.default_ps_max_latency_us=0 pcie_aspm=off nvme_core.io_timeout=60 nvme.poll_queues=4 pci=nomsi " ; run nandfitload; run nandfitboot; * @FIR-204: Added changes to remove drivers/pci/controller/pcie-altera.c --------- Co-authored-by: Ashish Trivedi <[email protected]>
1 parent 96acbd0 commit d3f9e5e

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

arch/arm64/boot/dts/intel/socfpga_agilex_bittware.dts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@
183183

184184
/*&pcie_0_pcie_aglx {
185185
status = "okay";
186-
compatible = "altr,pcie-root-port-3.0-f-tile";
187-
};*/
186+
compatible = "altr,pcie-root-port-3.0-f-tile";*/
187+
/* interrupts = <0 0 0>; */
188+
/* interrupts = <32 IRQ_TYPE_LEVEL_HIGH>;
189+
interupt_parent = <&intc>; */
190+
/*};*/
188191

arch/arm64/boot/dts/intel/socfpga_agilex_pcie_root_port.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
interrupt-controller;
2828
#interrupt-cells = <0x1>;
2929
device_type = "pci";
30+
max-link-speed = <2>; /* MM addded */
3031
bus-range = <0x0000000 0x000000ff>;
3132
ranges = <0x82000000 0x00000000 0x00100000 0x00000000 0x10000000 0x00000000 0x0ff00000>;
3233
msi-parent = <&pcie_0_msi_irq>;

arch/arm64/configs/defconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,3 +1598,9 @@ CONFIG_MEMTEST=y
15981598
CONFIG_STRICT_DEVMEM=n
15991599
CONFIG_IO_STRICT_DEVMEM=n
16001600
CONFIG_HUGETLB_PAGE=y
1601+
##MM includes
1602+
CONFIG_BLK_DEV_NVME=y
1603+
CONFIG_NVME_MULTIPATH=y
1604+
CONFIG_NVME_VERBOSE_ERRORS=y
1605+
#CONFIG_NVME_HWMON=y
1606+
#CONFIG_NVME_FC=y

drivers/nvme/host/core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2320,7 +2320,8 @@ int nvme_enable_ctrl(struct nvme_ctrl *ctrl)
23202320
if (ret)
23212321
return ret;
23222322
return nvme_wait_ready(ctrl, NVME_CSTS_RDY, NVME_CSTS_RDY,
2323-
(timeout + 1) / 2, "initialisation");
2323+
(timeout + 1) * 2, "initialisation");
2324+
/*MM : PATCH (timeout + 1) / 2, "initialisation"); */
23242325
}
23252326
EXPORT_SYMBOL_GPL(nvme_enable_ctrl);
23262327

drivers/nvme/host/pci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,6 +2270,7 @@ static int nvme_setup_io_queues(struct nvme_dev *dev)
22702270
dev->nr_poll_queues = poll_queues;
22712271

22722272
nr_io_queues = dev->nr_allocated_queues - 1;
2273+
nr_io_queues = 4;
22732274
result = nvme_set_queue_count(&dev->ctrl, &nr_io_queues);
22742275
if (result < 0)
22752276
return result;

0 commit comments

Comments
 (0)