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