All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* smartpqi cannot change IRQ smp_affinity
@ 2021-06-30 20:17 Jesper Dangaard Brouer
  2021-06-30 20:56 ` Don.Brace
  0 siblings, 1 reply; 3+ messages in thread
From: Jesper Dangaard Brouer @ 2021-06-30 20:17 UTC (permalink / raw
  To: Christoph Hellwig; +Cc: Don Brace, linux-scsi

Hi Hellwig and Don,


On driver smartpqi I cannot change smp_affinity and smp_affinity_list 
entries.

It was suppose to be fixed by this patch: 
https://patchwork.kernel.org/project/linux-scsi/patch/154422179851.1218.10349207247849277036.stgit@brunhilda/

I can see that Hellwig added back PCI_IRQ_AFFINITY flag in commit 
5219822687be ("scsi: smartpqi: switch to pci_alloc_irq_vectors").


Is there another way I can control which CPU that process IRQs from the 
disk controller?

--Jesper

(lspci output below)

b2:00.0 Serial Attached SCSI controller: Adaptec Smart Storage PQI SAS 
(rev 01)

         Kernel driver in use: smartpqi
         Kernel modules: smartpqi



^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: smartpqi cannot change IRQ smp_affinity
  2021-06-30 20:17 smartpqi cannot change IRQ smp_affinity Jesper Dangaard Brouer
@ 2021-06-30 20:56 ` Don.Brace
  2021-06-30 21:33   ` Jesper Dangaard Brouer
  0 siblings, 1 reply; 3+ messages in thread
From: Don.Brace @ 2021-06-30 20:56 UTC (permalink / raw
  To: jbrouer, hch; +Cc: don.brace, linux-scsi

-----Original Message-----
From: Jesper Dangaard Brouer [mailto:jbrouer@redhat.com] 
Sent: Wednesday, June 30, 2021 3:17 PM
To: Christoph Hellwig <hch@infradead.org>
Cc: Don Brace <don.brace@microsemi.com>; linux-scsi@vger.kernel.org
Subject: smartpqi cannot change IRQ smp_affinity

Hi Hellwig and Don,


On driver smartpqi I cannot change smp_affinity and smp_affinity_list entries.

It was suppose to be fixed by this patch:
https://patchwork.kernel.org/project/linux-scsi/patch/154422179851.1218.10349207247849277036.stgit@brunhilda/

I can see that Hellwig added back PCI_IRQ_AFFINITY flag in commit 5219822687be ("scsi: smartpqi: switch to pci_alloc_irq_vectors").


Is there another way I can control which CPU that process IRQs from the disk controller?

--Jesper

(lspci output below)

b2:00.0 Serial Attached SCSI controller: Adaptec Smart Storage PQI SAS (rev 01)

         Kernel driver in use: smartpqi
         Kernel modules: smartpqi

Don:
Can you tell us what OS you are running and the driver version?
Output from uname -r and /sys/class/scsi_host/host4/driver_version
My system is using host4, it may be different on your system.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: smartpqi cannot change IRQ smp_affinity
  2021-06-30 20:56 ` Don.Brace
@ 2021-06-30 21:33   ` Jesper Dangaard Brouer
  0 siblings, 0 replies; 3+ messages in thread
From: Jesper Dangaard Brouer @ 2021-06-30 21:33 UTC (permalink / raw
  To: Don.Brace, jbrouer, hch; +Cc: don.brace, linux-scsi


On 30/06/2021 22.56, Don.Brace@microchip.com wrote:
> -----Original Message-----
> From: Jesper Dangaard Brouer [mailto:jbrouer@redhat.com]
> Sent: Wednesday, June 30, 2021 3:17 PM
> To: Christoph Hellwig <hch@infradead.org>
> Cc: Don Brace <don.brace@microsemi.com>; linux-scsi@vger.kernel.org
> Subject: smartpqi cannot change IRQ smp_affinity
>
> Hi Hellwig and Don,
>
>
> On driver smartpqi I cannot change smp_affinity and smp_affinity_list entries.
>
> It was suppose to be fixed by this patch:
> https://patchwork.kernel.org/project/linux-scsi/patch/154422179851.1218.10349207247849277036.stgit@brunhilda/
>
> I can see that Hellwig added back PCI_IRQ_AFFINITY flag in commit 5219822687be ("scsi: smartpqi: switch to pci_alloc_irq_vectors").
>
>
> Is there another way I can control which CPU that process IRQs from the disk controller?
>
> --Jesper
>
> (lspci output below)
>
> b2:00.0 Serial Attached SCSI controller: Adaptec Smart Storage PQI SAS (rev 01)
>
>           Kernel driver in use: smartpqi
>           Kernel modules: smartpqi
>
> Don:
> Can you tell us what OS you are running and the driver version?
> Output from uname -r and /sys/class/scsi_host/host4/driver_version
> My system is using host4, it may be different on your system.
>
Kernel version is v5.11.8 (self compiled from stable tree)

# grep -H . /sys/class/scsi_host/host0/driver_version
/sys/class/scsi_host/host0/driver_version:1.2.16-012

--Jesper


Other info:

# grep -H . /sys/class/scsi_host/host0/* 2> /dev/null
/sys/class/scsi_host/host0/active_mode:Initiator
/sys/class/scsi_host/host0/can_queue:1013
/sys/class/scsi_host/host0/cmd_per_lun:1013
/sys/class/scsi_host/host0/driver_version:1.2.16-012
/sys/class/scsi_host/host0/eh_deadline:off
/sys/class/scsi_host/host0/firmware_version:3.00-0
/sys/class/scsi_host/host0/host_busy:0
/sys/class/scsi_host/host0/lockup_action:[none] reboot panic
/sys/class/scsi_host/host0/model:E208i-a SR Gen10
/sys/class/scsi_host/host0/nr_hw_queues:12
/sys/class/scsi_host/host0/proc_name:smartpqi
/sys/class/scsi_host/host0/prot_capabilities:0
/sys/class/scsi_host/host0/prot_guard_type:0
/sys/class/scsi_host/host0/serial_number:PWDRD0FRHED160
/sys/class/scsi_host/host0/sg_prot_tablesize:0
/sys/class/scsi_host/host0/sg_tablesize:257
/sys/class/scsi_host/host0/state:running
/sys/class/scsi_host/host0/supported_mode:Initiator
/sys/class/scsi_host/host0/unchecked_isa_dma:0
/sys/class/scsi_host/host0/unique_id:156
/sys/class/scsi_host/host0/use_blk_mq:1
/sys/class/scsi_host/host0/vendor:HPE


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-30 21:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-30 20:17 smartpqi cannot change IRQ smp_affinity Jesper Dangaard Brouer
2021-06-30 20:56 ` Don.Brace
2021-06-30 21:33   ` Jesper Dangaard Brouer

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.