History

s390: support command lines longer than 896 bytes

Currently s390 supports a fixed maximum command line length of 896 bytes. This isn't enough as some installers are trying to pass all configuration data via kernel command line, and even with zfcp alone it is easy to generate really long command lines. Therefore extend the command line to 4 kbytes. In the parm area where the command line is stored there is no indication of the maximum allowed length, so a new field which contains the maximum length is added. The parm area has always been initialized to zero, so with old kernels this field would read zero. This is important because tools like zipl could read this field. If it contains a number larger than zero zipl knows the maximum length that can be stored in the parm area, otherwise it must assume that it is booting a legacy kernel and only 896 bytes are available. The removing of trailing whitespace in head.S is also removed because code to do this is already present in setup_boot_command_line().

Sven Schnelle committed 5 years ago

Commit 5ecb2da1 parent 277c8387 files · +39 −34Browse files

Showing the changes to arch/s390/include/uapi/asm (1 of 7 files). Show all

Unified · Split

arch/s390/include/uapi/asm/setup.h+0−2
@@ -9,6 +9,4 @@ · 8 unmodified lines
9 9
10#define COMMAND_LINE_SIZE 409610#define COMMAND_LINE_SIZE 4096
11 11
12#define ARCH_COMMAND_LINE_SIZE 896
13
14#endif /* _UAPI_ASM_S390_SETUP_H */12#endif /* _UAPI_ASM_S390_SETUP_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t