linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the kgdb tree with the input tree
@ 2010-03-23  3:09 Stephen Rothwell
  2010-03-23 13:24 ` Jason Wessel
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Rothwell @ 2010-03-23  3:09 UTC (permalink / raw)
  To: Jason Wessel; +Cc: linux-next, linux-kernel, Dmitry Torokhov

[-- Attachment #1: Type: text/plain, Size: 746 bytes --]

Hi Jason,

Today's linux-next merge of the kgdb tree got a conflict in
drivers/char/keyboard.c between commit
edc6e384f9d96e54a6d03068d3b03fa5b56b6449 ("Input: implement SysRq as a
separate input handler") from the input tree and commit
4e4b600bf7160c11893bc3f4f8da8a70777b23ba ("When issuing an alt-sysrq-KEY
sequence with the keyboard driver in the")
from the kgdb tree.

The latter changes code moved to another file by the former.  I don't
know how to fix this up, so I have just effectively reverted the kgdb
commit for now - suggestions welcome.

BTW, the author of that kgdb commit is "Jason Wessel Subject: [PATCH]
<jason.wessel@windriver.com>".

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au


[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: linux-next: manual merge of the kgdb tree with the input tree
  2010-03-23  3:09 linux-next: manual merge of the kgdb tree with the input tree Stephen Rothwell
@ 2010-03-23 13:24 ` Jason Wessel
  2010-03-23 23:08   ` Stephen Rothwell
  0 siblings, 1 reply; 5+ messages in thread
From: Jason Wessel @ 2010-03-23 13:24 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel, Dmitry Torokhov

On 03/22/2010 10:09 PM, Stephen Rothwell wrote:
> Hi Jason,
>
> Today's linux-next merge of the kgdb tree got a conflict in
> drivers/char/keyboard.c between commit
> edc6e384f9d96e54a6d03068d3b03fa5b56b6449 ("Input: implement SysRq as a
> separate input handler") from the input tree and commit
> 4e4b600bf7160c11893bc3f4f8da8a70777b23ba ("When issuing an alt-sysrq-KEY
> sequence with the keyboard driver in the")
> from the kgdb tree.
>
> The latter changes code moved to another file by the former.  I don't
> know how to fix this up, so I have just effectively reverted the kgdb
> commit for now - suggestions welcome.
>
> BTW, the author of that kgdb commit is "Jason Wessel Subject: [PATCH]
> <jason.wessel@windriver.com>".
>
>   
I will drop mine for now.  Dmitry and I have differing implementations
to solve the same sort of problem with trapping the sysrq.  I had wanted
to test Dmitry's patch at some point soon.

I had updated kgdb-next to include the RFC patches for the keyboard and
kms code, but it is all removed again until we sort out which
implementation we will roll with.

Thanks,
Jason.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: linux-next: manual merge of the kgdb tree with the input tree
  2010-03-23 13:24 ` Jason Wessel
@ 2010-03-23 23:08   ` Stephen Rothwell
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Rothwell @ 2010-03-23 23:08 UTC (permalink / raw)
  To: Jason Wessel; +Cc: linux-next, linux-kernel, Dmitry Torokhov

[-- Attachment #1: Type: text/plain, Size: 602 bytes --]

Hi Jason,

On Tue, 23 Mar 2010 08:24:21 -0500 Jason Wessel <jason.wessel@windriver.com> wrote:
>
> I will drop mine for now.  Dmitry and I have differing implementations
> to solve the same sort of problem with trapping the sysrq.  I had wanted
> to test Dmitry's patch at some point soon.
> 
> I had updated kgdb-next to include the RFC patches for the keyboard and
> kms code, but it is all removed again until we sort out which
> implementation we will roll with.

OK, thanks.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* linux-next: manual merge of the kgdb tree with the input tree
@ 2010-10-06  2:04 Stephen Rothwell
  2010-10-06 12:17 ` Jason Wessel
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Rothwell @ 2010-10-06  2:04 UTC (permalink / raw)
  To: Jason Wessel; +Cc: linux-next, linux-kernel, Dmitry Torokhov

Hi Jason,

Today's linux-next merge of the kgdb tree got a conflict in
drivers/char/sysrq.c between commit
1966cb225c6f9040ca163802cbd052c393d4448f ("Input: sysrq - add locking to
sysrq_filter()") from the input tree and commit
02307772717c91a108aca2e999bbc586a85d06a2 ("sysrq,keyboard: properly deal
with alt-sysrq in sysrq input filter") from the kgdb tree.

Just context changes.  I fixed it up (see below) and can carry the fax as
necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --cc drivers/char/sysrq.c
index f0ad694,9b97aad..0000000
--- a/drivers/char/sysrq.c
+++ b/drivers/char/sysrq.c
@@@ -566,7 -566,57 +566,58 @@@ static const unsigned char sysrq_xlate[
  static bool sysrq_down;
  static int sysrq_alt_use;
  static int sysrq_alt;
 +static DEFINE_SPINLOCK(sysrq_event_lock);
+ static bool sysrq_kbd_triggered;
+ 
+ /*
+  * This function was a copy of input_pass_event but modified to allow
+  * by-passing a specific filter, to allow for injected events without
+  * filter recursion.
+  */
+ static void input_pass_event_ignore(struct input_dev *dev,
+ 			     unsigned int type, unsigned int code, int value,
+ 			     struct input_handle *ignore_handle)
+ {
+ 	struct input_handler *handler;
+ 	struct input_handle *handle;
+ 
+ 	rcu_read_lock();
+ 
+ 	handle = rcu_dereference(dev->grab);
+ 	if (handle)
+ 		handle->handler->event(handle, type, code, value);
+ 	else {
+ 		bool filtered = false;
+ 
+ 		list_for_each_entry_rcu(handle, &dev->h_list, d_node) {
+ 			if (!handle->open || handle == ignore_handle)
+ 				continue;
+ 			handler = handle->handler;
+ 			if (!handler->filter) {
+ 				if (filtered)
+ 					break;
+ 
+ 				handler->event(handle, type, code, value);
+ 
+ 			} else if (handler->filter(handle, type, code, value))
+ 				filtered = true;
+ 		}
+ 	}
+ 
+ 	rcu_read_unlock();
+ }
+ 
+ /*
+  * Pass along alt-print_screen, if there was no sysrq processing by
+  * sending a key press down and then passing the key up event.
+  */
+ static void simulate_alt_sysrq(struct input_handle *handle)
+ {
+ 	input_pass_event_ignore(handle->dev, EV_KEY, KEY_SYSRQ, 1, handle);
+ 	input_pass_event_ignore(handle->dev, EV_SYN, SYN_REPORT, 0, handle);
+ 	input_pass_event_ignore(handle->dev, EV_KEY, KEY_SYSRQ, 0, handle);
+ 	input_pass_event_ignore(handle->dev, EV_SYN, SYN_REPORT, 0, handle);
+ }
  
  static bool sysrq_filter(struct input_handle *handle, unsigned int type,
  		         unsigned int code, int value)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: linux-next: manual merge of the kgdb tree with the input tree
  2010-10-06  2:04 Stephen Rothwell
@ 2010-10-06 12:17 ` Jason Wessel
  0 siblings, 0 replies; 5+ messages in thread
From: Jason Wessel @ 2010-10-06 12:17 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel, Dmitry Torokhov

On 10/05/2010 09:04 PM, Stephen Rothwell wrote:
> Hi Jason,
>
> Today's linux-next merge of the kgdb tree got a conflict in
> drivers/char/sysrq.c between commit
> 1966cb225c6f9040ca163802cbd052c393d4448f ("Input: sysrq - add locking to
> sysrq_filter()") from the input tree and commit
> 02307772717c91a108aca2e999bbc586a85d06a2 ("sysrq,keyboard: properly deal
> with alt-sysrq in sysrq input filter") from the kgdb tree.
>
> Just context changes.  I fixed it up (see below) and can carry the fax as
> necessary.
>   

Thanks Stephen,

Hopefully I can get the sysrq / keyboard patches out of my tree and into
Dmitry's tree which should fix the problem by design. :-)

Thanks,
Jason.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-10-06 12:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-23  3:09 linux-next: manual merge of the kgdb tree with the input tree Stephen Rothwell
2010-03-23 13:24 ` Jason Wessel
2010-03-23 23:08   ` Stephen Rothwell
  -- strict thread matches above, loose matches on Subject: below --
2010-10-06  2:04 Stephen Rothwell
2010-10-06 12:17 ` Jason Wessel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).