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

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

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

About the name of 'struct list_head', how about giving an alias for differentiating the usage?

2023-07-02 Thread Chan Kim
more easier to read. I hope someone do this someday.. Thank you. Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

How is 'addr_space' filled in the pcie endpoint controller device tree node?

2023-06-21 Thread Chan Kim
MMU betwen the PCIe and ITS). Any comment will be really appreciated. Thank you! Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: Running u-boot and linux on qemu arm64 virt machine, linux shell does not respond.. ==> solved!

2023-06-04 Thread Chan Kim
er. Thank you! Chan Kim From: Chan Kim Sent: Friday, June 2, 2023 6:28 PM To: U-Boot Mailing List ; 'qemu-disc...@nongnu.org' ; kernelnewbies@kernelnewbies.org Subject: Running u-boot and linux on qemu arm64 virt machine, linux shell does not respond.. Hello all, I'm trying to

Running u-boot and linux on qemu arm64 virt machine, linux shell does not respond..

2023-06-02 Thread Chan Kim
st what I can try to solve this problem? (I mean, the problem of linux shell not responding in qemu virtual machine) I would appreciate it for any comment or help. Thank you. Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewb

RE: returned dma address value of dma_alloc_coherent, is it always in the lower 4GB range?

2023-03-14 Thread Chan Kim
Hello Valdis, >-Original Message- >From: Valdis Kletnieks On Behalf Of Valdis Kl?tnieks >Sent: Tuesday, March 14, 2023 2:15 PM >To: Chan Kim >Cc: kernelnewbies@kernelnewbies.org >Subject: Re: returned dma address value of dma_alloc_coherent, is it always >i

returned dma address value of dma_alloc_coherent, is it always in the lower 4GB range?

2023-03-13 Thread Chan Kim
(= bus address) is not equal to the physical address and is assigned by the OS for convenience) Thank you. Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: In device tree, can't understand 'ranges' property of PCIe root complex node

2023-02-13 Thread Chan Kim
I would appreciate if someone could clear things up for me. Thank you. Chan Kim >-Original Message- >From: Chan Kim >Sent: Monday, February 6, 2023 9:07 PM >To: kernelnewbies@kernelnewbies.org >Subject: In device tree, can't understand 'ranges' property of PCIe root >com

Use of "iommu-map-mask" for PCIe root complex device tree node, does it make actual requester ID ignored?

2023-02-10 Thread Chan Kim
ng. But I'm not sure if my guess is correct. Can any one tell me what the case is? Thank you. Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

In device tree, can't understand 'ranges' property of PCIe root complex node

2023-02-06 Thread Chan Kim
ction to a certain PCIe bus address and I guess setting BAR can be done without this 'ranges' information(it will assign free address range for that device according to the device's need). By the time linux kernel later reads this 'ranges' property, the BIOS (or bootloader) has already assig

a question in pcie-designware-ep.c, can't find where a variable has been set.

2023-01-31 Thread Chan Kim
size in byte unit? Or is it number of pages? Thank you. Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: How can I reserve contiguous mem alloc region?

2023-01-03 Thread Chan Kim
Hi, all, I was able to get cma-reserved region by adding CONFIG_DMA_CMA=y. This is the result. Memory: 233708K/1048576K available (3200K kernel code, 386K rwdata, 808K rodata, 7808K init, 105K bss, 28436K reserved, 786432K cma-reserved) Thanks! Chan Kim >-Original Message- >From

How can I reserve contiguous mem alloc region?

2023-01-02 Thread Chan Kim
MORY_ISOLATION=y CONFIG_CONTIG_ALLOC=y ONFIG_CMA=y CONFIG_CMA_DEBUG=y CONFIG_CMA_DEBUGFS=y CONFIG_CMA_SYSFS=y CONFIG_CMA_AREAS=7 # CONFIG_DMA_CMA is not set I tried adding 'cma=768MB' in the boot args or changed CONFIG_CMA_AREAS to 1 but it is the same. W

RE: How is the size of init ram disk determined when initramfs is used?

2023-01-01 Thread Chan Kim
for now. Thank you. Chan Kim >-Original Message- >From: Nicholas Mc Guire >Sent: Monday, January 2, 2023 4:23 AM >To: Bernd Petrovitsch >Cc: kernelnewbies@kernelnewbies.org >Subject: Re: How is the size of init ram disk determined when initramfs is >used? > >On

Meaning of 'no-map' in reserved-memory, and accessing a memory region from two OSes using physical adderss

2022-12-26 Thread Chan Kim
as reserved-memory). Is this kind things impossible? Thank you for reading Best regards, Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

What does OS do with the 'ranges' property in PCI RC node in the device tree?

2022-11-21 Thread Chan Kim
" What does it mean? Does the OS do something with this 'ranges' value? I'll appreciated if someone could explain it to me. Thank you! Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: clock_gettime function doesn't scale to real time.. and changing CNTFRQ_EL0 doesn't make any change..(arm64)

2022-11-07 Thread Chan Kim
There is a typo : Setting cntfrq_el0 is done by " msr cntfrq_el0, x0 " in the code. >-Original Message- >From: Chan Kim >Sent: Tuesday, November 8, 2022 2:16 PM >To: 'kernelnewbies@kernelnewbies.org' >Cc: 'Siddh Raman Pant' ; 'Linus Probert' > >Subj

RE: clock_gettime function doesn't scale to real time.. and changing CNTFRQ_EL0 doesn't make any change..(arm64)

2022-11-07 Thread Chan Kim
ater (like with "writel(COUNTER_FREQUENCY, 0x4c018020);"). Hope this helps someone later. Thank you! Chan Kim >-Original Message- >From: Chan Kim >Sent: Saturday, November 5, 2022 8:46 PM >To: 'Siddh Raman Pant' >Cc: 'Kernel Newbies' >Subject: RE: clock_getti

RE: clock_gettime function doesn't scale to real time.. and changing CNTFRQ_EL0 doesn't make any change..(arm64)

2022-11-05 Thread Chan Kim
the pc_clock_gettime function as you showed to see how it works. Thanks for the advices. Chan Kim >-Original Message- >From: Siddh Raman Pant >Sent: Saturday, November 5, 2022 4:51 AM >To: Chan Kim >Cc: Kernel Newbies >Subject: Re: clock_gettime function doesn't scale to real ti

clock_gettime function doesn't scale to real time.. and changing CNTFRQ_EL0 doesn't make any change..(arm64)

2022-11-04 Thread Chan Kim
mes shorter but it is the same! I couldn't find how linux uses clock_gettime. How can I solve this problem? Any advice will be deeply appreciated. Thank you! Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kern

How is the size of init ram disk determined when initramfs is used?

2022-10-06 Thread Chan Kim
archive is extracted in the ramdisk. Then how is the ramdisk size determined? During the build usig Kconfig variable, or does it dynamically grow? Thanks in advance. Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https

RE: how to debug... program hangs while downing for write a rwsem (busybox shell hangs/stucks after boot, a case related to u-boot)

2022-09-29 Thread Chan Kim
and problems during syscall in the shell (like rwsem hang) disappeared. Thank you! Chan Kim >-Original Message- >From: Chan Kim >Sent: Thursday, September 22, 2022 10:23 PM >To: 'Greg KH' >Cc: kernelnewbies@kernelnewbies.org >Subject: RE: how to debug... program h

RE: how to debug... program hangs while downing for write a rwsem

2022-09-22 Thread Chan Kim
And I am also trying to do the experiment with linux5.15.68. Somehow linux doesn't start with this new setup and I need some time. Thank you for the advices. Chan Kim >-Original Message- >From: Chan Kim >Sent: Thursday, September 22, 2022 10:18 PM >To: 'Greg KH' >Cc:

RE: how to debug... program hangs while downing for write a rwsem

2022-09-22 Thread Chan Kim
using). Thank you. Chan Kim >-Original Message- >From: Greg KH >Sent: Wednesday, September 21, 2022 8:16 PM >To: Chan Kim >Cc: kernelnewbies@kernelnewbies.org >Subject: Re: how to debug... program hangs while downing for write a rwsem > >On Wed, Sep 21, 2022 at 08

how to debug... program hangs while downing for write a rwsem

2022-09-21 Thread Chan Kim
nd rw semaphores etc. but could anyone give me any suggestion on what can be going wrong? Or what to check first? Any suggestion will be really appreciated. Thank you! Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.or

Using printk, how can I know where the kernel jumps after schedule() function?

2022-08-26 Thread Chan Kim
reading part of a book or web posts but didn't get what I want yet). Thank you! Regards, Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: busybox shell doesn't come up or get stuck.. where should I look or how should I debug it?

2022-08-19 Thread Chan Kim
week by adding some prints. If anyone has any idea about what might be wrong, please tell me. Thanks for reading. Chan Kim From: Chan Kim Sent: Thursday, August 18, 2022 3:02 PM To: kernelnewbies@kernelnewbies.org Subject: RE: busybox shell doesn't come up or get stuck.. where should I

RE: busybox shell doesn't come up or get stuck.. where should I look or how should I debug it?

2022-08-18 Thread Chan Kim
n't start so 'running exec inside a script' can have a problem. If anyone has a suggestion or advice, I welcome it. Thank you! Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listi

RE: busybox shell doesn't come up or get stuck.. where should I look or how should I debug it?

2022-08-17 Thread Chan Kim
aarch64-none-linux-gcc -static -o init test.c". When 'init' was a script, some lines of it was processed ok, but when I replace 'init' to a binary program, it just failed with -2. I find error code 2 is 'No such file or directory' which is strange because my 'init' program was under / when I made the

busybox shell doesn't come up or get stuck.. where should I look or how should I debug it?

2022-08-12 Thread Chan Kim
sybox applet /bin/sh is stuck somewhere. Can anybody tell me where I should look? Or how to debug this? Thanks in advance! Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: Confused about how to apply add-symbol-file in gdb

2022-07-18 Thread Chan Kim
nel) Thank you. Chan Kim >-Original Message- >From: Chan Kim >Sent: Monday, July 18, 2022 5:43 PM >To: kernelnewbies@kernelnewbies.org >Subject: Confused about how to apply add-symbol-file in gdb > >Hello all, > >I thought I know how to apply add-symbol-file comma

Confused about how to apply add-symbol-file in gdb

2022-07-18 Thread Chan Kim
at 0x8000 and dtb was at 0x8280 and just by giving "add-symbol-file vmlinux" again, there was no problem following the kernel source in virtual address. How should I give the add-symbol-file command when the Image is now at 0x8001?? Any comment welcome. Thank you.

RE: Can I debug busybox program running on a qemu virtual machine using gdb?

2022-07-07 Thread Chan Kim
e I could find where the program is loaded and set breakpoint in the tftp entrance or condition, but couldn't find where busybox was loaded.) Thank you. Chan Kim >-Original Message- >From: Richard >Sent: Friday, July 8, 2022 8:46 AM >To: kernelnewbies@kernelnewbies.org &

Can I debug busybox program running on a qemu virtual machine using gdb?

2022-07-07 Thread Chan Kim
Hi all, I'm trying to track how tftp program runs when I run tftp provided by busybox on qemu virtual machine. I can debug the linux source but I cannot debug tftp (busybox) program. Can I debug busybox program using gdb in this case? Any hint or advice will be very appreciated. Thank you! Chan

RE: A question about memblock.reserved

2022-06-28 Thread Chan Kim
ave a nice day! Chan Kim >>-Original Message- >>From: Wonhyuk Yang >>Sent: Friday, June 24, 2022 3:41 PM >>To: Chan Kim >>Cc: kernelnewbies >>Subject: Re: A question about memblock.reserved >> >>On Thu, Jun 23, 2022 at 2:25 PM Chan Kim

A question about memblock.reserved

2022-06-22 Thread Chan Kim
served-memory' regions are put into this memblock.reserved regions during the boot process?(I mean during dtb parsing). Thank you! Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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 __

small device nodes in syscon, simple-mfd node in device tree

2022-05-24 Thread Chan Kim
le, does it mean the SoC just contains a system control block containing many registers for controlling pcie mode, clock settings, etc? If that is true, maybe I'll have to use this trick myself for pass system settings to the kernel. Any comment will be appreciated. Thank you! Chan Kim

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

when is pci_dev->resource values are filled?

2022-05-19 Thread Chan Kim
s it done by the BIOS(or UEFI) before linux boots? Probably not because this pci_dev struct is from linux and should be filled by linux code and I couldn't find where it's done. Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.

How is 'ranges' property of pci node of a device tree determined?

2022-05-04 Thread Chan Kim
ld confirm this. (and the dma-ranges property seems to be the relationship between PCI address and the host side memory address) Thank you! Chan Kim ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailma

A question about iommu, passing to the device user data containing pointers

2022-05-01 Thread Chan Kim
Hello linux experts, I'm almost sure my understanding is correct but hope someone could confirm me if it's really correct. Suppose a user program wants to pass to a device some data structures connected to each other using pointers and the device processes the data with dma capability(meaning it

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: 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-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-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,

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: 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

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-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, 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
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: 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

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: 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

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

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: 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? > >

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

"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

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

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: 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

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-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)

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

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: 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

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

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: 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: 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
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: 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: 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

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

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

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

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

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

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

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: 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

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

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: 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

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

  1   2   >