Re: out of memory?

2001-02-16 Thread George
parently userspace never ran again because sockets would be accepted still but never progress. -George Greer - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

2.2.18 bttv

2001-01-04 Thread George
tchable) Tyan Tomcat IV -- Pentium 233 MMX x2 00:00.0 Host bridge: Intel Corporation 430HX - 82439HX TXC [Triton II] (rev 03) Flags: bus master, medium devsel, latency 32 I can try to narrow it down further if someone has ideas or I'll just try whatever I can in the large chunks cha

Re: Where did kgcc go in 2.4.0-test10 ?

2000-11-01 Thread George
27;s not a good idea to dist specific >code into the official kernel tree. Big picture. It may be distribution specific right now, but that doesn't stop other distributions from needing it later. -- -George Greer (It's not like it's "redhat-gcc", which would qualify as spec

Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread george
the list, as I don't get the list directly. Thank you for your consideration. -- George T. Talbot - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land

2000-11-03 Thread george
so studly that they actually know what the hell they are doing by disabling SA_RESTART, then they can do it explicitly. I don't mean this to sound like a rant. It's just that I can't possibly ascertain why someone in their right mind would want any behaviour different than SA_REST

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-03 Thread george
it with many parallel connect() calls. After a short, a bit random interval, pthread_create() will fail in either my program, or deep in the Java VM. I assume that the Java VM is using pthread_create(). I don't mean to sound like a psycho on this, but I can't see why SA_RESTART isn

Re: iptables: "stateful inspection?"

2000-12-20 Thread George
ipchains -A input -j DENY -p tcp -y or if that complains: ipchains -A input -j DENY -p tcp -s 0.0.0.0/0 -d $IP -y You'll notice above I used '! -y' on the Server FTP rule. If I missed a detail, it might be due to trying to condense everything I have into what you w

bttv in 2.2.18 worse than 2.2.17

2000-12-29 Thread George
Err- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- 4 in the 2.2.18 patch doesn't do anything by itself. -George Greer - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: ide-scsi + /dev/dsp == solid lockup

2000-10-17 Thread George
On Sun, 15 Oct 2000, Leigh Orf wrote: >I hesitate to declare victory just yet, but I think my problem is solved >(over a half hour of testing and no lockup). In reading the pdf docs on >the motherboard, by chance I found the word "concurrency" here: Makes me wonder why my PIIX3 (i430HX) Tyan Tom

Re: failure to blank CDRWs (2.2.18pre15 smp ide-scsi hp7100i)

2000-10-17 Thread George
ter than you can blink. The kicker is that putting said failed CD into a Windows NT 4.0 machine to burn will blue screen it. -George Greer - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/

Re: Request: increase in PCI bus limit

2001-01-31 Thread George
the system. Then panic on boot if they're wrong (sort of like processor type). It's somewhat annoying that by choosing SMP NR_CPUS goes to 32 when I know I only have (and ever will have) 2 in this machine. Don't make busses have the same assumptions that just waste memory. -Geo

But do not tell anyone

2014-12-31 Thread George
Everything could become real http://binaryperform.go2cloud.org/aff_c?offer_id=36&aff_id=1476 No more such Info? Simply answer -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info

LOAN 3% OFFER

2015-12-02 Thread George
Are you in search for a loan to solve your financial needs? if yes, apply here now as we are offering unsecured loans to various citizens who need financial assistance and are finding it difficult to obtain a loan from banks and other lending bodies --- This email has been checked for viruses b

[no subject]

2020-07-03 Thread George
Did you receive my last mail

[no subject]

2020-11-04 Thread George
Do you get my last mail

Re: 3.7-rc6 soft lockup in kswapd0

2012-11-26 Thread George Spelvin
Johannes Weiner wrote: > Any chance you could test with this fix instead, in addition to Dave's > accounting fix? It's got bool and everything! Okay. Mel, speak up if you object. I also rebased on top of 3.7-rc7, which already includes Dave's fix. Again, speak up if that's a bad idea. > ---

Re: [Pv-drivers] [PATCH 00/12] VMCI for Linux upstreaming

2012-11-26 Thread George Zhang
Greg > > And why isn't George responding to my comments when I ask questions? > I think Andy or Dmitry replied faster... We will improve our process from your comments, Thanks a lot, George -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: 3.7-rc6 soft lockup in kswapd0

2012-11-27 Thread George Spelvin
Mel Gorman wrote: > On Mon, Nov 26, 2012 at 01:53:17PM -0500, George Spelvin wrote: >> Johannes Weiner wrote: >>> Any chance you could test with this fix instead, in addition to Dave's >>> accounting fix? It's got bool and everything! > >> Okay. M

Re: 3.7-rc6 soft lockup in kswapd0

2012-11-29 Thread George Spelvin
Mel Gorman wrote: > On Tue, Nov 27, 2012 at 04:25:14PM -0500, George Spelvin wrote: >> Well, it just made it to 24 hours, >> it did before. I'm going to wait a couple more days before declaring >> victory, but it looks good so far. >> >> 19:19:10 up 1 day

[PATCH v2] perf: Check all MSRs before passing hw check

2013-03-18 Thread George Dunlap
ld thus be considered for backport. v2: - Print the warning when the event happens so the reg,val make sense - But print it only for the first such instance - Update changelog to include details of failing system Signed-off-by: George Dunlap CC: Konrad Wilk CC: Thomas Gleixner CC: "H. P

Re: [PATCH 00/13] overlay filesystem: request for inclusion (v16)

2013-03-20 Thread George Spelvin
Sorry for being so very late to the party, but rather than messing with xattrs, why not just have a specific file (say, default /.whiteout, but selectable via a mount option) and links to it are counted as whiteout entries? All you need to do is resolve the link (it's probably a good idea to allow

3.8-rc regression with pps-ldisc due to 70ece7a731

2013-02-03 Thread George Spelvin
"TTY: n_tty, add ldisc data to n_tty" The PPS line discipline has incestuous relations with the n_tty line discipline, using some hooks to call internal routines. However, I started noticing violent kernel explosions when testing 3.8-rc, and after a bit of digging, I think it's due to the fact th

Re: 3.8-rc regression with pps-ldisc due to 70ece7a731

2013-02-03 Thread George Spelvin
Just FYI, here is the (ugly and appears to crash) sort of patch I was contemplating. You may consider this Signed-off-by: in the narrow technical sense that I can certify the origin of the code, but obviously I do not consider it a candidate for upstream merging. It is posted here in the hopes th

Re: 3.8-rc regression with pps-ldisc due to 70ece7a731

2013-02-03 Thread George Spelvin
Just a quick update: the previously posted patch *does* work; the crash I was experiencing was pilot error. My NTP server is running a 3.8.0-rc6-dirty kernel right now. I'll research whether that race I talk about in pps_tty_dcd_change is actually possible or not (can interrupts start arriving be

Re: [PATCH 3/4] pps: Use lookup list to reduce ldisc coupling

2013-02-06 Thread George Spelvin
> Now that N_TTY uses tty->disc_data for its private data, > 'subclass' ldiscs cannot use ->disc_data for their own private data. > > Use a lookup list to associate the tty with the pps source. Thanks for the cleanup. I fully agree my patch was not a good one; I just wanted someone more experien

Re: 3.8-rc regression with pps-ldisc due to 70ece7a731

2013-02-06 Thread George Spelvin
> Tight coupling is what caused this to break in the first place -- I > don't think tighter coupling is the right answer. Agreed. But given that n_tty already knows there are wrappers, it would have been possible to find a cleaner way to access an "aux pointer" in the tty structure, if that's wha

Re: [PATCH 3/4] pps: Use lookup list to reduce ldisc coupling

2013-02-06 Thread George Spelvin
> I did this first and it's a mess -- the patch basically ends up looking > like a rewrite. But feel free to use these patches as a base for a > version you do like and submit those instead for review. I just wanted > to show the way. I wouldn't think so, but I'll give it a try and see myself. Th

Re: [PATCH 0/7] 3.8-rc regression with pps-ldisc due to 70ece7a731

2013-02-08 Thread George Spelvin
> As this is a breakage in 3.8-rc1, is there any way to pull out patches 5 > and 6 in a format that I can apply them now, or in a way that I can get > I can't apply all of these to 3.8-final now, as it's way too late. I'll reorder them for you. But Philipp will be bitterly disappointed. :-) The

Re: [PATCH 0/7] 3.8-rc regression with pps-ldisc due to 70ece7a731

2013-02-08 Thread George Spelvin
As a followup, testing my fixes has revealed an old bug in the PPS driver that I'm trying to figure out how to solve. Basically, pps_unregister_cdev does device_destroy(pps_class, pps->dev->devt); cdev_del(&pps->cdev); And device_destroy ends up calling pps->dev->release, which i

[PATCH v2 1/9] pps: Add pps_lookup_dev() function

2013-02-12 Thread George Spelvin
cated pps devices. (We capture the timestamp before the lookup, so the timing isn't affected.) It is a bit ugly that this function, which is part of the in-kernel PPS API, has to be in pps.c as opposed to kapi,c, but that's not something that affects users. Signed-off-by: George Spelvi

[PATCH v2 9/9] tty/tty_ldisc.c: use test_and_clear_bit in tty_ldisc_close

2013-02-12 Thread George Spelvin
We have a function to test and clear a bit in one step, so use it. Signed-off-by: George Spelvin --- drivers/tty/tty_ldisc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index c578229..4606ab9 100644 --- a/drivers/tty

[PATCH v2 0/9] 3.8-rc regression with pps-ldisc due to 70ece7a731

2013-02-12 Thread George Spelvin
n to shrink the source. * 7/9 "Remove ancient hardpps()" Eliminate dead code. * 8/9 "Use a single cdev" This is a more ambitious overhaul of the cdev business that patch #3 fixes. * 9/9 "use test_and_clear_bit in tty_ldisc_close" Just a two-liner I noticed while

[PATCH v2 6/9] pps: Additional cleanups in uart_handle_dcd_change

2013-02-12 Thread George Spelvin
An extension of the previous commit, there is no semantic change here, just fewer lines of source code. Signed-off-by: George Spelvin --- drivers/tty/serial/serial_core.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/tty/serial/serial_core.c b

[PATCH v2 8/9] pps: Use a single cdev

2013-02-12 Thread George Spelvin
One per device just seems wasteful, when we already manintain a data structure to map minor numbers to devices, and we already have a PPS_MAX_SOURCES #define. This is also a more comprehensive fix to the use-after-free bug that has already received a minimal patch. --- drivers/pps/pps.c

[PATCH v2 5/9] pps: Move timestamp read into PPS code proper

2013-02-12 Thread George Spelvin
rivers/staging/speakup/selection.c Cc: William Hubbs Cc: Chris Brannon Cc: Kirk Reiser Cc: Samuel Thibault Signed-off-by: Peter Hurley Signed-off-by: George Spelvin --- drivers/pps/clients/pps-ldisc.c | 11 +++ drivers/staging/speakup/selection.c | 1 + drivers/tty/n

[PATCH v2 4/9] pps: Don't crash the machine when exiting will do

2013-02-12 Thread George Spelvin
PPS is not really the must-have subsystem that warrants crashing the machine if the ldisc interface is broken. Signed-off-by: Peter Hurley Signed-off-by: George Spelvin --- drivers/pps/clients/pps-ldisc.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH v2 3/9] pps: Fix a use-after free bug when unregistering a source.

2013-02-12 Thread George Spelvin
instead have all devices reference one global cdev. Then the deallocation ordering becomes simpler. But that's more complex and invasive change, so we leave that for later. Signed-off-by: George Spelvin Cc: sta...@kernel.org --- drivers/pps/pps.c | 14 ++ 1 file changed, 10 inser

[PATCH v2 2/9] pps: Use pps_lookup_dev to reduce ldisc coupling

2013-02-12 Thread George Spelvin
. Signed-off-by: George Spelvin --- drivers/pps/clients/pps-ldisc.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/pps/clients/pps-ldisc.c b/drivers/pps/clients/pps-ldisc.c index 79451f2..60cee9e 100644 --- a/drivers/pps/clients/pps-ldisc.c +++ b/drivers/pps/cli

Re: [PATCH v2] perf: Check all MSRs before passing hw check

2013-04-02 Thread George Dunlap
Any opinions on this? It's been 2 weeks now. -George On 18/03/13 11:27, George Dunlap wrote: check_hw_exists has a number of checks which go to two exit paths: msr_fail and bios_fail. Checks classified as msr_fail will cause check_hw_exists() to return false, causing the PMU not to be

[PATCH v3] perf: Check all MSRs before passing hw check

2013-04-03 Thread George Dunlap
ned-off-by: George Dunlap CC: Konrad Wilk CC: Thomas Gleixner CC: "H. Peter Anvin" CC: Ingo Molnar CC: x...@kernel.org CC: Ian Campbell CC: David Vrabel CC: Andrew Cooper --- arch/x86/kernel/cpu/perf_event.c | 30 ++ 1 file changed, 18 insertions(+), 1

[PATCH 01/11] vmci_context.patch: VMCI context list operations.

2012-08-30 Thread George Zhang
Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_context.c | 1245 ++ drivers/misc/vmw_vmci/vmci_context.h | 174 + 2 files changed, 1419 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_context.c create mode 100644

[PATCH 02/11] vmci_datagram.patch: VMCI datagram entity handling.

2012-08-30 Thread George Zhang
Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_datagram.c | 583 + drivers/misc/vmw_vmci/vmci_datagram.h | 55 +++ 2 files changed, 638 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_datagram.c create mode 100644

[PATCH 03/11] vmci_doorbell.patch: VMCI doorbell notification handling.

2012-08-30 Thread George Zhang
Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_doorbell.c | 749 + drivers/misc/vmw_vmci/vmci_doorbell.h | 54 ++ 2 files changed, 803 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_doorbell.c create mode 100644

[PATCH 05/11] vmci_event.patch: VMCI kernel events handling.

2012-08-30 Thread George Zhang
Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_event.c | 448 drivers/misc/vmw_vmci/vmci_event.h | 25 ++ 2 files changed, 473 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_event.c create mode 100644 drivers

[PATCH 06/11] vmci_handle_array.patch: VMCI array of vmci_handle.

2012-08-30 Thread George Zhang
Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_handle_array.c | 163 + drivers/misc/vmw_vmci/vmci_handle_array.h | 46 2 files changed, 209 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_handle_array.c create

[PATCH 07/11] vmci_hash_table.patch: VMCI hash table implementation.

2012-08-30 Thread George Zhang
Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_hash_table.c | 329 +++ drivers/misc/vmw_vmci/vmci_hash_table.h | 53 + 2 files changed, 382 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_hash_table.c create mode

[PATCH 09/11] vmci_resource.patch: VMCI resource hash table implementation.

2012-08-30 Thread George Zhang
Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_resource.c | 190 + drivers/misc/vmw_vmci/vmci_resource.h | 59 ++ 2 files changed, 249 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_resource.c create mode

[PATCH 10/11] vmci_route.patch: VMCI routing implementation.

2012-08-30 Thread George Zhang
Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_route.c | 237 drivers/misc/vmw_vmci/vmci_route.h | 30 + 2 files changed, 267 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_route.c create mode 100644 drivers

[Pv-drivers] [vmw_vmci 00/11] VMCI driver for Linux

2012-08-30 Thread George Zhang
lease refer to the VMCI Socket Programming Guide available at https://www.vmware.com/support/developer/vmci-sdk/. George Zhang (11): vmci_context.patch: VMCI context list operations. vmci_datagram.patch: VMCI datagram entity handling. vmci_doorbell.patch: VMCI doorbell notific

[PATCH 11/11] vmci_headers.patch: VMCI kernel driver public API.

2012-08-30 Thread George Zhang
Signed-off-by: George Zhang --- drivers/misc/Kconfig|1 drivers/misc/Makefile |2 drivers/misc/vmw_vmci/Kconfig | 16 + drivers/misc/vmw_vmci/Makefile | 42 + drivers/misc/vmw_vmci/vmci_common_int.h | 34 + include/linux

[Pv-drivers] [vmw_vmci 00/11] VMCI driver for Linux

2012-08-30 Thread George Zhang
lease refer to the VMCI Socket Programming Guide available at https://www.vmware.com/support/developer/vmci-sdk/. George Zhang (11): vmci_context.patch: VMCI context list operations. vmci_datagram.patch: VMCI datagram entity handling. vmci_doorbell.patch: VMCI doorbell notific

Re: [Kgdb-bugreport] [PATCH 1/5] KGDB: improve early init

2008-01-31 Thread George Anzinger
On 01/31/2008 01:36 AM, Jan Kiszka was caught saying: > Jan Kiszka wrote: >> George Anzinger wrote: >>> On 01/30/2008 04:08 PM, Jan Kiszka was caught saying: >>>> [Here comes a rebased version against latest x86/mm] >>>> >>>> In case "

There are smaller ways to encode a CRC32 table...

2008-01-31 Thread George Spelvin
The code to fill it in is smaller than the table itself. Is it worth complicating things with some INIT code to reduce the stored image size? (The table is not compressible.) #define CRC32POLY 0xedb88320 /* CRC32 polynomial, little-endian */ static uint32_t crctab32[256]; void crc32i

[PATCH 00/12] VMCI for Linux upstreaming

2012-11-01 Thread George Zhang
in a single kernel module. For additional information about the use of VMCI and in particular VMCI Sockets, please refer to the VMCI Socket Programming Guide available at https://www.vmware.com/support/developer/vmci-sdk/. --- George Zhang (12): VMCI: context implementation. VMCI: dat

[PATCH 01/12] VMCI: context implementation.

2012-11-01 Thread George Zhang
VMCI Context code maintains state for vmci and allows the driver to communicate with multiple VMs. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_context.c | 1247 ++ drivers/misc/vmw_vmci/vmci_context.h | 183 + 2 files changed, 1430 insertions

[PATCH 02/12] VMCI: datagram implementation.

2012-11-01 Thread George Zhang
VMCI datagram Implements datagrams to allow data to be sent between host and guest. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_datagram.c | 506 + drivers/misc/vmw_vmci/vmci_datagram.h | 52 +++ 2 files changed, 558 insertions(+), 0 deletions

[PATCH 03/12] VMCI: doorbell implementation.

2012-11-01 Thread George Zhang
VMCI doorbell code allows for notifcations between host and guest. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_doorbell.c | 645 + drivers/misc/vmw_vmci/vmci_doorbell.h | 53 +++ 2 files changed, 698 insertions(+), 0 deletions(-) create mode

[PATCH 04/12] VMCI: device driver implementaton.

2012-11-01 Thread George Zhang
VMCI driver code implementes both the host and guest personalities of the VMCI driver. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_driver.c | 116 +++ drivers/misc/vmw_vmci/vmci_driver.h | 50 +++ 2 files changed, 166 insertions

[PATCH 05/12] VMCI: event handling implementation.

2012-11-01 Thread George Zhang
VMCI event code that manages event handlers and handles callbacks when specific events fire. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_event.c | 229 drivers/misc/vmw_vmci/vmci_event.h | 25 2 files changed, 254 insertions(+), 0

[PATCH 06/12] VMCI: handle array implementation.

2012-11-01 Thread George Zhang
VMCI handle code adds support for dynamic arrays that will grow if they need to. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_handle_array.c | 142 + drivers/misc/vmw_vmci/vmci_handle_array.h | 52 +++ 2 files changed, 194 insertions(+), 0

[PATCH 08/12] VMCI: resource object implementation.

2012-11-01 Thread George Zhang
VMCI resource tracks all used resources within the vmci code. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_resource.c | 232 + drivers/misc/vmw_vmci/vmci_resource.h | 59 2 files changed, 291 insertions(+), 0 deletions(-) create mode

[PATCH 09/12] VMCI: routing implementation.

2012-11-01 Thread George Zhang
VMCI routing code is responsible for routing between various hosts/guests as well as routing in nested scenarios. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_route.c | 233 drivers/misc/vmw_vmci/vmci_route.h | 30 + 2 files changed

[PATCH 10/12] VMCI: guest side driver implementation.

2012-11-01 Thread George Zhang
VMCI guest side driver code implementation. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_guest.c | 762 1 files changed, 762 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_guest.c diff --git a/drivers/misc

[PATCH 11/12] VMCI: host side driver implementation.

2012-11-01 Thread George Zhang
VMCI host side driver code implementation. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_host.c | 1036 + 1 files changed, 1036 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_host.c diff --git a/drivers/misc

[PATCH 12/12] VMCI: Some header and config files.

2012-11-01 Thread George Zhang
VMCI head config patch Adds all the necessary files to enable building of the VMCI module with the Linux Makefiles and Kconfig systems. Also adds the header files used for building modules against the driver. Signed-off-by: George Zhang --- drivers/misc/Kconfig|1

Re: [PATCH 1/1] percpu_rw_semaphore: reimplement to not block the readers unnecessarily

2012-11-04 Thread George Spelvin
Grand poo-bah Linus wrote: > Now, I doubt you'll find an architecture or C compiler where this will > actually ever make a difference, but the fact remains that you > shouldn't use signed integers for counters like this. You should use > unsigned, and you should rely on the well-defined modulo-2**n

Re: [PATCH] Lib:The patch include fix for "-" during string to long conversion

2012-11-04 Thread George Spelvin
ts depends on the base. A simpler fix would let simple_strotul make that determination: long simple_strtol(const char *cp, char **endp, unsigned int base) { long l; if (cp[0] != '-') return simple_strtoul(cp, endp, base); l = -simple_strtoul(cp+1, endp, base);

[PATCH 0/6] VSOCK for Linux upstreaming

2012-11-05 Thread George Zhang
fer to the VMCI Socket Programming Guide available at https://www.vmware.com/support/developer/vmci-sdk/. --- George Zhang (6): VSOCK: vsock protocol implementation. VSOCK: vsock address implementaion. VSOCK: notification implementation. VSOCK: statistics implementati

[PATCH 3/6] VSOCK: notification implementation.

2012-11-05 Thread George Zhang
VSOCK control notifications for VMCI Stream Sockets protocol. Signed-off-by: George Zhang --- net/vmw_vsock/notify.c | 984 net/vmw_vsock/notify.h | 130 ++ 2 files changed, 1114 insertions(+), 0 deletions(-) create mode 100644 net

[PATCH 2/6] VSOCK: vsock address implementaion.

2012-11-05 Thread George Zhang
VSOCK linux address code implementation. Signed-off-by: George Zhang --- net/vmw_vsock/vsock_addr.c | 264 net/vmw_vsock/vsock_addr.h | 40 +++ 2 files changed, 304 insertions(+), 0 deletions(-) create mode 100644 net/vmw_vsock/vsock_addr.c

[PATCH 4/6] VSOCK: statistics implementation.

2012-11-05 Thread George Zhang
VSOCK stats for VMCI Stream Sockets protocol. Signed-off-by: George Zhang --- net/vmw_vsock/stats.c | 37 net/vmw_vsock/stats.h | 219 + 2 files changed, 256 insertions(+), 0 deletions(-) create mode 100644 net/vmw_vsock/stats.c

[PATCH 5/6] VSOCK: utility functions.

2012-11-05 Thread George Zhang
VSOCK utility functions for Linux VSocket module. Signed-off-by: George Zhang --- net/vmw_vsock/util.c | 626 ++ net/vmw_vsock/util.h | 312 + 2 files changed, 938 insertions(+), 0 deletions(-) create mode 100644 net

[PATCH 6/6] VSOCK: header and config files.

2012-11-05 Thread George Zhang
VSOCK header files, Makefiles and Kconfig systems for Linux VSocket module. Signed-off-by: George Zhang --- include/linux/socket.h |4 net/Kconfig |1 net/Makefile|1 net/vmw_vsock/Kconfig | 14 + net

Re: [PATCH 0/6] VSOCK for Linux upstreaming

2012-11-05 Thread George Zhang
David, We will fix this bounces and remove the email: crosst...@vmware.com. Thanks, george zhang - Original Message - From: "David Miller" To: georgezh...@vmware.com Cc: net...@vger.kernel.org, linux-kernel@vger.kernel.org, virtualizat...@lists.linux-foundation.or

Re: [PATCH 0/6] VSOCK for Linux upstreaming

2012-11-05 Thread George Zhang
Sasha, There is a 'brief' implementation notes aboutVSOCK protocol family in af_vsock.c. More about user space layer socket programming is from VMCI Socket Programming Guide. (remove crosst...@vmware.com for email bouncing). thanks, George - Original Message - From: "S

Re: [REPOST #3 PATCH v2] Input: atkbd - make repeat period more accurate.

2012-07-26 Thread George Spelvin
omeone using various slightly-inaccurate lists of the repeatable keyboard rates. Including, particularly, the previous code's values. >> Signed-off-by: George Spelvin > I am sorry but I have to ask - is this your real name? Well, it's meant to be an obvious pen name, but

Re: [PATCH 1/6] rbtree: rb_erase updates and comments

2012-07-29 Thread George Spelvin
>> Then the end of case 3 of rb_erase becomes: >> if (child) >> rb_set_parent_color(child, parent, RB_RED); > Yes. it's actually even nicer, because we know since the child is red, > the node being erased is black, and we can thus handle recoloring 'for > free' by setting c

Re: [PATCH 3/4] lib: vsprintf: Optimize put_dec_trunc8

2012-09-24 Thread George Spelvin
Oh, joy, a new week and a nice dose of public humiliation to start it off. (Remind me never to go AFK for a weekend again.) Seriously, Rabin, thank you very much for the bug report and my apologies for inflicting the bug on you in the first place. Denys, good to hear from you. I had hoped this w

Re: [PATCH 1/4] lib: vsprintf: Optimize division by 10 for small integers.

2012-09-24 Thread George Spelvin
>> +/* See comment in put_dec_full9 for choice of constants */ >> static noinline_for_stack >> char *put_dec_full4(char *buf, unsigned q) >> { >> unsigned r; >> - r = (q * 0xcccd) >> 19; >> + r = (q * 0xccd) >> 15; >> *buf++ = (q - 10 * r) + '0'; >> -

Re: [PATCH 3/4] lib: vsprintf: Optimize put_dec_trunc8

2012-09-24 Thread George Spelvin
>> lib/vsprintf.c | 20 ++-- >> 1 file changed, 6 insertions(+), 14 deletions(-) >> >> diff --git a/lib/vsprintf.c b/lib/vsprintf.c >> index a8e7392..3ca77b8 100644 >> --- a/lib/vsprintf.c >> +++ b/lib/vsprintf.c >> @@ -174,20 +174,12 @@ char *put_dec_trunc8(char *buf, unsigned r

Re: [PATCH 2/4] lib: vsprintf: Optimize division by 10000

2012-09-24 Thread George Spelvin
> You are using a 64-bit multiply in a path that is designed for 32-bit > processors, which makes me feel that it will be slower. Slower than the divide it's replacing? The following 32-bit processors have 32x32->64-bit multiply: x86 ARM (as of ARMv4 = ARM7TDMI, the lowest version in common use)

Re: [PATCH 2/4] lib: vsprintf: Optimize division by 10000

2012-09-24 Thread George Spelvin
> Here is the comparison of the x86-32 assembly > of the fragment which does "x / 1" thing, > before and after the patch: > -01 c6 add%eax,%esi > -b8 59 17 b7 d1 mov$0xd1b71759,%eax > -f7 e6 mul%esi > -89 d3 mov%edx,%eb

Re: [PATCH 3/4] lib: vsprintf: Optimize put_dec_trunc8

2012-09-24 Thread George Spelvin
Michal Nazarewicz wrote: > The original has it a bit awkwardly because it just copies code from > put_dec_full9() with the first iteration skipped. Yeah, it also makes the comments pretty confusing. > I guess the following should work, even though it's not so pretty: > > static noinline_for_sta

Re: [PATCH 2/4] lib: vsprintf: Optimize division by 10000

2012-09-24 Thread George Spelvin
Michal Nazarewicz wrote: > Didn't some SPARCs have 32x32->32 multiply? I remember reading some > rant from a GMP developer about how SPARC is broken that way. SPARCv9 only has 64x64->64; there's no 128-bit result version. That cuts large-integer math speed by a factor of 4 (very crude approximat

Re: [PATCH 1/4] lib: vsprintf: Optimize division by 10 for small integers.

2012-09-24 Thread George Spelvin
Michal Nazarewicz wrote: > On Fri, Aug 03 2012, George Spelvin wrote: >> Shrink the reciprocal approximations used in put_dec_full4 >> based on the comments in put_dec_full9. > > Have you verified that the comment is correct? I rechecked all the validity limits myself.

Re: [PATCH 3/4] lib: vsprintf: Optimize put_dec_trunc8

2012-09-24 Thread George Spelvin
Rabin Vincent wrote: > This patch breaks IP address printing with "%pI4" (and by extension, > nfsroot). Example: > > - Before: 10.0.0.1 > - After: 10...1 Mea culpa, and thank you for catching it! As I said in my earlier comment, I tested this most extensively wrapped by some sprintf code that

Re: [PATCH 2/4] lib: vsprintf: Optimize division by 10000

2012-09-24 Thread George Spelvin
Geert Uytterhoeven wrote: > On Mon, Sep 24, 2012 at 3:56 PM, George Spelvin wrote: >> SPARCv8 UMUL puts the high half of the 64-bit result into the Y >> register, and SPARCv7 has a multiply-step instruction (MULScc) which >> does likewise. > > Early SPARCs don't

Re: [PATCH 3/4] lib: vsprintf: Optimize put_dec_trunc8

2012-09-25 Thread George Spelvin
Thanks to Denys Vlasenko for sending me his benchmarking code. I went and hacked on it to ransomize the numbers being converted more, since repeatedly converting the same number underestimates the number of branch mispredictions. Then I tried computing the number of digits beforehand, as mentione

[PATCH 00/12] VMCI for Linux upstreaming

2012-10-29 Thread George Zhang
hines, the VMCI host and virtual machine support are combined in a single kernel module. For additional information about the use of VMCI and in particular VMCI Sockets, please refer to the VMCI Socket Programming Guide available at https://www.vmware.com/support/developer/vmci-sdk/. --- G

[PATCH 01/12] VMCI: context implementation.

2012-10-29 Thread George Zhang
VMCI Context code maintains state for vmci and allows the driver to communicate with multiple VMs. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_context.c | 1290 ++ drivers/misc/vmw_vmci/vmci_context.h | 177 + 2 files changed, 1467

[PATCH 02/12] VMCI: datagram implementation.

2012-10-29 Thread George Zhang
VMCI datagram Implements datagrams to allow data to be sent between host and guest. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_datagram.c | 520 + drivers/misc/vmw_vmci/vmci_datagram.h | 55 +++ 2 files changed, 575 insertions(+), 0 deletions

[PATCH 03/12] VMCI: doorbell implementation.

2012-10-29 Thread George Zhang
VMCI doorbell code allows for notifcations between host and guest. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_doorbell.c | 673 + drivers/misc/vmw_vmci/vmci_doorbell.h | 53 +++ 2 files changed, 726 insertions(+), 0 deletions(-) create mode

[PATCH 04/12] VMCI: device driver implementaton.

2012-10-29 Thread George Zhang
VMCI driver code implementes both the host and guest personalities of the VMCI driver. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_driver.c | 159 +++ drivers/misc/vmw_vmci/vmci_driver.h | 50 +++ 2 files changed, 209 insertions(+), 0

[PATCH 05/12] VMCI: event handling implementation.

2012-10-29 Thread George Zhang
VMCI event code that manages event handlers and handles callbacks when specific events fire. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_event.c | 371 drivers/misc/vmw_vmci/vmci_event.h | 25 ++ 2 files changed, 396 insertions(+), 0

[PATCH 06/12] VMCI: handle array implementation.

2012-10-29 Thread George Zhang
VMCI handle code adds support for dynamic arrays that will grow if they need to. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_handle_array.c | 162 + drivers/misc/vmw_vmci/vmci_handle_array.h | 46 2 files changed, 208 insertions(+), 0

[PATCH 08/12] VMCI: resource object implementation.

2012-10-29 Thread George Zhang
VMCI resource tracks all used resources within the vmci code. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_resource.c | 237 + drivers/misc/vmw_vmci/vmci_resource.h | 59 2 files changed, 296 insertions(+), 0 deletions(-) create mode

[PATCH 09/12] VMCI: routing implementation.

2012-10-29 Thread George Zhang
VMCI routing code is responsible for routing between various hosts/guests as well as routing in nested scenarios. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_route.c | 237 drivers/misc/vmw_vmci/vmci_route.h | 30 + 2 files changed

[PATCH 10/12] VMCI: guest side driver implementation.

2012-10-29 Thread George Zhang
VMCI guest side driver code implementation. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_guest.c | 765 1 files changed, 765 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_guest.c diff --git a/drivers/misc

[PATCH 11/12] VMCI: host side driver implementation.

2012-10-29 Thread George Zhang
VMCI host side driver code implementation. Signed-off-by: George Zhang --- drivers/misc/vmw_vmci/vmci_host.c | 1046 + 1 files changed, 1046 insertions(+), 0 deletions(-) create mode 100644 drivers/misc/vmw_vmci/vmci_host.c diff --git a/drivers/misc

[PATCH 12/12] VMCI: Some header and config files.

2012-10-29 Thread George Zhang
VMCI head config patch Adds all the necessary files to enable building of the VMCI module with the Linux Makefiles and Kconfig systems. Also adds the header files used for building modules against the driver. Signed-off-by: George Zhang --- drivers/misc/Kconfig|1

  1   2   3   4   5   6   7   8   9   10   >