Re: [RFC v4 03/25] m68k/atari: Move Atari-specific code out of drivers/char/nvram.c

2015-07-24 Thread Christian T. Steigies
Moin,
On Fri, Jul 24, 2015 at 02:56:26PM +1200, Michael Schmitz wrote:
 
 here's what Finn asked me to run as tests:
 
 # dmesg | grep this_id  nvram.out
 # cat /proc/driver/nvram  nvram.out
 # hexdump -C /dev/nvram  nvram.out
 # cp /dev/nvram /tmp/nvram
 # cp /tmp/nvram /dev/nvram
 # md5sum /dev/nvram /tmp/nvram  nvram.out

It seems I could successfully reset the nvram under TOS with bootconf.
Here is nvram.out, using the new kernel you sent me:

root@garkin:~uname -a
Linux garkin 4.2.0-rc2-atari-269994-gc1e9d12 #327 Fri Jul 24 19:34:44 NZST 2015 
m68k GNU/Linux

PS it seems LVM is working with this kernel as well!

Christian


[7.00] scsi host0: Atari native SCSI, io_port 0x0, n_io_port 0, base 
0x0, irq 15, can_queue 8, cmd_per_lun 1, sg_tablesize 0, this_id 7, flags { }, 
options { REAL_DMA SUPPORT_TAGS } 
Checksum status  : valid
Boot preference  : unspecified
SCSI arbitration : on
SCSI host ID : 7
OS language  : English (US)
Keyboard language: English (UK)
Date format  : YYÿDDÿMM, 24h clock
Boot delay   : 10s
Video mode   : ?? colors, 80 columns, VGA PAL monitor
   overscan, compat. mode off, line doubling
  00 00 ff ff ff ff 00 03  13 ff 0a ff ff ff 01 7f  ||
0010  87 ff 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ||
0020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ||
0030  e1 1e |..|
0032
3b5801864975cf23bcacb52f648e74cc  /dev/nvram
3b5801864975cf23bcacb52f648e74cc  /tmp/nvram
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [RFC v4 03/25] m68k/atari: Move Atari-specific code out of drivers/char/nvram.c

2015-07-23 Thread Christian T. Steigies
On Wed, Jul 22, 2015 at 02:22:21PM +1000, Finn Thain wrote:
 
 Anyone with a suitable Atari, i.e. ATARIHW_PRESENT(TT_CLK), who can boot 
 both TOS and Linux could resolve the question. (Perhaps with an emulator?)
 
 Any old kernel binary would do, since atari_scsi should print either 
 HOSTID=n or this_id n at startup.
 
 If n doesn't agree with what TOS says about the host's SCSI ID, then I 
 think a trivial patch is safe enough. Especially if cat /proc/driver/nvram 
 produces a SCSI host ID : m that does agree with TOS.

root@garkin:~cat /proc/hardware 
Model:  Atari Falcon
System Memory:  522752K
510 MB at 0x0100 (alternate RAM)
Detected hardware:
Falcon Shifter
Programmable Sound Generator
PCM 8 Bit Sound
CODEC Sound
SCSI Controller NCR5380 (Falcon style)
IDE Interface
8/16 Mhz Switch for FDC
Multi Function Peripheral MFP 68901
Serial Communications Controller SCC 8530
Paddle Interface
DMA Controller for SCC
Clock Chip MC146818A
Blitter
DSP56001 processor

root@garkin:~dmesg |grep SCSI
[0.00] Atari hardware found: VIDEL STDMA-SCSI ST_MFP YM2149 PCM CODEC 
DSP56K SCC_DMA SCC ANALOG_JOY BLITTER IDE TT_CLK FDC_SPEED 
[0.41] SCSI subsystem initialized
[0.85] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 
251)
[4.23] Atari SCSI: resetting the SCSI bus... done
[6.75] scsi host0: Atari native SCSI, io_port 0x0, n_io_port 0, base 
0x0, irq 15, can_queue 8, cmd_per_lun 1, sg_tablesize 0, this_id 7, flags { }, 
options { REAL_DMA SUPPORT_TAGS } 

root@garkin:~cat /proc/driver/nvram
Checksum status  : not valid
Boot preference  : 0xff (undefined)
SCSI arbitration : on
SCSI host ID : 7
OS language  : 255 (undefined)
Keyboard language: 255 (undefined)
Date format  : 7 (undefined), 24h clock
Boot delay   : 255s
Video mode   : 4 colors, 40 columns, TV NTSC monitor
   no overscan, compat. mode off


Let me know if you need more info.

Christian
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [RFC v4 03/25] m68k/atari: Move Atari-specific code out of drivers/char/nvram.c

2015-07-22 Thread Christian T. Steigies
On Wed, Jul 22, 2015 at 02:22:21PM +1000, Finn Thain wrote:
 
 On Wed, 22 Jul 2015, Michael Schmitz wrote:
 
  Hi Finn,
  
  I'm afraid I cannot test anything on Atari hardware at present - my 
  Falcon ate it's IDE disk partition table with all the fun that entails. 
 
 That doesn't sound good.
 
  Haven't even begun to try and recover that yet.
  
  If you send a patch I could build a kernel and send that to Christian 
  for testing (if he's got his Falcon up and running - might be a tad warm 
  in the attic for that, in fact).
 
 Anyone with a suitable Atari, i.e. ATARIHW_PRESENT(TT_CLK), who can boot 
 both TOS and Linux could resolve the question. (Perhaps with an emulator?)

The Falcon is not powered on currently but it should still work. What should
I test?

 Any old kernel binary would do, since atari_scsi should print either 
 HOSTID=n or this_id n at startup.
 
 If n doesn't agree with what TOS says about the host's SCSI ID, then I 
 think a trivial patch is safe enough. Especially if cat /proc/driver/nvram 
 produces a SCSI host ID : m that does agree with TOS.

Christian
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev