All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND] octeon_edac: fix broken build
@ 2015-07-01 10:38 Aaro Koskinen
  2015-07-01 11:31 ` Borislav Petkov
  0 siblings, 1 reply; 4+ messages in thread
From: Aaro Koskinen @ 2015-07-01 10:38 UTC (permalink / raw)
  To: Ralf Baechle, David Daney, Doug Thompson, Borislav Petkov,
	Mauro Carvalho Chehab, linux-edac, linux-kernel

Commit debe6a623d3c ("MIPS: OCTEON: Update octeon-model.h code for new
SoCs.") renamed some SoC model helper functions, but forgot to update
the EDAC drivers resulting in build failures. Fix that.

Cc: stable@vger.kernel.org # v4.0+
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
---
 drivers/edac/octeon_edac-l2c.c | 2 +-
 drivers/edac/octeon_edac-lmc.c | 2 +-
 drivers/edac/octeon_edac-pc.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/edac/octeon_edac-l2c.c b/drivers/edac/octeon_edac-l2c.c
index 7e98084..afea7fc 100644
--- a/drivers/edac/octeon_edac-l2c.c
+++ b/drivers/edac/octeon_edac-l2c.c
@@ -151,7 +151,7 @@ static int octeon_l2c_probe(struct platform_device *pdev)
 	l2c->ctl_name = "octeon_l2c_err";
 
 
-	if (OCTEON_IS_MODEL(OCTEON_FAM_1_PLUS)) {
+	if (OCTEON_IS_OCTEON1PLUS()) {
 		union cvmx_l2t_err l2t_err;
 		union cvmx_l2d_err l2d_err;
 
diff --git a/drivers/edac/octeon_edac-lmc.c b/drivers/edac/octeon_edac-lmc.c
index bb19e07..cda6dab 100644
--- a/drivers/edac/octeon_edac-lmc.c
+++ b/drivers/edac/octeon_edac-lmc.c
@@ -234,7 +234,7 @@ static int octeon_lmc_edac_probe(struct platform_device *pdev)
 	layers[0].size = 1;
 	layers[0].is_virt_csrow = false;
 
-	if (OCTEON_IS_MODEL(OCTEON_FAM_1_PLUS)) {
+	if (OCTEON_IS_OCTEON1PLUS()) {
 		union cvmx_lmcx_mem_cfg0 cfg0;
 
 		cfg0.u64 = cvmx_read_csr(CVMX_LMCX_MEM_CFG0(0));
diff --git a/drivers/edac/octeon_edac-pc.c b/drivers/edac/octeon_edac-pc.c
index 0f83c33..2ab6cf2 100644
--- a/drivers/edac/octeon_edac-pc.c
+++ b/drivers/edac/octeon_edac-pc.c
@@ -73,7 +73,7 @@ static int  co_cache_error_event(struct notifier_block *this,
 			edac_device_handle_ce(p->ed, cpu, 0, "dcache");
 
 		/* Clear the error indication */
-		if (OCTEON_IS_MODEL(OCTEON_FAM_2))
+		if (OCTEON_IS_OCTEON2())
 			write_octeon_c0_dcacheerr(1);
 		else
 			write_octeon_c0_dcacheerr(0);
-- 
2.4.3


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

* Re: [PATCH RESEND] octeon_edac: fix broken build
  2015-07-01 10:38 [PATCH RESEND] octeon_edac: fix broken build Aaro Koskinen
@ 2015-07-01 11:31 ` Borislav Petkov
  2015-07-01 20:56   ` David Daney
  0 siblings, 1 reply; 4+ messages in thread
From: Borislav Petkov @ 2015-07-01 11:31 UTC (permalink / raw)
  To: Aaro Koskinen, Ralf Baechle, David Daney
  Cc: Doug Thompson, Mauro Carvalho Chehab, linux-edac, linux-kernel

On Wed, Jul 01, 2015 at 01:38:52PM +0300, Aaro Koskinen wrote:
> Commit debe6a623d3c ("MIPS: OCTEON: Update octeon-model.h code for new
> SoCs.") renamed some SoC model helper functions, but forgot to update
> the EDAC drivers resulting in build failures. Fix that.
> 
> Cc: stable@vger.kernel.org # v4.0+
> Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
> ---
>  drivers/edac/octeon_edac-l2c.c | 2 +-
>  drivers/edac/octeon_edac-lmc.c | 2 +-
>  drivers/edac/octeon_edac-pc.c  | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/edac/octeon_edac-l2c.c b/drivers/edac/octeon_edac-l2c.c
> index 7e98084..afea7fc 100644
> --- a/drivers/edac/octeon_edac-l2c.c
> +++ b/drivers/edac/octeon_edac-l2c.c
> @@ -151,7 +151,7 @@ static int octeon_l2c_probe(struct platform_device *pdev)
>  	l2c->ctl_name = "octeon_l2c_err";
>  
>  
> -	if (OCTEON_IS_MODEL(OCTEON_FAM_1_PLUS)) {
> +	if (OCTEON_IS_OCTEON1PLUS()) {
>  		union cvmx_l2t_err l2t_err;
>  		union cvmx_l2d_err l2d_err;
>  
> diff --git a/drivers/edac/octeon_edac-lmc.c b/drivers/edac/octeon_edac-lmc.c
> index bb19e07..cda6dab 100644
> --- a/drivers/edac/octeon_edac-lmc.c
> +++ b/drivers/edac/octeon_edac-lmc.c
> @@ -234,7 +234,7 @@ static int octeon_lmc_edac_probe(struct platform_device *pdev)
>  	layers[0].size = 1;
>  	layers[0].is_virt_csrow = false;
>  
> -	if (OCTEON_IS_MODEL(OCTEON_FAM_1_PLUS)) {
> +	if (OCTEON_IS_OCTEON1PLUS()) {
>  		union cvmx_lmcx_mem_cfg0 cfg0;
>  
>  		cfg0.u64 = cvmx_read_csr(CVMX_LMCX_MEM_CFG0(0));
> diff --git a/drivers/edac/octeon_edac-pc.c b/drivers/edac/octeon_edac-pc.c
> index 0f83c33..2ab6cf2 100644
> --- a/drivers/edac/octeon_edac-pc.c
> +++ b/drivers/edac/octeon_edac-pc.c
> @@ -73,7 +73,7 @@ static int  co_cache_error_event(struct notifier_block *this,
>  			edac_device_handle_ce(p->ed, cpu, 0, "dcache");
>  
>  		/* Clear the error indication */
> -		if (OCTEON_IS_MODEL(OCTEON_FAM_2))
> +		if (OCTEON_IS_OCTEON2())
>  			write_octeon_c0_dcacheerr(1);
>  		else
>  			write_octeon_c0_dcacheerr(0);

I'm still waiting on an ACK for that.

Ralf, David? What's up?

I started looking and then got lost in that macro "fun" in
arch/mips/include/asm/octeon/octeon-model.h

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
--

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

* Re: [PATCH RESEND] octeon_edac: fix broken build
  2015-07-01 11:31 ` Borislav Petkov
@ 2015-07-01 20:56   ` David Daney
  2015-07-02  6:35     ` Borislav Petkov
  0 siblings, 1 reply; 4+ messages in thread
From: David Daney @ 2015-07-01 20:56 UTC (permalink / raw)
  To: Borislav Petkov
  Cc: Aaro Koskinen, Ralf Baechle, David Daney, Doug Thompson,
	Mauro Carvalho Chehab, linux-edac, linux-kernel

On 07/01/2015 04:31 AM, Borislav Petkov wrote:
> On Wed, Jul 01, 2015 at 01:38:52PM +0300, Aaro Koskinen wrote:
>> Commit debe6a623d3c ("MIPS: OCTEON: Update octeon-model.h code for new
>> SoCs.") renamed some SoC model helper functions, but forgot to update
>> the EDAC drivers resulting in build failures. Fix that.
>>
>> Cc: stable@vger.kernel.org # v4.0+
>> Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
>> ---
>>   drivers/edac/octeon_edac-l2c.c | 2 +-
>>   drivers/edac/octeon_edac-lmc.c | 2 +-
>>   drivers/edac/octeon_edac-pc.c  | 2 +-
>>   3 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/edac/octeon_edac-l2c.c b/drivers/edac/octeon_edac-l2c.c
>> index 7e98084..afea7fc 100644
>> --- a/drivers/edac/octeon_edac-l2c.c
>> +++ b/drivers/edac/octeon_edac-l2c.c
>> @@ -151,7 +151,7 @@ static int octeon_l2c_probe(struct platform_device *pdev)
>>   	l2c->ctl_name = "octeon_l2c_err";
>>
>>
>> -	if (OCTEON_IS_MODEL(OCTEON_FAM_1_PLUS)) {
>> +	if (OCTEON_IS_OCTEON1PLUS()) {
>>   		union cvmx_l2t_err l2t_err;
>>   		union cvmx_l2d_err l2d_err;
>>
>> diff --git a/drivers/edac/octeon_edac-lmc.c b/drivers/edac/octeon_edac-lmc.c
>> index bb19e07..cda6dab 100644
>> --- a/drivers/edac/octeon_edac-lmc.c
>> +++ b/drivers/edac/octeon_edac-lmc.c
>> @@ -234,7 +234,7 @@ static int octeon_lmc_edac_probe(struct platform_device *pdev)
>>   	layers[0].size = 1;
>>   	layers[0].is_virt_csrow = false;
>>
>> -	if (OCTEON_IS_MODEL(OCTEON_FAM_1_PLUS)) {
>> +	if (OCTEON_IS_OCTEON1PLUS()) {
>>   		union cvmx_lmcx_mem_cfg0 cfg0;
>>
>>   		cfg0.u64 = cvmx_read_csr(CVMX_LMCX_MEM_CFG0(0));
>> diff --git a/drivers/edac/octeon_edac-pc.c b/drivers/edac/octeon_edac-pc.c
>> index 0f83c33..2ab6cf2 100644
>> --- a/drivers/edac/octeon_edac-pc.c
>> +++ b/drivers/edac/octeon_edac-pc.c
>> @@ -73,7 +73,7 @@ static int  co_cache_error_event(struct notifier_block *this,
>>   			edac_device_handle_ce(p->ed, cpu, 0, "dcache");
>>
>>   		/* Clear the error indication */
>> -		if (OCTEON_IS_MODEL(OCTEON_FAM_2))
>> +		if (OCTEON_IS_OCTEON2())
>>   			write_octeon_c0_dcacheerr(1);
>>   		else
>>   			write_octeon_c0_dcacheerr(0);
>
> I'm still waiting on an ACK for that.

It seems obvious and corrects a build issue, so ...

Acked-by: David Daney <david.daney@cavium.com>


>
> Ralf, David? What's up?
>
> I started looking and then got lost in that macro "fun" in
> arch/mips/include/asm/octeon/octeon-model.h
>


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

* Re: [PATCH RESEND] octeon_edac: fix broken build
  2015-07-01 20:56   ` David Daney
@ 2015-07-02  6:35     ` Borislav Petkov
  0 siblings, 0 replies; 4+ messages in thread
From: Borislav Petkov @ 2015-07-02  6:35 UTC (permalink / raw)
  To: David Daney
  Cc: Aaro Koskinen, Ralf Baechle, David Daney, Doug Thompson,
	Mauro Carvalho Chehab, linux-edac, linux-kernel

On Wed, Jul 01, 2015 at 01:56:58PM -0700, David Daney wrote:
> It seems obvious and corrects a build issue, so ...
> 
> Acked-by: David Daney <david.daney@cavium.com>

Thanks, applied.

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
--

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

end of thread, other threads:[~2015-07-02  6:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-01 10:38 [PATCH RESEND] octeon_edac: fix broken build Aaro Koskinen
2015-07-01 11:31 ` Borislav Petkov
2015-07-01 20:56   ` David Daney
2015-07-02  6:35     ` Borislav Petkov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.