Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

s390/pci: stash dtsm and maxstbl

Store information about what IOAT designation types are supported by
underlying hardware as well as the largest store block size allowed.
These values will be needed by passthrough.

Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Link: https://lore.kernel.org/r/20220606203325.110625-10-mjrosato@linux.ibm.com
Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>

authored by

Matthew Rosato and committed by
Christian Borntraeger
d1038467 c68468ed

+8 -2
+2
arch/s390/include/asm/pci.h
··· 126 126 u32 gisa; /* GISA designation for passthrough */ 127 127 u16 vfn; /* virtual function number */ 128 128 u16 pchid; /* physical channel ID */ 129 + u16 maxstbl; /* Maximum store block size */ 129 130 u8 pfgid; /* function group ID */ 130 131 u8 pft; /* pci function type */ 131 132 u8 port; 133 + u8 dtsm; /* Supported DT mask */ 132 134 u8 rid_available : 1; 133 135 u8 has_hp_slot : 1; 134 136 u8 has_resources : 1;
+4 -2
arch/s390/include/asm/pci_clp.h
··· 153 153 u8 : 6; 154 154 u8 frame : 1; 155 155 u8 refresh : 1; /* TLB refresh mode */ 156 - u16 reserved2; 156 + u16 : 3; 157 + u16 maxstbl : 13; /* Maximum store block size */ 157 158 u16 mui; 158 - u16 : 16; 159 + u8 dtsm; /* Supported DT mask */ 160 + u8 reserved3; 159 161 u16 maxfaal; 160 162 u16 : 4; 161 163 u16 dnoi : 12;
+2
arch/s390/pci/pci_clp.c
··· 106 106 zdev->max_msi = response->noi; 107 107 zdev->fmb_update = response->mui; 108 108 zdev->version = response->version; 109 + zdev->maxstbl = response->maxstbl; 110 + zdev->dtsm = response->dtsm; 109 111 110 112 switch (response->version) { 111 113 case 1: