All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] m68k/atari: atari_scsi.c - use m68k_realnum_memory for FastRAM test
@ 2017-06-05  7:37 Michael Schmitz
  2017-06-05 19:17 ` Christian T. Steigies
  2017-06-06  0:55 ` Martin K. Petersen
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Schmitz @ 2017-06-05  7:37 UTC (permalink / raw)
  To: linux-m68k, fthain; +Cc: geert, cts, linux-scsi, Michael Schmitz

m68k_num_memory is unsuitable to test for the presence of FastRAM
on CT60 if the kernel is located in FastRAM: in arch/m68k/mm/motorola.c
the ST-RAM chunk is skipped and m68k_num_memory is decremented in this
case. m68k_realnum_memory still contains the actual number of RAM chunks
so use that.

Tested by Christian Steiges on his Falcon with kernel loaded in FastRAM
- could you please reply with your Tested-by tag, Christian?

Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>
---
 drivers/scsi/atari_scsi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/atari_scsi.c b/drivers/scsi/atari_scsi.c
index f792420..a75feeb 100644
--- a/drivers/scsi/atari_scsi.c
+++ b/drivers/scsi/atari_scsi.c
@@ -776,7 +776,7 @@ static int __init atari_scsi_probe(struct platform_device *pdev)
 	 * from/to alternative Ram.
 	 */
 	if (ATARIHW_PRESENT(ST_SCSI) && !ATARIHW_PRESENT(EXTD_DMA) &&
-	    m68k_num_memory > 1) {
+	    m68k_realnum_memory > 1) {
 		atari_dma_buffer = atari_stram_alloc(STRAM_BUFFER_SIZE, "SCSI");
 		if (!atari_dma_buffer) {
 			pr_err(PFX "can't allocate ST-RAM double buffer\n");
-- 
1.7.0.4

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

* Re: [PATCH] m68k/atari: atari_scsi.c - use m68k_realnum_memory for FastRAM test
  2017-06-05  7:37 [PATCH] m68k/atari: atari_scsi.c - use m68k_realnum_memory for FastRAM test Michael Schmitz
@ 2017-06-05 19:17 ` Christian T. Steigies
  2017-06-06  3:38   ` Michael Schmitz
  2017-06-06  0:55 ` Martin K. Petersen
  1 sibling, 1 reply; 4+ messages in thread
From: Christian T. Steigies @ 2017-06-05 19:17 UTC (permalink / raw)
  To: Michael Schmitz; +Cc: linux-m68k, fthain, geert, cts, linux-scsi

On Mon, Jun 05, 2017 at 07:37:59PM +1200, Michael Schmitz wrote:
> m68k_num_memory is unsuitable to test for the presence of FastRAM
> on CT60 if the kernel is located in FastRAM: in arch/m68k/mm/motorola.c
> the ST-RAM chunk is skipped and m68k_num_memory is decremented in this
> case. m68k_realnum_memory still contains the actual number of RAM chunks
> so use that.
> 
> Tested by Christian Steiges on his Falcon with kernel loaded in FastRAM
> - could you please reply with your Tested-by tag, Christian?

Sure, do I need to sign it or is this ok?

Tested-by: Christian T. Steigies <cts@debian.org>
> Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>
> ---
>  drivers/scsi/atari_scsi.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/scsi/atari_scsi.c b/drivers/scsi/atari_scsi.c
> index f792420..a75feeb 100644
> --- a/drivers/scsi/atari_scsi.c
> +++ b/drivers/scsi/atari_scsi.c
> @@ -776,7 +776,7 @@ static int __init atari_scsi_probe(struct platform_device *pdev)
>  	 * from/to alternative Ram.
>  	 */
>  	if (ATARIHW_PRESENT(ST_SCSI) && !ATARIHW_PRESENT(EXTD_DMA) &&
> -	    m68k_num_memory > 1) {
> +	    m68k_realnum_memory > 1) {
>  		atari_dma_buffer = atari_stram_alloc(STRAM_BUFFER_SIZE, "SCSI");
>  		if (!atari_dma_buffer) {
>  			pr_err(PFX "can't allocate ST-RAM double buffer\n");
> -- 
> 1.7.0.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] m68k/atari: atari_scsi.c - use m68k_realnum_memory for FastRAM test
  2017-06-05  7:37 [PATCH] m68k/atari: atari_scsi.c - use m68k_realnum_memory for FastRAM test Michael Schmitz
  2017-06-05 19:17 ` Christian T. Steigies
@ 2017-06-06  0:55 ` Martin K. Petersen
  1 sibling, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2017-06-06  0:55 UTC (permalink / raw)
  To: Michael Schmitz; +Cc: linux-m68k, fthain, geert, cts, linux-scsi


Michael,

> m68k_num_memory is unsuitable to test for the presence of FastRAM on
> CT60 if the kernel is located in FastRAM: in arch/m68k/mm/motorola.c
> the ST-RAM chunk is skipped and m68k_num_memory is decremented in this
> case. m68k_realnum_memory still contains the actual number of RAM
> chunks so use that.

Applied to 4.13/scsi-queue. Thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

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

* Re: [PATCH] m68k/atari: atari_scsi.c - use m68k_realnum_memory for FastRAM test
  2017-06-05 19:17 ` Christian T. Steigies
@ 2017-06-06  3:38   ` Michael Schmitz
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Schmitz @ 2017-06-06  3:38 UTC (permalink / raw)
  To: linux-m68k; +Cc: linux-scsi

Hi Christian

Am 06.06.2017 um 07:17 schrieb Christian T. Steigies:
> On Mon, Jun 05, 2017 at 07:37:59PM +1200, Michael Schmitz wrote:
>> m68k_num_memory is unsuitable to test for the presence of FastRAM
>> on CT60 if the kernel is located in FastRAM: in arch/m68k/mm/motorola.c
>> the ST-RAM chunk is skipped and m68k_num_memory is decremented in this
>> case. m68k_realnum_memory still contains the actual number of RAM chunks
>> so use that.
>>
>> Tested by Christian Steiges on his Falcon with kernel loaded in FastRAM
>> - could you please reply with your Tested-by tag, Christian?
> 
> Sure, do I need to sign it or is this ok?
> 
> Tested-by: Christian T. Steigies <cts@debian.org>
>> Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>

That's OK - we know it was you :-)

Martin has already applied it - thanks!

Cheers,

	Michael

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

end of thread, other threads:[~2017-06-06  3:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-05  7:37 [PATCH] m68k/atari: atari_scsi.c - use m68k_realnum_memory for FastRAM test Michael Schmitz
2017-06-05 19:17 ` Christian T. Steigies
2017-06-06  3:38   ` Michael Schmitz
2017-06-06  0:55 ` Martin K. Petersen

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.