* [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on unsigned
@ 2010-02-02 22:40 akpm
2010-02-03 23:21 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 7+ messages in thread
From: akpm @ 2010-02-02 22:40 UTC (permalink / raw)
To: benh; +Cc: waite, roel.kluin, gorcunov, linuxppc-dev, galak, akpm
From: Roel Kluin <roel.kluin@gmail.com>
count is unsigned and cannot be less than 0.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Kumar Gala <galak@gate.crashing.org>
Cc: Brian Waite <waite@skycomputers.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/misc/hdpuftrs/hdpu_cpustate.c | 5 -----
1 file changed, 5 deletions(-)
diff -puN drivers/misc/hdpuftrs/hdpu_cpustate.c~powerpc-sky-cpu-redundant-or-incorrect-tests-on-unsigned drivers/misc/hdpuftrs/hdpu_cpustate.c
--- a/drivers/misc/hdpuftrs/hdpu_cpustate.c~powerpc-sky-cpu-redundant-or-incorrect-tests-on-unsigned
+++ a/drivers/misc/hdpuftrs/hdpu_cpustate.c
@@ -121,8 +121,6 @@ static ssize_t cpustate_read(struct file
{
unsigned char data;
- if (count < 0)
- return -EFAULT;
if (count == 0)
return 0;
@@ -137,9 +135,6 @@ static ssize_t cpustate_write(struct fil
{
unsigned char data;
- if (count < 0)
- return -EFAULT;
-
if (count == 0)
return 0;
_
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on unsigned 2010-02-02 22:40 [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on unsigned akpm @ 2010-02-03 23:21 ` Benjamin Herrenschmidt 2010-02-04 0:10 ` support 0 siblings, 1 reply; 7+ messages in thread From: Benjamin Herrenschmidt @ 2010-02-03 23:21 UTC (permalink / raw) To: akpm; +Cc: gorcunov, linuxppc-dev, roel.kluin, waite, galak On Tue, 2010-02-02 at 14:40 -0800, akpm@linux-foundation.org wrote: > From: Roel Kluin <roel.kluin@gmail.com> > > count is unsigned and cannot be less than 0. > > Signed-off-by: Roel Kluin <roel.kluin@gmail.com> > Acked-by: Cyrill Gorcunov <gorcunov@gmail.com> > Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> > Cc: Kumar Gala <galak@gate.crashing.org> > Cc: Brian Waite <waite@skycomputers.com> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org> > --- I still have a hard time figuring out what this sky CPU actually is :-) The whole drivers/misc/hdpuftrs is only built when CONFIG_HDPU_FEATURES is set and git grep HDPU_FEATURES doesn't show anybody ever setting it :-) Is that just dead code ? I'm happy to carry it in powerpc.git if you wish so but you it would be nice to figure out what's going on there... Cheers, Ben. > drivers/misc/hdpuftrs/hdpu_cpustate.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff -puN drivers/misc/hdpuftrs/hdpu_cpustate.c~powerpc-sky-cpu-redundant-or-incorrect-tests-on-unsigned drivers/misc/hdpuftrs/hdpu_cpustate.c > --- a/drivers/misc/hdpuftrs/hdpu_cpustate.c~powerpc-sky-cpu-redundant-or-incorrect-tests-on-unsigned > +++ a/drivers/misc/hdpuftrs/hdpu_cpustate.c > @@ -121,8 +121,6 @@ static ssize_t cpustate_read(struct file > { > unsigned char data; > > - if (count < 0) > - return -EFAULT; > if (count == 0) > return 0; > > @@ -137,9 +135,6 @@ static ssize_t cpustate_write(struct fil > { > unsigned char data; > > - if (count < 0) > - return -EFAULT; > - > if (count == 0) > return 0; > > _ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on unsigned 2010-02-03 23:21 ` Benjamin Herrenschmidt @ 2010-02-04 0:10 ` support 2010-02-04 0:18 ` Benjamin Herrenschmidt 0 siblings, 1 reply; 7+ messages in thread From: support @ 2010-02-04 0:10 UTC (permalink / raw) To: Benjamin Herrenschmidt, akpm Cc: gorcunov, linuxppc-dev, roel.kluin, waite, galak To All: The sky cpu is a PPC7448. I'm actually amazed that you guys are still working on a problem for a product that was finished a number of years ago, at the request of someone who hasn't worked here for years. I sorry you, seem to have been wasting your time. I think, but am NOT sure, that our HAA function sets it off. http://www.skycomputers.com/Systems/HAA_HMM.php Still, we have finished the product some time ago, and as far as reported have no problems. Again, I'm sorry you have wasted any time on this, we just recently found these emails. Dave Bushee Director OEM Sales and Services SKY Computers Inc. 27 Industrial Ave. 978-250-2420 x232 www.skycomputers.com ----- Original Message ----- From: "Benjamin Herrenschmidt" <benh@kernel.crashing.org> To: <akpm@linux-foundation.org> Cc: <linuxppc-dev@ozlabs.org>; <roel.kluin@gmail.com>; <galak@gate.crashing.org>; <gorcunov@gmail.com>; <waite@skycomputers.com> Sent: Wednesday, February 03, 2010 6:21 PM Subject: Re: [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on unsigned > On Tue, 2010-02-02 at 14:40 -0800, akpm@linux-foundation.org wrote: >> From: Roel Kluin <roel.kluin@gmail.com> >> >> count is unsigned and cannot be less than 0. >> >> Signed-off-by: Roel Kluin <roel.kluin@gmail.com> >> Acked-by: Cyrill Gorcunov <gorcunov@gmail.com> >> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> >> Cc: Kumar Gala <galak@gate.crashing.org> >> Cc: Brian Waite <waite@skycomputers.com> >> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> >> --- > > I still have a hard time figuring out what this sky CPU actually is :-) > > The whole drivers/misc/hdpuftrs is only built when CONFIG_HDPU_FEATURES > is set and git grep HDPU_FEATURES doesn't show anybody ever setting > it :-) > > Is that just dead code ? I'm happy to carry it in powerpc.git if you > wish so but you it would be nice to figure out what's going on there... > > Cheers, > Ben. > >> drivers/misc/hdpuftrs/hdpu_cpustate.c | 5 ----- >> 1 file changed, 5 deletions(-) >> >> diff -puN >> drivers/misc/hdpuftrs/hdpu_cpustate.c~powerpc-sky-cpu-redundant-or-incorrect-tests-on-unsigned >> drivers/misc/hdpuftrs/hdpu_cpustate.c >> --- >> a/drivers/misc/hdpuftrs/hdpu_cpustate.c~powerpc-sky-cpu-redundant-or-incorrect-tests-on-unsigned >> +++ a/drivers/misc/hdpuftrs/hdpu_cpustate.c >> @@ -121,8 +121,6 @@ static ssize_t cpustate_read(struct file >> { >> unsigned char data; >> >> - if (count < 0) >> - return -EFAULT; >> if (count == 0) >> return 0; >> >> @@ -137,9 +135,6 @@ static ssize_t cpustate_write(struct fil >> { >> unsigned char data; >> >> - if (count < 0) >> - return -EFAULT; >> - >> if (count == 0) >> return 0; >> >> _ > > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on unsigned 2010-02-04 0:10 ` support @ 2010-02-04 0:18 ` Benjamin Herrenschmidt 2010-02-04 1:47 ` support 0 siblings, 1 reply; 7+ messages in thread From: Benjamin Herrenschmidt @ 2010-02-04 0:18 UTC (permalink / raw) To: support; +Cc: waite, roel.kluin, gorcunov, linuxppc-dev, galak, akpm On Wed, 2010-02-03 at 19:10 -0500, support wrote: > The sky cpu is a PPC7448. > I'm actually amazed that you guys are still working on a problem for > a > product that was finished a number of years ago, at the request of > someone > who hasn't worked here for years. > I sorry you, seem to have been wasting your time. > I think, but am NOT sure, that our HAA function sets it off. > http://www.skycomputers.com/Systems/HAA_HMM.php > > Still, we have finished the product some time ago, and as far as > reported > have no problems. > Again, I'm sorry you have wasted any time on this, we just recently > found > these emails. Well, there seem to be some code in the Linux kernel related to that CPU that is either dead or incomplete. So if you guys have no interest in it, we might just rip it out completely. Cheers, Ben. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on unsigned 2010-02-04 0:18 ` Benjamin Herrenschmidt @ 2010-02-04 1:47 ` support 2010-02-04 2:01 ` Benjamin Herrenschmidt 0 siblings, 1 reply; 7+ messages in thread From: support @ 2010-02-04 1:47 UTC (permalink / raw) To: Benjamin Herrenschmidt Cc: waite, roel.kluin, gorcunov, linuxppc-dev, galak, akpm I doubt we'll be going to be using 7448's any more for future product lines. Dave Bushee Director OEM Sales and Services SKY Computers Inc. 27 Industrial Ave. 978-250-2420 x232 www.skycomputers.com ----- Original Message ----- From: "Benjamin Herrenschmidt" <benh@kernel.crashing.org> To: "support" <support@skycomputers.com> Cc: <akpm@linux-foundation.org>; <linuxppc-dev@ozlabs.org>; <roel.kluin@gmail.com>; <galak@gate.crashing.org>; <gorcunov@gmail.com>; <waite@skycomputers.com> Sent: Wednesday, February 03, 2010 7:18 PM Subject: Re: [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on unsigned > On Wed, 2010-02-03 at 19:10 -0500, support wrote: >> The sky cpu is a PPC7448. >> I'm actually amazed that you guys are still working on a problem for >> a >> product that was finished a number of years ago, at the request of >> someone >> who hasn't worked here for years. >> I sorry you, seem to have been wasting your time. >> I think, but am NOT sure, that our HAA function sets it off. >> http://www.skycomputers.com/Systems/HAA_HMM.php >> >> Still, we have finished the product some time ago, and as far as >> reported >> have no problems. >> Again, I'm sorry you have wasted any time on this, we just recently >> found >> these emails. > > Well, there seem to be some code in the Linux kernel related to that CPU > that is either dead or incomplete. So if you guys have no interest in > it, we might just rip it out completely. > > Cheers, > Ben. > > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on unsigned 2010-02-04 1:47 ` support @ 2010-02-04 2:01 ` Benjamin Herrenschmidt 2010-02-04 12:38 ` Sky Support 0 siblings, 1 reply; 7+ messages in thread From: Benjamin Herrenschmidt @ 2010-02-04 2:01 UTC (permalink / raw) To: support; +Cc: waite, roel.kluin, gorcunov, linuxppc-dev, galak, akpm On Wed, 2010-02-03 at 20:47 -0500, support wrote: > I doubt we'll be going to be using 7448's any more for future product lines. Hi ! Well, that isn't really the question :-) Is there any interest in ensuring that your current Sky is supported by upstream linux kernels or not ? As I said, the current kernel seems to contain code relative to the Sky CPU that is never enabled and potentially has issue. Are you guys interested in fixing this so that upstream linux supports your existing products, or should we just rip the code out ? Cheers, Ben. > Dave Bushee > Director OEM Sales and Services > SKY Computers Inc. > 27 Industrial Ave. > 978-250-2420 x232 > www.skycomputers.com > > > ----- Original Message ----- > From: "Benjamin Herrenschmidt" <benh@kernel.crashing.org> > To: "support" <support@skycomputers.com> > Cc: <akpm@linux-foundation.org>; <linuxppc-dev@ozlabs.org>; > <roel.kluin@gmail.com>; <galak@gate.crashing.org>; <gorcunov@gmail.com>; > <waite@skycomputers.com> > Sent: Wednesday, February 03, 2010 7:18 PM > Subject: Re: [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on > unsigned > > > > On Wed, 2010-02-03 at 19:10 -0500, support wrote: > >> The sky cpu is a PPC7448. > >> I'm actually amazed that you guys are still working on a problem for > >> a > >> product that was finished a number of years ago, at the request of > >> someone > >> who hasn't worked here for years. > >> I sorry you, seem to have been wasting your time. > >> I think, but am NOT sure, that our HAA function sets it off. > >> http://www.skycomputers.com/Systems/HAA_HMM.php > >> > >> Still, we have finished the product some time ago, and as far as > >> reported > >> have no problems. > >> Again, I'm sorry you have wasted any time on this, we just recently > >> found > >> these emails. > > > > Well, there seem to be some code in the Linux kernel related to that CPU > > that is either dead or incomplete. So if you guys have no interest in > > it, we might just rip it out completely. > > > > Cheers, > > Ben. > > > > > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on unsigned 2010-02-04 2:01 ` Benjamin Herrenschmidt @ 2010-02-04 12:38 ` Sky Support 0 siblings, 0 replies; 7+ messages in thread From: Sky Support @ 2010-02-04 12:38 UTC (permalink / raw) To: 'Benjamin Herrenschmidt' Cc: waite, roel.kluin, gorcunov, linuxppc-dev, galak, akpm We don't plan on carrying it forward, so I assume that ripping it out will not affect us. Anything new would be completely new development. -----Original Message----- From: Benjamin Herrenschmidt [mailto:benh@kernel.crashing.org] Sent: Wednesday, February 03, 2010 9:01 PM To: support Cc: akpm@linux-foundation.org; linuxppc-dev@ozlabs.org; roel.kluin@gmail.com; galak@gate.crashing.org; gorcunov@gmail.com; waite@skycomputers.com Subject: Re: [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on unsigned On Wed, 2010-02-03 at 20:47 -0500, support wrote: > I doubt we'll be going to be using 7448's any more for future product lines. Hi ! Well, that isn't really the question :-) Is there any interest in ensuring that your current Sky is supported by upstream linux kernels or not ? As I said, the current kernel seems to contain code relative to the Sky CPU that is never enabled and potentially has issue. Are you guys interested in fixing this so that upstream linux supports your existing products, or should we just rip the code out ? Cheers, Ben. > Dave Bushee > Director OEM Sales and Services > SKY Computers Inc. > 27 Industrial Ave. > 978-250-2420 x232 > www.skycomputers.com > > > ----- Original Message ----- > From: "Benjamin Herrenschmidt" <benh@kernel.crashing.org> > To: "support" <support@skycomputers.com> > Cc: <akpm@linux-foundation.org>; <linuxppc-dev@ozlabs.org>; > <roel.kluin@gmail.com>; <galak@gate.crashing.org>; <gorcunov@gmail.com>; > <waite@skycomputers.com> > Sent: Wednesday, February 03, 2010 7:18 PM > Subject: Re: [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on > unsigned > > > > On Wed, 2010-02-03 at 19:10 -0500, support wrote: > >> The sky cpu is a PPC7448. > >> I'm actually amazed that you guys are still working on a problem for > >> a > >> product that was finished a number of years ago, at the request of > >> someone > >> who hasn't worked here for years. > >> I sorry you, seem to have been wasting your time. > >> I think, but am NOT sure, that our HAA function sets it off. > >> http://www.skycomputers.com/Systems/HAA_HMM.php > >> > >> Still, we have finished the product some time ago, and as far as > >> reported > >> have no problems. > >> Again, I'm sorry you have wasted any time on this, we just recently > >> found > >> these emails. > > > > Well, there seem to be some code in the Linux kernel related to that CPU > > that is either dead or incomplete. So if you guys have no interest in > > it, we might just rip it out completely. > > > > Cheers, > > Ben. > > > > > > ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-02-04 12:38 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-02-02 22:40 [patch 1/2] powerpc: Sky CPU: redundant or incorrect tests on unsigned akpm 2010-02-03 23:21 ` Benjamin Herrenschmidt 2010-02-04 0:10 ` support 2010-02-04 0:18 ` Benjamin Herrenschmidt 2010-02-04 1:47 ` support 2010-02-04 2:01 ` Benjamin Herrenschmidt 2010-02-04 12:38 ` Sky Support
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).