[PATCH] x86/platform/uv: HUB RTC cleanup

2020-05-11 Thread Dimitri Sivanich
Remove unused event code and other cleanup for HUB RTC. Signed-off-by: Dimitri Sivanich --- arch/x86/platform/uv/uv_time.c | 362 + 1 file changed, 8 insertions(+), 354 deletions(-) diff --git a/arch/x86/platform/uv/uv_time.c b/arch/x86/platform/uv

Re: x86/uv cleanups

2020-05-05 Thread Dimitri Sivanich
forthcoming platforms based on Intel Cooper Lake and Sapphire Rapids processors. Some cleanup is already being included as part of a forthcoming patchset in support of the upcoming Sapphire Rapids platform. Nacked-by: Dimitri Sivanich On Mon, May 04, 2020 at 07:15:16PM +0200, Christoph Hellwig

Re: [PATCH] sgi-gru: simplify procfs code some more

2019-10-07 Thread Dimitri Sivanich
While a reduction in object size is welcome, in this case it does come at the expense of some clarity, as field sizes are no longer as clear. Nevertheless, will add my ack. Acked-by: Dimitri Sivanich On Mon, Oct 07, 2019 at 11:30:46AM -0700, Joe Perches wrote: > Use seq_puts and simple str

Re: [Linux-kernel-mentees][PATCH 2/2] sgi-gru: Remove uneccessary ifdef for CONFIG_HUGETLB_PAGE

2019-08-19 Thread Dimitri Sivanich
Reviewed-by: Dimitri Sivanich On Mon, Aug 19, 2019 at 01:08:55AM +0530, Bharath Vedartham wrote: > is_vm_hugetlb_page will always return false if CONFIG_HUGETLB_PAGE is > not set. > > Cc: Ira Weiny > Cc: John Hubbard > Cc: Jérôme Glisse > Cc: Greg Kroah-Hartman > Cc

Re: [Linux-kernel-mentees][PATCH v6 1/2] sgi-gru: Convert put_page() to put_user_page*()

2019-08-19 Thread Dimitri Sivanich
Reviewed-by: Dimitri Sivanich On Mon, Aug 19, 2019 at 01:08:54AM +0530, Bharath Vedartham wrote: > For pages that were retained via get_user_pages*(), release those pages > via the new put_user_page*() routines, instead of via put_page() or > release_pages(). > > This is p

Re: [Linux-kernel-mentees][PATCH v5 1/1] sgi-gru: Remove *pte_lookup functions, Convert to get_user_page*()

2019-08-18 Thread Dimitri Sivanich
et_user_pages(). get_user_pages_fast(), on the other > > hand, first calls __get_user_pages_fast(), but then falls back to the > > slow path if __get_user_pages_fast() fails. > > > > Also: remove unnecessary CONFIG_HUGETLB ifdefs. > > > > Cc: Ira Weiny >

Re: [PATCH v3 hmm 04/11] misc/sgi-gru: use mmu_notifier_get/put for struct gru_mm_struct

2019-08-14 Thread Dimitri Sivanich
On Wed, Aug 14, 2019 at 03:58:34PM +, Jason Gunthorpe wrote: > On Thu, Aug 08, 2019 at 12:25:56PM +0200, Christoph Hellwig wrote: > > Looks good, > > > > Reviewed-by: Christoph Hellwig > > Dimitri, are you OK with this patch? > I think this looks OK. Reviewed-by: Dimitri Sivanich

Re: [Linux-kernel-mentees][PATCH v5 1/1] sgi-gru: Remove *pte_lookup functions, Convert to get_user_page*()

2019-08-13 Thread Dimitri Sivanich
On Tue, Aug 13, 2019 at 10:53:01PM +0530, Bharath Vedartham wrote: > On Tue, Aug 13, 2019 at 09:50:29AM -0500, Dimitri Sivanich wrote: > > Bharath, > > > > I do not believe that __get_user_pages_fast will work for the atomic case, > > as > > there is no guarant

Re: [Linux-kernel-mentees][PATCH v5 1/1] sgi-gru: Remove *pte_lookup functions, Convert to get_user_page*()

2019-08-13 Thread Dimitri Sivanich
ifdefs. > > Cc: Ira Weiny > Cc: John Hubbard > Cc: Jérôme Glisse > Cc: Greg Kroah-Hartman > Cc: Dimitri Sivanich > Cc: Arnd Bergmann > Cc: William Kucharski > Cc: Christoph Hellwig > Cc: linux-kernel@vger.kernel.org > Cc: linux...@kvack.org > Cc: linux-

Re: status of drivers/misc/sgi-gru?

2019-08-12 Thread Dimitri Sivanich
Yes, the GRU driver is still maintained, and I have been in contact with Bharath about my pending testing of his changes. On Mon, Aug 12, 2019 at 01:05:19AM -0700, Christoph Hellwig wrote: > Hi dear ex-SGI folks, > > do you know if the GRU driver is still maintained and in use? > > Both Bharath

Re: [Patch v3 0/4] Protect against concurrent calls into UV BIOS

2019-02-14 Thread Dimitri Sivanich
For the series: Reviewed-by: Dimitri Sivanich On Wed, Feb 13, 2019 at 07:34:09PM +, Hedi Berriche wrote: > - Changes since v2 > Addressed comments from Ard Biesheuvel: > * expose efi_runtime_lock to UV platform only instead of globally > * remove unnecessary #ifdef CON

Re: [PATCH] gru: clean up indentation issue, remove spaces

2019-01-02 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Fri, Dec 21, 2018 at 10:44:19PM +, Colin King wrote: > From: Colin Ian King > > There are a couple of statements that have extra spaces in the identation, > fix this by removing them. > > Signed-off-by: Colin Ian King > --- > drivers

Re: [PATCH] misc: sgi-gru: fix fall-through annotations

2018-09-14 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Thu, Sep 13, 2018 at 01:53:18PM -0500, Gustavo A. R. Silva wrote: > Replace "fallthru" with a proper "fall through" annotation. > > This fix is part of the ongoing efforts to enabling > -Wimplicit-fallthrough > &

Re: [PATCH v2] misc: sgi-gru: Change return type to vm_fault_t

2018-05-09 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Wed, Apr 25, 2018 at 10:20:44AM +0530, Souptick Joarder wrote: > Use new return type vm_fault_t for fault handler. For > now, this is just documenting that the function returns > a VM_FAULT value rather than an errno. Once all instances > are converted

Re: [patch v2 1/2] mm, mmu_notifier: annotate mmu notifiers with blockable invalidate callbacks

2017-12-15 Thread Dimitri Sivanich
expensive slowpath, such as after > the oom reaper has grabbed mm->mmap_sem of a still alive oom victim. > > Signed-off-by: David Rientjes Acked-by: Dimitri Sivanich > --- > v2: >- specifically exclude mmu_notifiers without invalidate callbacks >- move flags to mmu

Re: [patch 1/2] mm, mmu_notifier: annotate mmu notifiers with blockable invalidate callbacks

2017-12-12 Thread Dimitri Sivanich
On Mon, Dec 11, 2017 at 02:11:55PM -0800, David Rientjes wrote: > --- a/drivers/misc/sgi-gru/grutlbpurge.c > +++ b/drivers/misc/sgi-gru/grutlbpurge.c > @@ -298,6 +298,7 @@ struct gru_mm_struct *gru_register_mmu_notifier(void) > return ERR_PTR(-ENOMEM); > STAT(gms

Re: [PATCH 10/13] sgi-gru: update to new mmu_notifier semantic

2017-09-05 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Thu, Aug 31, 2017 at 05:17:35PM -0400, jgli...@redhat.com wrote: > From: Jérôme Glisse > > Call to mmu_notifier_invalidate_page() are replaced by call to > mmu_notifier_invalidate_range() and thus call are bracketed by > call to mmu_notifier_invalid

[tip:timers/core] posix-timers: Remove mmtimer leftovers

2017-05-27 Thread tip-bot for Dimitri Sivanich
Commit-ID: f822798e3ced63427d57d128ee8d118126455f84 Gitweb: http://git.kernel.org/tip/f822798e3ced63427d57d128ee8d118126455f84 Author: Dimitri Sivanich AuthorDate: Fri, 26 May 2017 23:30:52 +0200 Committer: Thomas Gleixner CommitDate: Sat, 27 May 2017 12:58:46 +0200 posix-timers

Re: status of the Altix mmtimer driver

2017-05-26 Thread Dimitri Sivanich
alarm alarmtimer; ktime_t interval; } alarm; On Tue, May 23, 2017 at 07:36:01PM -0500, Dimitri Sivanich wrote: > Since this is SN2 specific, this can be removed. > > On Tue, May 23, 2017 at 05:27:16PM +0200, Thomas Gleixner wrote: > > On T

Re: status of the Altix mmtimer driver

2017-05-23 Thread Dimitri Sivanich
Since this is SN2 specific, this can be removed. On Tue, May 23, 2017 at 05:27:16PM +0200, Thomas Gleixner wrote: > On Tue, 23 May 2017, Christoph Hellwig wrote: > > Cc: + Mike > > > Hi folks, > > > > what's the status of the SGI support for the IA64 SN2-specific > > altic mmtimer (drivers/char

Re: [PATCH 4/5] misc: sgi-gru: print a hex number after a 0x prefix

2016-10-26 Thread Dimitri Sivanich
On Wed, Oct 26, 2016 at 02:56:57PM +0200, Uwe Kleine-König wrote: > It makes the result hard to interpret correctly if a base 10 number is > prefixed by 0x. So change to a hex number. > Would like to have this be a decimal number. Signed-off-by: Dimitri Sivanich --- drivers/mis

[tip:x86/platform] x86/platform/UV: Fix incorrect nodes and pnodes for cpuless and memoryless nodes

2016-05-04 Thread tip-bot for Dimitri Sivanich
Commit-ID: f68376fc9e6dc15a08e16f08c95e503f19ad8e34 Gitweb: http://git.kernel.org/tip/f68376fc9e6dc15a08e16f08c95e503f19ad8e34 Author: Dimitri Sivanich AuthorDate: Fri, 29 Apr 2016 16:54:23 -0500 Committer: Ingo Molnar CommitDate: Wed, 4 May 2016 08:48:51 +0200 x86/platform/UV: Fix

[tip:x86/platform] x86/platform/UV: Remove Obsolete GRU MMR address translation

2016-05-04 Thread tip-bot for Dimitri Sivanich
Commit-ID: 40bfb8eedf1e7fa0535c685ff1000c05bcf7a637 Gitweb: http://git.kernel.org/tip/40bfb8eedf1e7fa0535c685ff1000c05bcf7a637 Author: Dimitri Sivanich AuthorDate: Fri, 29 Apr 2016 16:54:22 -0500 Committer: Ingo Molnar CommitDate: Wed, 4 May 2016 08:48:51 +0200 x86/platform/UV: Remove

Re: [PATCH 0/3] drivers/misc/sgi-gru: unapplied patches and a new one

2015-10-14 Thread Dimitri Sivanich
On Wed, Oct 14, 2015 at 10:22:25AM +0530, Sudip Mukherjee wrote: > On Mon, Oct 05, 2015 at 10:18:32AM -0500, Dimitri Sivanich wrote: > > On Mon, Oct 05, 2015 at 08:43:07PM +0530, Sudip Mukherjee wrote: > > > On Thu, Sep 24, 2015 at 12:31:01PM +0530, Sudip Mukherjee wrote: >

Re: [PATCH 0/3] drivers/misc/sgi-gru: unapplied patches and a new one

2015-10-05 Thread Dimitri Sivanich
On Mon, Oct 05, 2015 at 08:43:07PM +0530, Sudip Mukherjee wrote: > On Thu, Sep 24, 2015 at 12:31:01PM +0530, Sudip Mukherjee wrote: > > On Wed, Sep 23, 2015 at 12:48:25PM -0500, Dimitri Sivanich wrote: > > > Sudip, > > > > > > I can take a look at the Jack Ste

Re: [PATCH 3/3] drivers/misc/sgi-gru: fix return of error

2015-09-26 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Mon, Sep 21, 2015 at 03:48:19PM +0530, Sudip Mukherjee wrote: > If kzalloc() fails then gms is NULL and we are returning NULL, but the > functions which called this function gru_register_mmu_notifier() are not > expecting NULL as the return. They are

Re: [PATCH 0/3] drivers/misc/sgi-gru: unapplied patches and a new one

2015-09-23 Thread Dimitri Sivanich
Sudip, I can take a look at the Jack Steiner patches. Was there anything in the set of 3 patches that you sent that still needs a review? On Mon, Sep 21, 2015 at 03:48:16PM +0530, Sudip Mukherjee wrote: > Hi Dimitri, > I have taken these patches which were having ACK from you. Apart from > these

Re: [PATCH v3] drivers/misc/sgi-gru: fix dereference of ERR_PTR

2015-09-04 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Fri, Sep 04, 2015 at 09:56:20AM +0530, Sudip Mukherjee wrote: > gru_alloc_gts() can fail and it can return ERR_PTR(errvalue). We should > not dereference it if it has returned error. And incase it has returned > error then wait for some time and

Re: [PATCH v2 4/5] drivers/misc/sgi-gru: fix dereference of ERR_PTR

2015-09-03 Thread Dimitri Sivanich
On Thu, Sep 03, 2015 at 08:20:50PM +0530, Sudip Mukherjee wrote: > gru_alloc_gts() can fail and it can return ERR_PTR(errvalue). We should > not dereference it if it has returned error. And incase it has returned > error then wait for some time and try again. > > Signed-off-by: Sudip Mukherjee >

Re: [PATCH v2 5/5] drivers/misc/sgi-gru: remove unused variable

2015-09-03 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Thu, Sep 03, 2015 at 08:20:51PM +0530, Sudip Mukherjee wrote: > dw was only assigned some value and was never reused. > > Signed-off-by: Sudip Mukherjee > --- > > v2: It was part of first patch in v1. But since one logical change in > one

Re: [PATCH v2 1/5] drivers/misc/sgi-gru: add return on error

2015-09-03 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Thu, Sep 03, 2015 at 08:20:47PM +0530, Sudip Mukherjee wrote: > If the buffer is too small then return the error and in the process > remove the variables which became unused. > > Signed-off-by: Sudip Mukherjee > --- > > v1: only removed var

Re: [PATCH 1/4] drivers/misc/sgi-gru: remove unused variable

2015-09-03 Thread Dimitri Sivanich
On Thu, Sep 03, 2015 at 10:10:12AM +0530, Sudip Mukherjee wrote: > On Wed, Sep 02, 2015 at 09:42:04AM -0500, Dimitri Sivanich wrote: > > On Wed, Sep 02, 2015 at 04:54:55PM +0530, Sudip Mukherjee wrote: > > > These variables were only assigned some value and were never used. >

Re: [PATCH 4/4] drivers/misc/sgi-gru: fix dereference of ERR_PTR

2015-09-02 Thread Dimitri Sivanich
On Wed, Sep 02, 2015 at 04:54:58PM +0530, Sudip Mukherjee wrote: > gru_alloc_gts() can fail and it can return ERR_PTR(errvalue). We should > not dereference it if it has returned error. And incase it has returned > error then just downgrade the write lock and exit. > Not sure about this, because

Re: [PATCH 3/4] drivers/misc/sgi-gru: remove always false condition

2015-09-02 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Wed, Sep 02, 2015 at 04:54:57PM +0530, Sudip Mukherjee wrote: > The member gid in struct gru_dump_chiplet_state_req is unsigned int. So > it can never be less than 0. > > Signed-off-by: Sudip Mukherjee > --- > drivers/misc/sgi-gru/grukdump.

Re: [PATCH 2/4] drivers/misc/sgi-gru: make functions static

2015-09-02 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Wed, Sep 02, 2015 at 04:54:56PM +0530, Sudip Mukherjee wrote: > The functions gru_get_cb_exception_detail_str() and gru_abort() were > only called locally from that file. We can make them static. > > Signed-off-by: Sudip Mukherjee > --- > dr

Re: [PATCH 1/4] drivers/misc/sgi-gru: remove unused variable

2015-09-02 Thread Dimitri Sivanich
On Wed, Sep 02, 2015 at 04:54:55PM +0530, Sudip Mukherjee wrote: > These variables were only assigned some value and were never used. > > Signed-off-by: Sudip Mukherjee > --- > > I have removed the variables in the functions gru_dump_tfm() and > gru_dump_tgh() but it appeared that the intended l

Re: [TRIVIAL PATCH] sgi-gru: Correct misuse of %0x

2015-08-03 Thread Dimitri Sivanich
This should be %d, not 0x%x. Nacked-by: Dimitri Sivanich On Sun, Aug 02, 2015 at 01:27:27PM -0700, Joe Perches wrote: > Correct misuse of 0x%d in logging message. > > Signed-off-by: Joe Perches > --- > drivers/misc/sgi-gru/grumain.c | 2 +- > 1 file changed, 1 insert

Re: [tip:x86/platform] x86/uv/time: Migrate to new set-state interface

2015-07-31 Thread Dimitri Sivanich
On Fri, Jul 31, 2015 at 10:51:08AM +0530, Viresh Kumar wrote: > On 30-07-15, 15:04, Christoph Lameter wrote: > > You need to CC someone at SGI for this I guess. Robin? Nate? Dimitri? > > > > I am definitely not the right guy to be on the CC list. > > Sorry about that. It happened because get_main

Re: [PATCH] sgi-gru: fix null pointer dereference on failed kzalloc

2015-05-20 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Wed, May 13, 2015 at 09:19:46AM +0100, Colin King wrote: > From: Colin Ian King > > static analysis from smatch found a potential null dereference: > > drivers/misc/sgi-gru/grutlbpurge.c:320 gru_register_mmu_notifier() error: > potential nul

Re: [PATCH] misc: sgi-gru: gruhandles.c: Remove unused function

2015-01-05 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Thu, Jan 01, 2015 at 05:46:47PM +0100, Rickard Strandqvist wrote: > Remove the function tfh_restart() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: R

Re: [PATCH v2] gru: cleanup on stack DECLARE_COMPLETION

2014-12-29 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Mon, Dec 29, 2014 at 01:31:16PM -0500, Nicholas Mc Guire wrote: > fix-up for incorrect use of DECLARE_COMPLETION. see also commit > 6e9a4738 ("completions: lockdep annotate on stack completions") > > V2: split out patch for individual files

Re: [Patch Part2 v6 22/27] x86, uv: Use hierarchy irqdomain to manage UV interrupts

2014-12-16 Thread Dimitri Sivanich
info.type = X86_IRQ_ALLOC_TYPE_UV; info.uv_limit = limit; info.uv_blade = mmr_blade; info.uv_offset = mmr_offset; On Mon, Dec 15, 2014 at 03:37:35PM -0600, Dimitri Sivanich wrote: > Was this patch ever tested on a UV system? > > Also, adding some SGI folks to the CC list, si

Re: [Patch Part2 v6 22/27] x86, uv: Use hierarchy irqdomain to manage UV interrupts

2014-12-15 Thread Dimitri Sivanich
Was this patch ever tested on a UV system? Also, adding some SGI folks to the CC list, since there were none listed before. On Tue, Nov 25, 2014 at 01:53:31PM +0800, Jiang Liu wrote: > Enhance UV code to support hierarchy irqdomain, it helps to make > the architecture more clear. > > We should c

Re: [PATCH 1/1] gru: fix %d confusingly prefixed with 0x in format string

2014-08-05 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Mon, Aug 04, 2014 at 05:58:05PM -0700, Hans Wennborg wrote: > Signed-off-by: Hans Wennborg > --- > drivers/misc/sgi-gru/grumain.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/sgi-gru/grumain.c b/dr

Re: [PATCH 08/19] gru: fix %d confusingly prefixed with 0x in format string

2014-08-04 Thread Dimitri Sivanich
Decimal ("%d" without the "0x") for the ctxnum please. Nacked-by: Dimitri Sivanich On Sun, Aug 03, 2014 at 05:19:37PM -0700, Hans Wennborg wrote: > Signed-off-by: Hans Wennborg > --- > drivers/misc/sgi-gru/grumain.c | 2 +- > 1 file changed, 1 insertion(+),

Re: [PATCH 3/4] drivers/misc/sgi-gru/grukdump.c: drop negativity check for unsgined req.gid

2014-07-21 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Thu, Jul 17, 2014 at 04:55:07PM +0300, Andrey Utkin wrote: > [linux-3.16-rc5/drivers/misc/sgi-gru/grukdump.c:199]: (style) Checking if > unsigned variable 'gid' is less than zero. > > if (req.gid >= gru_max_gids || req.gid <

Re: [PATCH 1/1] drivers/misc/sgi-gru/grukdump.c: remove unnecessary test on unsigned int

2014-06-11 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Wed, Jun 11, 2014 at 08:47:02PM +0200, Fabian Frederick wrote: > unsigned value is never < 0 > > Cc: Dimitri Sivanich > Signed-off-by: Fabian Frederick > --- > drivers/misc/sgi-gru/grukdump.c | 2 +- > 1 file changed, 1 insertion(+),

Re: [PATCH RESEND] sgi-gru: use time_before()

2014-05-30 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Fri, May 30, 2014 at 03:40:59PM +0200, Manuel Schölling wrote: > To be future-proof and for better readability the time comparisons are > modified to use time_before() instead of plain, error-prone math. > > Signed-off-by: Manuel Schölling > ---

Re: [PATCH 5/6] drivers,sgi-gru/grufault.c: call find_vma with the mmap_sem held

2014-04-21 Thread Dimitri Sivanich
om which all calls to gru_vtop() originate. The gru_find_lock_gts() function takes it when called from gru_handle_user_call_os(), which then calls gru_user_dropin()->gru_try_dropin(). Nacked-by: Dimitri Sivanich > > Signed-off-by: Jonathan Gonzalez V > Signed-off-by: Davidlohr Bueso >

[tip:x86/uv] x86/UV: Set n_lshift based on GAM_GR_CONFIG MMR for UV3

2014-04-01 Thread tip-bot for Dimitri Sivanich
Commit-ID: 5f40f7d93898a473eb222aa8064144c1d6835470 Gitweb: http://git.kernel.org/tip/5f40f7d93898a473eb222aa8064144c1d6835470 Author: Dimitri Sivanich AuthorDate: Mon, 31 Mar 2014 09:37:00 -0500 Committer: Ingo Molnar CommitDate: Tue, 1 Apr 2014 12:10:44 +0200 x86/UV: Set n_lshift

[tip:x86/uv] x86/UV: Fix conditional in gru_exit()

2014-04-01 Thread tip-bot for Dimitri Sivanich
Commit-ID: fe455b17de6c881eecf4f9784c3b0483a5e3d19e Gitweb: http://git.kernel.org/tip/fe455b17de6c881eecf4f9784c3b0483a5e3d19e Author: Dimitri Sivanich AuthorDate: Mon, 31 Mar 2014 10:23:20 -0500 Committer: Ingo Molnar CommitDate: Tue, 1 Apr 2014 12:10:45 +0200 x86/UV: Fix conditional

Re: [PATCH] x86/UV: Fix conditional in gru_exit

2014-03-31 Thread Dimitri Sivanich
On Mon, Mar 31, 2014 at 09:25:05AM +0200, Ingo Molnar wrote: > * Dimitri Sivanich wrote: > > > +static int gru_unsupported(void) > > +{ > > + return !is_uv_system() || (is_uvx_hub() && !is_uv2_hub()); > > +} > > So the usual pattern is to introduce

Re: [PATCH] x86/UV: Set n_lshift based on GAM_GR_CONFIG MMR for UV3

2014-03-31 Thread Dimitri Sivanich
On Mon, Mar 31, 2014 at 09:30:11AM +0200, Ingo Molnar wrote: > * Dimitri Sivanich wrote: > > @@ -843,12 +843,14 @@ void uv_cpu_init(void) > > void __init uv_system_init(void) > > { > > union uvh_rh_gam_config_mmr_u m_n_config; > > + union uv3

Re: [PATCH] x86/UV: Fix conditional in gru_exit

2014-03-21 Thread Dimitri Sivanich
ease at minimum factor out a helper routine so that such > mismatches cannot happen. > Agreed. Here's a new patch. Fix supported system conditional in gru_exit. Signed-off-by: Dimitri Sivanich --- drivers/misc/sgi-gru/grufile.c |8 ++-- 1 file changed, 6 insertions(+), 2 d

[PATCH] x86/UV: Set n_lshift based on GAM_GR_CONFIG MMR for UV3

2014-03-21 Thread Dimitri Sivanich
of the socket m_val. Then n_lshift can be assigned a fixed value across a multi-partition system, allowing for a fixed common global physical address format that is independent of socket m_val. Cleanup unneeded macros. Signed-off-by: Dimitri Sivanich --- arch/x86/include/asm/uv/uv_hub.h |

[PATCH] x86/UV: Fix conditional in gru_exit

2014-03-20 Thread Dimitri Sivanich
Fix conditional in gru_exit to match gru_init. Signed-off-by: Dimitri Sivanich --- drivers/misc/sgi-gru/grufile.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/drivers/misc/sgi-gru/grufile.c

[patch] x86/UV: Set n_lshift based on GAM_GR_CONFIG MMR for UV3

2014-03-20 Thread Dimitri Sivanich
Set the UV n_lshift value based on the GAM_GR_CONFIG MMR for UV3, making it independent of the socket m_val. Remove unneeded macros. Signed-off-by: Dimitri Sivanich --- arch/x86/include/asm/uv/uv_hub.h | 12 - arch/x86/include/asm/uv/uv_mmrs.h | 42

Re: [patch 2/2] gru: cleanup gru_dump_context() a little

2014-01-30 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Thu, Jan 30, 2014 at 03:10:48PM +0300, Dan Carpenter wrote: > "ret" is zero here so we can remove the "!ret" part of the condition. > "uhdr" is alread a __user pointer so we can remove the cast. > > Signed-off-by: Dan

Re: [patch 1/2] gru: unlocking should be conditional in gru_dump_context()

2014-01-30 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Thu, Jan 30, 2014 at 03:10:44PM +0300, Dan Carpenter wrote: > I was reviewing this and noticed that unlocking should be conditional on > the error path. I've changed it to unlock and return directly since we > only do it once and it seems unlikely to

Re: [PATCH 1/5] drivers: misc: Mark functions as static in grukservices.c

2013-12-13 Thread Dimitri Sivanich
s] > > Signed-off-by: Rashika Kheria Acked-by: Dimitri Sivanich > --- > drivers/misc/sgi-gru/grukservices.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/misc/sgi-gru/grukservices.c > b/drivers/misc/sgi-gru/grukservices.c &g

[tip:x86/uv] x86/UV: Add GRU distributed mode mappings

2013-05-31 Thread tip-bot for Dimitri Sivanich
Commit-ID: 879d5ad0dc3b096170c8f985b1465de5dca88de8 Gitweb: http://git.kernel.org/tip/879d5ad0dc3b096170c8f985b1465de5dca88de8 Author: Dimitri Sivanich AuthorDate: Wed, 29 May 2013 10:56:09 -0500 Committer: Ingo Molnar CommitDate: Thu, 30 May 2013 09:46:09 +0200 x86/UV: Add GRU

Re: [PATCH] x86/UV: GRU distributed mode mappings

2013-05-29 Thread Dimitri Sivanich
pr_debug()? > I had set it to what was being used in map_high(), but pr_debug should be OK, so I changed both instances. GRU hardware will support an optional distributed mode that will allow per-node address mapping of local GRU space, as opposed to mapping all GRU hardware to the same contigu

Re: [PATCH] x86/UV: GRU distributed mode mappings

2013-05-28 Thread Dimitri Sivanich
On Tue, May 28, 2013 at 09:59:12AM +0200, Ingo Molnar wrote: > > * Dimitri Sivanich wrote: > > > Setup mappings for GRU distributed mode and include them as untracked > > pat ranges. > > Would be nice to have the customary changelog content: > > " Cur

[PATCH] x86/UV: GRU distributed mode mappings

2013-05-23 Thread Dimitri Sivanich
Setup mappings for GRU distributed mode and include them as untracked pat ranges. Signed-off-by: Dimitri Sivanich --- arch/x86/kernel/apic/x2apic_uv_x.c | 63 + 1 file changed, 57 insertions(+), 6 deletions(-) Index: linux/arch/x86/kernel/apic/x2apic_uv_x.c

Re: [patch] gru: fix a sanity test in gru_set_context_option()

2013-05-20 Thread Dimitri Sivanich
On Sun, May 19, 2013 at 09:30:41PM +0300, Dan Carpenter wrote: > On Sun, May 19, 2013 at 09:44:42AM -0500, Dimitri Sivanich wrote: > > > > Since we're here, maybe we should neaten this up a little? > > > > Signed-off-by: Dimitri Sivanich > > --- >

Re: [patch] gru: fix a sanity test in gru_set_context_option()

2013-05-19 Thread Dimitri Sivanich
se[req.val1]) || > req.val0 < -1 || req.val0 >= GRU_CHIPLETS_PER_HUB) { > ret = -EINVAL; > } else { Since we're here, maybe we should neaten this up a little? Signed-off-by: Dimitri Sivanich --- drivers/misc/sgi-gru/grufault.c |

Re: [patch v2] gru: info leak in gru_get_config_info()

2013-04-21 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Sun, Apr 21, 2013 at 08:01:07PM +0300, Dan Carpenter wrote: > The "info.fill" array isn't initialized so it can leak uninitialized > stack information to user space. > > Signed-off-by: Dan Carpenter > --- > v2: style changes >

[tip:x86/urgent] x86/irq/ioapic: Check for valid irq_cfg pointer in smp_irq_move_cleanup_interrupt

2012-10-24 Thread tip-bot for Dimitri Sivanich
Commit-ID: 94777fc51b3ad85ff9f705ddf7cdd0eb3bbad5a6 Gitweb: http://git.kernel.org/tip/94777fc51b3ad85ff9f705ddf7cdd0eb3bbad5a6 Author: Dimitri Sivanich AuthorDate: Tue, 16 Oct 2012 07:50:21 -0500 Committer: Ingo Molnar CommitDate: Wed, 24 Oct 2012 12:53:51 +0200 x86/irq/ioapic: Check

[PATCH] x86: check for valid irq_cfg pointer in smp_irq_move_cleanup_interrupt

2012-10-16 Thread Dimitri Sivanich
n-NULL. Signed-off-by: Dimitri Sivanich --- arch/x86/kernel/apic/io_apic.c |3 +++ 1 file changed, 3 insertions(+) Index: linux/arch/x86/kernel/apic/io_apic.c === --- linux.orig/arch/x86/kernel/apic/io_apic.c +++ linux/arch/