MIPS: Add MSI support for XLP9XX
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines · Linux Kernel
Gitweb: http://git.kernel.org/linus/;a=commit;h=d66f3f0e10b49df8d0cc0d8eb5bf2ef9863a33cf Commit: d66f3f0e10b49df8d0cc0d8eb5bf2ef9863a33cf Parent: 1c98398662c9b4e2f03f64344f83dd6cb14e0420 Refname: refs/heads/master Author: Ganesan Ramalingam <[email protected]> AuthorDate: Fri May 9 16:35:49 2014 +0530 Committer: Ralf Baechle <[email protected]> CommitDate: Fri May 30 16:51:02 2014 +0200MIPS: Add MSI support for XLP9XX
...
Review
Quoted 3 lines
(quoted diff) +3
-0+ if (cpu_is_xlp9xx()) { + val = ((node * nlm_threads_per_node()) << 7 | + PIC_PCIE_MSIX_IRQ(link) << 1 | 0 << 0);
Should this be..
val = ((node * nlm_threads_per_node()) << 7 | PIC_PCIE_MSIX_IRQ(link) << 1); val &= ~(1 << 0);
perhaps ? because shifting a zero is a nop, as is ORing it.
Dave
From: Dave Jones
Quoted 20 lines · Linux Kernel
Quoted 10 lines
Gitweb: http://git.kernel.org/linus/;a=commit;h=d66f3f0e10b49df8d0cc0d8eb5bf2ef9863a33cf Commit: d66f3f0e10b49df8d0cc0d8eb5bf2ef9863a33cf Parent: 1c98398662c9b4e2f03f64344f83dd6cb14e0420 Refname: refs/heads/master Author: Ganesan Ramalingam <[email protected]> AuthorDate: Fri May 9 16:35:49 2014 +0530 Committer: Ralf Baechle <[email protected]> CommitDate: Fri May 30 16:51:02 2014 +0200MIPS: Add MSI support for XLP9XX
...
Review
Quoted 3 lines
(quoted diff) +3
-0+ if (cpu_is_xlp9xx()) { + val = ((node * nlm_threads_per_node()) << 7 | + PIC_PCIE_MSIX_IRQ(link) << 1 | 0 << 0);Should this be..
Quoted 5 lines
val = ((node * nlm_threads_per_node()) << 7 | PIC_PCIE_MSIX_IRQ(link) << 1); val &= ~(1 << 0);perhaps ? because shifting a zero is a nop, as is ORing it.
Unlikely, it looks to me as though it is just being explicit that the low bit of the compound word (whatever it is) is zero.
David