-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangelog
2385 lines (1663 loc) · 89.8 KB
/
Changelog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
powerpc-utils-1.2.25
=====================================================================
commit 948bbf83b43c9a3bc00f521326e096ca6c7848c5
Author: Bharata B Rao <[email protected]>
Date: Mon Apr 13 11:20:00 2015 -0500
drmgr: Fix CPU/LMB add/removal using drc_index
This patch fixes a few things:
- Removing a CPU using drc_index is currently removing wrong CPU since
CPU removal code doesn't lookup CPU by index. Introduce a routine to
lookup by index and ensure that it gets used from the removal path.
- get_cpu_by_name() does an implicit looking up of index also. Fix this.
- drmgr -s option can mean both drc_index and drc_name. In case of
drc_index, rtas_errd will invoke drmgr without -q option which results
in no CPU or LMB being added. Make 1 as the default count of
CPUs unconditionally which applies to both the cases.
After these fixes, I am able to get CPU hotplug and removal working
with QEMU on a PowerKVM host.
Signed-off-by: Bharata B Rao <[email protected]>
commit 7f1ba6f2cefbc72112ee809d2b5fd90e7525417d
Author: Mamatha Inamdar <[email protected]>
Date: Tue Mar 31 18:27:06 2015 -0400
drmgr: Fix to check for drmgr REPLACE (-R) flag
In drmgr command drmgr -R (REPLACE) flag check was missing, so
this patch is to fix drmgr -R flag in valid_pci_options() interface.
*************************************************
Test results:
before fixing the patch:
The '-r', '-a', or '-i' option must be spcified for PCI operation
After fixing the patch:
The specified PCI slot is either invalid
or does not support hot plug operations.xing the patch:
**************************************************************
Signed-off-by: Mamatha Inamdar <[email protected]>
commit a941cdfb9609bba04c5bad18ab8af1c85b7b6a9b
Author: Tyrel Datwyler <[email protected]>
Date: Tue Mar 31 18:23:59 2015 -0400
drmgr: Use sysfs migration store to initiate migration when possible
The sysfs attribute /sys/kernel/mobility/migration has been present for
sometime, but never actually used by drmgr. It can be used to initiate a
migration operation in place of the existing faux ibm,supsend-me rtas call.
Further, newer kernels are capable of doing the device tree update.
We can test the /sys/kernel/mobility/api_version attribute to determine the
course of action drmgr should take. Newer kernels will return 1 indicating
the kernel is cabable of performing the migration and postmobility fixups.
If the attribute is unreadable or returns 0 drmgr should resort to initiatin
the migration via rtas, and communicate the post mobility device tree update
through the /proc/ppc64/ofdt interface to the kernel.
Signed-off-by: Tyrel Datwyler <[email protected]>
commit 62edbba0a29851db8089650e122facb95f40d317
Author: Henish Patel <[email protected]>
Date: Wed Mar 11 21:34:32 2015 -0500
snap: Restrict the usage of snap on RHEL 7 onwards
snap is not supported on the RHEL 7 onwards, because we have integrated snap
functionality in sosreport. So this patch displays a suitable message.
RHEL 7+ users can use sosreport to collect log data.
Signed-off-by: Henish Patel <[email protected]>
commit 63f9d99136c0630008cbb5fd241f46d6618e9b1b
Author: Nathan Fontenot <[email protected]>
Date: Fri Feb 13 10:15:44 2015 -0500
ppc64_cpu: Initial man page.
Initial man page for the ppc64_cpu command.
Signed-off-by: Nathan Fontenot <[email protected]>
commit cb0c5c844b384b335cf50e92e20a080b5364e186
Author: Paulo Flabiano Smorigo <[email protected]>
Date: Fri Feb 13 10:13:03 2015 -0500
Add systemd unit (smt_off) to control smt status.
This patch add a --with-systemd attribute to install a systemd unit
to turn smt on or off (permanently or not).
After it's installed you can use systemd commands like: status, start,
stop, enable and disable to control it.
Signed-off-by: Paulo Flabiano Smorigo <[email protected]>
commit acfa92352e3b2bddf256de23e7ef07ad3a47ec08
Author: Thomas Falcon <[email protected]>
Date: Wed Jan 7 15:05:45 2015 -0500
drmgr/lsslot: Fix broken memory support for little endian
Commit 493bfdda30b61be46d7d71e5e7bb05df9334ba81 should have removed
some endian conversions included in previous commit. Unfortunately,
they were not removed, causing problems when hotplugging memory.
This patch removes those endian conversions.
Signed-off-by: Thomas Falcon <[email protected]>
powerpc-utils-1.2.24
=====================================================================
commit cccfb3c8d867e07a8f4b983858f04707e4131383
Author: Nathan Fontenot <[email protected]>
Date: Tue Nov 25 11:35:56 2014 -0500
lparstat: remove "On" from possible smt output
The SMT row will only display the number of enabled SMT threads if
SMT is enabled.
Signed-off-by: Thomas Falcon <[email protected]>
commit 8249adcb95c2218704160a3a747859de95d1e3b9
Author: Nathan Fontenot <[email protected]>
Date: Tue Nov 25 10:55:12 2014 -0500
ppc64_cpu: output only the number of SMT threads when smt is on
This patch removes "SMT is on" as a possible output when the smt option
is used. Instead, only the number of SMT threads will be displayed.
Signed-off-by: Thomas Falcon <[email protected]>
commit 17d6749f2af420dfcf74fc8ac9fb09719793e2b8
Author: Nathan Fontenot <[email protected]>
Date: Tue Nov 25 10:50:45 2014 -0500
drmgr: Correct the -s option handling correction
In response to my earlier patch that attempted to correct the -s option hand
for drmgr I introduced a bug in which the usr_drc_name could be NULL causing
a segfault when attempting to use it.
This patch adds a check to make sure it is not NULL.
Signed-off-by: Nathan Fontenot <[email protected]>
commit 7759a4d35b9b79de171b39a02546cb7365e710ea
Author: Nathan Fontenot <[email protected]>
Date: Tue Nov 25 10:46:15 2014 -0500
lparstat: using get_smt_mode when showing SMT info
get_smt_state is used in the system_data structure to display both the
shared_processor_mode and the smt_state members. After reviewing code and
documentation, it seems that the information in smt_state is meant to be
acquired from ppc64_cpu instead of lparcfg. With this change, the SMT listin
will be determined by the output of ppc64_cpu --smt.
Signed-off-by: Thomas Falcon <[email protected]>
commit 17d6749f2af420dfcf74fc8ac9fb09719793e2b8
Author: Nathan Fontenot <[email protected]>
Date: Tue Nov 25 10:50:45 2014 -0500
drmgr: Correct the -s option handling correction
In response to my earlier patch that attempted to correct the -s option hand
for drmgr I introduced a bug in which the usr_drc_name could be NULL causing
a segfault when attempting to use it.
This patch adds a check to make sure it is not NULL.
Signed-off-by: Nathan Fontenot <[email protected]>
commit 7759a4d35b9b79de171b39a02546cb7365e710ea
Author: Nathan Fontenot <[email protected]>
Date: Tue Nov 25 10:46:15 2014 -0500
lparstat: using get_smt_mode when showing SMT info
get_smt_state is used in the system_data structure to display both the
shared_processor_mode and the smt_state members. After reviewing code and
documentation, it seems that the information in smt_state is meant to be
acquired from ppc64_cpu instead of lparcfg. With this change, the SMT listin
will be determined by the output of ppc64_cpu --smt.
Signed-off-by: Thomas Falcon <[email protected]>
commit a822bb09ed6eb80f521b04208bd41c23f302351d
Author: Nathan Fontenot <[email protected]>
Date: Tue Nov 25 10:40:14 2014 -0500
ppc64_cpu: Allow builds without librtas
Currently, --without-librtas disables ppc64_cpu.
However, we only need librtas for the run-mode determination; other
functions will work fine without it.
This change allows ppc64_cpu to be built without librtas, by
conditionally enabling run-mode, and restoring ppc64_cpu to be built
when --without-librtas is given.
We need to re-work src/Makefile.am a little here - we use the +=
operator to include rtas-specific functionality, which means the
with-librtas cases need to be listed before the without ones.
We also need to #include stdint.h, as ppc64_cpu.c uses inttypes from
here.
Signed-off-by: Jeremy Kerr <[email protected]>
commit 7ab0e4dc62ba8787da05529bc5297a0161c12437
Author: Nathan Fontenot <[email protected]>
Date: Tue Nov 25 10:37:35 2014 -0500
From: Jan Loser <[email protected]>
snap in powerpc-utils 1.2.20 produces an archive with fstab and
yaboot.conf files potentially containing cleartext passwords, and lacks
a warning about reviewing this archive to detect included passwords,
which might allow remote attackers to obtain sensitive information by
leveraging access to a technical-support data stream.
Solution:
print a warning that confidential data may be collected via snap
Signed-off-by: Nathan Fontenot <[email protected]>
powerpc-utils-1.2.23
=====================================================================
commit af84bc0c7647594083978ec31d619031c76f27b6
Author: Nathan Fontenot <[email protected]>
Date: Mon Oct 20 10:08:41 2014 -0400
drmgr: do not remove the last CPU
The drmgr command should not attempt to remove the last cpu from the system.
Normally this would not be an issue as cpu remove operations are initiated
from the HMC and the HMC will not allow the last cpu to be removed. This
issue does arise when handling PRRN events and trying to update the affinity
on a partition that only has one cpu.
Signed-off-by: Nathan Fontenot <[email protected]>
commit 0089e0c03a5cd9e7b039c7206e7d7c88c654f75d
Author: Nathan Fontenot <[email protected]>
Date: Mon Oct 20 10:07:03 2014 -0400
drmgr: Correct -s option handling
The usage statement for drmgr claims that we can add/remove memory and cpus
by drc name or drc index. The current code though assumes that any
use of the -s flag to specify this defaults to drc name.
This patch updates the option checking for memory and cpu operations to
allow users to specify a drc index with the -s option. This will be
handled the same way the -s option for pci devices is handled, assume it
is a drc name unless it starts with '0x', indicating the string is
really a hex value, and switching it to a drc index.
Signed-off-by: Nathan Fontenot <[email protected]>
commit abfa87aa4ece22f56fcadae13a0d9f080d5aef85
Author: Nathan Fontenot <[email protected]>
Date: Mon Oct 20 10:05:32 2014 -0400
drmgr: Correct null pointer usage
We can't de-reference NULL pointers, it's not a nice thing to do.
I found these during some debugging, correcting to avoid future bugs.
Signed-off-by: Nathan Fontenot <[email protected]>
commit 294c77fa79f69b361b014356cf101a4518572f1b
Author: Nathan Fontenot <[email protected]>
Date: Mon Oct 20 10:04:04 2014 -0400
ofpathname: Fix checking for hbtl
Fix checking for hbtl in of2l_scsi ().
Signed-off-by: Aruna Balakrishnaiah <[email protected]>
commit 493bfdda30b61be46d7d71e5e7bb05df9334ba81
Author: Nathan Fontenot <[email protected]>
Date: Mon Oct 20 09:47:50 2014 -0400
lsslot/drmgr: little endian support for memory
This patch adds some support for memory slot listing
and memory hotplugging on little endian systems.
Signed-off-by: Thomas Falcon <[email protected]>
commit 1df19388f82883bf6a457f8a9913991ec4cd5cea
Author: Nathan Fontenot <[email protected]>
Date: Mon Oct 20 09:46:17 2014 -0400
ofpathname: Convert OF format to logical device for virtio-scsi devices
Add support to convert a Open Firmware device path to logical
device path for virtio scsi device.
Signed-off-by: Aruna Balakrishnaiah <[email protected]>
commit 70de5fdce708b9c339769ce4d58a27706788c7df
Author: Nathan Fontenot <[email protected]>
Date: Mon Oct 20 09:44:05 2014 -0400
ofpathname: Convert logical path to OF device path for virtio-scsi devices
Add support to convert logical device path to Open firmware device path
for virtio-scsi devices.
Signed-off-by: Aruna Balakrishnaiah <[email protected]>
commit 95596ab7764f294d5755756ba097159774f5a7bb
Author: Nathan Fontenot <[email protected]>
Date: Mon Oct 20 09:35:51 2014 -0400
snap: Display message for Ubuntu platform
snap is not supported on the Ubuntu platform hence display
a suitable messsage. Ubuntu users can use log collection tool (apport-collec
provided by distro.
Signed-off-by: Aruna Balakrishnaiah <[email protected]>
Acked-by: Vasant Hegde <[email protected]>
powerpc-utils-1.2.22
=====================================================================
commit 0a67ffbb5d40c49347cd85a74921693457331f82
Author: Joel Stanley <[email protected]>
Date: Wed Aug 13 09:38:20 2014 -0500
ppc64_cpu: Be verbose about inconsistant SMT state
With the use of splitcore, users are more likely to end up in a strange
SMT state. Be kind and display what the online state of all our CPUs is,
and explain how to get out of this hole.
Signed-off-by: Joel Stanley <[email protected]>
commit d3e016e9e5683a565824b9ec185901ff7feb25ed
Author: Joel Stanley <[email protected]>
Date: Wed Aug 13 09:36:27 2014 -0500
ppc64_cpu: Remove parameter from do_info
It is unused.
Also add a forward declaration at the top so we can call do_info in other
interesting places.
Signed-off-by: Joel Stanley <[email protected]>
commit 2af3d960442be3d36d8aa8ac914928d4047a0f18
Author: Aruna Balakrishnaiah <[email protected]>
Date: Wed Aug 13 08:39:17 2014 -0500
nvram: Handle endianness in the nvram --unzip option.
Handle endianness of the oops log size in the --unzip
option.
Signed-off-by: Aruna Balakrishnaiah <[email protected]>
Acked-by: Vasant Hegde <[email protected]>
commit 48d45ca2ba2f098a4a565dac6e74cafe8db808f9
Author: Thomas Falcon <[email protected]>
Date: Wed Aug 13 08:35:30 2014 -0500
drmgr/lsslot: increase number of max cpu threads.
The Power8 cpu can support eight threads per cpu core. This
patch increases the maximum number of threads from four to eight.
Signed-off-by: Thomas Falcon <[email protected]>
commit 23872cbdce2107562b1b997cf306d6279ddf5d50
Author: Thomas Falcon <[email protected]>
Date: Wed Aug 13 08:22:37 2014 -0500
lsslot/drmgr: little endian support for memory
This patch adds some support in retrieving memory slot information
on little endian systems. These changes have only been tested using
lsslot. Adding or removing memory via drmgr has not been attempted.
Signed-off-by: Thomas Falcon <[email protected]>
Signed-off-by: Nathan Fontenot <[email protected]>
commit c0e6665d9da9797df4b7516f2ef14d7a45f5cb81
Author: Thomas Falcon <[email protected]>
Date: Wed Aug 13 08:00:52 2014 -0500
lsslot/drmgr: little endian support for cpu
This patch adds some support in retrieving cpu slot information
on little endian systems. These changes have only been tested using
lsslot. Adding or removing cpu's via drmgr has not been attempted.
Signed-off-by: Thomas Falcon <[email protected]>
powerpc-utils-1.2.21
=====================================================================
commit a529515e6a78bc8d39b58122b99e009291048a78
Author: Nathan Fontenot <[email protected]>
Date: Wed Jun 25 16:11:37 2014 -0500
uesensor: remove unused platform variable
Remove the unused platform variable that appears to be
an accidental leftover from updating the platform checking
code.
This was producing a build warning.
Signed-off-by: Nathan Fontenot <[email protected]>
commit d840b6a2e4d7ee38b08b15c80c562e699f1f7b79
Author: Tyrel Datwyler <[email protected]>
Date: Wed Jun 25 16:06:17 2014 -0500
nvram: restrict --nvram-size to 16 byte multiples
PAPR defines a 16 byte block size for nvram partitions. This patch restricts
the --nvram-size option to sizes that are multiples of 16.
Signed-off-by: Tyrel Datwyler <[email protected]>
Signed-off-by: Nathan Fontenot <[email protected]>
commit 38f6cab58bd77d75d8bcf52c2b3a4b06002601eb
Author: Tyrel Datwyler <[email protected]>
Date: Wed Jun 25 16:01:41 2014 -0500
nvram: fix memory corruption when nvram->nbytes is less than actual nvram si
ze
The nvram_read function always calls read with a 512 byte chunk size. If the
actual nvram size is greater than nvram->nbytes, which can be overriden by t
he
--nvram-size option, the allocated read buffer will be overrun.
Fixed read logic to only read upto nvram->nbytes of data.
Signed-off-by: Tyrel Datwyler <[email protected]>
commit ba2c2ad835339f52be8972a3207012ae54749113
Author: Thomas Falcon <[email protected]>
Date: Wed Jun 25 15:58:24 2014 -0500
set_power_on: handle endianess reading max latency
set_power_on reads device-tree to get the max latency value,
which is in a big endian format. This needs to be converted
for little endian architectures.
Signed-off-by: Thomas Falcon <[email protected]>
commit 562526a14c3121e695ef782dc028c82e6e350bbf
Author: Thomas Falcon <[email protected]>
Date: Wed Jun 25 15:31:54 2014 -0500
ppc64_cpu: handle endianess in rtas sysparm buffer
ppc64_cpu passes a buffer to rtas_set_sysparm. The first two
bytes of this buffer must encode a integer denoting the
size of the remaining the buffer. This integer must be in a
big endian format.
Signed-off-by: Thomas Falcon <[email protected]>
commit 7e781be45fbf87ccd1792a498788b9aaf3256b72
Author: Thomas Falcon <[email protected]>
Date: Wed Jun 25 15:22:51 2014 -0500
uesensor: fix endian issues reading device-tree
The values in /proc/device-tree/rtas/rtas-sensors are
big endian so this needs to be handled for little endian
architectures.
Signed-off-by: Thomas Falcon <[email protected]>
commit 9bfe5991bf5d8e1c047f45a664b636fa05dca39f
Author: Thomas Falcon <[email protected]>
Date: Wed Jun 25 15:18:55 2014 -0500
serv_config: handle endianess in sysparm buffer
rtas_get_sysparm and rtas_set_sysparm commands both
manipulate buffers in which the first two bytes are a big
endian integer indicating the size of the remaining buffer.
This patch makes sure those bytes are in the correct format.
Signed-off-by: Thomas Falcon <[email protected]>
commit a9f264ab1f84c20f144cba9c971883064e5430dd
Author: Tyrel Datwyler <[email protected]>
Date: Wed Jun 25 15:16:31 2014 -0500
lsslot: fix segfault when lmb_list->lmbs is NULL
PowerKVM guests currently do not support dynamically reconfigurable
memory, and as such get_lmbs will return a lmb_list struct whose lmbs
field is NULL. Added a NULL check to avoid segfault for the case where
no LMB drc-names are defined in device tree.
Signed-off-by: Tyrel Datwyler <[email protected]>
commit d9f6fbcea7feeedf5d72ddddef33295cbbe6d622
Author: Nathan Fontenot <[email protected]>
Date: Mon Jun 9 06:44:58 2014 -0500
ppc64_cpu: update access validation routines
The use of fopen() to check for read/write access of system attribute
files (i.e. sysfs) no longer works with kernels 3.14 and later. The man
page for fopen() states that there is an implied file creation if the
file does not exist. This now causes fopen() to return EACCES instead
of ENOENT for files that do not exist.
This patch updates ppc64_cpu to use access() to validate file existence
and file read/write permissions.
Signed-off-by: Nathan Fontenot <[email protected]>
Reviewed-by: Joel Stanley <[email protected]>
Acked-by: Vasant Hegde <[email protected]>
commit 38005d9cc59a5f81754b93b1479f8538c7151976
Author: Vasant Hegde <[email protected]>
Date: Mon Jun 9 06:42:42 2014 -0500
update_flash: Fix typo in man page
Signed-off-by: Vasant Hegde <[email protected]>
commit cc4589f43ae5ca2fffd9b96997ba09023f9e8999
Author: Vasant Hegde <[email protected]>
Date: Mon Jun 9 06:39:26 2014 -0500
update_flash_nv: Display current FW version
Add support to display current firmware version detail
on PowerKVM host.
Sample output:
[root@abc123 tmp]# update_flash -d
Current firwmare version :
T side : FW770.20 (ZL770_060)
P side : FW770.20 (ZL770_060)
Boot side : FW770.20 (ZL770_060)
Suggested-by: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Vasant Hegde <[email protected]>
commit 2dfd19700a0dbe8df0c0cfc2b6c23ef42dbb6c11
Author: Vasant Hegde <[email protected]>
Date: Mon Jun 9 06:37:41 2014 -0500
snap: Fix typo in output display
Signed-off-by: Vasant Hegde <[email protected]
commit 507d3ba46376f96094093bf8dbff0cbc7d158390
Author: Anton Blanchard <[email protected]>
Date: Fri Apr 25 08:24:24 2014 -0500
update_flash: Remove some bashisms
== is a bashism. Replace it with =.
We also need to add quotes around some variables to avoid:
local: FW710.00: bad variable name
Signed-off-by: Anton Blanchard <[email protected]>
Reviewed-by: Vasant Hegde <[email protected]>
commit de159805368210c17d01bfe088c157d394406640
Author: Joel Stanley <[email protected]>
Date: Fri Apr 25 08:22:32 2014 -0500
ppc64_cpu: Let kernel validate subcore options
Previously we checked for valid subcore-per-core options, however, the
kernel knows better than we do as to what is valid. Remove the check.
Signed-off-by: Joel Stanley <[email protected]>
commit 6f11925411d334eb501cc2214e08d4eb596438cd
Author: Aruna Balakrishnaiah <[email protected]>
Date: Fri Apr 25 08:21:03 2014 -0500
ofpathname: Convert OF path to logical names for usb devices
Add support to convert a Open Firmware device path to logical
device path for usb device.
Signed-off-by: Aruna Balakrishnaiah <[email protected]>
commit 655649226d2b60eff1a1ef85f92a3ef5cd1b360b
Author: Aruna Balakrishnaiah <[email protected]>
Date: Fri Apr 25 08:20:09 2014 -0500
ofpathname: Convert logical device path to OF format for usb devices
Add support to convert logical device path to Open firmware
device path for usb devices.
Reported-by: Nikunj A Dadhania <[email protected]>
Signed-off-by: Aruna Balakrishnaiah <[email protected]>
commit 852e69a9a099273a3e49ebdfcc2afd13a8e9876e
Author: Nathan Fontenot <[email protected]>
Date: Fri Apr 25 08:18:26 2014 -0500
drmgr: Update action option validation
The drmgr command does not do any validation of the action option
specified on the command line, except for some checking for CPU
operations.. The omission of an action option can lead to confusing
error messages or just exiting with an error.
This patch updates each connector type with a validation check for
their respective valid action options.
Signed-off-by: Nathan Fontenot <[email protected]>
commit 865171adc9d0f2a327ac892e99bf60add5255315
Author: Nathan Fontenot <[email protected]>
Date: Fri Apr 25 08:08:06 2014 -0500
Updating .gitignore fo files that are no longer in git.
Signed-off-by: Nathan Fontenot <[email protected]>
commit a13ddf3a0bda581984f77c1ca171b34ae90ef83a
Author: Shivaprasad G Bhat <[email protected]>
Date: Fri Apr 25 07:59:51 2014 -0500
ppc64_cpu: Add option --threads-per-core
The threads per core calculated in ppc64_cpu is more relaiable than the
same provided by any other utility. Expose the value through an option.
Signed-off-by: Shivaprasad G Bhat <[email protected]>
commit 6e5dfe8302966568e4e7eff6035d7cc5d46481f9
Author: Nathan Fontenot <[email protected]>
Date: Fri Apr 25 07:49:19 2014 -0500
Move librtas error code to common directory.
Now that we have a src/common directory this patch moves the
librtas_error files to the common directory.
Signed-off-by: Nathan Fontenot <[email protected]>
commit e07b773c38effae0c9c16ddc20c423a166638194
Author: Stewart Smith <[email protected]>
Date: Tue Apr 8 15:13:39 2014 -0500
recursive make considered harmful
Instead, we can use include/ for makefiles, or because we're a small
project, just put it in one makefile of ~150 lines.
We also fix up the spec file version substitution to use autofoo.
With these fixes, make distcheck works correctly.
Signed-off-by: Stewart Smith <[email protected]>
commit f8b52ffb07006897e2b9df281f6aea83a5667c03
Author: Stewart Smith <[email protected]>
Date: Tue Apr 8 15:07:38 2014 -0500
add sys/time.h and gettimeofday detection to configure.ac courtesy autoscan
Signed-off-by: Stewart Smith <[email protected]>
commit 475e60537c7f872ae44f89e72100d382986e1636
Author: Stewart Smith <[email protected]>
Date: Tue Apr 8 15:04:34 2014 -0500
check for and use gcc hardening flags if available
Signed-off-by: Stewart Smith <[email protected]>
commit 63d6bcc2d79814fb625089b4f01d4fdba703ea03
Author: Stewart Smith <[email protected]>
Date: Tue Apr 8 15:00:48 2014 -0500
remove autogenerated files
files such as Makefile.in and configure should not be checked into
source repositories as they'll be regenerated on build.
Add a autogen.sh script to run autoreconf
Signed-off-by: Stewart Smith <[email protected]>
commit 66c23d7323ba26757bd1a6b50b3db6c81c422822
Author: Stewart Smith <[email protected]>
Date: Tue Apr 8 14:44:32 2014 -0500
Move subdir-objects options to configure.ac rather than Makefile.am(s)
Easier to keep it in one place than several
Signed-off-by: Stewart Smith <[email protected]>
powerpc-utils-1.2.20
=====================================================================
commit 73c454bea39418872313cd960d005d4d20262f20
Author: Aruna Balakrishnaiah <[email protected]>
Date: Fri Mar 21 09:23:51 2014 -0500
powepcutils: Fix platform dependency
Network interfaces can have prefix other than eth. Look for
all the interfaces in /sys/class/net.
Signed-off-by: Aruna Balakrishnaiah <[email protected]>
Signed-off-by: Nathan Fontenot <[email protected]>
Reviewed-by: Vasant Hegde <[email protected]>
commit 3bf75d1fe9f1fbc24c34287b2fc50aae841ca2ca
Author: Aruna Balakrishnaiah <[email protected]>
Date: Fri Mar 21 09:16:08 2014 -0500
ofpathname: Convert OF format to logical device for ethernet devices
Network interfaces can have prefix other than eth. Look for
all the interfaces in /sys/class/net.
Signed-off-by: Aruna Balakrishnaiah <[email protected]>
commit 1e45fb89513b4f474308ac1684c378e67198a55f
Author: Aruna Balakrishnaiah <[email protected]>
Date: Fri Mar 21 09:14:46 2014 -0500
ofpathname: Convert logical path to OF device path for ethernet devices
Network interface need not have name starting with eth. Check if
the device is a network interface and convert the logical
name to OF path.
Signed-off-by: Aruna Balakrishnaiah <[email protected]>
commit ae566f77c7a176079ef868f52d5873096aa98655
Author: Aruna Balakrishnaiah <[email protected]>
Date: Fri Mar 21 09:13:10 2014 -0500
ofpathname: Convert OF format to logical device for virtual devices
Add support to convert a Open Firmware device path to logical
device path for virtio block device.
Signed-off-by: Aruna Balakrishnaiah <[email protected]>
Acked-by: Vasant Hegde <[email protected]>
commit a2f49f551bb34023ab1052f92f8c06541e6f3474
Author: Aruna Balakrishnaiah <[email protected]>
Date: Fri Mar 21 09:10:38 2014 -0500
snap: Fix misplaced if block
Signed-off-by: Aruna Balakrishnaiah <[email protected]>
Acked-by: Vasant Hegde <[email protected]>
commit 7802242d9cadb475bbbae323c34bd177930dd52d
Author: Nathan Fontenot <[email protected]>
Date: Fri Mar 21 09:08:19 2014 -0500
ofpathname: Enable non-pseries platforms
There are some non-pseries platforms that can (and do) use
the ofpathname script. This patch updates pseries_platform
check in ofpathname to allow for unknown platforms.
Signed-off-by: Nathan Fontenot <[email protected]>
Reviewed-by: Aruna Balakrishnaiah <[email protected]>
commit 74620d997eda9a8977a8132e06f30da3d46467c7
Author: Vasant Hegde <[email protected]>
Date: Fri Mar 21 09:06:21 2014 -0500
ofpathname: Convert virtio block device to OF device path
Add the ability to convert a logical device path for
a virtio block device to its Open Firmware device path.
Signed-off-by: Vasant Hegde <[email protected]>
commit d3f442a8b3ac776395d03eb396a2bfc0ea95f0ba
Author: Jeremy Kerr <[email protected]>
Date: Wed Mar 12 09:20:54 2014 -0500
automake: Add subdir-objects automake option
Current git builds fail for me, with:
configure.ac:13: installing 'build-aux/compile'
automake: warnings are treated as errors
src/Makefile.am:8: warning: source file 'common/pseries_platform.c' is in
a subdirectory,
src/Makefile.am:8: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-obj
ects'
automake: automake option hasn't been enabled. For now, the corresponding
output
automake: object file(s) will be placed in the top-level directory. Howev
er,
automake: this behaviour will change in future Automake versions: they wil
l
automake: unconditionally cause object files to be placed in the same subd
irectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughou
t your
automake: project, to avoid future incompatibilities.
src/drmgr/Makefile.am:9: warning: source file '$(COM_DIR)/pseries_platform
.c' is in a subdirectory,
src/drmgr/Makefile.am:9: but option 'subdir-objects' is disabled
autoreconf: automake failed with exit status: 1
Using:
automake (GNU automake) 1.14.1
Since we're using objects in subdirectories, we need the subdir-objects
atuomake option.
Signed-off-by: Jeremy Kerr <[email protected]>
This commit also contains the updates from running autoreconf with this patc
h.
commit 8283cf470d0de18549443202c9fbabc742aa1975
Author: Greg Kurz <[email protected]>
Date: Wed Mar 12 09:11:49 2014 -0500
drmgr: endian fixes for ibm,configure-connector
The ibm,configure-connector RTAS call is supposed to be called several
times to do its job. It needs a work area to hold data between
subsequent calls. Among these data, there are integer values that
must be in big endian order when passed to RTAS.
A buffer is setup by drmgr and passed to the rtas_cfg_connector() call
in librtas for this purpose. The rtas_cfg_connector() call manipulates
the work area as simple pointer to a char buffer and makes no assumptions
about its content. It is hence not convenient to ask librtas to fix the
endianness of the work area.
Since the work area is entirely exposed in the drmgr code, it is far
easier and straightforward to handle endianess there. This patch
enforce the work area to be big endian, always, and drmgr to byteswap
when needed.
Signed-off-by: Greg Kurz <[email protected]>
commit 360eaf780748eb820ad97992db49f16962cbabf9
Author: Joel Stanley <[email protected]>
Date: Wed Mar 12 08:43:48 2014 -0500
ppc64_cpu: bump internal version
Bump the internal version so users know that have fixed subcore support.
Signed-off-by: Joel Stanley <[email protected]>
commit 4a2451399e3719d520f052d5180c72b2844ed902
Author: Brian King <[email protected]>
Date: Wed Mar 12 08:40:44 2014 -0500
ofpathname: Fix OF to logical VFC lookup for non zero LUNs
This patch fixes OF path to logical device name translation
for VFC devices with a non zero LUN when it has leading zeroes.
Signed-off-by: Brian King <[email protected]>
commit 2f6c718ac7fdfa9757a8e446199d57f2648ac8e7
Author: Aruna Balakrishnaiah <[email protected]>
Date: Wed Mar 12 08:38:34 2014 -0500
snap: Fix call traces seen while capturing lparcfg and rtas files
As the lparcfg and rtas procfs files are not populated properly by the
kernel on the PowerKVM guest do not capture it.
Signed-off-by: Aruna Balakrishnaiah <[email protected]>
commit 05b14ae4cd87642c08a72c3c0a8bc2bb6a1b8d0b
Author: Nathan Fontenot <[email protected]>
Date: Wed Mar 12 08:16:45 2014 -0500
lsslot: Correct the return code when no DR slots found
The lsslot command exits with a return code of 1 when there
are not any DR slots found. We should not consider it an error
that no DR capable slots are found.
This patch updates lsslot to exit with zero if no DR capable
slots are found.
Signed-off-by: Nathan Fontenot <[email protected]>
commit 500763c1058664b147523e68f4e046ecd5fa572c
Author: Nathan Fontenot <[email protected]>
Date: Wed Mar 12 08:13:38 2014 -0500
drmgr: Correct parsing of -s option
The -s option can be used to specify a drc name or a drc index in
some cases. We need to leave the parsing of this value to the
individual commands in drmgr instead of always assuming that
strings starting with "0x" should be parsed into ints.
Signed-off-by: Nathan Fontenot <[email protected]>
powerpc-utils-1.2.19
=====================================================================
commit 08fd1d73a0cb66ff9db5cc29c7f3d19182c1c5a0
Author: Greg Kurz <[email protected]>
Date: Mon Mar 3 13:00:10 2014 -0600
drmgr: data comming from OF is big endian
The chunk in get_of_list_prop() fixes the following:
Allocation failure (8f00000000) at get_drc_info:240
We also introduce the get_ofdt_int_property() helper to factor the many
places where byteswap is needed in the PCI code.
Signed-off-by: Greg Kurz <[email protected]>
commit 734983c5d40760848eee51d5b0915a1929416126
Author: Greg Kurz <[email protected]>
Date: Mon Mar 3 12:57:49 2014 -0600
lsprop, nvram: use standard macros from <endian.h>
Signed-off-by: Greg Kurz <[email protected]>
commit 0af3468456d06f5e64fee36f80df605e4f3d15b8
Author: Greg Kurz <[email protected]>
Date: Fri Feb 28 12:53:45 2014 -0600
drmgr: fix wrong check of valid_platform() return value
Signed-off-by: Greg Kurz <[email protected]>
commit 425fef8cfca8b8cd57b78aaecbba8cf2fb647cb1
Author: Vasant Hegde <[email protected]>
Date: Fri Feb 28 12:51:25 2014 -0600
update_flash: Add update access key link
Add link to get new access key.
Signed-off-by: Vasant Hegde <[email protected]>
commit 62ac13a21a3f61e6974fd8df5a273635e691f7a6
Author: Joel Stanley <[email protected]>
Date: Fri Feb 28 12:49:53 2014 -0600
ppc64_cpu: use write(2) when modifying sysfs
This improves the error handling when setting attributes fails. fprintf
does not return an error when a sysfs write returns an error. Using the
write(2), we can catch bad return codes and inform the user.
The callers of set_attribute have been updated to ignore errors where
they are expected.
This fixes the following bug:
Modifying --subcores-per-core when a guest is running is not allowed.
sysfs reports -EBUSY but currently ppc64_cpu reports success, despite
not doing anything.