Re: [Freedreno] [PATCH v3 00/23] drm/msm: de-struct_mutex-ification

2020-10-23 Thread Kristian Høgsberg
On Mon, Oct 19, 2020 at 10:45 PM Rob Clark wrote: > > From: Rob Clark > > This doesn't remove *all* the struct_mutex, but it covers the worst > of it, ie. shrinker/madvise/free/retire. The submit path still uses > struct_mutex, but it still needs *something* serialize a portion of > the submit p

Re: [Freedreno] [PATCH v3 07/23] drm/msm/submit: Move copy_from_user ahead of locking bos

2020-10-23 Thread Kristian Høgsberg
On Mon, Oct 19, 2020 at 10:45 PM Rob Clark wrote: > > From: Rob Clark > > We cannot switch to using obj->resv for locking without first moving all > the copy_from_user() ahead of submit_lock_objects(). Otherwise in the > mm fault path we aquire mm->mmap_sem before obj lock, but in the submit > p

Re: [Freedreno] [PATCH v3 06/23] drm/msm/gem: Move locking in shrinker path

2020-10-23 Thread Kristian Høgsberg
On Mon, Oct 19, 2020 at 10:45 PM Rob Clark wrote: > > From: Rob Clark > > Move grabbing the bo lock into shrinker, with a msm_gem_trylock() to > skip over bo's that are already locked. This gets rid of the nested > lock classes. > > Signed-off-by: Rob Clark > --- > drivers/gpu/drm/msm/msm_gem.

Re: [Freedreno] [PATCH 00/14] drm/msm: de-struct_mutex-ification

2020-10-05 Thread Kristian Høgsberg
On Sun, Oct 4, 2020 at 9:21 PM Rob Clark wrote: > > From: Rob Clark > > This doesn't remove *all* the struct_mutex, but it covers the worst > of it, ie. shrinker/madvise/free/retire. The submit path still uses > struct_mutex, but it still needs *something* serialize a portion of > the submit pat

Re: [PATCH 13/14] drm/msm: Drop struct_mutex in shrinker path

2020-10-05 Thread Kristian Høgsberg
On Mon, Oct 5, 2020 at 4:02 PM Daniel Vetter wrote: > > On Mon, Oct 05, 2020 at 05:24:19PM +0800, Hillf Danton wrote: > > > > On Sun, 4 Oct 2020 12:21:45 > > > From: Rob Clark > > > > > > Now that the inactive_list is protected by mm_lock, and everything > > > else on per-obj basis is protected

Re: [Freedreno] [PATCH 2/3] drm/msm: Convert shrinker msgs to tracepoints

2020-09-03 Thread Kristian Høgsberg
On Tue, Sep 1, 2020 at 8:41 AM Rob Clark wrote: > > From: Rob Clark > > This reduces the spam in dmesg when we start hitting the shrinker, and > replaces it with something we can put on a timeline while profiling or > debugging system issues. That is a good solution, Reviewed-by: Kristian H. Kr

Re: [Freedreno] [PATCH v1 2/3] drm/msm: Print all 64 bits of the faulting IOMMU address

2019-05-09 Thread Kristian Høgsberg
On Tue, May 7, 2019 at 11:02 AM Jordan Crouse wrote: > > When we move to 64 bit addressing for a5xx and a6xx targets we will start > seeing pagefaults at larger addresses so format them appropriately in the > log message for easier debugging. Yes please, this has confused me more than once. Revi

Re: [PATCH] firewire: adopt read cycle timer ABI from raw1394

2007-10-01 Thread Kristian Høgsberg
On 10/1/07, Pieter Palmers <[EMAIL PROTECTED]> wrote: > Stefan Richter wrote: > >> This duplicates the read cycle timer feature of raw1394 (added in Linux > >> 2.6.21) in firewire-core's userspace ABI. > > > > Kristian and Pieter, does this simple duplication of the ioctl make > > sense on its own?

Re: [PATCH 00/23] drm: introduce drm_zalloc

2007-08-30 Thread Kristian Høgsberg
On Tue, 2007-08-28 at 21:50 +0100, Dave Airlie wrote: > On Tue, 28 Aug 2007, Christoph Hellwig wrote: > > > On Mon, Aug 27, 2007 at 10:57:50PM +0200, [EMAIL PROTECTED] wrote: > >> Hello, > >> > >>As there are many places in drm code where drm_alloc + memset is used > >> this patch series intr

Re: [RFC PATCH 0/6] Convert all tasklets to workqueues

2007-06-25 Thread Kristian Høgsberg
On Mon, 2007-06-25 at 16:31 -0400, Steven Rostedt wrote: > On Mon, 2007-06-25 at 16:07 -0400, Kristian Høgsberg wrote: > > > > Maybe we should be looking at something like GENERIC_SOFTIRQ to run > > > functions that a driver could add. But they would run only on the CPU &

Re: [RFC PATCH 0/6] Convert all tasklets to workqueues

2007-06-25 Thread Kristian Høgsberg
On Mon, 2007-06-25 at 15:11 -0400, Steven Rostedt wrote: > On Mon, 2007-06-25 at 14:48 -0400, Kristian Høgsberg wrote: > ... > > However, I don't really understand how you can discuss a wholesale > > replacing of tasklets with workqueues, given the very different > >

Re: [RFC PATCH 0/6] Convert all tasklets to workqueues

2007-06-25 Thread Kristian Høgsberg
On Fri, 2007-06-22 at 23:59 +0200, Ingo Molnar wrote: > so how about the following, different approach: anyone who has a tasklet > in any performance-sensitive codepath, please yell now. We'll also do a > proactive search for such places. We can convert those places to > softirqs, or move them b

[PATCH] lib: add idr_remove_all

2007-06-01 Thread Kristian Høgsberg
Remove all ids from the given idr tree. idr_destroy() only frees up unused, cached idp_layers, but this function will remove all id mappings and leave all idp_layers unused. A typical clean-up sequence for objects stored in an idr tree, will use idr_for_each() to free all objects, if necessay, th

[PATCH] lib: add idr_for_each()

2007-06-01 Thread Kristian Høgsberg
This patch adds an iterator function for the idr data structure. Compared to just iterating through the idr with an integer and idr_find, this iterator is (almost, but not quite) linear in the number of elements, as opposed to the number of integers in the range covered by the idr. This makes a d

Re: [rfc patch] firewire: prefix modules with firewire- instead of fw-

2007-05-25 Thread Kristian Høgsberg
On 5/25/07, Stefan Richter <[EMAIL PROTECTED]> wrote: Of course everybody immediately associates "fw-" with FireWire, not firmware or firewall or whatever. But "firewire-" has a nice ring to it too. It's fine with me. I like the less ambiguous names better, and I don't think the length of the

Re: Race free attributes in sysfs

2007-05-22 Thread Kristian Høgsberg
On 5/22/07, Pierre Ossman <[EMAIL PROTECTED]> wrote: Kay Sievers wrote: > We could change the driver-core to suppress the creation of an attribute > if the attribute's show() or store() method returns something like > -ENOENT at registration time? > The driver would pass _all_ possible attributes

Re: [PATCH 4/6] firewire: OHCI-1394 lowlevel driver

2007-05-09 Thread Kristian Høgsberg
Christoph Hellwig wrote: + if (pci_enable_device(dev)) { + fw_error("Failed to enable OHCI hardware.\n"); + return cleanup(ohci, CLEANUP_PUT_CARD, -ENODEV); Please use normal goto unwinding so the driver follows the same model as almost all other pci drivers an

Re: [PATCH 5/6] firewire: SBP-2 highlevel driver

2007-05-09 Thread Kristian Høgsberg
Stefan Richter wrote: Kristian Høgsberg wrote: I was trying to be clever and only allocate the host once the device had been discovered and initialized. I have now changed the code to just allocate the host up front and use the hostdata mechanism for the sbp2_device struct, which also

Re: [PATCH 5/6] firewire: SBP-2 highlevel driver

2007-05-09 Thread Kristian Høgsberg
Christoph Hellwig wrote: + sg = (struct scatterlist *)orb->cmd->request_buffer; + count = dma_map_sg(device->card->device, sg, orb->cmd->use_sg, + orb->cmd->sc_data_direction); you need to handle the error case (count == 0) Yup, done. + /* Convert

Re: [git pull] New firewire stack

2007-05-07 Thread Kristian Høgsberg
Olaf Hering wrote: On Thu, May 03, Olaf Hering wrote: On Thu, May 03, Stefan Richter wrote: ieee1394-old Noone will seriously ship two firewire stacks, so that cant be the issue (for distributors). Once there is a way to easily switch between kernel releases, I'm ok with whatever

Re: [PATCH 3/6] firewire: char device interface

2007-05-07 Thread Kristian Høgsberg
Christoph Hellwig wrote: On Wed, May 02, 2007 at 05:11:45PM -0400, Kristian H??gsberg wrote: The firewire-cdev.h file is meant to be a self-contained userspace header file and shouldn't include other kernel header files. All duplicated values are standardized ieee1394 values and won't ever cha

Re: [PATCH 6/6] firewire: add it all to kbuild

2007-05-07 Thread Kristian Høgsberg
Christoph Hellwig wrote: On Thu, May 03, 2007 at 01:01:08AM +0200, Stefan Richter wrote: Christoph Hellwig wrote: +fw-core-objs := fw-card.o fw-topology.o fw-transaction.o fw-iso.o \ + fw-device.o fw-cdev.o fw-core-y += .. Like such? Exactly. OK, changed that here, will push out ne

Re: [PATCH 3/6] firewire: char device interface

2007-05-07 Thread Kristian Høgsberg
Christoph Hellwig wrote: On Wed, May 02, 2007 at 02:17:26PM +0200, Stefan Richter wrote: +#include +#include Always use the Fixed. +struct fw_cdev_get_info { + /* The version field is just a running serial number. We +* never break backwards compatibility. Userspace passe

Re: [PATCH 1/6] firewire: handling of cards, buses, nodes

2007-05-07 Thread Kristian Høgsberg
Christoph Hellwig wrote: On Wed, May 02, 2007 at 02:15:42PM +0200, Stefan Richter wrote: +/* -*- c-basic-offset: 8 -*- Please don't pollute the code with annotation for some editors. OK. + * fw-card.c - card level functions Please don't put the

Re: [PATCH 1/6] firewire: handling of cards, buses, nodes

2007-05-07 Thread Kristian Høgsberg
Pekka Enberg wrote: On 5/2/07, Stefan Richter <[EMAIL PROTECTED]> wrote: I looked around a bit with grep -R and a few search terms but didn't find something definite. Is there any other user of a crc16_itu_t or crc_ccitt or whatever which operates on a (CPU byte ordered) u32[] instead of on a (

Re: [git pull] New firewire stack

2007-05-03 Thread Kristian Høgsberg
Adrian Bunk wrote: | An advantage of changing the names is that they are now prefixed. Is the opportunity to clean up module names compelling enough, vs. (the wish for) minimized trouble with scripts which refer to module names? ... How big is the trouble actually? Exactly. In Fedora we've

Re: [PATCH 2/6] firewire: isochronous and asynchronous I/O

2007-05-02 Thread Kristian Høgsberg
Christoph Hellwig wrote: + for (i = 0; i < buffer->page_count; i++) { + buffer->pages[i] = alloc_page(GFP_KERNEL | GFP_DMA32 | __GFP_ZERO); + if (buffer->pages[i] == NULL) + goto out_pages; + + address = dma_map_page(card->dev

Re: [PATCH 1/6] firewire: handling of cards, buses, nodes

2007-05-02 Thread Kristian Høgsberg
Pekka Enberg wrote: On 5/2/07, Stefan Richter <[EMAIL PROTECTED]> wrote: +/* The lib/crc16.c implementation uses the standard (0x8005) + * polynomial, but we need the ITU-T (or CCITT) polynomial (0x1021). + * The implementation below works on an array of host-endian u32 + * words, assuming they'

Re: [PATCH 3/6] firewire: char device interface

2007-05-02 Thread Kristian Høgsberg
John Stoffel wrote: "Stefan" == Stefan Richter <[EMAIL PROTECTED]> writes: Stefan> Signed-off-by: Stefan Richter <[EMAIL PROTECTED]> Stefan> --- Stefan> drivers/firewire/fw-cdev.c| 954 ++ Stefan> include/linux/firewire-cdev.h | 268 + Stefan> 2 fi

Re: [git pull] New firewire stack

2007-05-02 Thread Kristian Høgsberg
Adrian Bunk wrote: On Wed, May 02, 2007 at 02:48:11PM +0200, Stefan Richter wrote: Olaf Hering wrote: On Tue, May 01, Kristian Høgsberg wrote: drivers/firewire/Kconfig | 60 ++ NACK. Upgrade the current drivers/ieee1394/ with the new code, Last time I believe I was the only one

Re: [git pull] New firewire stack

2007-05-02 Thread Kristian Høgsberg
Stefan Richter wrote: Christoph Hellwig wrote: .. Please send out patches for review first. Yes, it's been a while since the last submission for review [1], and most of the changes went over linux1394-devel only. And to put it mildly, there aren't a lot of capable reviewers watching that lis

Re: [git pull] New firewire stack

2007-05-02 Thread Kristian Høgsberg
Olaf Hering wrote: On Tue, May 01, Kristian Høgsberg wrote: drivers/firewire/Kconfig | 60 ++ NACK. Upgrade the current drivers/ieee1394/ with the new code, and keep all existing module names. What's your reasoning here? Having different module names allows people to co

[git pull] New firewire stack

2007-05-01 Thread Kristian Høgsberg
Hi Linus, As you may know, we've been working on a new FireWire stack over on linux1394-devel. The main driver behind this work is to get a small, maintainable and supportable FireWire stack, with an acceptable backwards compatibility story. I've been talking to Stefan Richter about it and we f

Re: [PATCH] ieee1394: remove usage of skb_queue as packet queue

2007-03-18 Thread Kristian Høgsberg
On 3/17/07, Stefan Richter <[EMAIL PROTECTED]> wrote: This considerably reduces the memory requirements for a packet and eliminates ieee1394's dependency on CONFIG_NET. Nice work Stefan, the skb rewrite was one of the most pointless rewrites in the history of the linux1394 stack. TODO: - Do

Re: Juju

2007-01-29 Thread Kristian Høgsberg
Pete Zaitcev wrote: On Thu, 25 Jan 2007 16:18:35 -0500, Kristian Høgsberg <[EMAIL PROTECTED]> wrote: Indeed, I've just moved to an in-tree development model now. I still think the out-off-tree model is a good way to prototype, get started and reach "critical mass" with

Re: Juju

2007-01-26 Thread Kristian Høgsberg
Greg KH wrote: On Thu, Jan 25, 2007 at 03:38:24PM -0800, Pete Zaitcev wrote: On Thu, 25 Jan 2007 16:18:35 -0500, Kristian H??gsberg <[EMAIL PROTECTED]> wrote: I see that ORBs are always allocated with a call (like SKB) and not embedded into drivers (like URBs). It's great, keep it up. Also, n

Re: Juju

2007-01-25 Thread Kristian Høgsberg
Stefan Richter wrote: Pete Zaitcev wrote: On Thu, 25 Jan 2007 16:18:35 -0500, Kristian Høgsberg <[EMAIL PROTECTED]> wrote: ... will do a status write to the status address specified in the ORB, at which point the SBP-2 transaction is complete. You know, I wanted to use this picture

Re: Juju

2007-01-25 Thread Kristian Høgsberg
Pete Zaitcev wrote: Hi, Kristian: I only looked briefly at SBP-2, and at submit/callback paths it pulled, because I do not understand most of the other issues. Great, thanks for giving this a look-over, much appreciated. Executive summary: please implement proper ORB cancellation. This is ho

In-tree version of new FireWire drivers available

2007-01-23 Thread Kristian Høgsberg
Hi, I've moved the new FireWire stack to an in-tree git repository and moved over the missing patches from my out-of-tree version. The tree is available over here: git://people.freedesktop.org/~krh/linux-2.6 with gitweb avialable here: http://gitweb.freedesktop.org/?p=users/krh/linux-2.6.gi

Re: [-mm patch] drivers/firewire/: cleanups

2007-01-22 Thread Kristian Høgsberg
Adrian Bunk wrote: On Mon, Jan 22, 2007 at 02:41:29PM -0500, Kristian Høgsberg wrote: Adrian Bunk wrote: On Thu, Jan 11, 2007 at 10:26:27PM -0800, Andrew Morton wrote: ... Changes since 2.6.20-rc3-mm1: ... git-ieee1394.patch ... git trees ... This patch contains the following cleanups

Re: [-mm patch] drivers/firewire/: cleanups

2007-01-22 Thread Kristian Høgsberg
I do like how extern inline will never generate code and that gcc warns on missing prototype for these case is more of a gcc bug. Not a big deal though, it's more worthwhile to track down real missing prototype offenders. - fw-topology.c: make struct fw_node_create static Looks good.

Re: allocation failed: out of vmalloc space error treating and VIDEO1394 IOC LISTEN CHANNEL ioctl failed problem

2007-01-15 Thread Kristian Høgsberg
On 1/15/07, Arjan van de Ven <[EMAIL PROTECTED]> wrote: > However, what I'd really like to do is to leave it to user space to > allocate the memory as David describes. In the transmit case, user > space allocates memory (malloc or mmap) and loads the payload into > that buffer. there is a lot

Re: allocation failed: out of vmalloc space error treating and VIDEO1394 IOC LISTEN CHANNEL ioctl failed problem

2007-01-15 Thread Kristian Høgsberg
On 1/15/07, David Moore <[EMAIL PROTECTED]> wrote: On Mon, 2007-01-15 at 10:20 -0800, Arjan van de Ven wrote: > if you need that much you probably should redesign your algorithms to > not need vmalloc in the first place I think you've convinced me that vmalloc is not a good choice when a dri

Re: ieee1394 feature needed: overwrite SPLIT_TIMEOUT from userspace

2007-01-15 Thread Kristian Høgsberg
On 1/15/07, Philipp Beyer <[EMAIL PROTECTED]> wrote: Thanks for your input. My post was based on the (wrong) idea that the kernel already uses different timeout values per node. Therefore, having read your answer, I have a different opinion about how to solve this now. About your suggestions:

Re: [PATCH 0/4] New firewire stack - updated patches

2006-12-20 Thread Kristian Høgsberg
Stefan Richter wrote: ... And Windows Vista will drop the IP over 1394 functionality, which is another data point about how widely used this standard is. If we cared what Windows supports or does not support, we would have gap count optimization by now, but no support of IEEE 1394b-2002. Yeah

Re: [PATCH 0/4] New firewire stack - updated patches

2006-12-20 Thread Kristian Høgsberg
Pieter Palmers wrote: Kristian Høgsberg wrote: Hi, Here's a new set of patches for the new firewire stack. The changes since the last set of patches address the issues that were raised on the list and can be reviewed in detail here: .. for some reason I didn't get patch 3/4 and

Re: [PATCH 3/4] Add driver for OHCI firewire host controllers.

2006-12-20 Thread Kristian Høgsberg
Robert Hancock wrote: Kristian Høgsberg wrote: ... +static struct pci_driver fw_ohci_pci_driver = { +.name= ohci_driver_name, +.id_table= pci_table, +.probe= pci_probe, +.remove= pci_remove, +}; How about suspend/resume support? Lots of laptops

Re: [PATCH 0/4] New firewire stack - updated patches

2006-12-20 Thread Kristian Høgsberg
Stefan Richter wrote: Kristian Høgsberg wrote: ... to sum up the changes: - Got rid of bitfields. - Tested on ppc, ppc64 x86-64 and x86. - ioctl interface tested on 32-bit userspace / 64-bit kernels. - ASCIIfied sources. - Incorporated Jeff Garziks comments. - Updated to work with

[PATCH 2/4] Add device probing and sysfs integration.

2006-12-19 Thread Kristian Høgsberg
Signed-off-by: Kristian Hoegsberg <[EMAIL PROTECTED]> --- drivers/firewire/Makefile |3 drivers/firewire/fw-card.c| 56 +++ drivers/firewire/fw-device-cdev.c | 617 + drivers/firewire/fw-device-cdev.h | 146 + drivers/firewire/fw

[PATCH 3/4] Add driver for OHCI firewire host controllers.

2006-12-19 Thread Kristian Høgsberg
Signed-off-by: Kristian Hoegsberg <[EMAIL PROTECTED]> --- drivers/firewire/Kconfig | 11 drivers/firewire/Makefile |1 drivers/firewire/fw-ohci.c | 1394 drivers/firewire/fw-ohci.h | 152 + 4 files changed, 1558 insertions(+), 0 deletion

[PATCH 4/4] Add SBP-2 protocol driver for storage devices.

2006-12-19 Thread Kristian Høgsberg
Signed-off-by: Kristian Hoegsberg <[EMAIL PROTECTED]> --- drivers/firewire/Kconfig | 12 drivers/firewire/Makefile |1 drivers/firewire/fw-sbp2.c | 1073 3 files changed, 1086 insertions(+), 0 deletions(-) diff --git a/drivers/firewire/Kconf

[PATCH 0/4] New firewire stack - updated patches

2006-12-19 Thread Kristian Høgsberg
Hi, Here's a new set of patches for the new firewire stack. The changes since the last set of patches address the issues that were raised on the list and can be reviewed in detail here: http://gitweb.freedesktop.org/?p=users/krh/juju.git but to sum up the changes: - Got rid of bitfields.

[PATCH] Add PCI class ID for firewire OHCI controllers.

2006-12-17 Thread Kristian Høgsberg
Pull this define out of drivers/ieee1394/ohci1394.c and rename to match other PCI class defines. --- drivers/ieee1394/ohci1394.c |4 +--- include/linux/pci_ids.h |1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/ieee1394/ohci1394.c b/drivers/ieee1394/ohci1394

Re: [PATCH 3/3] Import fw-sbp2 driver.

2006-12-15 Thread Kristian Høgsberg
Stefan Richter wrote: Kristian Høgsberg wrote: Jeff Garzik wrote: doesn't allowing the stack to issue REPORT LUNS take care of this? Possibly, I don't have firewire multi-LUN devices to test with here. The LUNs are also discoverable from the firewire config rom, which is why

Re: [PATCH 3/3] Import fw-sbp2 driver.

2006-12-14 Thread Kristian Høgsberg
Jeff Garzik wrote: Again, thanks for your comments, I've added patches to my git repo, will send out a new set on LKML before the end of this week. +/* I don't know why the SCSI stack doesn't define something like this... */ +typedef void (*scsi_done_fn_t) (struct scsi_cmnd *); submit a pa

Re: [PATCH 0/3] New firewire stack

2006-12-09 Thread Kristian Høgsberg
On 12/8/06, Stefan Richter <[EMAIL PROTECTED]> wrote: Pavel Machek wrote at linux-kernel: > On Tue 05-12-06 17:05:30, Erik Mouw wrote: >> On Tue, Dec 05, 2006 at 10:13:55AM -0500, Kristian H?gsberg wrote: >> > Marcel Holtmann wrote: >> > >can you please use drivers/firewire/ if you want to start

Re: [PATCH 2/3] Import fw-ohci driver.

2006-12-08 Thread Kristian Høgsberg
I_ANY_ID, I'm not sure this is a proper class_mask? Huh, yeah... looks like ~0 should work. And I changed this to use the PCI_DEVICE_CLASS macro. +.vendor= PCI_ANY_ID, +.device= PCI_ANY_ID, +.subvendor= PCI_ANY_ID, + .subdevice= PCI_ANY_

Re: [PATCH 0/3] New firewire stack

2006-12-06 Thread Kristian Høgsberg
Ben Collins wrote: ... I would like to see new development efforts take cleanliness WRT host byte order and 64bit architectures into account from the ground up. (I understand though why Kristian made the announcement in this early phase, and I agree with him that this kind of development has to g

Re: [PATCH 0/3] New firewire stack

2006-12-06 Thread Kristian Høgsberg
Stefan Richter wrote: ... Another point is the various streaming drivers. There used to be 5 different userspace streaming APIs in the linux1394: raw1394, video1394, amdtp, dv1394 and rawiso. Recently, amdtp (audio streaming) has been removed, since with the rawiso interface, this can be done i

Re: [PATCH 0/3] New firewire stack

2006-12-06 Thread Kristian Høgsberg
Stefan Richter wrote: ... Another question is whether the stack-internal APIs are really fit for non-OHCI chips. There is an unfinished low-level driver for GP2Lynx which worked to some degree at some point, but other than that I don't remember positive or negative reports in this department. May

Re: [PATCH 0/3] New firewire stack

2006-12-05 Thread Kristian Høgsberg
Marcel Holtmann wrote: Hi Erik, can you please use drivers/firewire/ if you want to start clean or aiming at replacing drivers/ieee1394/. Using "fw" as an abbreviation in the directory path is not really helpful. Yes, that's probably a better idea. Do you see a problem with using fw_* as a pr

Re: [PATCH 0/3] New firewire stack

2006-12-05 Thread Kristian Høgsberg
Ray Lee wrote: On 12/4/06, Kristian Høgsberg <[EMAIL PROTECTED]> wrote: Ok... I was planning to make big-endian versions of the structs so that the endian issue would be solved. But if the bit layout is not consistent, I guess bitfields are useless for wire formats. I didn'

Re: [PATCH 0/3] New firewire stack

2006-12-05 Thread Kristian Høgsberg
Alexey Dobriyan wrote: On Tue, Dec 05, 2006 at 12:22:29AM -0500, Kristian Høgsberg wrote: I'm announcing an alternative firewire stack that I've been working on the last few weeks. Is mainline firewire so hopeless, that you've decided to rewrite it? Could you show some ug

Re: [PATCH 0/3] New firewire stack

2006-12-05 Thread Kristian Høgsberg
David Miller wrote: From: Benjamin Herrenschmidt <[EMAIL PROTECTED]> Date: Tue, 05 Dec 2006 16:42:42 +1100 - It's horribly broken in at least two area : DO NOT USE BITFIELDS FOR DATA ON THE WIRE !!! and Where do you handle endianness ? (no need to shout for that one). (Or in general, d

Re: [PATCH 0/3] New firewire stack

2006-12-05 Thread Kristian Høgsberg
Marcel Holtmann wrote: Hi Kristian, I'm announcing an alternative firewire stack that I've been working on the last few weeks. I'm aiming to implement feature parity with the ... can you please use drivers/firewire/ if you want to start clean or aiming at replacing drivers/ieee1394/. Using "

[PATCH 2/2] Add device probing, sysfs interface and char device code.

2006-12-04 Thread Kristian Høgsberg
-basic-offset: 8 -*- + * + * fw-device-cdev.c - Char device for device raw access + * + * Copyright © 2005 Kristian Høgsberg <[EMAIL PROTECTED]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as publis

[PATCH 0/2] fw-core resend

2006-12-04 Thread Kristian Høgsberg
Oops, looks like the fw-core patch was to big for the list. I've split it into two parts: fw-core which is the transaction logic and bus reset handling and fw-device which is device probing and sysfs integration. cheers, Kristian - To unsubscribe from this list: send the line "unsubscribe linux-k

Re: [PATCH 0/3] New firewire stack

2006-12-04 Thread Kristian Høgsberg
Benjamin Herrenschmidt wrote: On Tue, 2006-12-05 at 00:22 -0500, Kristian Høgsberg wrote: Hi, I'm announcing an alternative firewire stack that I've been working on the last few weeks. I'm aiming to implement feature parity with the current firewire stack, but not necess

[PATCH 2/3] Import fw-ohci driver.

2006-12-04 Thread Kristian Høgsberg
Add the OHCI driver to the stack and build system. Signed-off-by: Kristian Høgsberg <[EMAIL PROTECTED]> --- drivers/fw/fw-ohci.c | 1334 ++ drivers/fw/fw-ohci.h | 152 ++ 2 files changed, 1486 insertions(+), 0 deletions(-) diff -

[PATCH 3/3] Import fw-sbp2 driver.

2006-12-04 Thread Kristian Høgsberg
Pull in the fw-sbp2 driver for firewire storage devices. Signed-off-by: Kristian Høgsberg <[EMAIL PROTECTED]> --- drivers/fw/fw-ohci.c |2 drivers/fw/fw-sbp2.c | 1083 ++ 2 files changed, 1084 insertions(+), 1 deletions(-) diff -

[PATCH 0/3] New firewire stack

2006-12-04 Thread Kristian Høgsberg
Hi, I'm announcing an alternative firewire stack that I've been working on the last few weeks. I'm aiming to implement feature parity with the current firewire stack, but not necessarily interface compatibility. For now, I have the low-level OHCI driver done, the mid-level transaction logic done,