RE: Please help.. trying to use USB keyboard to open a shell on LCD display

2014-03-20 Thread Chan Kim
someone who has had the same experience like the one I have now. Has anybody have similar situation before? (printk prints ok but printf doesn't print to the LCD using frame buffer) Any hint would be appreciated. Thank you! Chan From : Chan Kim c...@etri.re.kr Sent

RE: how to get PFN of page cache?

2014-03-20 Thread Chan Kim
There are some functions to probe (look into) the page tables (for current context.. maybe for all the conext too). look under /arch/x86(yours)/mm. This page table is in the memory so the S/W can probe it. But I don't think we can see whan page table entries we have in the page descriptor cache

some questions on sparc reference memory management (SRMMU)

2014-03-21 Thread Chan Kim
Hi, folks, While I was trying to open a shell on the LCD, I found printk from inside the kernel and printf from user side busybox use the same frame buffer driver (and eventually bit blitting functions) as my previous email said. I later found the reason printf doesn't work in my case is that

RE: some questions on sparc reference memory management (SRMMU)

2014-03-26 Thread Chan Kim
now I understand why ( it's 4 bit mastk, 4 bit shift left and another *4 so 10 bit shift which is 1024 bytes) Any hint would be greatly appreciated. Thank you! Chan From : Chan Kim c...@etri.re.kr Sent : 2014-03-22 11:57:31 ( +09:00 ) To : kernelnewbies

Unable to handle kernel paging request at virtual address ... while writing to frame buffer..

2014-03-27 Thread Chan Kim
Hi, I have this 'unable to handle kernel paging request at virtual address ...' when writing to the frame buffer. Has anybody seen similar situation? and hopeful can tell me what the problem was? Thanks! Chan ___ Kernelnewbies mailing list

RE: Unable to handle kernel paging request at virtual address ... while writing to frame buffer..

2014-03-27 Thread Chan Kim
paging request at virtual address 696e1000 {mm,active_mm}-context = 0001 {mm,active_mm}-pgd = c800a400 In what case can this happen? Any clue will be very helpful. Thanks! Chan From : Arun KS getaru...@gmail.com Sent : 2014-03-27 18:27:57 ( +09:00 ) To : Chan Kim

RE: Unable to handle kernel paging request at virtual address ... while writing to frame buffer..

2014-03-27 Thread Chan Kim
From : valdis.kletni...@vt.edu valdis.kletni...@vt.edu Sent : 2014-03-28 01:29:21 ( +09:00 ) To : Chan Kim c...@etri.re.kr Cc : kernelnewbies@kernelnewbies.org kernelnewbies@kernelnewbies.org Subject : Re: Unable to handle kernel paging request at virtual address ... while writing to frame

RE: in sparc linux system call entry assembly code

2014-03-28 Thread Chan Kim
: valdis.kletni...@vt.edu valdis.kletni...@vt.edu Sent : 2014-03-28 22:36:27 ( +09:00 ) To : Chan Kim c...@etri.re.kr Cc : kernelnewbies@kernelnewbies.org kernelnewbies@kernelnewbies.org Subject : Re: in sparc linux system call entry assembly code On Fri, 28 Mar 2014 07:25:37 -, 김찬 said: andcc %l7, 1

Finally got busybox shell on LCD but keyboard stalls..

2014-03-29 Thread Chan Kim
Hi all, I managed to make the busybox shell appear on the LCD. I changed the frame buffer allocation method : from (method 1) fb-fb.screen_base = dma_alloc_writecombine(pdev-dev, framesize, fbpaddr, GFP_KERNEL); to (method 2) fb-fb.screen_base = alloc_pages_exact(framesize,

how to assign IRQ for devices..

2014-03-29 Thread Chan Kim
Hi, In our system, I assigned Ethernet, SD card and USB interrupts to sparc processor's IRQ pin 7, 10 and 8 at my choice. As far as the interrupt is concerned, they worked fine so far. But I found in arch/sparc/kernel/head_32.S that some H/W interrupts have their supposed IRQ pins. t_irq1:

Ctrl-C doesn't work in the shell

2014-04-01 Thread Chan Kim
Hi, When I'm on a sheel on LCD using USB keyboard, all works fine (except another important problem..) but Ctrl-C key doesn't work. When I press ctrl-C, '^C' is displayed on the screen (prompt line), but doesn't have the effect of killing the job. For example, I start ping and it displays

RE: Ctrl-C doesn't work in the shell

2014-04-08 Thread Chan Kim
Ah, of coursee Ctrl-C works on the console and LCD shells. I set the Job-Constrol option in the busybox shell options. From : Chan Kim c...@etri.re.kr Sent : 2014-04-09 10:03:10 ( +09:00 ) To : valdis.kletni...@vt.edu valdis.kletni...@vt.edu Cc : kernelnewbies

about the kernelnewbies email signature

2014-04-08 Thread Chan Kim
Hi, How come some people's email contain the email signature shown below ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies .. while my email doesn't have it attached? Are

RE: about the kernelnewbies email signature

2014-04-08 Thread Chan Kim
at 02:29:30AM +, Chan Kim wrote: Hi, How come some people's email contain the email signature shown below ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies .. while

RE: about the kernelnewbies email signature

2014-04-09 Thread Chan Kim
Oh, I see..that was the case.. I can see in the replies it's included. Thanks! From : Kristofer Hallin kristofer.hal...@gmail.com Sent : 2014-04-09 13:23:41 ( +09:00 ) To : Chan Kim c...@etri.re.kr Cc : kernelnewbies@kernelnewbies.org kernelnewbies

about BTFIXUPSET_.. macros..

2014-04-14 Thread Chan Kim
br / Hi,br /br / in the linux initialization, inside setup_arch, I see ld_mmu_srmmu() (I'm working on SPARC architecture, SRMMU is Sparc Reference MMU)br /br / and it comprises many macro calls starting with BTFIXUP... The first two lines look like this.br /br /  br /br /        

a question about __nocache_pa macro

2014-04-22 Thread Chan Kim
Hi, can someony explain this macro to me? It's in arch/sparc/include/asm/pgtsrmmu.h (linux 3.3) #define __nocache_pa(VADDR) (((unsigned long)VADDR) - SRMMU_NOCACHE_VADDR + __pa((unsigned long)srmmu_nocache_pool)) it looks like converting virtual address VADDR to physical address for which no

how BTFIXUP_CALL is used..

2014-04-27 Thread Chan Kim
Hi, It's raining Suday afternoon in Korea where many people are in grief for the loss of their family members from the ferry accident last week. We have those victims and families in our thoughts and prayers.. Anyway, I have a question.. In file mm/memory.c (linux 3.3), in funrcion __pmd_alloc, I

a question about btfixupprep

2014-04-29 Thread Chan Kim
Hi, in arch/sparc/boot/Makefile, there is a rule below. $(obj)/btfix.S: $(obj)/btfixupprep vmlinux FORCE $(call if_changed,btfix) This makes btfix.S file using btfixupprep executable. and from the definition below, quiet_cmd_btfix = BTFIX $@ cmd_btfix =

about PMD_SHIFT value (22 or 18?)

2014-05-01 Thread Chan Kim
Hi, Hope someone could answer to this question.. As some of you know, SRMMU(Sparc Reference MMU in Sparc V8) uses top 8, 6, 6 bits of the linear address as PGT, PMD, PTE table index. so PGDIR_SHIFT is 24 and PMD_SHIFT is 18, and PTE_SHIFT is 12. (page size 4096) These shift values are for

RE: about PMD_SHIFT value (22 or 18?)

2014-05-01 Thread Chan Kim
table and connecting 16 64-entry PTE tables each time. regards, Chan 보낸 사람 : Chan Kim c...@etri.re.kr 보낸 날짜 : 2014-05-01 20:49:25 ( +09:00 ) 받는 사람 : kernelnewbies@kernelnewbies.org kernelnewbies@kernelnewbies.org 참조 : 제목 : about PMD_SHIFT value (22 or 18?) Hi, Hope someone could answer

a question on nocache pool address which seems to have ended up as a nice comment?

2014-05-14 Thread Chan Kim
Hi, I was analyzing arch/sparc/mm/srmmu.c (linux 3.3) In our system, the pgd table sits at c800 and the entry for c8000 is at c8000320. (upper 8 bits is the index and *4 is the index address) previously, I got srmmu_nocache_pool = c054. Does anybody know why

two virtual address pointing to same physical address

2014-05-19 Thread Chan Kim
: Chan Kim c...@etri.re.kr 보낸 날짜 : 2014-05-14 21:54:03 ( +09:00 ) 받는 사람 : kernelnewbies@kernelnewbies.org kernelnewbies@kernelnewbies.org 참조 : 제목 : a question on nocache pool address which seems to have ended up as a nice comment? Hi, I was analyzing arch/sparc/mm/srmmu.c (linux 3.3) In our

Re: two virtual address pointing to same physical address

2014-05-19 Thread Chan Kim
:12:08 ( +09:00 ) 받는 사람 : 김찬 c...@etri.re.kr 참조 : kernelnewbies@kernelnewbies.org kernelnewbies@kernelnewbies.org 제목 : Re: two virtual address pointing to same physical address On Mon, 19 May 2014 11:47:23 -, Chan Kim said: Is this situation normal? (in the kernel, two different virtual

Re: two virtual address pointing to same physical address

2014-05-20 Thread Chan Kim
: valdis.kletni...@vt.edu valdis.kletni...@vt.edu 보낸 날짜 : 2014-05-20 11:31:14 ( +09:00 ) 받는 사람 : 김찬 c...@etri.re.kr 참조 : kernelnewbies@kernelnewbies.org kernelnewbies@kernelnewbies.org 제목 : Re: two virtual address pointing to same physical address On Tue, 20 May 2014 00:39:26 -, Chan Kim said: But still

about consistent_init

2014-05-21 Thread Chan Kim
Hello, In http://lxr.free-electrons.com/source/arch/arm/mm/dma-mapping.c?v=3.3#L162, in line 208, Could anybody kindly explain why it increases the variable 'base' by PMD_SIZE? Is the consistent memory chunck initialized by PMD_SIZE? Thanks, Chan ___

about consistent_init function

2014-05-21 Thread Chan Kim
Hello, In http://lxr.free-electrons.com/source/arch/arm/mm/dma-mapping.c?v=3.3#L162, in line 208, Could anybody kindly explain why it increases the variable 'base' by PMD_SIZE? Is the consistent memory chunck initialized by PMD_SIZE? It seems to me the consistent_init allocates only the

Re: about consistent_init function

2014-05-22 Thread Chan Kim
사람 : Chan Kim c...@etri.re.kr 보낸 날짜 : 2014-05-22 13:57:23 ( +09:00 ) 받는 사람 : kernelnewbies@kernelnewbies.org kernelnewbies@kernelnewbies.org 참조 : 제목 : about consistent_init function Hello, In http://lxr.free-electrons.com/source/arch/arm/mm/dma-mapping.c?v=3.3#L162, in line 208, Could anybody

a question on coherent_dma_mask

2014-05-23 Thread Chan Kim
Dear folks, I have a basic question, in __dma_alloc_buffer function (arch/arm/mm/dma-mapping.c, v3.3) u64 mask = get_coherent_dma_mask(dev); if (!mask) return NULL; if (mask 0xULL) gfp |= GFP_DMA; page = alloc_pages(gfp, order);

pgd table entry pointing null after process switching

2014-05-26 Thread Chan Kim
hi, linux folks, I'm seeing an 'unable to handle kernel paging request' after loading busybox elf loading. The context table is now pointing a new pgd table and the releavant pgd table entry is pointing null. What could be the cause? the address to access is frame buffer that I had linux

RE: about consistent_init function

2014-05-30 Thread Chan Kim
it with print yet) Now the dma_alloc_writecombine works both for SD card driver and framebuffer driver. Thanks! Chan 보낸 사람 : Chan Kim c...@etri.re.kr 보낸 날짜 : 2014-05-22 21:51:51 ( +09:00 ) 받는 사람 : kernelnewbies@kernelnewbies.org kernelnewbies@kernelnewbies.org 참조 : 제목 : Re: about

RE: DMA over USB

2014-07-01 Thread Chan Kim
Hi Raghavendra, In my case, we used USB host design from opencore. And the driver (I don't know where it came from. it's similar to sl811-hcd.c from cypress) writes or reads the data to /from the USB host. Not using DMA. I think if the USB host has DMA capability, tha pio read/write should be

question about mmc_rescan function

2014-07-11 Thread Chan Kim
Hi, I found the mmc_rescan function is called periodically. and the only place I can see the name is this line below in the mmc_alloc_host function INIT_DELAYED_WORK(host-detect, mmc_rescan); so it is regsitered as a delayed work in mmc_host. And at the end of mmc_rescan, I see

opening a file second time using vi on LCD console hangs the system

2014-07-28 Thread Chan Kim
Hi, I'm using fbconsole on the LCD using USB keyboard. I open a new file using vi then edit, write it, and exit. Then second time I open the file using vi, it hangs. with [1]+ Stopped (tty input) message. Anybody any hint? Thanks! Chan ___

a question on linux header extraction

2014-08-19 Thread Chan Kim
Hello, I'm using linux3.3 and recently while building busybox for a new command, found the BB uses linux kernel headers. So I looked up the internet and did 'make headers_install ARCH=.. CROSS_COMPILE=.. INSTALL_HDR_PATH=..'. Then I used the new header files instead of files under

RE: a question on linux header extraction

2014-08-25 Thread Chan Kim
(from the compiler's standard include path) it works just fine without rebuilding glibc. Chan 보낸 사람 : Chan Kim c...@etri.re.kr 보낸 날짜 : 2014-08-20 11:36:29 ( +09:00 ) 받는 사람 : kernelnewbies@kernelnewbies.org kernelnewbies@kernelnewbies.org 참조 : 제목 : a question on linux header extraction Hello

in realtek 8139cp driver code, where does the start_xmit function triggers the chip?

2015-05-13 Thread Chan Kim
the code triggers the chip? regards, Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

a question about DMA (realtek ethernet chip driver)

2015-05-13 Thread Chan Kim
cacheable memory for sk_buf for speed and copy the data to DMA area and let the I/O chip or DMA controller take the data using DMA). I'm just curious if we don't use non-cacheable memory (DMA buffer) for sk_buf. Thanks, Chan Kim ___ Kernelnewbies

initiating DMA and going to sleep while holding spinlock

2015-05-15 Thread Chan Kim
will be appreciated. Best regards, Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

device returned IRQ_WAKE_THREAD but no thread function avable error

2015-05-18 Thread Chan Kim
that in this case (processing going to sleep and woken up by the ISR), I should use some other method to register my interrupt. Can anybody give me some advice? Thanks a lot in advance. Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http

I want to sleep while holding a mutex

2015-06-05 Thread Chan Kim
regards, Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: how to offload NAPI poll function to workqueue

2015-06-08 Thread Chan Kim
(work, struct smsc911x_data, rx_work); struct napi_struct *napi = pdata.napi; so maybe I can just pass the int budget through a new member value in struct smsc911x_data. Has anyone done similar thing before? Chan 보낸 사람 : Chan Kim c...@etri.re.kr 보낸 날짜 : 2015-06-08 16:06:59 ( +09:00 ) 받는 사람

RE: how to offload NAPI poll function to workqueue

2015-06-08 Thread Chan Kim
idea on whether it's impossible, or if there is any example driver using DMA controller for Ethernet chip? (not Ethernet chips with DMA master function insde) Best regards, Chan 보낸 사람 : Chan Kim c...@etri.re.kr 보낸 날짜 : 2015-06-08 16:06:59 ( +09:00 ) 받는 사람 : kernelnewbies@kernelnewbies.org

RE: To use wake_up_interruptible in ISR

2015-05-26 Thread Chan Kim
Hi, Anish, I see in the source (linux ver 3.3) that wake_up_interruptible function doesn't sleep so I used in it an ISR but I'm getting 'BUG:scheduling while atomic' message. (I'm not sure it's coming from this) Remove it and check if the problem goes away. I later figured out that

wake_up_interruptible in ISR

2015-05-26 Thread Chan Kim
Hello, I see in the source (linux ver 3.3) that wake_up_interruptible function doesn't sleep so I used in it an ISR but I'm getting 'BUG:scheduling while atomic' message. (I'm not sure it's coming from this) I'm looking for the exact cause but Is there any caveat when using

RE: kernel doesn't start booting after chaning to minimum config (on qemu arm64 machine)

2021-10-13 Thread Chan Kim
set). After this addition, it boots ok to the shell! I was very luck..  Thank you, Best regards, Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

kernel doesn't start booting after chaning to minimum config (on qemu arm64 machine)

2021-10-12 Thread Chan Kim
t=/dev/ram init=/init nokaslr earlycon ip=dhcp" -m 2048M -nographic -netdev user,id=n1 -device e1000,netdev=n1 Has anyone any idea what I can add in the config or try? (with original .config, the kernel boots ok to the bash in initramfs) Any suggestion will be appreciated. Thank you, Kin

What does LOADADDR=0x20008000 mean in linux kernel make command? and what is kernel load address?

2021-10-21 Thread Chan Kim
here, I would really really appreciate it. Thank you. Best regards, Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: is there a method to minize kernel size using menuconfig and minial driver?

2021-10-21 Thread Chan Kim
Thanks, I tried tinyconfig but didn't work even after adding input device and serial support. Looks like I have to add some more. (the tinyconfig looked really simple in menuconfig) Maybe I'll try more later (allnoconfig too). Thanks. Chan > -Original Message- > From: Laurent Navet >

RE: How to mmap any address space using huge pages?

2021-10-21 Thread Chan Kim
Hi, Adam Did you tell the OS to reserve huge pages? (in ubuntu, add vm.nr_hugepages = N in /etc/sysctl.conf or Add hugepages=16, hugepagesz=256M in bootcommd) Just in case you didn’t set it. Thanks, Chan Kim From: Adam Turowski Sent: Friday, October 15, 2021 10:08 PM To: kernelnewbies

how is booting possible using kernel image in disk?..

2021-10-21 Thread Chan Kim
it to linux kernel. Is my understanding correct? Thanks in advance. Regards, Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

How can I use id and schema page of a yaml file in the devicetree bindings document?

2021-11-02 Thread Chan Kim
following the link in the id and schema just leads me to https://www.devicetree.org/schema/# and it says "These are not the schemas you are looking for." How can I open the links and use them? Thanks a lot! Regards, Chan Kim ___ Kernelnewbi

DTC compile error (simple-bus unit address format error for #address-cells = <2> case)

2021-10-27 Thread Chan Kim
;2>, the node address should be given by chip select number and the offset (inside the chip select). How can I prevent this error? DTC version is 1.5.0. Any help will be appreciated. Thank you! Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: DTC compile error (simple-bus unit address format error for #address-cells = <2> case)

2021-10-27 Thread Chan Kim
vp-base-revc.dtb.d Thanks! Chan Kim From: Chan Kim Sent: Wednesday, October 27, 2021 6:45 PM To: kernelnewbies@kernelnewbies.org Subject: DTC compile error (simple-bus unit address format error for #address-cells = <2> case) Hello all, Below is a part of arch/arm64/boot/dt

RE: What does LOADADDR=0x20008000 mean in linux kernel make command? and what is kernel load address?

2021-10-27 Thread Chan Kim
Hello, For anyone's help.. I asked this question to unix stackexchage and received an answer. https://unix.stackexchange.com/questions/674155/what-does-loadaddr-0x2000800 0-mean-in-linux-kernel-make-command regards, Chan Kim From: Chan Kim Sent: Thursday, October 21, 2021 3:00 PM

In the device tree, what does multiple cpu nodes mean inside 'cpus' node without the wrapping 'cpu-map' node?

2021-11-04 Thread Chan Kim
inside the cpus node(without wrapping with cpu-map node). So even though it is not uni-processor system, it doesn't have cpu-map node, Just cpu nodes. What does it mean? Does it mean this system doesn't support SMP? Or, I can use style without violation? Any comment/explanation will be very much a

RE: How to disable address randomization ?

2022-01-13 Thread Chan Kim
Hi, To print kernel virtual address, you should use %px instead of %p in the printk. Probably that’s why you couldn’t see the pointer values correctly. Chan From: admin LI Sent: Friday, January 14, 2022 6:02 AM To: kernelnewbies@kernelnewbies.org Subject: How to disable address

RE: arm64 cache policy setting

2022-03-16 Thread Chan Kim
Hello, JeongHwan, I'm relatively new to arm64 but there is MAIR (memory attribute indirection register) which contains bytes holding cacheability, shareability and protection information and the actual page table contains the 'index' for the byte in this MAIR. For example in linux-5.10-0 which

RE: Which Page table is appled when MMU is turned on in boot process of ARM64

2022-03-17 Thread Chan Kim
Hi JeongHwan, Recently I followed the kernel boot process so now I understand how it's doing. The kernel starts at HEAD and it jumps to primary_entry. (code below is 5.10.0. but in 5.4.21 it jumped to stext, just name change) Primary_entry looks like this. SYM_CODE_START(primary_entry)

arm64 code looking for variable rodata_enabled when STRICT_KERNEL_RWX = n

2022-03-18 Thread Chan Kim
can modify init/main.c and include/linux/init.h so that this rodata_enabled and related functions be defined regardless of these CONFIG values and make the errors go away, but I'm curious if this a kind of kernel bug raising compiler error. Any comment w

RE: Which Page table is appled when MMU is turned on in boot process of ARM64

2022-03-18 Thread Chan Kim
. Hope that helps. Regards, Chan Kim From: JeongHwan Kim Sent: Friday, March 18, 2022 4:41 PM To: Chan Kim ; kernelnewbies@kernelnewbies.org Subject: Re: Which Page table is appled when MMU is turned on in boot process of ARM64 Thank you for reply. I have a question about

weird printk operation early at start_kernel..

2022-02-16 Thread Chan Kim
ime it goes into vprintk_nmi and seems to hang (waiting for console lock I remember..). Could anyone give me some light on what's going on here? (Actual print to serial port is supposed to come out much later inside setup_arch). Any comment will be very much appreciated. Thank you! Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: weird printk operation early at start_kernel..

2022-03-02 Thread Chan Kim
wrote in memory. Hope this helps anyone. Thanks! Chan Kim From: Chan Kim Sent: Thursday, February 17, 2022 4:26 PM To: kernelnewbies@kernelnewbies.org Subject: weird printk operation early at start_kernel.. Hello all, I'm debugging linux boot on an FPGA board (with limited RAM size

Does fixmap pages for fdt require 4MB memory?

2022-03-03 Thread Chan Kim
started to look into early_fixmap_init function but can anyone tell me if this can be the real problem? Isn't it possible to use 8MB memory to run linux? (I'm doing this before the board is fully ready) Thank you! Chan Kim ___ Kernelnewbies

RE: arm64 code looking for variable rodata_enabled when STRICT_KERNEL_RWX = n

2022-03-19 Thread Chan Kim
the menuconfig window. (The menu is not visible in the specified location, you can check it yourself. As you said, some menus become selectable when the condition is met and is meaningful) Chan From: FMDF Sent: Saturday, March 19, 2022 7:24 PM To: Chan Kim Cc: kernelnewbies Subject: Re: arm

RE: arm64 code looking for variable rodata_enabled when STRICT_KERNEL_RWX = n

2022-03-19 Thread Chan Kim
to change the default setting for arm64 and there should be an error in my qemu code(this was to avoid an error during u-boot/linux test on qemu). Chan From: FMDF Sent: Saturday, March 19, 2022 7:24 PM To: Chan Kim Cc: kernelnewbies Subject: Re: arm64 code looking for variable rodata_enabled

request_irq not working.. what else should I do?

2022-04-04 Thread Chan Kim
controller but it doesn't work. That's what OS is for, isn't it? But when I follow the qemu code, in the distributor stage, it says there is no pending interrupt. How can I set the interrupt priority using request_irq function above? Thank you! Chan Kim

RE: request_irq not working.. what else should I do?

2022-04-04 Thread Chan Kim
handler = irq_default_primary_handler; } Thanks for reading. Chan Kim > -Original Message- > From: Chan Kim > Sent: Monday, April 4, 2022 11:16 PM > To: kernelnewbies@kernelnewbies.org > Subject: request_irq not working.. what else should I do? > >

How can I debug kernel module running on a virtual machine?

2022-04-05 Thread Chan Kim
for the driver image relative to that loaded address, it is possible to do kernel module debug. I think this is what driver developers will be doing always. Please tell me how I can do it. If this is possible, it will save many days for me. Thank you! Chan Kim

RE: How can I debug kernel module running on a virtual machine?

2022-04-05 Thread Chan Kim
Hello all, I found how to do it, I had asked it on stackoverflow.com and posted it as an answer there. Please see if you are interested. https://stackoverflow.com/questions/71749640/how-can-i-debug-kernel-module-r unning-on-a-virtual-machine/71753139#71753139 Thank you! Chan Kim

"tftp: sendto: Network is unreachable" during tftp on a virtual machine. What config should I add to kernel build?

2022-03-24 Thread Chan Kim
;root=/dev/ram init=/init nokaslr earlycon ip=dhcp hugepages=16" Thanks alot! Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Can't find vprintk_safe in System.map

2022-02-07 Thread Chan Kim
the System.map file, I cannot find the vprintk_safe function and vprintk_nmi (I can find vprintk_default). I'm curious if this may be related to the malfunction. How can this happen? And how should I understand this? Thank you! Chan Kim ___ Kernel

RE: error: impossible constraint in 'asm' when compiling kernel code with -O0 option

2022-01-19 Thread Chan Kim
*** [Makefile:1652: drivers] Error 2 Does anybody know how can I use -O0 flag? (I tried -Og flag but some variables are still optimized out). Thank you! Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: adding GCC optimze O0 to early_fixmap_init causes compiler error (BUILD_BUG failed)

2022-01-23 Thread Chan Kim
I found adding the same #pragma directives warp to #include makes the compiler error go away! #pragma GCC push_options #pragma GCC optimize ("O0") #include #pragma GCC pop_option Chan From: Chan Kim Sent: Sunday, January 23, 2022 8:23 PM To: kernelnewbies@kerneln

adding GCC optimze O0 to early_fixmap_init causes compiler error (BUILD_BUG failed)

2022-01-23 Thread Chan Kim
. AR drivers/irqchip/built-in.a AR drivers/built-in. What does this mean and what should I do? Thanks! Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

how to fix section mismatch warning after inserting #pragma GCC optimize ?

2022-01-23 Thread Chan Kim
just add add __init to gic_smp_init(). (or remove _init from set_smp_cross_call ) What is the correct method to fix it? Thanks, Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: how to fix section mismatch warning after inserting #pragma GCC optimize ?

2022-01-23 Thread Chan Kim
I found adding __init to gic_smp_init() removed this warning message. Is it ok to move this function to .init.text ? (doesn't it cause it to be removed after initialization?) Chan From: Chan Kim Sent: Sunday, January 23, 2022 7:48 PM To: kernelnewbies@kernelnewbies.org Subject: how to fix

RE: adding GCC optimze O0 to early_fixmap_init causes compiler error (BUILD_BUG failed)

2022-01-23 Thread Chan Kim
2 1:47 AM > To: Chan Kim > Cc: kernelnewbies > Subject: Re: adding GCC optimze O0 to early_fixmap_init causes compiler > error (BUILD_BUG failed) > > On Sun, Jan 23, 2022 at 4:23 AM Chan Kim wrote: > > > > Hello all, > > > > In linux 5.4.21, when tell

RE: Can't understand /proc/interrupts output for GICv3 case

2022-04-11 Thread Chan Kim
Kara Sent: Monday, April 11, 2022 10:10 PM To: Chan Kim ; 'qemu-discuss' ; kernelnewbies@kernelnewbies.org Subject: Re: Can't understand /proc/interrupts output for GICv3 case Hello, firstly when you say SPI so can you give some more information about your hardware? I think you are doing

RE: Can't understand /proc/interrupts output for GICv3 case

2022-04-11 Thread Chan Kim
ce). What function should I use to get the irq number in this case? I couldn't find a function with a likely name in the tags file for linux source.(5.4.188) Thanks a lot! Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: Can't understand /proc/interrupts output for GICv3 case

2022-04-11 Thread Chan Kim
registered the handler by request_irq(6,...) and the interrupt works fine. So now my question is : how can find my irq number (correct irq_desc number) in kernel driver module? I'll appreciate it if you could tell me how to do it. Thank you! Chan Kim > -Original Message- > From: Ch

RE: Can't understand /proc/interrupts output for GICv3 case

2022-04-11 Thread Chan Kim
AL printk(KERN_INFO "Device driver inserted ..done properly..\n"); return 0; r_device : class_destroy(dev_class); r_class : unregister_chrdev_region(dev,1); return -1; } Thank you. Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: irq_desc not found for my interrupt number during request_irq (radix tree of irq_desc has only 64 entries..)

2022-04-05 Thread Chan Kim
s 0. So this irq_desc problem was solved(?) for now. (I don't know why this is so small when CONFIG_SPARSE_IRQS=y). And still the handler is not called even when I set qemu_set_irq. _ From: Chan Kim S

irq_desc not found for my interrupt number during request_irq (radix tree of irq_desc has only 64 entries..)

2022-04-05 Thread Chan Kim
AML_EXCLUSIVE, , 1)); aml_append(dev, aml_name_decl("_CRS", crs)); aml_append(scope, dev); } I'm not sure if I can just use _HID value as "AXPU0011". If you see anything wrong and have a suggestion, please tell me. Thank you! Chan Kim

Can't understand /proc/interrupts output for GICv3 case

2022-04-07 Thread Chan Kim
thought I connected my device (axpu) to SPI 15 in qemu code but this GICv3 input number changes according to with what number I called reqeust_irq. Could anyone tell me what is going on here? Thank you. Chan Kim ___ Kernelnewbies mailing list Kernelne

RE: Can't understand /proc/interrupts output for GICv3 case

2022-04-11 Thread Chan Kim
Hi, Greg KH, Thanks for the advices. Some questions inline. > -Original Message- > From: 'Greg KH' > Sent: Monday, April 11, 2022 11:26 PM > To: Chan Kim > Cc: 'qemu-discuss' ; > kernelnewbies@kernelnewbies.org > Subject: Re: Can't understand /proc/interrupts

RE: Can't understand /proc/interrupts output for GICv3 case

2022-04-11 Thread Chan Kim
Hi Ozgur, My replies in-line. Thanks! From: Ozgur Karatas Sent: Monday, April 11, 2022 11:53 PM To: Chan Kim Cc: Greg KH ; kernelnewbies@kernelnewbies.org; qemu-discuss Subject: Re: Can't understand /proc/interrupts output for GICv3 case Re-hi, On Mon, Apr 11, 2022 at 6:16

RE: Can't understand /proc/interrupts output for GICv3 case

2022-04-11 Thread Chan Kim
Hi Greg KH, I see, I understand what the proper method should be for this. I'll take it as an almost official answer from the linux people :) Thank you. Chan Kim > -Original Message- > From: 'Greg KH' > Sent: Tuesday, April 12, 2022 1:50 PM > To: Chan Kim > Cc

RE: Can't understand /proc/interrupts output for GICv3 case

2022-04-12 Thread Chan Kim
be reading the references again soon) Chan From: Ozgur Karatas Sent: Tuesday, April 12, 2022 4:15 PM To: Chan Kim Cc: Greg KH ; kernelnewbies@kernelnewbies.org; qemu-discuss Subject: Re: Can't understand /proc/interrupts output for GICv3 case On Tue, Apr 12, 2022 at 6:44 AM Chan Kim

RE: Can't understand /proc/interrupts output for GICv3 case

2022-04-12 Thread Chan Kim
goto r_device; } ret = request_irq(i, axpu_irq_handler, IRQF_SHARED, "axpu_irq", _cdev); This way I could find the correct irq number on ubuntu and vanilla linux. Hope this is helpful to someone. (anyway you know the hardware connection so you can use it) Thank you! Ch

A question on endpoint_test code in the linux source by Kishon Vijay Abraham I.

2023-09-13 Thread Chan Kim
re can I find the corresponding (acting on the register triggering above) action in the endpoint side? If you have once seen these codes and send me any hint or suggestion, I'll be grateful. Thank you. Best regards, Chan Kim ___ Kernelnewbies mailing list

RE: A question on endpoint_test code in the linux source by Kishon Vijay Abraham I.

2023-09-13 Thread Chan Kim
ion. I had analyzed this pci-epf-test.c before and right after sending my question I realized how it's working after searching 'raise_irq' in the endpoint test code. Thank you. Best regards, Chan Kim >-Original Message- >From: Chan Kim >Sent: Thursday, September 14, 2023 2:39 PM

dma_alloc for pcie_device, how can I allocate from the pci device memory?

2023-08-21 Thread Chan Kim
the BAR memory address of the pci_device? How do we control from which memory (host memory or PCIe device memory) to allocate memory? Is BAR memory only for explicit allocation by the driver only? Thank you. Chan Kim ___ Kernelnewbies mailing list

Backtrace stopped: previous frame identical to this frame (corrupt stack?) , even with fresh qemu and linux build

2022-04-22 Thread Chan Kim
censes/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Thank you. Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: Backtrace stopped: previous frame identical to this frame (corrupt stack?) , even with fresh qemu and linux build

2022-04-22 Thread Chan Kim
, 2022 11:53 PM To: Chan Kim Cc: qemu-devel ; kernelnewbies Subject: Re: Backtrace stopped: previous frame identical to this frame (corrupt stack?) , even with fresh qemu and linux build On Fri, Apr 22, 2022 at 7:30 PM Chan Kim mailto:c...@etri.re.kr> > wrote: Hello all,

RE: Backtrace stopped: previous frame identical to this frame (corrupt stack?) , even with fresh qemu and linux build

2022-04-25 Thread Chan Kim
nction) is really 0xb8cd80001076a594 which is weird (not a kernel address). The following 3 values are function arguments for bus_for_each_dev and they look correct. From: Chan Kim Sent: Saturday, April 23, 2022 8:37 AM To: 'Mulyadi Santosa' Cc: 'qemu-devel' ; 'kernelnewbies' Subje

RE: Backtrace stopped: previous frame identical to this frame (corrupt stack?) , even with fresh qemu and linux build

2022-04-27 Thread Chan Kim
, and if I repeat fixing this stored x30 values, I can see more backtrace information. I filed a bug report to bug.linaro.org. This strange thing doesn’t happen with linux version < 5.10 to me so it doesn’t look like qemu bug. Chan Kim From: Chan Kim Sent: Tuesday, April 26, 2022 10:47

RE: Backtrace stopped: previous frame identical to this frame (corrupt stack?) , even with fresh qemu and linux build

2022-04-27 Thread Chan Kim
Hi folks, Sorry for many emails. I just found out by turning CONFIG_ARM64_PTR_AUTH off in armv8.3 when building linux, I can avoid this problem. (I noticed the instruction ‘pacia’ in the function assembly code) Thank you. Chan Kim From: Chan Kim Sent: Wednesday, April 27, 2022 6:05 PM

RE: when is pci_dev->resource values are filled?

2022-05-22 Thread Chan Kim
It looks like these values in pci_dev.resources are filled in pci_read_bases function which is called in pci_setup_device function. So linux is reading the values set by the BIOS and setting them in its pci_dev struct. And the devices's driver is called after that. Chan Kim > -Origi

How is rid (requester ID) is used in SMMU-v3 connected to PCIe RC?

2022-05-24 Thread Chan Kim
us. Yes, I can understand that. My question is, In arm's SMMUv3 case, how is this rid used in setting up the stream table (or context table)? Is rid equal to StreamID in SMMUv3? Any comment or explanation will be really appreciated. Thank you! Chan Kim __

  1   2   >