Re: Beginner's guide to writing a SATA device driver?

2022-05-08 Thread Ozgur Karatas
On Sun, May 8, 2022 at 4:51 AM Gabriel L. Somlo wrote: > > Hi Ozgur, > Hello Gabriel, > (replying off-list so as not to discourage further answers, on the off > chance I'm wrong about what I'm going to say next... :) I don't think that was a good method, because why? Please

Re: Beginner's guide to writing a SATA device driver?

2022-05-07 Thread Ozgur Karatas
ou should have an idea about "Block Drivers" because you will need to contact kernel. Here is a great guide for you: http://www.embeddedlinux.org.cn/essentiallinuxdevicedrivers/final/ch14.html I think all these will be enough for you at first

Re: Replace two ioread32 with ioread64_lo_hi non_atomic

2022-04-25 Thread Ozgur Karatas
___ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > -- Ozgur Kara Linux Kernel Developer ozg...@ieee.org ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: [ARM64] Trap and Forward CPU_ON psci smc

2022-04-16 Thread Ozgur Karatas
re-hi, and i suggest you take a look first: * Power State Coordination Interface Platform Design Document - 3.1 PSCI intended use "The PSCI interface must support interaction at all levels of execution implemented on the device, where multiple levels of supervisory software might be executing.

Re: [ARM64] Trap and Forward CPU_ON psci smc

2022-04-16 Thread Ozgur Karatas
On Sat, Apr 16, 2022 at 2:27 PM Mushahid Hussain wrote: > Hi, > Hello, I'm working on a hobby project: AARCH64 Hypervisor on Raspberry Pi 4b, to > learn about kernel internals, boot process and ARM64 baremetal. I have a > problem with trapping and forwarding a psci smc generated by linux

Re: System does not start with kernel from staging-testing pulled 3hours ago

2022-04-15 Thread Ozgur Karatas
On Fri, Apr 15, 2022 at 11:12 PM Philipp Hortmann < philipp.g.hortm...@gmail.com> wrote: > Hi, > > I found the error. > > I changed something in a driver that lead to this issue. > > Hey, we are glad to hear that but hmm it would be nice to have a little howto content. You're welcome. Regards

Re: System does not start with kernel from staging-testing pulled 3hours ago

2022-04-15 Thread Ozgur Karatas
On Fri, Apr 15, 2022 at 2:23 PM Philipp Hortmann < philipp.g.hortm...@gmail.com> wrote: > Hi, > > i have switched this morning from 5.18.0-rc1 to 5.18.0-rc2 > > But with 5.18.0-rc2 (Pulled today 15.04.2022) my computer does not start > anymore > It stops approxemately at 1.7 seconds > > here the

Re: How to write to a PCIe config space during kernel boot up

2022-04-13 Thread Ozgur Karatas
On Wed, Apr 13, 2022 at 11:34 AM Greg KH wrote: > On Wed, Apr 13, 2022 at 07:01:01AM +, Khalid F. Sabzwari wrote: > > Thanks Ozgur for quick reply.The link you shared below seems to work > with MDIO interface.The PHY used on my board is Intel's i211 PHY which is > con

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

2022-04-12 Thread Ozgur Karatas
On Tue, Apr 12, 2022 at 11:22 AM Chan Kim wrote: > Hi Ozgur, > > When I run it on ubuntu-20.04, the irq number returned was 5. (in 5.4.188 > vanila, it was 6) but this irq number will depend on the hardware > configuration. > > And if I don’t pass IRQF_SHARED, the kerne

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

2022-04-12 Thread Ozgur Karatas
On Tue, Apr 12, 2022 at 6:44 AM Chan Kim wrote: > Hi Ozgur, > > My replies in-line. > > Thanks! > > Hello Chan, today, web-based online content is gaining more importance than books especially in kernel.org you can browse serious content about IRQ and see examples. https

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

2022-04-11 Thread Ozgur Karatas
On Mon, Apr 11, 2022 at 6:49 PM Greg KH wrote: > On Mon, Apr 11, 2022 at 03:32:23PM +0100, Peter Maydell wrote: > > On Mon, 11 Apr 2022 at 15:22, Chan Kim wrote: > > > > > > > > > > > > What bus type is your driver written for? > > > > > > > > > > > That sounds very logical. In my case I added

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

2022-04-11 Thread Ozgur Karatas
Re-hi, On Mon, Apr 11, 2022 at 6:16 PM Chan Kim wrote: > > > > > What bus type is your driver written for? > > > > > > > That sounds very logical. In my case I added it to system bus. > > > > What exactly do you mean by "system bus"? > > > I meant 'sysbus' in qemu code that I showed in the qemu

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

2022-04-11 Thread Ozgur Kara
a call for autodetect irq. Regards --Ozguroz...@linux.com 11.04.2022, 17:17, "Chan Kim" :Hi Ozgur,The SPI I meant was ‘shared peripheral interrupt’ of armv8 architecture.(the interrupt is shared among cores. The interrupt controller distributes it)I’ll look into your link when I’ll be workin

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

2022-04-11 Thread Ozgur Kara
Hello, firstly when you say SPI so can you give some more information about your hardware?I think you are doing an embedded development in that case you should do some research on howto understand SPI interface under the kernel. I think for example, source code of a previously written hardware

Re: "Disappearing" file in Documentation/ABI/testing

2022-03-14 Thread Ozgur Kara
, 23:19, "Ozgur Kara" :  14.03.2022, 23:00, "Greg KH" <g...@kroah.com>:On Mon, Mar 14, 2022 at 12:36:51PM -0500, Ian Pilcher wrote: I am working on resubmitting a patch that adds an entry to Documentation/ABI/testing/sysfs-block. That file does not exist in Linus's most re

Re: "Disappearing" file in Documentation/ABI/testing

2022-03-14 Thread Ozgur Kara
  14.03.2022, 23:00, "Greg KH" :On Mon, Mar 14, 2022 at 12:36:51PM -0500, Ian Pilcher wrote: I am working on resubmitting a patch that adds an entry to Documentation/ABI/testing/sysfs-block. That file does not exist in Linus's most recent tree. All (presumably) of the entries documented in that

Re: A blog for kernel development

2022-03-09 Thread Ozgur Kara
  10.03.2022, 04:30, "Amit Kumar" :Hi, Hello, maybe if you want to be a kernel developer you should go to some reference sources before that.Really Important: The C Programming Language 1. Understanding Linux Kernel (I/O and Process Management2. Understanding Memory Addressing3. Understanding

Re: Which vger list is for linux-firmware?

2022-03-05 Thread Ozgur Kara
Bugs/https://bugzilla.kernel.org/ Regards Ozgur Distros like Ubuntu provide a package called linux-firmware.The problem I am trying to solve is, the latest linux-firmware seemsto have broken network stacks on my Ubuntu and Fedora machines. Justabout all (maybe all) of my Linux boxes lost networking last

Re: How do I start contributing to the Linux kernel?

2022-02-27 Thread Ozgur Kara
 Hello, by the way i found a nice e-mail from Valdis :) https://lists.kernelnewbies.org/pipermail/kernelnewbies/2017-April/017765.html if you want to work on next? $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git$ git remote add linux-next 

Re: How do I start contributing to the Linux kernel?

2022-02-25 Thread Ozgur Kara
/watch?v=LLBrBBImJt4 Please read Send Patches:https://www.kernel.org/doc/html/v4.17/process/submitting-patches.html Read Kernel Coding Style:​​​https://www.kernel.org/doc/html/v4.17/process/coding-style.html#codingstyle Patch Format:​​​https://lkml.org/lkml/2005/4/7/183 Regards -- Ozgur

Re: Sparse errors

2019-03-28 Thread Ozgur Kara
28.03.2019, 22:38, "Greg KH" : > On Fri, Mar 29, 2019 at 12:04:17AM +0530, Bharath Vedartham wrote: >>  Hey all, >> >>  When I run sparse, I get sparse errors. Sparse says "too many errors". >>  For example when I run: make C=2 fs/ext4/ >>  This is the error messages I get for one of the files.

Re: problem about subscribe linux-kernel

2019-03-24 Thread Ozgur Kara
24.03.2019, 06:54, "kmaillists" : > hi guys! Hello, please read to: http://vger.kernel.org/majordomo-info.html So you can't use yahoo like hotmail also e-mail should be plaint-text not in "html format". Sorry, about the rules. Regards Ozgur > i want to s

Re: a specific question...

2018-12-17 Thread Ozgur
16.12.2018, 19:25, "R. Engür Pişirici" : >   Hello All, > Hello > Before starting to ask my question, I would like to apologize about > asking a silly question. > Mostly, i always try to find answers by reading, searching, digging, > etc. > However, i really couldnt find a proper answer for my

Re: Modify a file content from block layer

2018-10-22 Thread Ozgur
hould read it: https://www.kernel.org/doc/Documentation/block/stat.txt I sure you can give more details and  @Valdis have very information :) Ozgur Is there any way, by which I could write/update the sectors of a file (which already exist or created in user space) from the block layer

Re: Linux Kernel Tester's Guide is still valid?

2018-10-19 Thread Ozgur
e syslog and git parts have not changed. Regards Ozgur > http://www.unixy.pl/maciek/doc/lktg/handbook-en.pdf > > ___ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > https://lists.kernelnewbies.

Re: link time analysis for the kernel.

2018-10-12 Thread Ozgur
ep by step to the machine code and  I think we need to understand Andi Kleen's patchset logic. https://github.com/SveSop/Kernel_LTO I'll look at the evening as well. Regards Ozgur On Fri, Oct 12, 2018 at 10:20 AM <valdis.kletni...@vt.edu> wrote:On Thu, 11 Oct 2018 21:45:16 +0800, C

Re: link time analysis for the kernel.

2018-10-11 Thread Ozgur
ess so kernel will send it to the screen while it is already compile mesage. please read web site: http://www.cirosantilli.com/elf-hello-world/ Ozgur On Fri, Oct 12, 2018 at 2:02 AM <o...@goosey.org> wrote:  11.10.2018, 17:48, "Carter Cheng" <carterch...@gmail.com>:Hi,  Hello, I want

Re: Need Suggestions

2018-07-14 Thread ozgur
  14.07.2018, 21:32, "Cindy-Sue Causey" :On 7/14/18, oz...@goosey.org wrote: 14.07.2018, 20:07, "Athul Joy" :  Dear friends, I am new to the Linux kernel development. Can anyone help me how to start my journey in order to build my own kernel? Hello, if

Re: Need Suggestions

2018-07-14 Thread ozgur
  14.07.2018, 20:07, "Athul Joy" :Dear friends, I am new to the Linux kernel development.Can anyone help me how to start my journey in order to build my own kernel?  Hello, if you want to build a your own kernel then the best way is to be use Google. Perhaps you can find thousands of kernel build

Re: [linux-3.12.19] - kernel panic observed

2018-07-10 Thread ozgur
  10.07.2018, 10:39, "Sriram" :Hi,  Hello, I m working on linux-3.12.19 kernel. In our board, we have an IPsec tunnel which carries IPv6 traffic inside  whoops! you are working with a very old and unsupported kernel version. please you are sure that your payload packages are not a larger then 512

Re: a Linux device driver

2018-06-05 Thread Ozgur Kara
bies.org/pipermail/kernelnewbies/2017-April/017765.html in addition, You can browse the staging directory in the kernel source and check. Regards Ozgur > > ___ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.o

Re: Is there mailist about LSM

2018-05-30 Thread Ozgur Kara
Hi all, @Valdis and @Ivanov you can see the new LSM list archive, Paul Moore helped. Thanks Dear Paul. http://kernsec.org/pipermail/linux-security-module-archive/ Regards Ozgur 31.05.2018, 01:12, "Alexander Ivanov" : > On Wed, 30 May 2018 14:26 -0400, valdis.kletni...

Re: Is there mailist about LSM

2018-05-30 Thread Ozgur Kara
30.05.2018, 21:08, "valdis.kletni...@vt.edu" : > On Wed, 30 May 2018 10:37:25 -0700, you said: > >>  First, theoretical, I suppose: what were the reasons to effectively disable >> dynamic loading of LSM ? > > Because that implies the system was up without the LSM loaded - at which point >

Re: Is there mailist about LSM

2018-05-30 Thread Ozgur Kara
30.05.2018, 21:03, "valdis.kletni...@vt.edu" : > On Wed, 30 May 2018 19:35:45 +0200, Greg KH said: > >>  Really? I just got email from it a few minutes ago: > > Gaah. Last in my mail folder is from then, and then I hit the archive > listed on vger (pointing at spinics) *also* popped up stuff

Re: Is there mailist about LSM

2018-05-30 Thread Ozgur Kara
30.05.2018, 21:02, "Alexander Ivanov" : > On Wed, 30 May 2018 20:54 +0300, Ozgur Kara wrote: >>  30.05.2018, 20:16, "Alexander Ivanov" : >>  > Hi All, >> >>  Hello >> >>  > What would be right place to ask questions about LSM

Re: Is there mailist about LSM

2018-05-30 Thread Ozgur Kara
>>  linux-security-module >> >>  is where that development was done, but that list was last active in >>  May 2016 or so. > > Really? I just got email from it a few minutes ago: Hello all, I think the list everytime actived but not recorded and archives a while thro

Re: Is there mailist about LSM

2018-05-30 Thread Ozgur Kara
30.05.2018, 20:16, "Alexander Ivanov" : > Hi All, Hello > What would be right place to ask questions about LSM? I think can ask your questions to LSM kernel e-mail list: http://vger.kernel.org/vger-lists.html#linux-security-module

Re: searching for a missing driver

2018-05-23 Thread Ozgur Kara
23.05.2018, 09:48, "Greg KH" <g...@kroah.com>: > On Wed, May 23, 2018 at 09:26:31AM +0300, Ozgur Kara wrote: >>  I think seen the drivers/staging section in the kernel source. > > Yes, starting out with drivers/staging/*/TODO is always a good idea. > >>  f

Re: searching for a missing driver

2018-05-23 Thread Ozgur Kara
almost everything > already "just works" in Linux. Turns out Linux supports more hardware > than any other operating system, sorry :) :) I think seen the drivers/staging section in the kernel source. you can find a driver in the development phase. for example, some new gene

Re: New to the Kernel Newbie

2018-05-21 Thread Ozgur Kara
/linux-kernel-labs.github.io/master/labs/introduction.html > > then create a simple kernel module: > > https://linux-kernel-labs.github.io/master/labs/kernel_modules.html > > Hope this helps. +1 Great. > thanks, > Daniel. > Ozgur ___

Re: newbie

2018-02-09 Thread Ozgur
09.02.2018, 23:20, "valdis.kletni...@vt.edu" <valdis.kletni...@vt.edu>: > On Fri, 09 Feb 2018 21:01:10 +0300, Ozgur said: > >>  I want to get rid of maintainer, mail directly Linus or Greg. I don't >> recommend >>  at all, it's dangerous area :) > >

Re: newbie

2018-02-09 Thread Ozgur
at all, it's dangerous area :) Regards Ozgur   On Fri, Feb 9, 2018 at 11:21 PM, yash omer <yashomer0...@gmail.com> wrote:Sir please tell me how to find a mentor. right now i reading book ldd3 and understanding linux kernel and following all the news of lwn to get updated and learn new things. O

Re: Kernelnewbies Digest, Vol 87, Issue 18

2018-02-09 Thread Ozgur Kara
tself is divided into many different branches such as filesystem, network etc. Regards Ozgur I have sent patch to the maintainers,please tell me my patch is correct or there is something wrongyour response will help us building confidence in device driver developmentThank GregKH sir  On Fri, Feb 9,

Re: newbie

2018-02-09 Thread Ozgur Kara
ernelnewbies.org inadequate for you? So, you can ask all others kernel development about the mail-list.The main goal is familiar with the "linux kernel development" Regards, Ozgur ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https

Re: clang warning: implicit conversion in intel_ddi.c:1481

2018-02-01 Thread Ozgur
not taken "clang warning fixes" for stable kernel updates > in the past, and I doubt I will in the future, unless the tree "builds > clean" with clang. If it eventually gets there, then yes, I will do > that. > > Note, if you are going to email this out to everyone who f

Re: Help! Can't subscribe kernel mail list

2018-01-10 Thread Ozgur
], for your MAIL FROM address <d...@outlook.com> policy > analysis reported: Your address is not liked source for email. > > I searched Mail list FAQ, but still have no idea. It seems that the > vger.kernel.org mail server banned my mail address. Regards Ozgur >

Re: Help

2018-01-07 Thread Ozgur
stall$ sudo make install Thanks,Linuxely For GNU/UNIXFor free software,  Regards Ozgur --P Pour préserver notre environnement, merci de n'imprimer cet Email que si nécessaire  !___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.k

Re: wiki & email upgrades

2018-01-02 Thread Ozgur
. If you notice lingering problems, please contact >>  me via email (if it works) or Facebook Messenger. >> I can seen a many functions is work. I think TR page need some translation, can I help? https://tr.kernelnewbies.org/ :) Ozgur >>  kind regards, >> >&g

Re: Header organization/separation rule in kernel

2017-12-10 Thread Ozgur
_GENERIC_NETLINK_H #ifndef __LINUX_GENERIC_NETLINK_H #define __LINUX_GENERIC_NETLINK_H #ifndef _UAPI__LINUX_GENERIC_NETLINK_H #define _UAPI__LINUX_GENERIC_NETLINK_H they are like the assets that separate and address each others. > Some things are only for th

Re: Updating LDD3

2017-10-24 Thread Ozgur
 Hello, 24.10.2017, 15:31, "Daniel." <danielhi...@gmail.com>:Here it is https://github.com/martinezjavier/ldd3 Regards oh, it's very good, nice.Thank you Ozgur  On Oct 24, 2017 9:58 AM, "Ozgur" <okara...@yandex.com> wrote:Hello Daniel, 24.10.2017, 14:50,

Re: Updating LDD3

2017-10-24 Thread Ozgur
Hello Daniel, 24.10.2017, 14:50, "Daniel." <danielhi...@gmail.com>:There is a repo at github with all the samples don't?  I think that no, I not seen before on github. Regards Ozgur  On Oct 24, 2017 9:06 AM, "Ozgur" <okara...@yandex.com> wrote:Hello Ryan,24.10.20

Re: Updating LDD3

2017-10-24 Thread Ozgur
> I'm happy to make a start and publish to a wiki or similar in a few > months once I've gone through everything. > > Thanks, > Liam Regards Ozgur ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Kernel CPU Utilization

2017-04-21 Thread Ozgur Karatas
rwise the CPU > overhead may be messing with the results. I written to the code for myself, you can use and develop this code (open source). https://github.com/mueddib/cpustat > Thanks, > Stephen Regards, Ozgur ___ Kernelnewbies mailing lis

Re: Kernel CPU Utilization

2017-04-21 Thread Ozgur Karatas
g too much CPU time, otherwise the CPU >  overhead may be messing with the results. I written to the code for myself, you can use and develop this code (open source). https://github.com/mueddib/cpustat >  Thanks, >  Stephen Regards, Ozgur __

Re: Kernel merge warning

2017-03-26 Thread Ozgur Karatas
etry the command. Is it OK to go with above suggestion  and increase  merge.renamelimit?  Where do you get this errors? Please can you detail or report with screenshot or pastebin's? Thanks in advance for any help. Regards,Amit Kumar, Regards, Ozgur ___ Kerne

Re: How to report bugs for release candidates?

2017-03-26 Thread Ozgur Karatas
cted to everyone, very important. > Thanks for letting me know and have a nice day, > Martin Regards, Ozgur ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: My kernel patch was rejected with comments

2017-03-22 Thread Ozgur Karatas
of commits to add to the series, assuming it is >>>  a series). >>> >>>  In the cover letter add a section stating the changes since v1, for >>>  example >>> >>>  v1 -> v2 >>>   - use foo() instead of bar() >>> >>&

Re: want to be a kernel developer

2017-03-04 Thread Ozgur Karatas
 Hello, download the linux kernel and read to documentation directory and SubmittingPatches file.So, how are you also with C? read list: The C Programming Language / BookLinux Device Drivers / Book (PDF)Linux Kernel Development / Book Regards, Ozgur 24.02.2017, 11:32, "sourav m

Re: kernel development process question, patch review

2017-03-04 Thread Ozgur Karatas
responsible CC: development group + kernel mailing list Kernelnewbies = kernelnewbies help Regards, Ozgur 21.02.2017, 04:44, "Tobin C. Harding" <m...@tobin.cc>: > If a reviewer makes a suggestion and one intends on making the change > as suggested is it required (normal prot

Re: want to be a kernel developer

2017-02-24 Thread Ozgur Karatas
Hello, yes but also attention, you should follow the updated e-books :) Linux in a NutshellLinux System ProgrammingLinux Kernel Module Programming Guide Regards Ozgur  24.02.2017, 15:05, "Kerimcankalipci" <kerimcankali...@protonmail.com>:I strongly recommend Linux Device Driver

Fwd: want to be a kernel developer

2017-02-24 Thread Ozgur Karatas
Hello, download the linux kernel and read to documentation directory and SubmittingPatches file.So, how are you also with C? read list: The C Programming Language / BookLinux Device Drivers / Book (PDF)Linux Kernel Development / Book Regards, Ozgur 24.02.2017, 11:32, "sourav m

Re: kernel development process question, patch review

2017-02-21 Thread Ozgur Karatas
responsible CC: development group + kernel mailing list Kernelnewbies = kernelnewbies help Regards, Ozgur > 21.02.2017, 04:44, "Tobin C. Harding" <m...@tobin.cc>: >>  If a reviewer makes a suggestion and one intends on making the change >>  as suggested is it requ

Re: error while sending mail using git send-email

2017-02-11 Thread Ozgur Karatas
Hello, are you still having problem a mutt? Regards, Ozgur 10.02.2017, 10:05, "srishti sharma" <srishtis...@gmail.com>: > The key was successfully validated using launchpad , I don't know why > I am getting this error. I am unable to start mutt , because of this >

Re: error while sending mail using git send-email

2017-02-04 Thread Ozgur Karatas
name = $my_name set from = $my_gmail_user set smtp_url = 'smtp://'$my_gmail_user'@smtp.gmail.com:587/' set smtp_pass = $my_gmail_pass Finally, Create a patch and run command: $ mutt -H 0001-patch.patch Regards, ~Ozgur ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: error while sending mail using git send-email

2017-02-04 Thread Ozgur Karatas
the mutt configurations? would you paste it? what did you configure as smtp settings on the mutt? Please paste it. if you don't show us the error message and the configuration, we can't help you at all. Regards ~Ozgur ___ Kernelnewbies mailing list Ker

Re: How do you generate the config file?

2017-01-29 Thread Ozgur Karatas
 Hello, you can get .config files in two ways, firstly get the existing .config file and compile to kernel. $ cp /boot/config-x.x.x /bla/linux/.config Second, use the generate command: $ make defconfig Regards, ~Ozgur 30.01.2017, 01:18, "Abel" <akron...@gmail.com>:Hi!Where do yo

Re: Build error

2017-01-29 Thread Ozgur Karatas
ated/asm-offsets.h  CALL    scripts/checksyscalls.sh  CC      arch/arm64/crypto/crc32-arm64.o Regards, ~Ozgur ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies