Bug 1794441

Summary: [PATCH] Add support for riscv64
Product: [Fedora] Fedora Reporter: David Abdurachmanov <david.abdurachmanov>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: airlied, bskeggs, hdegoede, ichavero, itamar, jarodwilson, jeremy, jglisse, john.j5live, jonathan, josef, kernel-maint, linville, masami256, mchehab, me, mjg59, rjones, steved, sztsian, tekkamanninja, wefu, zsun
Target Milestone: ---   
Target Release: ---   
Hardware: riscv64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1553405    
Attachments:
Description Flags
kernel distgit changes none

Description David Abdurachmanov 2020-01-23 15:36:34 UTC
Created attachment 1654873 [details]
kernel distgit changes

I would like to get Fedora/RISCV [0] kernel distgit changes merged. The changes have not changed in significant way for several kernel releases now. The built upstream kernel (a single image) works on QEMU virt machine and SiFive Unleashed board (physical RV64GC hardware).

Configuration wise there are two generic changes (touched other arches):

  configs/fedora/generic/CONFIG_ARM_TIMER_SP804
  configs/fedora/generic/CONFIG_NETFILTER_XT_TARGET_MASQUERADE

- We disable CONFIG_ARM_TIMER_SP804 for all arches expect ARM and ARM64. For some reason Kconfig constantly attempts to select it while building kernel for riscv. This should have no actual affect.

I also upstreamed a patch to add COMPILE_TEST: https://github.com/torvalds/linux/commit/dfc82faad72520769ca146f857e65c23632eed5a

- CONFIG_NETFILTER_XT_TARGET_MASQUERADE seems to be the only target not built from CONFIG_NETFILTER_XT_TARGET_* set thus I added it. This should have no actual affect as all arches already have "CONFIG_NETFILTER_XT_TARGET_MASQUERADE=m" in their configs thus it's auto-selected by Kconfig.

[0] https://fedoraproject.org/wiki/Architectures/RISC-V