|
@@ -22,7 +22,8 @@ struct read_info_sccb {
|
|
u8 rnsize; /* 10 */
|
|
u8 rnsize; /* 10 */
|
|
u8 _reserved0[16 - 11]; /* 11-15 */
|
|
u8 _reserved0[16 - 11]; /* 11-15 */
|
|
u16 ncpurl; /* 16-17 */
|
|
u16 ncpurl; /* 16-17 */
|
|
- u8 _reserved7[24 - 18]; /* 18-23 */
|
|
|
|
|
|
+ u16 cpuoff; /* 18-19 */
|
|
|
|
+ u8 _reserved7[24 - 20]; /* 20-23 */
|
|
u8 loadparm[8]; /* 24-31 */
|
|
u8 loadparm[8]; /* 24-31 */
|
|
u8 _reserved1[48 - 32]; /* 32-47 */
|
|
u8 _reserved1[48 - 32]; /* 32-47 */
|
|
u64 facilities; /* 48-55 */
|
|
u64 facilities; /* 48-55 */
|
|
@@ -45,6 +46,7 @@ static unsigned int sclp_con_has_linemode __initdata;
|
|
static unsigned long sclp_hsa_size;
|
|
static unsigned long sclp_hsa_size;
|
|
static unsigned int sclp_max_cpu;
|
|
static unsigned int sclp_max_cpu;
|
|
static struct sclp_ipl_info sclp_ipl_info;
|
|
static struct sclp_ipl_info sclp_ipl_info;
|
|
|
|
+static unsigned char sclp_siif;
|
|
|
|
|
|
u64 sclp_facilities;
|
|
u64 sclp_facilities;
|
|
u8 sclp_fac84;
|
|
u8 sclp_fac84;
|
|
@@ -96,6 +98,9 @@ static int __init sclp_read_info_early(struct read_info_sccb *sccb)
|
|
|
|
|
|
static void __init sclp_facilities_detect(struct read_info_sccb *sccb)
|
|
static void __init sclp_facilities_detect(struct read_info_sccb *sccb)
|
|
{
|
|
{
|
|
|
|
+ struct sclp_cpu_entry *cpue;
|
|
|
|
+ u16 boot_cpu_address, cpu;
|
|
|
|
+
|
|
if (sclp_read_info_early(sccb))
|
|
if (sclp_read_info_early(sccb))
|
|
return;
|
|
return;
|
|
|
|
|
|
@@ -116,6 +121,15 @@ static void __init sclp_facilities_detect(struct read_info_sccb *sccb)
|
|
sclp_max_cpu = sccb->hcpua + 1;
|
|
sclp_max_cpu = sccb->hcpua + 1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ boot_cpu_address = stap();
|
|
|
|
+ cpue = (void *)sccb + sccb->cpuoff;
|
|
|
|
+ for (cpu = 0; cpu < sccb->ncpurl; cpue++, cpu++) {
|
|
|
|
+ if (boot_cpu_address != cpue->address)
|
|
|
|
+ continue;
|
|
|
|
+ sclp_siif = cpue->siif;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+
|
|
/* Save IPL information */
|
|
/* Save IPL information */
|
|
sclp_ipl_info.is_valid = 1;
|
|
sclp_ipl_info.is_valid = 1;
|
|
if (sccb->flags & 0x2)
|
|
if (sccb->flags & 0x2)
|
|
@@ -148,6 +162,12 @@ unsigned int sclp_get_max_cpu(void)
|
|
return sclp_max_cpu;
|
|
return sclp_max_cpu;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+int sclp_has_siif(void)
|
|
|
|
+{
|
|
|
|
+ return sclp_siif;
|
|
|
|
+}
|
|
|
|
+EXPORT_SYMBOL(sclp_has_siif);
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* This function will be called after sclp_facilities_detect(), which gets
|
|
* This function will be called after sclp_facilities_detect(), which gets
|
|
* called from early.c code. The sclp_facilities_detect() function retrieves
|
|
* called from early.c code. The sclp_facilities_detect() function retrieves
|