@@ -101,7 +101,7 @@ static int have_wrcomb(void)
101
101
if (dev -> vendor == PCI_VENDOR_ID_SERVERWORKS &&
102
102
dev -> device == PCI_DEVICE_ID_SERVERWORKS_LE &&
103
103
dev -> revision <= 5 ) {
104
- pr_info ("mtrr: Serverworks LE rev < 6 detected. Write-combining disabled.\n" );
104
+ pr_info ("Serverworks LE rev < 6 detected. Write-combining disabled.\n" );
105
105
pci_dev_put (dev );
106
106
return 0 ;
107
107
}
@@ -111,7 +111,7 @@ static int have_wrcomb(void)
111
111
*/
112
112
if (dev -> vendor == PCI_VENDOR_ID_INTEL &&
113
113
dev -> device == PCI_DEVICE_ID_INTEL_82451NX ) {
114
- pr_info ("mtrr: Intel 450NX MMC detected. Write-combining disabled.\n" );
114
+ pr_info ("Intel 450NX MMC detected. Write-combining disabled.\n" );
115
115
pci_dev_put (dev );
116
116
return 0 ;
117
117
}
@@ -313,24 +313,24 @@ int mtrr_add_page(unsigned long base, unsigned long size,
313
313
return error ;
314
314
315
315
if (type >= MTRR_NUM_TYPES ) {
316
- pr_warn ("mtrr: type: %u invalid\n" , type );
316
+ pr_warn ("type: %u invalid\n" , type );
317
317
return - EINVAL ;
318
318
}
319
319
320
320
/* If the type is WC, check that this processor supports it */
321
321
if ((type == MTRR_TYPE_WRCOMB ) && !have_wrcomb ()) {
322
- pr_warn ("mtrr: your processor doesn't support write-combining\n" );
322
+ pr_warn ("your processor doesn't support write-combining\n" );
323
323
return - ENOSYS ;
324
324
}
325
325
326
326
if (!size ) {
327
- pr_warn ("mtrr: zero sized request\n" );
327
+ pr_warn ("zero sized request\n" );
328
328
return - EINVAL ;
329
329
}
330
330
331
331
if ((base | (base + size - 1 )) >>
332
332
(boot_cpu_data .x86_phys_bits - PAGE_SHIFT )) {
333
- pr_warn ("mtrr: base or size exceeds the MTRR width\n" );
333
+ pr_warn ("base or size exceeds the MTRR width\n" );
334
334
return - EINVAL ;
335
335
}
336
336
@@ -361,16 +361,15 @@ int mtrr_add_page(unsigned long base, unsigned long size,
361
361
} else if (types_compatible (type , ltype ))
362
362
continue ;
363
363
}
364
- pr_warn ("mtrr: 0x%lx000,0x%lx000 overlaps existing"
365
- " 0x%lx000,0x%lx000\n" , base , size , lbase ,
364
+ pr_warn ("0x%lx000,0x%lx000 overlaps existing 0x%lx000,0x%lx000\n" , base , size , lbase ,
366
365
lsize );
367
366
goto out ;
368
367
}
369
368
/* New region is enclosed by an existing region */
370
369
if (ltype != type ) {
371
370
if (types_compatible (type , ltype ))
372
371
continue ;
373
- pr_warn ("mtrr: type mismatch for %lx000,%lx000 old: %s new: %s\n" ,
372
+ pr_warn ("type mismatch for %lx000,%lx000 old: %s new: %s\n" ,
374
373
base , size , mtrr_attrib_to_str (ltype ),
375
374
mtrr_attrib_to_str (type ));
376
375
goto out ;
@@ -396,7 +395,7 @@ int mtrr_add_page(unsigned long base, unsigned long size,
396
395
}
397
396
}
398
397
} else {
399
- pr_info ("mtrr: no more MTRRs available\n" );
398
+ pr_info ("no more MTRRs available\n" );
400
399
}
401
400
error = i ;
402
401
out :
@@ -408,8 +407,8 @@ int mtrr_add_page(unsigned long base, unsigned long size,
408
407
static int mtrr_check (unsigned long base , unsigned long size )
409
408
{
410
409
if ((base & (PAGE_SIZE - 1 )) || (size & (PAGE_SIZE - 1 ))) {
411
- pr_warn ("mtrr: size and base must be multiples of 4 kiB\n" );
412
- pr_debug ("mtrr: size: 0x%lx base: 0x%lx\n" , size , base );
410
+ pr_warn ("size and base must be multiples of 4 kiB\n" );
411
+ pr_debug ("size: 0x%lx base: 0x%lx\n" , size , base );
413
412
dump_stack ();
414
413
return -1 ;
415
414
}
@@ -500,22 +499,22 @@ int mtrr_del_page(int reg, unsigned long base, unsigned long size)
500
499
}
501
500
}
502
501
if (reg < 0 ) {
503
- pr_debug ("mtrr: no MTRR for %lx000,%lx000 found\n" ,
502
+ pr_debug ("no MTRR for %lx000,%lx000 found\n" ,
504
503
base , size );
505
504
goto out ;
506
505
}
507
506
}
508
507
if (reg >= max ) {
509
- pr_warn ("mtrr: register: %d too big\n" , reg );
508
+ pr_warn ("register: %d too big\n" , reg );
510
509
goto out ;
511
510
}
512
511
mtrr_if -> get (reg , & lbase , & lsize , & ltype );
513
512
if (lsize < 1 ) {
514
- pr_warn ("mtrr: MTRR %d not used\n" , reg );
513
+ pr_warn ("MTRR %d not used\n" , reg );
515
514
goto out ;
516
515
}
517
516
if (mtrr_usage_table [reg ] < 1 ) {
518
- pr_warn ("mtrr: reg: %d has count=0\n" , reg );
517
+ pr_warn ("reg: %d has count=0\n" , reg );
519
518
goto out ;
520
519
}
521
520
if (-- mtrr_usage_table [reg ] < 1 )
@@ -776,7 +775,7 @@ void __init mtrr_bp_init(void)
776
775
}
777
776
778
777
if (!mtrr_enabled ()) {
779
- pr_info ("MTRR: Disabled\n" );
778
+ pr_info ("Disabled\n" );
780
779
781
780
/*
782
781
* PAT initialization relies on MTRR's rendezvous handler.
0 commit comments