ommu/exynos: Add IOMMU/System MMU driver for Samsung Exynos
v8 cover ommu/exynos: Add IOMMU/System MMU driver for Samsung Exynos
Changes since v7:
- Rebased with the recent commits of the following git branches
* git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git/next
* git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git/for-next
- Changed magic numbers into macros
- Setting owner of a System MMU in 'iommu' field of dev_archdata
- Verbose message in the default fault handler
- Some bug fixes.
Changes since v6:
- Totally rewrite exynos_iommu_map() and exynos_iommu_unmap() according to the change in iommu_map() and iommu_unmap().
- Change special slab for Lv2 page table to kmalloc().
Changes since v5:
- Relation between device and a domain become n:1 (Joerg's comment)
- Implements iommu_commit(). --> Removed
Changes since v4:
- exynos_iommu_unmap()returns unmapped size in page order (Ohad Ben-Cohen's comment)
- Fixed typo error of resource names
- Fixed missing #include<mach/sysmmu.h>
in arch/arm/mach-exynos4/mach-armlex4210.c
Changes since v3:
- Used DEFINE_RES_MEM and DEFINE_RES_IRQ macros
to define resources of System MMU (Russell King's comment)
- Fixed removal of CONFIG_S5P_SLEEP definition (Sylwester Nawrocki's comment)
Changes since v2:
- Add lock for System MMU private data.
And fixes the following problems pointed by Joerg Rodel:
- Fix wrong argument to kmalloc() and get_free_pages()
- Merged patches into 2 due to bisectability
Changes since v1:
Fixes of the following problems pointed by Russell King.:
- Missing unlocking a spinlock in exynos_iommu_attach_dev().
- atomic_t -> int in sysmmu_drvdata.activations
- sysmmu_platdata -> sysmmu_drvdata
- Change in error messages in irq handler
- Removed casting in format of error message
- omap_iommu_ops -> exynos_iommu_ops in the last patch
Patch Summary:
[PATCH v8 1/2] ARM: EXYNOS: Change System MMU platform device definitions [PATCH v8 2/2] iommu/exynos: Add iommu driver for Exynos Platforms
The first patche enhances System MMU platform device definition:
- Removed System MMU for MDMA0 in TOP block because it is not used. Use MDMA2 in LCD block.
- Removed System MMU ID. Instead, a System MMU is bound to a device that the System MMU is dedicated during machin initialization. If a device driver wants to handle System MMU, it must bind its device with System MMU with sysmmu_set_owner().
- clkdev
The last patch implements IOMMU API:
- System MMU device driver is removed from arch/arm/plat-s5p to move it to driver/iommu directory.
- Implements IOMMU API and System MMU driver that is moved from
arch/arm/plat-s5p.
- Implements fault handling that is suggested by Ohad.
- Used bus_set_iommu instead of register_iommu that is suggested by Joerg.
Diffstats:
arch/arm/mach-exynos/Kconfig | 5 + arch/arm/mach-exynos/clock-exynos4210.c | 16 + arch/arm/mach-exynos/clock-exynos4212.c | 1 + arch/arm/mach-exynos/clock.c | 55 +- arch/arm/mach-exynos/dev-sysmmu.c | 277 ++----- arch/arm/mach-exynos/include/mach/dev-sysmmu.h | 64 ++ arch/arm/mach-exynos/include/mach/exynos4-clock.h | 1 + arch/arm/mach-exynos/include/mach/map.h | 3 +- arch/arm/mach-exynos/include/mach/regs-sysmmu.h | 26 +- arch/arm/mach-exynos/include/mach/sysmmu.h | 46 - arch/arm/mach-exynos/mach-armlex4210.c | 1 - arch/arm/mach-exynos/mach-nuri.c | 40 + arch/arm/mach-exynos/mach-origen.c | 42 + arch/arm/mach-exynos/mach-smdk4x12.c | 22 + arch/arm/mach-exynos/mach-smdkv310.c | 43 +- arch/arm/mach-exynos/mach-universal_c210.c | 42 + arch/arm/plat-s5p/Kconfig | 8 - arch/arm/plat-s5p/Makefile | 1 - arch/arm/plat-s5p/sysmmu.c | 313 ------- arch/arm/plat-samsung/include/plat/devs.h | 1 - arch/arm/plat-samsung/include/plat/sysmmu.h | 95 -- drivers/iommu/Kconfig | 12 + drivers/iommu/Makefile | 1 + drivers/iommu/exynos-iommu.c | 1008 +++++++++++++++++++++ 24 files changed, 1399 insertions(+), 724 deletions(-)
Hi,
Quoted 8 lines · KyongHo Cho
Changes since v7:
- Rebased with the recent commits of the following git branches
* git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git/next
* git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git/for-next
- Changed magic numbers into macros
- Setting owner of a System MMU in 'iommu' field ofdev_archdata
- Verbose message in the default fault handler
- Some bug fixes.
I still get
LD .tmp_vmlinux1
/data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined make[1]: *** [.tmp_vmlinux1] Error 1
when trying to compile ARM/Exynos with 3.2-rc7. Am I doing something wrong or is this not expected to work?
Joerg
Signature · 5 lines
AMD Operating System Research Center Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach General Managers: Alberto Bozzo, Andrew Bowd Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632
Hi
Quoted 14 lines · Joerg Roedel
Hi,
Quoted 8 lines · KyongHo Cho
Changes since v7:
- Rebased with the recent commits of the following git branches ? * git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git/next ? * git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git/for-next
- Changed magic numbers into macros
- Setting owner of a System MMU in 'iommu' field ofdev_archdata
- Verbose message in the default fault handler
- Some bug fixes.I still get
Quoted 9 lines
?LD ? ? ?.tmp_vmlinux1 /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined make[1]: *** [.tmp_vmlinux1] Error 1
when trying to compile ARM/Exynos with 3.2-rc7. Am I doing something wrong or is this not expected to work?
Do you?
Ok. I will check my configuration with linux-next git.
Thank you.
KyongHo
Quoted 8 lines · KyongHo Cho
Quoted 8 lines
I still get
?LD ? ? ?.tmp_vmlinux1 /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined make[1]: *** [.tmp_vmlinux1] Error 1
Quoted 5 lines
Quoted 3 lines
when trying to compile ARM/Exynos with 3.2-rc7. Am I doing something wrong or is this not expected to work?
Do you?
Ok. I will check my configuration with linux-next git.
Compiling my exynos-config with linux-next gives me:
CC arch/arm/kernel/process.o
In file included from /data/lemmy/linux.trees.git/arch/arm/mach-exynos/include/mach/system.h:16:0,
from /data/lemmy/linux.trees.git/arch/arm/kernel/process.c:64:
/data/lemmy/linux.trees.git/arch/arm/plat-samsung/include/plat/system-reset.h:19:2: error: #error Fix me up
I better not ask the question how such an #error statement can come through to linux-next. But what I can say is that I will not merge your code until you guys make sure that your upstream platform code has enough quality so that it at least compiles.
I attach the config I used for my compile-test.
Joerg
Signature · 747 lines
AMD Operating System Research Center Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach General Managers: Alberto Bozzo, Andrew Bowd Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632 -------------- next part -------------- CONFIG_ARM=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y CONFIG_GENERIC_GPIO=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_KTIME_SCALAR=y CONFIG_HAVE_PROC_CPU=y CONFIG_NO_IOPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_HAVE_LATENCYTOP_SUPPORT=y CONFIG_LOCKDEP_SUPPORT=y CONFIG_TRACE_IRQFLAGS_SUPPORT=y CONFIG_HARDIRQS_SW_RESEND=y CONFIG_GENERIC_IRQ_PROBE=y CONFIG_RWSEM_GENERIC_SPINLOCK=y CONFIG_ARCH_HAS_CPUFREQ=y CONFIG_ARCH_HAS_CPU_IDLE_WAIT=y CONFIG_GENERIC_HWEIGHT=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_VECTORS_BASE=0xffff0000 CONFIG_ARM_PATCH_PHYS_VIRT=y CONFIG_NEED_MACH_MEMORY_H=y CONFIG_GENERIC_BUG=y CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_HAVE_IRQ_WORK=y CONFIG_IRQ_WORK=y CONFIG_EXPERIMENTAL=y CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" CONFIG_LOCALVERSION="-kvm" CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_KERNEL_GZIP=y CONFIG_DEFAULT_HOSTNAME="(none)" CONFIG_SWAP=y CONFIG_SYSVIPC=y CONFIG_SYSVIPC_SYSCTL=y CONFIG_POSIX_MQUEUE=y CONFIG_POSIX_MQUEUE_SYSCTL=y CONFIG_BSD_PROCESS_ACCT=y CONFIG_BSD_PROCESS_ACCT_V3=y CONFIG_TASKSTATS=y CONFIG_TASK_DELAY_ACCT=y CONFIG_TASK_XACCT=y CONFIG_TASK_IO_ACCOUNTING=y CONFIG_AUDIT=y CONFIG_HAVE_GENERIC_HARDIRQS=y CONFIG_GENERIC_HARDIRQS=y CONFIG_HAVE_SPARSE_IRQ=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_IRQ_CHIP=y CONFIG_IRQ_DOMAIN=y CONFIG_SPARSE_IRQ=y CONFIG_TINY_RCU=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_LOG_BUF_SHIFT=18 CONFIG_CGROUPS=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_DEVICE=y CONFIG_CPUSETS=y CONFIG_PROC_PID_CPUSET=y CONFIG_CGROUP_CPUACCT=y CONFIG_RESOURCE_COUNTERS=y CONFIG_CGROUP_MEM_RES_CTLR=y CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y CONFIG_CGROUP_MEM_RES_CTLR_SWAP_ENABLED=y CONFIG_CGROUP_SCHED=y CONFIG_FAIR_GROUP_SCHED=y CONFIG_RT_GROUP_SCHED=y CONFIG_NAMESPACES=y CONFIG_UTS_NS=y CONFIG_IPC_NS=y CONFIG_USER_NS=y CONFIG_PID_NS=y CONFIG_NET_NS=y CONFIG_SCHED_AUTOGROUP=y CONFIG_MM_OWNER=y CONFIG_RELAY=y CONFIG_BLK_DEV_INITRD=y CONFIG_INITRAMFS_SOURCE="" CONFIG_RD_GZIP=y CONFIG_RD_BZIP2=y CONFIG_RD_LZMA=y CONFIG_RD_XZ=y CONFIG_RD_LZO=y CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_SYSCTL=y CONFIG_ANON_INODES=y CONFIG_UID16=y CONFIG_KALLSYMS=y CONFIG_KALLSYMS_ALL=y CONFIG_HOTPLUG=y CONFIG_PRINTK=y CONFIG_BUG=y CONFIG_ELF_CORE=y CONFIG_BASE_FULL=y CONFIG_FUTEX=y CONFIG_EPOLL=y CONFIG_SIGNALFD=y CONFIG_TIMERFD=y CONFIG_EVENTFD=y CONFIG_SHMEM=y CONFIG_AIO=y CONFIG_HAVE_PERF_EVENTS=y CONFIG_PERF_USE_VMALLOC=y CONFIG_PERF_EVENTS=y CONFIG_PERF_COUNTERS=y CONFIG_VM_EVENT_COUNTERS=y CONFIG_SLUB_DEBUG=y CONFIG_SLUB=y CONFIG_PROFILING=y CONFIG_TRACEPOINTS=y CONFIG_OPROFILE=m CONFIG_HAVE_OPROFILE=y CONFIG_KPROBES=y CONFIG_KRETPROBES=y CONFIG_HAVE_KPROBES=y CONFIG_HAVE_KRETPROBES=y CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y CONFIG_HAVE_CLK=y CONFIG_HAVE_DMA_API_DEBUG=y CONFIG_HAVE_HW_BREAKPOINT=y CONFIG_HAVE_GENERIC_DMA_COHERENT=y CONFIG_SLABINFO=y CONFIG_RT_MUTEXES=y CONFIG_BASE_SMALL=0 CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_MODVERSIONS=y CONFIG_MODULE_SRCVERSION_ALL=y CONFIG_BLOCK=y CONFIG_LBDAF=y CONFIG_BLK_DEV_BSG=y CONFIG_BLK_DEV_BSGLIB=y CONFIG_BLK_DEV_INTEGRITY=y CONFIG_IOSCHED_NOOP=y CONFIG_IOSCHED_DEADLINE=y CONFIG_IOSCHED_CFQ=y CONFIG_DEFAULT_DEADLINE=y CONFIG_DEFAULT_IOSCHED="deadline" CONFIG_INLINE_SPIN_UNLOCK=y CONFIG_INLINE_SPIN_UNLOCK_IRQ=y CONFIG_INLINE_READ_UNLOCK=y CONFIG_INLINE_READ_UNLOCK_IRQ=y CONFIG_INLINE_WRITE_UNLOCK=y CONFIG_INLINE_WRITE_UNLOCK_IRQ=y CONFIG_FREEZER=y CONFIG_MMU=y CONFIG_ARCH_EXYNOS=y CONFIG_PLAT_SAMSUNG=y CONFIG_S3C_BOOT_UART_FORCE_FIFO=y CONFIG_S3C_LOWLEVEL_UART_PORT=0 CONFIG_SAMSUNG_CLKSRC=y CONFIG_SAMSUNG_IRQ_VIC_TIMER=y CONFIG_SAMSUNG_GPIOLIB_4BIT=y CONFIG_S5P_GPIO_DRVSTR=y CONFIG_SAMSUNG_GPIO_EXTRA=0 CONFIG_S3C_GPIO_SPACE=0 CONFIG_S3C_GPIO_TRACK=y CONFIG_SAMSUNG_DMADEV=y CONFIG_PLAT_S5P=y CONFIG_S5P_PM=y CONFIG_S5P_SLEEP=y CONFIG_ARCH_EXYNOS4=y CONFIG_CPU_EXYNOS4210=y CONFIG_SOC_EXYNOS4212=y CONFIG_SOC_EXYNOS4412=y CONFIG_EXYNOS4_MCT=y CONFIG_CPU_V7=y CONFIG_CPU_32v6K=y CONFIG_CPU_32v7=y CONFIG_CPU_ABRT_EV7=y CONFIG_CPU_PABRT_V7=y CONFIG_CPU_CACHE_V7=y CONFIG_CPU_CACHE_VIPT=y CONFIG_CPU_COPY_V6=y CONFIG_CPU_TLB_V7=y CONFIG_CPU_HAS_ASID=y CONFIG_CPU_CP15=y CONFIG_CPU_CP15_MMU=y CONFIG_ARM_THUMB=y CONFIG_OUTER_CACHE=y CONFIG_OUTER_CACHE_SYNC=y CONFIG_CACHE_L2X0=y CONFIG_CACHE_PL310=y CONFIG_ARM_L1_CACHE_SHIFT=5 CONFIG_ARM_DMA_MEM_BUFFERABLE=y CONFIG_CPU_HAS_PMU=y CONFIG_ARM_GIC=y CONFIG_PL330=y CONFIG_ARM_AMBA=y CONFIG_TICK_ONESHOT=y CONFIG_NO_HZ=y CONFIG_HIGH_RES_TIMERS=y CONFIG_GENERIC_CLOCKEVENTS_BUILD=y CONFIG_VMSPLIT_3G=y CONFIG_PAGE_OFFSET=0xC0000000 CONFIG_PREEMPT_NONE=y CONFIG_HZ=200 CONFIG_ARCH_HAS_HOLES_MEMORYMODEL=y CONFIG_ARCH_SPARSEMEM_ENABLE=y CONFIG_ARCH_SPARSEMEM_DEFAULT=y CONFIG_ARCH_SELECT_MEMORY_MODEL=y CONFIG_HAVE_ARCH_PFN_VALID=y CONFIG_HW_PERF_EVENTS=y CONFIG_SELECT_MEMORY_MODEL=y CONFIG_SPARSEMEM_MANUAL=y CONFIG_SPARSEMEM=y CONFIG_HAVE_MEMORY_PRESENT=y CONFIG_SPARSEMEM_EXTREME=y CONFIG_HAVE_MEMBLOCK=y CONFIG_SPLIT_PTLOCK_CPUS=4 CONFIG_COMPACTION=y CONFIG_MIGRATION=y CONFIG_ZONE_DMA_FLAG=0 CONFIG_VIRT_TO_BUS=y CONFIG_KSM=y CONFIG_DEFAULT_MMAP_MIN_ADDR=65536 CONFIG_NEED_PER_CPU_KM=y CONFIG_FORCE_MAX_ZONEORDER=11 CONFIG_ALIGNMENT_TRAP=y CONFIG_SECCOMP=y CONFIG_CC_STACKPROTECTOR=y CONFIG_ZBOOT_ROM_TEXT=0x0 CONFIG_ZBOOT_ROM_BSS=0x0 CONFIG_CMDLINE="" CONFIG_KEXEC=y CONFIG_ATAGS_PROC=y CONFIG_CRASH_DUMP=y CONFIG_CPU_IDLE=y CONFIG_CPU_IDLE_GOV_LADDER=y CONFIG_CPU_IDLE_GOV_MENU=y CONFIG_BINFMT_ELF=y CONFIG_HAVE_AOUT=y CONFIG_SUSPEND=y CONFIG_SUSPEND_FREEZER=y CONFIG_PM_SLEEP=y CONFIG_PM_RUNTIME=y CONFIG_PM=y CONFIG_PM_DEBUG=y CONFIG_PM_TEST_SUSPEND=y CONFIG_CAN_PM_TRACE=y CONFIG_PM_CLK=y CONFIG_CPU_PM=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARM_CPU_SUSPEND=y CONFIG_NET=y CONFIG_PACKET=y CONFIG_UNIX=y CONFIG_INET=y CONFIG_IP_MULTICAST=y CONFIG_IP_ADVANCED_ROUTER=y CONFIG_IP_MULTIPLE_TABLES=y CONFIG_IP_ROUTE_MULTIPATH=y CONFIG_IP_ROUTE_VERBOSE=y CONFIG_IP_MROUTE=y CONFIG_IP_PIMSM_V1=y CONFIG_IP_PIMSM_V2=y CONFIG_SYN_COOKIES=y CONFIG_INET_LRO=y CONFIG_INET_DIAG=y CONFIG_INET_TCP_DIAG=y CONFIG_TCP_CONG_ADVANCED=y CONFIG_TCP_CONG_CUBIC=y CONFIG_DEFAULT_CUBIC=y CONFIG_DEFAULT_TCP_CONG="cubic" CONFIG_TCP_MD5SIG=y CONFIG_IPV6=y CONFIG_IPV6_PRIVACY=y CONFIG_IPV6_MULTIPLE_TABLES=y CONFIG_NETLABEL=y CONFIG_NETWORK_SECMARK=y CONFIG_NETFILTER=y CONFIG_NETFILTER_ADVANCED=y CONFIG_NET_DSA=y CONFIG_NET_DSA_TAG_DSA=y CONFIG_NET_DSA_TAG_EDSA=y CONFIG_NET_DSA_TAG_TRAILER=y CONFIG_NET_DSA_MV88E6XXX=y CONFIG_NET_DSA_MV88E6060=y CONFIG_NET_DSA_MV88E6XXX_NEED_PPU=y CONFIG_NET_DSA_MV88E6131=y CONFIG_NET_DSA_MV88E6123_61_65=y CONFIG_NET_SCHED=y CONFIG_NET_CLS=y CONFIG_NET_CLS_CGROUP=y CONFIG_NET_EMATCH=y CONFIG_NET_EMATCH_STACK=32 CONFIG_NET_CLS_ACT=y CONFIG_NET_SCH_FIFO=y CONFIG_DCB=y CONFIG_DNS_RESOLVER=y CONFIG_HAMRADIO=y CONFIG_FIB_RULES=y CONFIG_WIRELESS=y CONFIG_RFKILL=y CONFIG_RFKILL_INPUT=y CONFIG_UEVENT_HELPER_PATH="" CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_PREVENT_FIRMWARE_BUILD=y CONFIG_FW_LOADER=y CONFIG_FIRMWARE_IN_KERNEL=y CONFIG_EXTRA_FIRMWARE="" CONFIG_CONNECTOR=y CONFIG_PROC_EVENTS=y CONFIG_MTD=m CONFIG_MTD_MAP_BANK_WIDTH_1=y CONFIG_MTD_MAP_BANK_WIDTH_2=y CONFIG_MTD_MAP_BANK_WIDTH_4=y CONFIG_MTD_CFI_I1=y CONFIG_MTD_CFI_I2=y CONFIG_MTD_COMPLEX_MAPPINGS=y CONFIG_BLK_DEV=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_LOOP_MIN_COUNT=8 CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=16 CONFIG_BLK_DEV_RAM_SIZE=65536 CONFIG_CDROM_PKTCDVD=y CONFIG_CDROM_PKTCDVD_BUFFERS=8 CONFIG_MISC_DEVICES=y CONFIG_SCSI_MOD=y CONFIG_SCSI=y CONFIG_SCSI_DMA=y CONFIG_SCSI_NETLINK=y CONFIG_SCSI_PROC_FS=y CONFIG_BLK_DEV_SD=y CONFIG_BLK_DEV_SR=y CONFIG_CHR_DEV_SG=y CONFIG_SCSI_MULTI_LUN=y CONFIG_SCSI_CONSTANTS=y CONFIG_SCSI_LOGGING=y CONFIG_SCSI_SCAN_ASYNC=y CONFIG_SCSI_WAIT_SCAN=m CONFIG_SCSI_SPI_ATTRS=y CONFIG_SCSI_FC_ATTRS=m CONFIG_SCSI_ISCSI_ATTRS=m CONFIG_SCSI_LOWLEVEL=y CONFIG_SCSI_DH=y CONFIG_ATA=y CONFIG_ATA_VERBOSE_ERROR=y CONFIG_SATA_PMP=y CONFIG_SATA_AHCI_PLATFORM=y CONFIG_ATA_SFF=y CONFIG_ATA_BMDMA=y CONFIG_MD=y CONFIG_BLK_DEV_MD=y CONFIG_MD_AUTODETECT=y CONFIG_BLK_DEV_DM=y CONFIG_DM_SNAPSHOT=y CONFIG_DM_MIRROR=y CONFIG_DM_MULTIPATH=y CONFIG_DM_UEVENT=y CONFIG_NETDEVICES=y CONFIG_NET_CORE=y CONFIG_TUN=y CONFIG_ETHERNET=y CONFIG_NET_VENDOR_BROADCOM=y CONFIG_NET_VENDOR_CHELSIO=y CONFIG_NET_VENDOR_FARADAY=y CONFIG_NET_VENDOR_INTEL=y CONFIG_NET_VENDOR_I825XX=y CONFIG_NET_VENDOR_MARVELL=y CONFIG_NET_VENDOR_MICREL=y CONFIG_NET_VENDOR_MICROCHIP=y CONFIG_NET_VENDOR_NATSEMI=y CONFIG_NET_VENDOR_8390=y CONFIG_NET_VENDOR_SEEQ=y CONFIG_NET_VENDOR_SMSC=y CONFIG_NET_VENDOR_STMICRO=y CONFIG_PHYLIB=y CONFIG_MARVELL_PHY=y CONFIG_DAVICOM_PHY=y CONFIG_QSEMI_PHY=y CONFIG_LXT_PHY=y CONFIG_CICADA_PHY=y CONFIG_VITESSE_PHY=y CONFIG_SMSC_PHY=y CONFIG_BROADCOM_PHY=y CONFIG_ICPLUS_PHY=y CONFIG_REALTEK_PHY=y CONFIG_NATIONAL_PHY=y CONFIG_STE10XP=y CONFIG_LSI_ET1011C_PHY=y CONFIG_FIXED_PHY=y CONFIG_MDIO_BITBANG=y CONFIG_MDIO_GPIO=y CONFIG_PPP=y CONFIG_PPP_DEFLATE=m CONFIG_PPP_FILTER=y CONFIG_PPP_MULTILINK=y CONFIG_SLHC=y CONFIG_WLAN=y CONFIG_WAN=y CONFIG_INPUT=y CONFIG_INPUT_MOUSEDEV=y CONFIG_INPUT_MOUSEDEV_PSAUX=y CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 CONFIG_INPUT_EVDEV=y CONFIG_INPUT_KEYBOARD=y CONFIG_KEYBOARD_ATKBD=y CONFIG_INPUT_MOUSE=y CONFIG_MOUSE_PS2=m CONFIG_MOUSE_PS2_ALPS=y CONFIG_MOUSE_PS2_LOGIPS2PP=y CONFIG_MOUSE_PS2_SYNAPTICS=y CONFIG_MOUSE_PS2_TRACKPOINT=y CONFIG_MOUSE_PS2_ELANTECH=y CONFIG_MOUSE_PS2_SENTELIC=y CONFIG_INPUT_JOYSTICK=y CONFIG_INPUT_TABLET=y CONFIG_INPUT_TOUCHSCREEN=y CONFIG_INPUT_MISC=y CONFIG_SERIO=y CONFIG_SERIO_LIBPS2=y CONFIG_SERIO_RAW=m CONFIG_VT=y CONFIG_CONSOLE_TRANSLATIONS=y CONFIG_VT_CONSOLE=y CONFIG_VT_CONSOLE_SLEEP=y CONFIG_HW_CONSOLE=y CONFIG_VT_HW_CONSOLE_BINDING=y CONFIG_UNIX98_PTYS=y CONFIG_DEVPTS_MULTIPLE_INSTANCES=y CONFIG_LEGACY_PTYS=y CONFIG_LEGACY_PTY_COUNT=0 CONFIG_SERIAL_NONSTANDARD=y CONFIG_STALDRV=y CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_8250_NR_UARTS=48 CONFIG_SERIAL_8250_RUNTIME_UARTS=4 CONFIG_SERIAL_8250_EXTENDED=y CONFIG_SERIAL_8250_MANY_PORTS=y CONFIG_SERIAL_8250_SHARE_IRQ=y CONFIG_SERIAL_8250_RSA=y CONFIG_SERIAL_SAMSUNG_UARTS=3 CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_CONSOLE_POLL=y CONFIG_HW_RANDOM=y CONFIG_I2C=y CONFIG_I2C_BOARDINFO=y CONFIG_I2C_COMPAT=y CONFIG_I2C_ALGOBIT=m CONFIG_HAVE_S3C2410_I2C=y CONFIG_SPI=y CONFIG_SPI_MASTER=y CONFIG_SPI_PL022=y CONFIG_ARCH_REQUIRE_GPIOLIB=y CONFIG_GPIOLIB=y CONFIG_GPIO_SYSFS=y CONFIG_POWER_SUPPLY=y CONFIG_HWMON=y CONFIG_THERMAL=y CONFIG_THERMAL_HWMON=y CONFIG_WATCHDOG=y CONFIG_HAVE_S3C2410_WATCHDOG=y CONFIG_SSB_POSSIBLE=y CONFIG_BCMA_POSSIBLE=y CONFIG_TWL4030_CORE=y CONFIG_PMIC_DA903X=y CONFIG_REGULATOR=y CONFIG_REGULATOR_TWL4030=y CONFIG_DRM=m CONFIG_VIDEO_OUTPUT_CONTROL=m CONFIG_FB=y CONFIG_FIRMWARE_EDID=y CONFIG_FB_MODE_HELPERS=y CONFIG_FB_TILEBLITTING=y CONFIG_BACKLIGHT_LCD_SUPPORT=y CONFIG_BACKLIGHT_CLASS_DEVICE=y CONFIG_DUMMY_CONSOLE=y CONFIG_FRAMEBUFFER_CONSOLE=m CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y CONFIG_FONT_8x8=y CONFIG_FONT_8x16=y CONFIG_HID_SUPPORT=y CONFIG_HID_PID=y CONFIG_MMC=y CONFIG_NEW_LEDS=y CONFIG_RTC_LIB=y CONFIG_RTC_CLASS=y CONFIG_RTC_HCTOSYS=y CONFIG_RTC_HCTOSYS_DEVICE="rtc0" CONFIG_RTC_INTF_SYSFS=y CONFIG_RTC_INTF_PROC=y CONFIG_RTC_INTF_DEV=y CONFIG_RTC_INTF_DEV_UIE_EMUL=y CONFIG_RTC_DRV_CMOS=y CONFIG_HAVE_S3C_RTC=y CONFIG_DMADEVICES=y CONFIG_PL330_DMA=y CONFIG_DMA_ENGINE=y CONFIG_AUXDISPLAY=y CONFIG_UIO=m CONFIG_STAGING=y CONFIG_CLKDEV_LOOKUP=y CONFIG_IOMMU_SUPPORT=y CONFIG_EXT2_FS=y CONFIG_EXT2_FS_XATTR=y CONFIG_EXT2_FS_POSIX_ACL=y CONFIG_EXT2_FS_SECURITY=y CONFIG_EXT3_FS=y CONFIG_EXT3_DEFAULTS_TO_ORDERED=y CONFIG_EXT3_FS_XATTR=y CONFIG_EXT3_FS_POSIX_ACL=y CONFIG_EXT3_FS_SECURITY=y CONFIG_EXT4_FS=y CONFIG_EXT4_FS_XATTR=y CONFIG_EXT4_FS_POSIX_ACL=y CONFIG_EXT4_FS_SECURITY=y CONFIG_JBD=y CONFIG_JBD2=y CONFIG_FS_MBCACHE=y CONFIG_REISERFS_FS=m CONFIG_REISERFS_FS_XATTR=y CONFIG_REISERFS_FS_POSIX_ACL=y CONFIG_REISERFS_FS_SECURITY=y CONFIG_JFS_FS=m CONFIG_JFS_POSIX_ACL=y CONFIG_JFS_SECURITY=y CONFIG_JFS_STATISTICS=y CONFIG_XFS_FS=m CONFIG_XFS_QUOTA=y CONFIG_XFS_POSIX_ACL=y CONFIG_XFS_RT=y CONFIG_BTRFS_FS=m CONFIG_BTRFS_FS_POSIX_ACL=y CONFIG_FS_POSIX_ACL=y CONFIG_EXPORTFS=m CONFIG_FILE_LOCKING=y CONFIG_FSNOTIFY=y CONFIG_DNOTIFY=y CONFIG_INOTIFY_USER=y CONFIG_QUOTA=y CONFIG_QUOTA_NETLINK_INTERFACE=y CONFIG_QUOTACTL=y CONFIG_FUSE_FS=y CONFIG_GENERIC_ACL=y CONFIG_FAT_FS=m CONFIG_MSDOS_FS=m CONFIG_VFAT_FS=m CONFIG_FAT_DEFAULT_CODEPAGE=437 CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" CONFIG_NTFS_FS=m CONFIG_PROC_FS=y CONFIG_PROC_VMCORE=y CONFIG_PROC_SYSCTL=y CONFIG_PROC_PAGE_MONITOR=y CONFIG_SYSFS=y CONFIG_TMPFS=y CONFIG_TMPFS_POSIX_ACL=y CONFIG_TMPFS_XATTR=y CONFIG_MISC_FILESYSTEMS=y CONFIG_ECRYPT_FS=y CONFIG_HFS_FS=m CONFIG_HFSPLUS_FS=m CONFIG_JFFS2_FS=m CONFIG_JFFS2_FS_DEBUG=0 CONFIG_JFFS2_FS_WRITEBUFFER=y CONFIG_JFFS2_COMPRESSION_OPTIONS=y CONFIG_JFFS2_ZLIB=y CONFIG_JFFS2_LZO=y CONFIG_JFFS2_RTIME=y CONFIG_JFFS2_CMODE_FAVOURLZO=y CONFIG_MINIX_FS=m CONFIG_QNX4FS_FS=m CONFIG_UFS_FS=m CONFIG_NETWORK_FILESYSTEMS=y CONFIG_NFS_FS=m CONFIG_NFS_V3=y CONFIG_NFS_V3_ACL=y CONFIG_NFS_V4=y CONFIG_NFS_USE_KERNEL_DNS=y CONFIG_NFSD=m CONFIG_NFSD_V2_ACL=y CONFIG_NFSD_V3=y CONFIG_NFSD_V3_ACL=y CONFIG_NFSD_V4=y CONFIG_LOCKD=m CONFIG_LOCKD_V4=y CONFIG_NFS_ACL_SUPPORT=m CONFIG_NFS_COMMON=y CONFIG_SUNRPC=m CONFIG_SUNRPC_GSS=m CONFIG_RPCSEC_GSS_KRB5=m CONFIG_PARTITION_ADVANCED=y CONFIG_ACORN_PARTITION=y CONFIG_ACORN_PARTITION_ICS=y CONFIG_ACORN_PARTITION_RISCIX=y CONFIG_OSF_PARTITION=y CONFIG_AMIGA_PARTITION=y CONFIG_ATARI_PARTITION=y CONFIG_MAC_PARTITION=y CONFIG_MSDOS_PARTITION=y CONFIG_BSD_DISKLABEL=y CONFIG_MINIX_SUBPARTITION=y CONFIG_SOLARIS_X86_PARTITION=y CONFIG_UNIXWARE_DISKLABEL=y CONFIG_LDM_PARTITION=y CONFIG_SGI_PARTITION=y CONFIG_ULTRIX_PARTITION=y CONFIG_SUN_PARTITION=y CONFIG_KARMA_PARTITION=y CONFIG_EFI_PARTITION=y CONFIG_SYSV68_PARTITION=y CONFIG_NLS=y CONFIG_NLS_DEFAULT="cp437" CONFIG_NLS_UTF8=m CONFIG_PRINTK_TIME=y CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4 CONFIG_FRAME_WARN=1024 CONFIG_MAGIC_SYSRQ=y CONFIG_UNUSED_SYMBOLS=y CONFIG_DEBUG_FS=y CONFIG_DEBUG_KERNEL=y CONFIG_DETECT_HUNG_TASK=y CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120 CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 CONFIG_SCHED_DEBUG=y CONFIG_SCHEDSTATS=y CONFIG_TIMER_STATS=y CONFIG_STACKTRACE=y CONFIG_DEBUG_BUGVERBOSE=y CONFIG_DEBUG_INFO=y CONFIG_DEBUG_MEMORY_INIT=y CONFIG_FRAME_POINTER=y CONFIG_LATENCYTOP=y CONFIG_SYSCTL_SYSCALL_CHECK=y CONFIG_NOP_TRACER=y CONFIG_HAVE_FUNCTION_TRACER=y CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y CONFIG_HAVE_DYNAMIC_FTRACE=y CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y CONFIG_HAVE_C_RECORDMCOUNT=y CONFIG_RING_BUFFER=y CONFIG_EVENT_TRACING=y CONFIG_EVENT_POWER_TRACING_DEPRECATED=y CONFIG_CONTEXT_SWITCH_TRACER=y CONFIG_RING_BUFFER_ALLOW_SWAP=y CONFIG_TRACING=y CONFIG_GENERIC_TRACER=y CONFIG_TRACING_SUPPORT=y CONFIG_FTRACE=y CONFIG_FUNCTION_TRACER=y CONFIG_FUNCTION_GRAPH_TRACER=y CONFIG_BRANCH_PROFILE_NONE=y CONFIG_BLK_DEV_IO_TRACE=y CONFIG_KPROBE_EVENT=y CONFIG_DYNAMIC_FTRACE=y CONFIG_FTRACE_MCOUNT_RECORD=y CONFIG_HAVE_ARCH_KGDB=y CONFIG_KGDB=y CONFIG_KGDB_SERIAL_CONSOLE=y CONFIG_STRICT_DEVMEM=y CONFIG_OLD_MCOUNT=y CONFIG_KEYS=y CONFIG_SECURITY=y CONFIG_SECURITYFS=y CONFIG_SECURITY_NETWORK=y CONFIG_SECURITY_PATH=y CONFIG_LSM_MMAP_MIN_ADDR=0 CONFIG_SECURITY_SELINUX=y CONFIG_SECURITY_SELINUX_BOOTPARAM=y CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=0 CONFIG_SECURITY_SELINUX_DISABLE=y CONFIG_SECURITY_SELINUX_DEVELOP=y CONFIG_SECURITY_SELINUX_AVC_STATS=y CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1 CONFIG_SECURITY_SMACK=y CONFIG_SECURITY_TOMOYO=y CONFIG_SECURITY_TOMOYO_MAX_ACCEPT_ENTRY=2048 CONFIG_SECURITY_TOMOYO_MAX_AUDIT_LOG=1024 CONFIG_SECURITY_TOMOYO_POLICY_LOADER="/sbin/tomoyo-init" CONFIG_SECURITY_TOMOYO_ACTIVATION_TRIGGER="/sbin/init" CONFIG_SECURITY_APPARMOR=y CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1 CONFIG_DEFAULT_SECURITY_APPARMOR=y CONFIG_DEFAULT_SECURITY="apparmor" CONFIG_CRYPTO=y CONFIG_CRYPTO_ALGAPI=y CONFIG_CRYPTO_ALGAPI2=y CONFIG_CRYPTO_AEAD2=y CONFIG_CRYPTO_BLKCIPHER=y CONFIG_CRYPTO_BLKCIPHER2=y CONFIG_CRYPTO_HASH=y CONFIG_CRYPTO_HASH2=y CONFIG_CRYPTO_RNG2=y CONFIG_CRYPTO_PCOMP=m CONFIG_CRYPTO_PCOMP2=y CONFIG_CRYPTO_MANAGER=y CONFIG_CRYPTO_MANAGER2=y CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y CONFIG_CRYPTO_WORKQUEUE=y CONFIG_CRYPTO_CBC=y CONFIG_CRYPTO_CTS=m CONFIG_CRYPTO_ECB=y CONFIG_CRYPTO_HMAC=y CONFIG_CRYPTO_CRC32C=m CONFIG_CRYPTO_MD5=y CONFIG_CRYPTO_SHA1=m CONFIG_CRYPTO_AES=m CONFIG_CRYPTO_ARC4=m CONFIG_CRYPTO_DES=m CONFIG_CRYPTO_DEFLATE=m CONFIG_CRYPTO_ZLIB=m CONFIG_CRYPTO_HW=y CONFIG_BINARY_PRINTF=y CONFIG_BITREVERSE=y CONFIG_CRC16=y CONFIG_CRC_T10DIF=y CONFIG_CRC32=y CONFIG_LIBCRC32C=m CONFIG_AUDIT_GENERIC=y CONFIG_ZLIB_INFLATE=y CONFIG_ZLIB_DEFLATE=m CONFIG_LZO_COMPRESS=m CONFIG_LZO_DECOMPRESS=y CONFIG_XZ_DEC=y CONFIG_XZ_DEC_X86=y CONFIG_XZ_DEC_POWERPC=y CONFIG_XZ_DEC_IA64=y CONFIG_XZ_DEC_ARM=y CONFIG_XZ_DEC_ARMTHUMB=y CONFIG_XZ_DEC_SPARC=y CONFIG_XZ_DEC_BCJ=y CONFIG_DECOMPRESS_GZIP=y CONFIG_DECOMPRESS_BZIP2=y CONFIG_DECOMPRESS_LZMA=y CONFIG_DECOMPRESS_XZ=y CONFIG_DECOMPRESS_LZO=y CONFIG_HAS_IOMEM=y CONFIG_HAS_DMA=y CONFIG_NLATTR=y CONFIG_GENERIC_ATOMIC64=y
Quoted 19 lines · Joerg Roedel
Quoted 4 lines · KyongHo Cho
Quoted 4 lines
I still get
?LD ? ? ?.tmp_vmlinux1 /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-
unknown-linux-gnueabi-ld: no machine record defined
Quoted 1 line
Quoted 1 line
/data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-
unknown-linux-gnueabi-ld: no machine record defined
Quoted 1 line
Quoted 1 line
/data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-
unknown-linux-gnueabi-ld: no machine record defined
Quoted 7 lines
Quoted 5 lines
make[1]: *** [.tmp_vmlinux1] Error 1
when trying to compile ARM/Exynos with 3.2-rc7. Am I doing something wrong or is this not expected to work?
Do you?
Ok. I will check my configuration with linux-next git.
Quoted 6 lines
Compiling my exynos-config with linux-next gives me:
CC
arch/arm/kernel/process.o
In file included from /data/lemmy/linux.trees.git/arch/arm/mach-exynos/include/mach/system.h:16:0,
from
/data/lemmy/linux.trees.git/arch/arm/kernel/process.c:64:
Quoted 8 lines
/data/lemmy/linux.trees.git/arch/arm/plat-samsung/include/plat/system- reset.h:19:2: error: #error Fix me up
I better not ask the question how such an #error statement can come through to linux-next. But what I can say is that I will not merge your code until you guys make sure that your upstream platform code has enough quality so that it at least compiles.
Hi Joerg,
I already knew that, Russell added it so that I can take the ARM restart changes seriously.
Since I pushed exynos restart patches to Russell's patch system so please kindly ignore it.
Quoted 2 lines
I attach the config I used for my compile-test.
OK, let me check and if any updates, let you know.
Happy New Year.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
Quoted 40 lines · Kukjin Kim
Quoted 19 lines · Joerg Roedel
Quoted 4 lines · KyongHo Cho
Quoted 4 lines
I still get
?LD ? ? ?.tmp_vmlinux1 /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-
unknown-linux-gnueabi-ld: no machine record defined
Quoted 1 line
Quoted 1 line
/data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-
unknown-linux-gnueabi-ld: no machine record defined
Quoted 1 line
Quoted 1 line
/data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-
unknown-linux-gnueabi-ld: no machine record defined
Quoted 7 lines
Quoted 5 lines
make[1]: *** [.tmp_vmlinux1] Error 1
when trying to compile ARM/Exynos with 3.2-rc7. Am I doing something wrong or is this not expected to work?
Do you?
Ok. I will check my configuration with linux-next git.Quoted 6 lines
Compiling my exynos-config with linux-next gives me:
? CC ? ? ?arch/arm/kernel/process.o
In file included from /data/lemmy/linux.trees.git/arch/arm/mach-exynos/include/mach/system.h:16:0,
? ? ? ? ? ? ? ? ?from/data/lemmy/linux.trees.git/arch/arm/kernel/process.c:64:
Quoted 8 lines
/data/lemmy/linux.trees.git/arch/arm/plat-samsung/include/plat/system- reset.h:19:2: error: #error Fix me up
I better not ask the question how such an #error statement can come through to linux-next. But what I can say is that I will not merge your code until you guys make sure that your upstream platform code has enough quality so that it at least compiles.
Hi Joerg,
I already knew that, Russell added it so that I can take the ARM restart changes seriously.
Quoted 7 lines
Since I pushed exynos restart patches to Russell's patch system so please kindly ignore it.
Quoted 2 lines
I attach the config I used for my compile-test.
OK, let me check and if any updates, let you know.
Hi.
Thank you Kukjin.
I am also going to check about the problem.
Regards,
KyongHo.
Quoted 17 lines · Joerg Roedel
Quoted 8 lines · KyongHo Cho
Quoted 8 lines
I still get
?LD ? ? ?.tmp_vmlinux1 /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined make[1]: *** [.tmp_vmlinux1] Error 1
Quoted 5 lines
Quoted 3 lines
when trying to compile ARM/Exynos with 3.2-rc7. Am I doing something wrong or is this not expected to work?
Do you?
Ok. I will check my configuration with linux-next git.Compiling my exynos-config with linux-next gives me:
Quoted 7 lines
CC
arch/arm/kernel/process.o
In file included from /data/lemmy/linux.trees.git/arch/arm/mach-exynos/include/mach/system.h:16:0,
from /data/lemmy/linux.trees.git/arch/arm/kernel/process.c:64:
/data/lemmy/linux.trees.git/arch/arm/plat-samsung/include/plat/system-reset.h:19:2: error: #error Fix me upI better not ask the question how such an #error statement can come through to linux-next.
It comes through when I stick it in my tree because of a month of asking for help to fix something and getting zero response from the maintainers.
It's a way to flag to them that they're doing something wrong - and in fact something is broken, and that that brokenness will happen at the next merge window unless they get off their butt and do something about it.
Patches have been around, but I've had problems merging them, and the replacement patches have now appeared after I started my Christmas vacation. As I've just returned, it's going to be a couple of days before the #error gets removed (assuming the replacement patches apply.)
Quoted 26 lines · Russell King - ARM Linux
Quoted 17 lines · Joerg Roedel
Quoted 8 lines · KyongHo Cho
Quoted 8 lines
I still get
?LD ? ? ?.tmp_vmlinux1 /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined make[1]: *** [.tmp_vmlinux1] Error 1
Quoted 5 lines
Quoted 3 lines
when trying to compile ARM/Exynos with 3.2-rc7. Am I doing something wrong or is this not expected to work?
Do you?
Ok. I will check my configuration with linux-next git.Compiling my exynos-config with linux-next gives me:
Quoted 7 lines
CC
arch/arm/kernel/process.o
In file included from /data/lemmy/linux.trees.git/arch/arm/mach-exynos/include/mach/system.h:16:0,
from /data/lemmy/linux.trees.git/arch/arm/kernel/process.c:64:
/data/lemmy/linux.trees.git/arch/arm/plat-samsung/include/plat/system-reset.h:19:2: error: #error Fix me upI better not ask the question how such an #error statement can come through to linux-next.
Quoted 7 lines
It comes through when I stick it in my tree because of a month of asking for help to fix something and getting zero response from the maintainers.
It's a way to flag to them that they're doing something wrong - and in fact something is broken, and that that brokenness will happen at the next merge window unless they get off their butt and do something about it.
Okay, fine with me if it really will be fixed in 3.3-rc1 :)
Thanks,
Joerg
Signature · 5 lines
AMD Operating System Research Center Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach General Managers: Alberto Bozzo, Andrew Bowd Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632
Quoted 10 lines · Joerg Roedel
Quoted 7 lines · Russell King - ARM Linux
It comes through when I stick it in my tree because of a month of asking for help to fix something and getting zero response from the maintainers.
It's a way to flag to them that they're doing something wrong - and in fact something is broken, and that that brokenness will happen at the next merge window unless they get off their butt and do something about it.
Okay, fine with me if it really will be fixed in 3.3-rc1 :)
I can do better than that - and report that it's fixed now. It should show up in linux-next sometime after Stephen pulls this evening. The #error did its job in this case, and ensured that it got fixed!
Quoted 10 lines · Russell King - ARM Linux
Quoted 9 lines · Joerg Roedel
Quoted 7 lines · Russell King - ARM Linux
It comes through when I stick it in my tree because of a month of asking for help to fix something and getting zero response from the maintainers.
It's a way to flag to them that they're doing something wrong - and in fact something is broken, and that that brokenness will happen at the next merge window unless they get off their butt and do something about it.
Quoted 5 lines
Quoted 1 line
Okay, fine with me if it really will be fixed in 3.3-rc1 :)
I can do better than that - and report that it's fixed now. It should show up in linux-next sometime after Stephen pulls this evening. The #error did its job in this case, and ensured that it got fixed!
Great. So it looks like I can finally compile-test Exynos and merge their IOMMU driver after the merge window :)
Thanks,
Joerg
Signature · 5 lines
AMD Operating System Research Center Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach General Managers: Alberto Bozzo, Andrew Bowd Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632
Quoted 11 lines · Joerg Roedel
Quoted 10 lines · Russell King - ARM Linux
Quoted 9 lines · Joerg Roedel
Quoted 7 lines · Russell King - ARM Linux
It comes through when I stick it in my tree because of a month of asking for help to fix something and getting zero response from the maintainers.
It's a way to flag to them that they're doing something wrong - and in fact something is broken, and that that brokenness will happen at the next merge window unless they get off their butt and do something about it.
Quoted 9 lines
Quoted 5 lines
Quoted 1 line
Okay, fine with me if it really will be fixed in 3.3-rc1 :)
I can do better than that - and report that it's fixed now. ?It should show up in linux-next sometime after Stephen pulls this evening. ?The #error did its job in this case, and ensured that it got fixed!
Great. So it looks like I can finally compile-test Exynos and merge their IOMMU driver after the merge window :)
Thanks to you, Marek and Russell for helps to compile the driver.
I've learned many things from you.
Regards,
KyongHo.
Quoted 1 line · KyongHo Cho
Ok. I will check my configuration with linux-next git.
Btw, after working around the #error problem and fixing another compile-error the same problem still appears with linux-next.
Joerg
Signature · 5 lines
AMD Operating System Research Center Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach General Managers: Alberto Bozzo, Andrew Bowd Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632
Hello,
Quoted 21 lines · Joerg Roedel
Quoted 8 lines · KyongHo Cho
Changes since v7:
- Rebased with the recent commits of the following git branches
* git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git/next
* git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git/for-next
- Changed magic numbers into macros
- Setting owner of a System MMU in 'iommu' field ofdev_archdata
- Verbose message in the default fault handler
- Some bug fixes.I still get
LD .tmp_vmlinux1
/data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined /data/cross/gcc-4.6.0-nolibc/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld: no machine record defined
make[1]: *** [.tmp_vmlinux1] Error 1
Quoted 2 lines
when trying to compile ARM/Exynos with 3.2-rc7. Am I doing something wrong or is this not expected to work?
Yes, there is something a bit wrong with your kernel configuration. You get this error if there is no board selected to be compiled-in. Please go to kernel configuration and select "System Type -> SAMSUNG EXYNOS SoCs Suppport". Then select some hardware board to be compiled in, for example SMDKV310, SMDKC210 and "Mobile NURI board".
Best regards
Signature · 2 lines
Marek Szyprowski Samsung Poland R&D Center
Hi Marek,
Quoted 4 lines · Marek Szyprowski
Yes, there is something a bit wrong with your kernel configuration. You get this error if there is no board selected to be compiled-in. Please go to kernel configuration and select "System Type -> SAMSUNG EXYNOS SoCs Suppport". Then select some hardware board to be compiled in, for example SMDKV310, SMDKC210 and "Mobile NURI board".
thanks for this info. I selected a board and compile of linux-next now fails with:
LD .tmp_vmlinux1arch/arm/mach-exynos/built-in.o: In function `exynos4_pm_resume':
/data/lemmy/linux.trees.git/arch/arm/mach-exynos/pm.c:385: undefined reference to `scu_enable' make[1]: *** [.tmp_vmlinux1] Error 1
This is because scu_enable() is only available with CONFIG_SMP=y which is not set for Exynos.
Joerg
Signature · 5 lines
AMD Operating System Research Center Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach General Managers: Alberto Bozzo, Andrew Bowd Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632
Hi,
Quoted 8 lines · KyongHo Cho
Changes since v7:
- Rebased with the recent commits of the following git branches
* git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git/next
* git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git/for-next
- Changed magic numbers into macros
- Setting owner of a System MMU in 'iommu' field ofdev_archdata
- Verbose message in the default fault handler
- Some bug fixes.
(snipped)
The time is flying away and v3.4 merge windows will open soon. Do you plan to send an updated version of the SYSMMU driver anytime soon? It will be really nice to have it finally merged to v3.4.
Best regards
Signature · 2 lines
Marek Szyprowski Samsung Poland R&D Center
Hi Marek.
Quoted 13 lines · Marek Szyprowski
Hi,
Quoted 8 lines · KyongHo Cho
Changes since v7:
- Rebased with the recent commits of the following git branches ? * git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git/next ? * git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git/for-next
- Changed magic numbers into macros
- Setting owner of a System MMU in 'iommu' field ofdev_archdata
- Verbose message in the default fault handler
- Some bug fixes.
Quoted 6 lines
(snipped)
The time is flying away and v3.4 merge windows will open soon. Do you plan to send an updated version of the SYSMMU driver anytime soon? It will be really nice to have it finally merged to v3.4.
Thank you for asking.
I prepared a new patchset and it is ready for submitting. It includes several bugfixes and Exynos5 support.
The last patche submitted has a bug when the following situation:
1. Allocating a 2nd level page table to map 4KB or 64KB on a virtual region
2. Unmapped all entries in the 2nd level page table.
3. Mapping to the same region with 1MB page.
Then iommu_map() will return -EADDRINUSE due to incorrect counting free entries in 2nd level page table.
The next patch will be submitted by 2/28.
BTW Marek, I want to know why MFC driver defines separate platform devices for left and right buses.
The next IOMMU driver defines just one platform device for a H/W device. Thus, it defines just one SYSMMU_MFC platform device, for example. (the previous one defines 2 platform devices for SYSMMU_MFC) However, it is easy to separate the single platform device to multiple platform devices.
Regards,
Cho KyongHo.
Hello,
Quoted 27 lines · KyongHo Cho
Quoted 13 lines · Marek Szyprowski
Hi,
Quoted 8 lines · KyongHo Cho
Changes since v7:
- Rebased with the recent commits of the following git branches
* git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git/next
* git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git/for-next
- Changed magic numbers into macros
- Setting owner of a System MMU in 'iommu' field ofdev_archdata
- Verbose message in the default fault handler
- Some bug fixes.Quoted 6 lines
(snipped)
The time is flying away and v3.4 merge windows will open soon. Do you plan to send an updated version of the SYSMMU driver anytime soon? It will be really nice to have it finally merged to v3.4.
Thank you for asking.
I prepared a new patchset and it is ready for submitting. It includes several bugfixes and Exynos5 support.
Quoted 8 lines
The last patche submitted has a bug when the following situation:
1. Allocating a 2nd level page table to map 4KB or 64KB on a virtual region
2. Unmapped all entries in the 2nd level page table.
3. Mapping to the same region with 1MB page.
Theniommu_map()will return-EADDRINUSEdue to incorrect counting free entries in 2nd level page table.The next patch will be submitted by 2/28.
Ok, I will check it soon then.
Quoted 2 lines
BTW Marek, I want to know why MFC driver defines separate platform devices for left and right buses.
This is required for S5PV210 which has no iommu and requires contiguous memory from 2 separate physical memory banks. It use dma_declare_coherent to define memory for each bus separately. One platform device can have only one coherent memory range defined, that's why there are two devices created.
Quoted 3 lines
The next IOMMU driver defines just one platform device for a H/W device. Thus, it defines just one
SYSMMU_MFCplatform device, for example. (the previous one defines 2 platform devices forSYSMMU_MFC)
Exynos4210 has 2 iommu controllers for MFC device - one for each memory bus. Each MFC bus can address 128MiB of IO address space. Do you mean that the new driver will merge these 2 controllers into one? This way we will lose half of address space for MFC device.
Quoted 2 lines
However, it is easy to separate the single platform device to multiple platform devices.
Best regards
Signature · 2 lines
Marek Szyprowski Samsung Poland R&D Center
Quoted 3 lines · Marek Szyprowski
Quoted 1 line
The next patch will be submitted by 2/28.
Ok, I will check it soon then.
Thank you a lot.
Quoted 8 lines
Quoted 3 lines
The next IOMMU driver defines just one platform device for a H/W device. Thus, it defines just one
SYSMMU_MFCplatform device, for example. (the previous one defines 2 platform devices forSYSMMU_MFC)Exynos4210 has 2 iommu controllers for MFC device - one for each memory bus. Each MFC bus can address 128MiB of IO address space. Do you mean that the new driver will merge these 2 controllers into one? This way we will lose half of address space for MFC device.
The situation seems somewhat different from our use of MFC. I also heard from Jungtae Park
that it is better to define separate platform devices for the system MMUs of MFC.
Regards,
Cho KyongHo.